How to have one checkbox change two AOBs?

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
TheVine
Novice Cheater
Novice Cheater
Posts: 17
Joined: Tue Aug 31, 2021 2:34 pm
Reputation: 0

How to have one checkbox change two AOBs?

Post by TheVine »

I finally found the two lines in the assembly code that impact the thing I want to change, however they are both required at the same time and they both need to be NOPed out.

I only know how to change a single AOB like this:

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Game.exe,74 35 B1 2D A3 30 00) // should be unique

INJECT:
  db 90 90
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 74 35

unregistersymbol(INJECT)
dealloc(newmem)
But I basically need to do this twice - having it scan for a particular AOB and replace the first two bytes with 90 90. Can this be done in a single code snippet?

User avatar
Rhark
Expert Cheater
Expert Cheater
Posts: 2828
Joined: Tue Apr 16, 2019 1:27 am
Reputation: 1225

Re: How to have one checkbox change two AOBs?

Post by Rhark »

If I'm understanding correctly then yes. Example:

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Game.exe,74 35 B1 2D A3 30 00) // should be unique
aobscanmodule(INJECT2,Game.exe,74 35 44 83 00 B0 01 90 77) // should be unique

INJECT:
  db 90 90
registersymbol(INJECT)

INJECT2:
 db 90 90
registersymbol(INJECT2)

[DISABLE]

INJECT:
  db 74 35

INJECT2:
 db 74 35

unregistersymbol(INJECT)
unregistersymbol(INJECT2)

TheVine
Novice Cheater
Novice Cheater
Posts: 17
Joined: Tue Aug 31, 2021 2:34 pm
Reputation: 0

Re: How to have one checkbox change two AOBs?

Post by TheVine »

Rhark wrote:
Mon Jun 06, 2022 6:43 pm
If I'm understanding correctly then yes. Example:

Code: Select all

[ENABLE]

aobscanmodule(INJECT,Game.exe,74 35 B1 2D A3 30 00) // should be unique
aobscanmodule(INJECT2,Game.exe,74 35 44 83 00 B0 01 90 77) // should be unique

INJECT:
  db 90 90
registersymbol(INJECT)

INJECT2:
 db 90 90
registersymbol(INJECT2)

[DISABLE]

INJECT:
  db 74 35

INJECT2:
 db 74 35

unregistersymbol(INJECT)
unregistersymbol(INJECT2)
That did the trick, thank you! Also nice to understand better how those work

Post Reply

Who is online

Users browsing this forum: No registered users