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 


How to retrieve an RSI value as an address ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
KevinD
Cheater
Reputation: 0

Joined: 15 Apr 2020
Posts: 37

PostPosted: Sun Sep 04, 2022 6:39 am    Post subject: How to retrieve an RSI value as an address ? Reply with quote

How to get the RSI value as an address without going through the registers each time ?

Hello, I explain my problem :

The starting address of the rax is 00000000000001BF, with the calculation ( lea eax,[rax+rax*4] ) RAX = 00000000000008BB
Then ( lea ecx,[rdx+rax*2] ) RCX = 0000000000001177
Then ( lea esi,[rcx+rcx*4] ) RSI = 0000000000005753
After ( add esi,esi ) RSI = 000000000000AEA6

I would like to recover directly RSI as an address without passing each time by the registers how to make?
Because with the following code it is not stored in any address afterwards.
And if I modify RAX = 00000000000001BF at the beginning the application crashes.
Is there any way to get RSI without going through registers each time ? (Like an address ????)



0001.jpg
 Description:
 Filesize:  1.56 MB
 Viewed:  2439 Time(s)

0001.jpg


Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 334
Location: Somewhere....

PostPosted: Sun Sep 04, 2022 11:39 pm    Post subject: Reply with quote

these are either just calculating what will be stored in the address in [RSP+50] , that could represent a value of something, or a offset to some address, you need to figure that yourself.

if this code obtains your target everytime with the same numbers in (RAX,RDX,RCX) then you can safely say that RSI will always equal to AEA6.
Back to top
View user's profile Send private message
KevinD
Cheater
Reputation: 0

Joined: 15 Apr 2020
Posts: 37

PostPosted: Mon Sep 05, 2022 2:22 am    Post subject: Reply with quote

And no it is stored nowhere... not even at [RSP+50]
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 334
Location: Somewhere....

PostPosted: Mon Sep 05, 2022 7:21 am    Post subject: Reply with quote

RSP is just a address in the stack.
to find where the AEA6 going to be stored later, you have to trace
execution further after that routine returns, nothing really useful
in that area of code.
Back to top
View user's profile Send private message
KevinD
Cheater
Reputation: 0

Joined: 15 Apr 2020
Posts: 37

PostPosted: Mon Sep 05, 2022 11:40 am    Post subject: Reply with quote

Don't walk...
Back to top
View user's profile Send private message
KevinD
Cheater
Reputation: 0

Joined: 15 Apr 2020
Posts: 37

PostPosted: Tue Sep 06, 2022 10:15 am    Post subject: Reply with quote

Hello, I would like to know if anyone has a code to retrieve the RAX, RSI, RDI etc... values of an address ???
I would especially like to be able to retrieve them and then modify them as well. (C++)


I found this: https://github.com/coltonon/RegHookEx

I may have found something. But at compile time I have the following error: RegHook.cpp.text+0x20): undefined reference to `decode'

Then I added -c but when I want to open the file. I get a message that there is no access.

I tried to find examples but there are none.
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 Discussions 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