Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dereferencing LEA register crashes game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
framePTR
How do I cheat?
Reputation: 0

Joined: 16 Jun 2020
Posts: 2

PostPosted: Wed Aug 19, 2020 8:51 am    Post subject: Dereferencing LEA register crashes game Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites