AOB Inject Byte Resets w/ Wildcards

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
User avatar
arlight1
Cheater
Cheater
Posts: 45
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 7

AOB Inject Byte Resets w/ Wildcards

Post by arlight1 »

Hello everyone, sorry for making a new topic for this question, but I wanted it separate due to the nature of it.

If I've got a AOB injection script that has a signature of:
F3 41 0F 59 B7 ?? 00 00 00

How can I make it's [DISABLE] redefining fill in the ?? or * to what it is supposed to be as when it found that array? So right now it finds and injects at:

F3 41 0F 59 B7 ?? 00 00 00

but redefines those bytes when disabled at:
db F3 41 0F 59 B7 88 00 00 00

As you can the 88 sometimes changes, which is problematic when disabling the script. Any way to do this?

Thanks.

User avatar
STN
Founder
Founder
Posts: 4420
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 3415

Re: AOB Inject Byte Resets w/ Wildcards

Post by STN »

in [enable}

readmem the bytes to an allocated memory, then in disable, simple restore those saved bytes using readmem on your allocated memory.

User avatar
arlight1
Cheater
Cheater
Posts: 45
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 7

Re: AOB Inject Byte Resets w/ Wildcards

Post by arlight1 »

STN wrote:
Mon May 01, 2017 4:10 am
in [enable}

readmem the bytes to an allocated memory, then in disable, simple restore those saved bytes using readmem on your allocated memory.
I'm sorry, could you provide an example, I don't really follow?

User avatar
STN
Founder
Founder
Posts: 4420
Joined: Thu Mar 02, 2017 7:48 pm
Reputation: 3415

Re: AOB Inject Byte Resets w/ Wildcards

Post by STN »

psuedo code
game.exe+92ace 8b 9f 45 44 01 mov bla bla

[enable]
savebytes:
readmem(aobpoint, 5) //8b 9f 45 44 01
cave:
//awesome injection
//if you wish to recreate original code
readmem(aobpoint, 5)
jmp return

aobpoint: //game.exe+92ace
jmp cave
return:

[disable]
aobpoint:
readmem(savebytes, 5) // 8b 9f 45 44 01

User avatar
arlight1
Cheater
Cheater
Posts: 45
Joined: Tue Apr 25, 2017 12:04 am
Reputation: 7

Re: AOB Inject Byte Resets w/ Wildcards

Post by arlight1 »

STN wrote:
Tue May 02, 2017 2:08 am
psuedo code
game.exe+92ace 8b 9f 45 44 01 mov bla bla

[enable]
savebytes:
readmem(aobpoint, 5) //8b 9f 45 44 01
cave:
//awesome injection
//if you wish to recreate original code
readmem(aobpoint, 5)
jmp return

aobpoint: //game.exe+92ace
jmp cave
return:

[disable]
aobpoint:
readmem(savebytes, 5) // 8b 9f 45 44 01
Great! Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users