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 


Using Address Stored at the Sum of Two Registers with an AOB

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

Joined: 09 Oct 2012
Posts: 16

PostPosted: Tue Jul 30, 2019 8:38 am    Post subject: Using Address Stored at the Sum of Two Registers with an AOB Reply with quote

So I have an AOBscan that points to an instruction.

Code:

mov [rdx+rax],r15l


I want to be able to use the address stored by that rdx+rax instruction, as the address points to the value I want to edit.

I don't know how to write the script. I usually do it by AOBscanning the area around the actual value itself and then just making the code like this.

Code:

aobscanmodule(INJECT,visualboyadvance-m.exe,44 88 3C 02 0F 1F 80 00 00 00 00 4C 8B 0D * * * * 48 63 ED 4C 8B 25 AF) // should be unique
label(address)
registersymbol(address)

INJECT:
address:

[DISABLE]
unregistersymbol(address)


Then I can just plug in "address" as the address manually.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Tue Jul 30, 2019 9:34 am    Post subject: Reply with quote

Well, rdx+rax could be anything. You'll need to copy it using code injection. Look up "injection copy" / "injection copies" on youtube.
_________________
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
Mr. Starman
Newbie cheater
Reputation: 0

Joined: 09 Oct 2012
Posts: 16

PostPosted: Tue Jul 30, 2019 3:25 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Well, rdx+rax could be anything. You'll need to copy it using code injection. Look up "injection copy" / "injection copies" on youtube.


Thank you.

It's an emulator so there are thousands of other addresses being written by the instruction so I suppose this method is impossible.

Edit:
Not to mention that the line below it, nop [rax+00000000], can't be compiled by code injection for some reason.

Edit2:
I can fix that by just declaring the instructions manually with DB, but the pointers aren't static at all since it's being used by a bajilion other instructions at all, so you can't use this method in the end.

Edit3:
Holy shit, nevermind, I actually did it! The EAX (offset) value is static for the address I want!
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