makotech222 Expert Cheater Reputation: 0
Joined: 12 May 2011 Posts: 199
|
Posted: Tue Sep 16, 2014 9:29 pm Post subject: Need some Auto Assemble help |
|
|
Hello everyone. i'm trying to write a script to hack this game, but i'm running into problems. Namely, it crashes the game when i execute my script. Here's what the auto assemble script is defaulted as:
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
originalcode:
mov [ecx+eax],bx
and edx,001FFFFC
exit:
jmp returnhere
10013374:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
10013374:
mov [ecx+eax],bx
and edx,001FFFFC
//Alt: db 66 89 1C 01 81 E2 FC FF 1F 00 |
Now, i need the ebx registry (specifically the bx part) to have the value 99(dec). Its normally something in between 0 and 99 (00000047 for example)How should i go about doing that? I've tried adding in
mov ebx,#99
but that crashes the game. Am i doing anything wrong?
|
|