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 


previous registry value? [dynamic calls]

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

Joined: 04 Jun 2014
Posts: 1

PostPosted: Wed Jun 04, 2014 4:53 pm    Post subject: previous registry value? [dynamic calls] Reply with quote

so ive been using cheat engine for a long time now. usually ive been isolated from forums and managed to work things out to what i needed on my own, so my methods probably arent the best.

i have encountered a dead end in mapping out the asm code in a program im hacking. i realized it was due to the fact that the function is being called by a dynamic "call eax" function, as the value of eax is the address of the function. is there a way i can see where does the eax gets changed to this value so i can track the function caller? ive read around the forums, but most solutions by darkbyte included some lua script which im staying well away from.

anything i can do? any help will be greatly appreciated. i apologize for any etiquette i might have overlooked
Back to top
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Thu Jun 05, 2014 2:52 pm    Post subject: Reply with quote

If you know the call target, i.e. the code that gets called by the "call eax" instruction, then just breakpoint at the first instruction of the function and look at the stack. The top item on the stack should be the return pointer for the call.

If it's a jump rather than a call, you can probably use tracing, but I've never done it in CE so I'll leave someone more qualified to explain it.

_________________
It's not fun unless every exploit mitigation is enabled.
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.
Back to top
View user's profile Send private message
Daijobu
Master Cheater
Reputation: 13

Joined: 05 Feb 2013
Posts: 301
Location: the Netherlands

PostPosted: Thu Jun 05, 2014 3:13 pm    Post subject: Reply with quote

In case of break and trace in CE:
Select the call in Memory View and right-click, select Break and Trace and go back to the game. Get out again and see where the call went.

Or select the instruction at the start of the function, place a break and trace and look at what's inside EAX at the location of your call. Follow it upwards until you find what wrote to EAX.

That's how I'd do it anyway. Good luck!

_________________
Scripts/tables from scratch. Relation to other scripts is coincidental. Use of posted code is credited properly.
Euro Truck Simulator 2 Backwards Compatible Cheat
American Truck Simulator Backwards Compatible Cheat
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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