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 


Memory Region Relative Address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sat Aug 07, 2021 5:13 pm    Post subject: Memory Region Relative Address Reply with quote

Hi,
in hacking an unity wasm game < ? not sure, its unityweb CODE file is in asm.js /emscripten (?) format > on 64bit chrome, found that the address is represent as *<memory-region-base + 32bit-offset>.
For example, if in memory address 0x7f0012345678, it has a 32bit value of 0x4001000,
where the memory address is inside a memory-region of base 0x7f0010000000,
then in above *<...> format, it point to an address as

0x7f0010000000 + 0x4001000 = 0x7f0014001000.

If it do represent in above format, such address must point to its own memory region.

Not sure if ce has the facility so that such address format can be use in navigation of memory viewer (should be possible with lua) or data-dissect (possible?) ?
It should be better support by ce, so that, like by marking a memory-region as addressing in above format, then data-dissect automatic apply the addressing within this memory region.

Thank you~

_________________
- Retarded.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Aug 08, 2021 2:43 am    Post subject: Reply with quote

Look at https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/bin/autorun/emurpm.lua. (abd the .frm)

you can tell it that the base address is 0x7f0010000000

then when looking at address 0x4001000 in CE you're actually looking at address 0x7f0014001000

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sun Aug 08, 2021 8:35 am    Post subject: Reply with quote

Thank you the reply.

I download the lua together with the *.frm
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/bin/autorun/emurpm.frm

The ce has the menu item to set memory base and size now.

But not known if I mistake something, it seems not work as expected.

Here a screenshot.

Before apply the emurpm effect, I note the process Id and I verified that the memory region base is
0x64e0f804000, of size 0x10000000 (256M).

So I set the values on the two box, press '(re) set address', but no visible effect.

Then I click the auto-activate check box, open another process then open again this game/chrome process.
It print 'emurpm.OnProcessOpened' when opening process.

Then I try scan for some values, no result at all.
I try enter the previous result memory address ( 64E1321EE20 ) or its calcuated offset (32bit 0x3a1ae20) , all show ??.

I also try another size, eg 10000000 or 100000000, in case '262144' doesn't mean 256M memory.

Am I doing wrong on using emurpm?

Thank you~



ADDED:

Possible to added "Custom Pointer Type", eg. for Data Dissect?



emurpm_asmjsin64bitchrome.png
 Description:
 Filesize:  78.06 KB
 Viewed:  1263 Time(s)

emurpm_asmjsin64bitchrome.png



_________________
- Retarded.
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