Code: Select all
[ENABLE]
aobscan(aobTime,48 89 48 28 48 8B 46 20 48 8B C8)
alloc(newmem,$1000,17CBF9837)
label(code)
label(return)
newmem:
code:
mov [rax+28],rcx
mov rax,[rsi+20]
jmp return
aobTime:
jmp newmem
nop
nop
nop
return:
registersymbol(aobTime)
[DISABLE]
aobTime:
db 48 89 48 28 48 8B 46 20
unregistersymbol(aobTime)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 17CBF9837
17CBF980F: 48 8B 46 20 - mov rax,[rsi+20]
17CBF9813: 48 8B C8 - mov rcx,rax
17CBF9816: 48 8B D1 - mov rdx,rcx
17CBF9819: 83 3A 00 - cmp dword ptr [rdx],00
17CBF981C: 48 8B 89 C0 00 00 00 - mov rcx,[rcx+000000C0]
17CBF9823: 48 8B 49 28 - mov rcx,[rcx+28]
17CBF9827: 48 63 D7 - movsxd rdx,edi
17CBF982A: 48 03 CA - add rcx,rdx
17CBF982D: 83 38 00 - cmp dword ptr [rax],00
17CBF9830: 48 8B 80 C0 00 00 00 - mov rax,[rax+000000C0]
// ---------- INJECTING HERE ----------
17CBF9837: 48 89 48 28 - mov [rax+28],rcx
17CBF983B: 48 8B 46 20 - mov rax,[rsi+20]
// ---------- DONE INJECTING ----------
17CBF983F: 48 8B C8 - mov rcx,rax
17CBF9842: 83 39 00 - cmp dword ptr [rcx],00
17CBF9845: 48 8B 80 C0 00 00 00 - mov rax,[rax+000000C0]
17CBF984C: 48 8B 50 28 - mov rdx,[rax+28]
17CBF9850: 48 8B CE - mov rcx,rsi
17CBF9853: 48 83 EC 20 - sub rsp,20
17CBF9857: 49 BB 30 9B BF 7C 01 00 00 00 - mov r11,000000017CBF9B30
17CBF9861: 41 FF D3 - call r11
17CBF9864: 48 83 C4 20 - add rsp,20
17CBF9868: 48 8B 04 25 C0 8E 82 08 - mov rax,[08828EC0]
}