Nuclear898 Grandmaster Cheater Supreme
Reputation: 0
Joined: 04 Jun 2006 Posts: 1597 Location: The Netherlands
|
Posted: Wed Jun 06, 2007 1:11 pm Post subject: Need help on an asm script |
|
|
credits to pedrasimon for the hotkey enable
thats what I have so far,
the idea is that when you press F4 it enables what you filled in at (fill in your aa codes here), when it enabled that it should make check's value 1, at the beginning it compares check's calue to 1 and if it is indeed 1, it would jump to turnoff which turns the script off by replacing the edited memory with the original opcodes,
so basically, f4= turn on
f4 again=turn off
I think I failed terribly, but at least I tried and its my first script and I'd like to learn
| Code: | [enable]
alloc(myHack,64)
alloc(check,64)
alloc(turnoff,64)
label(rtnMyHack)
label(goHome)
label(check2)
myHack:
test edi,80000000
jns goHome
cmp [ebp+c],73
jne goHome
check2:
db 00
check:
cmp [check2],1
je turnoff
//==== your AA codes go here
//====
mov [check2],1
turnoff:
//=====Put the original opcodes of the cheat here
//=====
goHome:
push dword ptr [esp+8]
push dword ptr [esp+8]
jmp rtnMyHack
4b9f98:
call myHack
db 90 90 90 90
rtnMyHack:
[disable]
4b9f98:
push dword ptr [esp+8]
push dword ptr [esp+8] |
|
|