View previous topic :: View next topic |
Author |
Message |
Reclaimer Shawn Advanced Cheater Reputation: 0
Joined: 09 Jun 2015 Posts: 77
|
Posted: Sat Apr 25, 2020 12:02 pm Post subject: Help with db on Auto Assembler |
|
|
So, this is a script that I'll be using:
Code: |
[ENABLE]
aobscan(JotaroAddr, 63 3E ?? ?? ?? FF FF FF FF 00 00 00)
label(_JotaroAddr)
registersymbol(_JotaroAddr)
JotaroAddr:
_JotaroAddr:
[DISABLE]
JotaroAddr:
_JotaroAddr:
db 63 3E 73 CF 3D FF FF FF FF 00 00 01
unregistersymbol(_JotaroAddr)
|
In the above code, I make the signature different by setting the last 00 to 01 in the disable script. I do this because the game actually keeps several copies of the same data, so I just enable and disable the script until I get to the copy that actually affects the game. The problem is that I'd like to leave the other values untouched, as the three bytes after 3E can vary. I'd just like to set the last byte to 01 and not even touch the rest of the signature. Thanks for reading!
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4309
|
Posted: Sat Apr 25, 2020 12:41 pm Post subject: |
|
|
Either add more bytes to the signature or pick a different method for finding an address that isn't terrible (i.e. injection copy and/or pointers).
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
Reclaimer Shawn Advanced Cheater Reputation: 0
Joined: 09 Jun 2015 Posts: 77
|
Posted: Sat Apr 25, 2020 1:05 pm Post subject: |
|
|
ParkourPenguin wrote: | Either add more bytes to the signature or pick a different method for finding an address that isn't terrible (i.e. injection copy and/or pointers). |
I can add bytes behind the value, but I'm not sure if it'll cause crashes or not. I'll try that. I would work with an injection copy, but I'm dealing with a MEM_MAPPED area of an emulator, so I'm not able to get proper x86 instructions. Bytes behind the value aren't unique either, as they're the same as the other copies, so writing a different byte is needed to invalid each signature.
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 943
|
Posted: Sat Apr 25, 2020 1:33 pm Post subject: |
|
|
May try this method, it need not over write memory.
Make a script record
Code: |
[ENABLE]
label(AobSearchStart)
1:
AobSearchStart:
registersymbol(AobSearchStart)
[DISABLE]
unregistersymbol(AobSearchStart)
|
Then make another record for your search using aobscanRegion, with
start address : AobSearchStart
end address : -1 (may think as short cut for max address, or if not work try 7f...ff)
Code: |
[ENABLE]
aobscanRegion(JotaroAddr, AobSearchStart, -1, 63 3E ?? ?? ?? FF FF FF FF 00 00 00)
registersymbol(JotaroAddr) /// not don't need auxiliary symbol _JotaroAddr
[DISABLE]
unregistersymbol(AobSearchStart)
label(AobSearchStart)
JotaroAddr+1:
AobSearchStart:
registersymbol(AobSearchStart)
unregistersymbol(JotaroAddr)
|
The idea is to update the beginning address of a new search on [DISABLE],
the first code/record is need to initial/reset AobSearchStart to 1.
_________________
- Retarded. |
|
Back to top |
|
|
Reclaimer Shawn Advanced Cheater Reputation: 0
Joined: 09 Jun 2015 Posts: 77
|
Posted: Sat Apr 25, 2020 4:08 pm Post subject: |
|
|
I didn't use your code, but your code gave me an idea. I know it seems intuitive, but I didn't know you could perform math with the AOB Label.
This did what I needed to do:
Code: |
_JotaroAddr+B:
db 01
|
Thanks for the help!
|
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 943
|
Posted: Sat Apr 25, 2020 10:35 pm Post subject: |
|
|
Reclaimer dawnn wrote: |
...
I didn't use your code, but your code gave me an idea. I know it seems intuitive, but I didn't know you could perform math with the AOB Label.
... |
Not exactly perform math, it just can 'align' an undefined label with a defined address label, kind of an one-time-off assignment.
_________________
- Retarded. |
|
Back to top |
|
|
|