framePTR How do I cheat?
Reputation: 0
Joined: 16 Jun 2020 Posts: 2
|
Posted: Wed Aug 19, 2020 8:51 am Post subject: Dereferencing LEA register crashes game |
|
|
Hi,
I alloc memory with | Code: | alloc(gOTable,$512)
|
then later I try to load an address in an AOB injection
| Code: | lea r14,[rcx+10]
lea r13,[gOTable+0*8] <-- this is just 0 for testing but supposed to be rbx
mov [gOTable],r13
mov [gOTable+8],gOTable |
when I register goTable and check
[gOTable] and [gOTable+8] they both contain
721159442 -> 2AFC0512
When I try to use
| Code: | mov [gOTable],1 - everything works no problem
mov [r13],1 - crashes the game instantly |
| Code: | rbx = 1;
lea r13,[rbx*8]
mov [gOTable+8],r13
works and [gOTable+8] = 8
lea r13,[rbx*8]
mov [gOTable+r13],r13
crashes |
I'd really appreciate help.
EDIT:
so apparently after some testing it seems as Cheat Engine is not adding the module base to it as soon as you do non static math.
|
|