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 


Self-referencing address, no static address?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
riverwest
Newbie cheater
Reputation: 0

Joined: 05 May 2019
Posts: 14

PostPosted: Mon May 06, 2019 5:55 am    Post subject: Self-referencing address, no static address? Reply with quote

A simple question to pose; when doing a search to find a static address, I step through pointer to pointer. In my discovery, I find an address that when running "Find out what accesses this address" only returns itself.

What does this mean? Have I gone down the wrong pointer path, do all pointers eventually return a static address or should I be taking a different approach?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon May 06, 2019 6:00 am    Post subject: Reply with quote

let's say you have address 12345678

you use find what accesses 12345678 and you get as instruction:
Code:

mov ebx,[esi]


that means that the offset to get to the address is 0

12345678 -0 is 12345678,
so then scan for a memory address that holds the value 12345678 and go from there

Nothing weird about it, besides that the address and value are the same

---

Also, there is a case like
Code:

mov esi,[esi]


again, the offset is 0, and everything is as it should, BUT, the value at ESI is wrong. Ignore the value at ESI as it has been overwritten (will hold the value pointed at by the original ESI, just ignore it). And besides, you don't need to look at that value anyhow, as you already know the offset, and that was the main purpose of what you're doing

_________________
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
riverwest
Newbie cheater
Reputation: 0

Joined: 05 May 2019
Posts: 14

PostPosted: Mon May 06, 2019 6:24 am    Post subject: Reply with quote

Dark Byte wrote:
let's say you have address 12345678

you use find what accesses 12345678 and you get as instruction:
Code:

mov ebx,[esi]


that means that the offset to get to the address is 0

12345678 -0 is 12345678,
so then scan for a memory address that holds the value 12345678 and go from there

Nothing weird about it, besides that the address and value are the same

---

Also, there is a case like
Code:

mov esi,[esi]


again, the offset is 0, and everything is as it should, BUT, the value at ESI is wrong. Ignore the value at ESI as it has been overwritten (will hold the value pointed at by the original ESI, just ignore it). And besides, you don't need to look at that value anyhow, as you already know the offset, and that was the main purpose of what you're doing


I'm thinking it best-describes your option 2, as when I search for the value in [7FFB....090] it does not return any results. In fact the memory region seems to disappear when I start to disassemble that address! Weird.
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