Difference between revisions of "Template:Asm:LoadPtrsToRegisters"
Jump to navigation
Jump to search
(Created page with 'Category:Scripting ===Load Pointers Into Registers=== ''in some cases you might need to load a pointer into a register'', ''here how its done''. <code style="background:#FF…') |
|||
Line 14: | Line 14: | ||
'''registersymbol'''(symbol) | '''registersymbol'''(symbol) | ||
− | |||
− | |||
− | |||
− | |||
'''label'''(originalcode) | '''label'''(originalcode) | ||
Line 30: | Line 26: | ||
lea eax,[[[[[["Executable.exe"+00123ABC]+4]+56]+0]+789]+DEF] | lea eax,[[[[[["Executable.exe"+00123ABC]+4]+56]+0]+789]+DEF] | ||
− | + | // do some stuff here | |
Line 39: | Line 35: | ||
jmp exit | jmp exit | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 61: | Line 51: | ||
[''disable''] | [''disable''] | ||
− | |||
− | |||
'''dealloc'''(newmem) | '''dealloc'''(newmem) |
Latest revision as of 03:35, 3 February 2018
Load Pointers Into Registers[edit]
in some cases you might need to load a pointer into a register, here how its done.
[enable]
aobscan(symbol,01 23 45 67 89 AB CD EF)
alloc(newmem,$1000)
registersymbol(symbol)
label(originalcode)
label(exit)
newmem:
lea eax,[[[[[["Executable.exe"+00123ABC]+4]+56]+0]+789]+DEF]
// do some stuff here
originalcode:
mov eax,[edx+110]
jmp exit
symbol:
jmp newmem
nop
exit:
[disable]
dealloc(newmem)
symbol:
mov eax,[edx+110]
unregistersymbol(symbol)