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 


Locating Memory Address

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

Joined: 15 Sep 2021
Posts: 1

PostPosted: Wed Sep 15, 2021 5:10 am    Post subject: Locating Memory Address Reply with quote

Hello! I just started hacking some x64 game with Unity/Mono, and basically what I need is to get access to it's internal data.

Currently I can't figure out how absolute memory address is getting calculated. For example, I find the function mono_get_root_domain, which should return a pointer to Mono Root Domain. There I see bytes:

mono-2.0-bdwgc.mono_get_root_domain - 48 8B 05 39AD4600 - mov rax,[mono-2.0-bdwgc.mono_internal_current_mask+49D4] { (1DDA87E2D20) }

The question is - why the address is mono-2.0-bdwgc.mono_internal_current_mask+49D4 and how CheatEngine compiles it to 1DDA87E2D20 ? Probably this sounds very dumb, but I can't figure out how just "48 8B 05 39AD4600" gets resolved as such. I need to repeat this programmatically, to get assembly and move on with data extraction. Please help.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4291

PostPosted: Wed Sep 15, 2021 12:11 pm    Post subject: Reply with quote

48 is a REX prefix for 64-bit code
8B is an opcode (mov r32,r/m32)
05 is a modR/M byte
39 AD 46 00 is an RIP-relative displacement (RIP + 0x46AD39)
The symbol "mono-2.0-bdwgc.mono_internal_current_mask" comes from CE's mono data collector (see CE source for more information)
"mono-2.0-bdwgc.mono_internal_current_mask+49D4" is the effective address that instruction is accessing
IIRC { (1DDA87E2D20) } is a comment specifying the value at the address "mono-2.0-bdwgc.mono_internal_current_mask+49D4" is 1DDA87E2D20

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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