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 


AOP Inject - read ecx+esi

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

Joined: 25 Jan 2022
Posts: 3

PostPosted: Tue Jan 25, 2022 7:41 am    Post subject: AOP Inject - read ecx+esi Reply with quote

Hello, how can I make AOP inject to read value of ecx+esi?
I only managed to read edi with this code:

code:
mov [ecx+esi],edi
mov [base],edi
mov edi,[ebx+04]
jmp return

00710000 - mov [ecx+esi],edi
00710003 - mov [0D500000],edi
00710009 - mov edi,[ebx+04]
0071000C - jmp 026FA278

Thanks
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Tue Jan 25, 2022 7:54 am    Post subject: Reply with quote

Pretty much the same way you did but you'll have to use another register:
Code:

push ebx           // preserve ebx
mov ebx,[ecx+esi]  // move dereferenced value of [ecx+esi] into ebx
mov [base],ebx     // set value held at base with the value held in ebx
pop ebx            // restore ebx register
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4297

PostPosted: Tue Jan 25, 2022 12:49 pm    Post subject: This post has 1 review(s) Reply with quote

If you want the address itself, use the same code as above but replace the first mov with lea:
Code:
push ebx
lea ebx,[ecx+esi]
mov [base],ebx
pop ebx

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