Page 1 of 1

How to have one checkbox change two AOBs?

Posted: Mon Jun 06, 2022 5:47 pm
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?

Re: How to have one checkbox change two AOBs?

Posted: Mon Jun 06, 2022 6:43 pm
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)

Re: How to have one checkbox change two AOBs?

Posted: Mon Jun 06, 2022 6:56 pm
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