| View previous topic :: View next topic |
| Author |
Message |
Mr. Starman Newbie cheater
Reputation: 0
Joined: 09 Oct 2012 Posts: 16
|
Posted: Sun Oct 14, 2012 12:33 am Post subject: Multiplication and Division with Code Injection |
|
|
Is there a way to multiply or divide the value of a register with a constant?
I don't think you can just write it as ebx*2 or ebx/4.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25832 Location: The netherlands
|
Posted: Sun Oct 14, 2012 12:45 am Post subject: |
|
|
do a code injection and do a shl reg,1 to multipyl by 2, and a shr reg,2 do divide by 4
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Mr. Starman Newbie cheater
Reputation: 0
Joined: 09 Oct 2012 Posts: 16
|
Posted: Fri Oct 19, 2012 10:54 pm Post subject: |
|
|
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
shl edx,1
originalcode:
add ecx,[edx+Touhou - Hack and Slash (DX9).exe+9811FF0]
exit:
jmp returnhere
"Touhou - Hack and Slash (DX9).exe"+8DF4:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
"Touhou - Hack and Slash (DX9).exe"+8DF4:
add ecx,[edx+Touhou - Hack and Slash (DX9).exe+9811FF0] |
With the code above, I got an error saying that it can't compile the "add" instruction, presumably because of the long-ass program name there.
But I got that from the program itself. What the hell?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25832 Location: The netherlands
|
Posted: Sat Oct 20, 2012 1:58 am Post subject: |
|
|
try
add ecx,[edx+"Touhou - Hack and Slash (DX9).exe"+9811FF0]
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|