| View previous topic :: View next topic |
| Author |
Message |
paul44 Expert Cheater
Reputation: 3
Joined: 20 Jul 2017 Posts: 231
|
Posted: Mon Nov 23, 2026 11:02 am Post subject: HowTo: find "Actual" Memory (al)llocation |
|
|
First and foremost: i am rarely confronted with these kind of mem_(re)allocations, but now just happen to come across a series that 'act' this way...
(fyi: no real issue, just interested to find out...)
I'll try to explain the issue with following images: [ https://ibb.co/album/R3CkKr ] (images not in correct order)
The game in question: Sherlock Holmes series (UE 3x games)
1. when you jump to '$process+1000', you'll expect to see the start of the game's opcode. However, this is not the case here. (~ notice all them "add ..." here)
2. since this is an ue game and i already collected the gnames' struct_location - which tends to appear (hardcoded_referenced) early on in the opcode - i then scanned for its first location...
3. i then backtracked to encounter them "add..."s again, basically telling me this will/would probably the 'start' of the actual game's opcode ?!
=> when i start scanning memory from this location onwards, I'll get pretty good/quick results.
4. I've done a mem_scan for complete memory; and more or less found its offset_locaton relative to $process.
Big Q: is it possible to (more) easily find this particular mem_location somehow ?
fyi: i use following to limit mem_range, in all my tables:
local startAddr = getAddress(process)
local endAddr = startAddr + getModuleSize(process)
--print(string.format('%X ~> %X',startAddr,endAddr))
fyi2: for most tablemakers, this will hardly be an issue since aobscan(unique)s are really quick anyways
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 26034 Location: The netherlands
|
Posted: Mon Nov 23, 2026 12:56 pm Post subject: |
|
|
look at the pe header and inspect the start of the earliest section with execute code permission. (usually .text but can be named anything)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
paul44 Expert Cheater
Reputation: 3
Joined: 20 Jul 2017 Posts: 231
|
Posted: Tue Nov 24, 2026 1:30 am Post subject: funny... |
|
|
I was thinking that myself yesterday "night"; when i suddenly recalled 'entrypoint' from my earlier days...
anyways: just ran [CFF Explorer]: [ https://ibb.co/album/Z6zXdT ] (check last image first !)
=> this DOES seem to be the start of the actual opcode. Parsing down (up, if you will) from there gives one the "full" opcode_start shortly after...
Will take another look at it this evening; if more interesting info pops up I'll update the post...
cheers (and thx for the suggestion)
|
|
| Back to top |
|
 |
|