| View previous topic :: View next topic |
| Author |
Message |
Gaz Cheater
Reputation: 0
Joined: 08 Aug 2012 Posts: 40
|
Posted: Fri Jan 25, 2013 11:58 am Post subject: AA to C++ just not getting it |
|
|
Seen a few tuts and im just not getting it
i want to take this asm
| Code: | alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(steady)
registersymbol(steady)
aobscan(steadyaob,f3 0f 11 46 04 e8 ** ** ** ** d9 46 04)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movss [esi+04],xmm0
mov [esi+04],(float)100000
exit:
jmp returnhere
steadyaob:
steady:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
steady:
movss [esi+04],xmm0
//Alt: db F3 0F 11 46 04
unregistersymbol(steady) |
and use it in c++ if someone can help and give a good explanation of what they done it would be nice , btw its a dll im making , its just that this specific address needs a codecave for me to add new stuff which all my other cheats didnt so thanks!
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Jan 26, 2013 5:02 am Post subject: |
|
|
The most common method of achieving this is using a naked function.
There are a handful of examples on these forums and on the net for what you're looking for.
_________________
- Retired. |
|
| Back to top |
|
 |
ARM4ND0 Advanced Cheater
Reputation: 2
Joined: 21 Jul 2011 Posts: 73
|
Posted: Sat Jan 26, 2013 4:39 pm Post subject: |
|
|
Yes, use naked function like this and write some function to get its size..
| Code: | void _declspec(naked) InfiniteCrap()
{
_asm
{
mov dword ptr [esi+0x04],0x461c4000
ret
}
} |
greetz ARM4ND0
_________________
Hitler |
|
| Back to top |
|
 |
|