[C/C++ TUTORIAL] ASM Call A Function


So as maybe everyone knows C++ cannot be reflected, but it can be disassembled using the right tools. This disassembler I use is called IDA Pro. I use Cracked version 6.1 including a DECOMPILER. PM me if you want it.


Step 1. The function
So we are going to look at a function we're going to call.
The function I'm gonna use is from a game called WARROCK. We are going to pop up a in-game messagebox displaying custom text on it.

We open Warrock in IDA. (You can get the unpacked version at the bottom of this topic)
We will press ALT + T and search for this: 418B85, you will see this code



as you can see, there's only 1 argument taken here, and that is the text.
So to 'call' this function, we need 3 ASM functions.



We want to write the text "Hello, Spike2147 was here!"
So we declare:

And you're all set! you just passed a value from one program to the other.

0 comments:

Post a Comment

 

Copyright © 2011 Mbojo4Lab | Design by Kenga Ads-template