 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Spawnova Newbie cheater
Reputation: 0
Joined: 12 Feb 2013 Posts: 22
|
Posted: Mon Oct 26, 2015 6:51 pm Post subject: Finding pointer in asm |
|
|
I'm trying to compare a pointer address with some code in asm but I'm not quite sure how to link/find my pointer in asm.
Here's what I have:
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
alloc(logArray,8)
registersymbol(logArray)
label(returnhere)
label(originalcode)
label(exit)
newmem:
mov [logArray],ecx ;store incoming damage
mov [logArray+4],eax ;store entity address
cmp [logArray+4],16E3BF68 ;static address, I want this to be my pointer
je exit
mov [eax+0000059C],#0 ;if not my entity kill it
originalcode:
sub [eax+0000059C],ecx
exit:
jmp returnhere
"SW4II.exe"+7F213:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
unregistersymbol(logArray)
"SW4II.exe"+7F213:
sub [eax+0000059C],ecx
//Alt: db 29 88 9C 05 00 00 |
Pointer:
Code: | "SW4II.exe"+0078C8BC > 0x154 |
Basically I want to check to see if the hp address is my characters and if it is, then make me invincible otherwise kill enemies in 1 hit. I'm just trying to figure out how to access the pointer that points to my character through asm.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Oct 26, 2015 7:08 pm Post subject: |
|
|
Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
mov ecx,["SW4II.exe"+0078C8BC]
mov ecx,[ecx+154]
cmp eax,ecx
je originalcode
mov [eax+0000059C],0
originalcode:
xor ecx,ecx
sub [eax+0000059C],ecx
exit:
jmp returnhere
"SW4II.exe"+7F213:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
"SW4II.exe"+7F213:
sub [eax+0000059C],ecx
//Alt: db 29 88 9C 05 00 00 |
|
|
Back to top |
|
 |
Spawnova Newbie cheater
Reputation: 0
Joined: 12 Feb 2013 Posts: 22
|
Posted: Mon Oct 26, 2015 7:15 pm Post subject: |
|
|
Ah okay, I understand now, thank you! =)
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|