Results 1 to 10 of 10
  1. #1
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy

    Post #Lesson 4 - Creating functions

    As i explained before, GameHacking is simply modifying memory.
    Now how do we modify the memory?
    We first start with an unpacked version (what is unpacking? https://www.mpgh.net/forum/showthread.php?t=858325).
    This unpacked file is opened in a debugger, i will open this in IDA Freeware 5.0 (because it's free for ever ).
    The unpacked file will be posted below and can be downloaded after approval.

    The beginning screen

    We have just opened our unpacked WarRock file and we are now going to make a useable function out of it.
    We are going to try to use the ingame message that shows when trying to buy premium weapons or winning an event.
    WarRock provided us with plenty of stuff that we can start with.
    For example: You got a XM8 (15 days) for the [Back to Bootcamp] event!
    This opens up in a messagebox!


    We want THIS messagebox, but with our text.
    If we take a look in the unpacked version in IDA we can clearly see unencrypted text that's used in a MessageBox.

    Now we go to that function

    Only pay attention to the stuff inside the red boxes
    You need to know a bit of assembly to understand this part.
    We have all the stuff we need right here.
    now what is what?

    Code:
    ___:004E2D8B                 push    offset aTheServerIsFul ; "\nThe server is full right now. \n\nPlease"...
    This code pushes our text, so we enter our text here, this will show our text in the messagebox

    Code:
    ___:004E2D90                 call    sub_41AEC7
    We call our function that displays the messagebox (adr: 0x41AEC7).

    Code:
    ___:004E2D98                 pop     ecx
    We pop the ecx register.

    CALL SUB_41AEC7
    This function is very important, it's the function we use to display our MessageBox!


    As you can see it has some stuff in it, now how could this be a function?
    We use the codes above to use this function.

    As you see i have used the push, call and pop.
    So now our function should work, let's try it!


    WarRock Dumped 30-08-2014
    Virustotal: https://www.virustotal.com/nl/file/1...is/1409670147/
    Virscan: https://virusscan.jotti.org/nl/scanre...a44c19c0137962


    I hope this makes any sence, if there are any questions feel free to ask them!
    I'm not a pro at expressing myself..
    <b>Downloadable Files</b> Downloadable Files
    Last edited by AeroMan; 09-02-2014 at 09:03 AM.

  2. The Following 9 Users Say Thank You to AeroMan For This Useful Post:

    armour199915 (09-23-2015),DaneCoder (09-03-2014),Dong'Rickz (09-09-2014),Jhem (09-02-2014),[MPGH]Mayion (09-02-2014),n4n033 (09-02-2014),pusongbato (09-03-2014),V3n0x (09-02-2014),znoen (09-02-2014)

  3. #2
    znoen's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    Netherlands
    Posts
    223
    Reputation
    73
    Thanks
    720
    My Mood
    Relaxed
    Nice tutorial!


  4. The Following User Says Thank You to znoen For This Useful Post:

    AeroMan (09-02-2014)

  5. #3
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,394
    My Mood
    Stressed
    What if you are trying to disable that message?

  6. #4
    Threadstarter
    Upcoming MPGHiean
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Jhem View Post
    What if you are trying to disable that message?

    You should nop the JNZ instruction, because just disabling the message wont work, it will but it's not optimal.
    This will prevent the messagebox from showing.

  7. #5
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,394
    My Mood
    Stressed
    Quote Originally Posted by Alex_Agnew View Post
    You should nop the JNZ instruction, because just disabling the message wont work, it will but it's not optimal.
    This will prevent the messagebox from showing.
    I don't know why but after I did that warrock crash emi, well nevermind.

  8. #6
    Threadstarter
    Upcoming MPGHiean
    AeroMan's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hell
    Posts
    3,294
    Reputation
    189
    Thanks
    3,049
    My Mood
    Busy
    Quote Originally Posted by Jhem View Post


    I don't know why but after I did that warrock crash emi, well nevermind.
    If you change the opcodes from that instruction it probably will, because you need a bypass to change opcodes.

  9. #7
    pusongbato's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    at Perez Residence
    Posts
    585
    Reputation
    10
    Thanks
    2,128
    good job and nice share.

  10. #8
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,373
    My Mood
    Twisted
    /Approved.
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  11. #9
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,100
    My Mood
    Aggressive
    You already teach me ho to do that and your publish it thank's for your advance teaching me !






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


  12. #10
    XTCKazbah's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    40
    Nice work

Similar Threads

  1. [Tutorial] #Lesson 3 - Assembly function example
    By AeroMan in forum WarRock Hack Source Code
    Replies: 10
    Last Post: 09-05-2014, 05:54 AM
  2. Will pay for lessons in creating Clients
    By PipDirk in forum Realm of the Mad God Selling / Trading / Buying
    Replies: 12
    Last Post: 09-13-2013, 02:42 PM
  3. [Help Request] How To Create A Toggle Function CE
    By Hikaru87 in forum C++/C Programming
    Replies: 4
    Last Post: 07-22-2012, 04:12 AM
  4. how to create speedhacks?
    By LiLLeO in forum General Game Hacking
    Replies: 5
    Last Post: 01-28-2006, 08:52 AM
  5. Creating A GunzRunnable
    By CrazyDeath in forum Game Hacking Tutorials
    Replies: 7
    Last Post: 01-01-2006, 11:20 PM