Ninja Gaiden Sigma
OHKO
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(ohko_aob,NINJA GAIDEN SIGMA.exe,66 41 2B C9 66 44 3B CA 41 0F B7 D2 66 0F 42 C1 41 0F B7 CA 66 43) // should be unique
alloc(newmem,$100,ohko_aob)
label(code)
label(return)
newmem:
cmp rdi,0
je code
mov cx,0
cmp r9w,dx
jmp return
code:
sub cx,r9w
cmp r9w,dx
jmp return
ohko_aob:
jmp newmem
nop 3
return:
registersymbol(ohko_aob)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ohko_aob:
db 66 41 2B C9 66 44 3B CA
unregistersymbol(ohko_aob)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: NINJA GAIDEN SIGMA.exe+6809D4
NINJA GAIDEN SIGMA.exe+6809A5: B9 71 00 00 00 - mov ecx,00000071
NINJA GAIDEN SIGMA.exe+6809AA: 66 3B 88 10 28 00 00 - cmp cx,[rax+00002810]
NINJA GAIDEN SIGMA.exe+6809B1: 75 0E - jne "NINJA GAIDEN SIGMA.exe"+6809C1
NINJA GAIDEN SIGMA.exe+6809B3: 46 38 94 27 40 CA D5 00 - cmp [rdi+r12+00D5CA40],r10l
NINJA GAIDEN SIGMA.exe+6809BB: 75 04 - jne "NINJA GAIDEN SIGMA.exe"+6809C1
NINJA GAIDEN SIGMA.exe+6809BD: 45 0F B7 CA - movzx r9d,r10w
NINJA GAIDEN SIGMA.exe+6809C1: 45 0F B6 C7 - movzx r8d,r15l
NINJA GAIDEN SIGMA.exe+6809C5: 41 8B C2 - mov eax,r10d
NINJA GAIDEN SIGMA.exe+6809C8: 43 0F B7 94 46 94 01 00 00 - movzx edx,word ptr [r14+r8*2+00000194]
NINJA GAIDEN SIGMA.exe+6809D1: 0F B7 CA - movzx ecx,dx
// ---------- INJECTING HERE ----------
NINJA GAIDEN SIGMA.exe+6809D4: 66 41 2B C9 - sub cx,r9w
// ---------- DONE INJECTING ----------
NINJA GAIDEN SIGMA.exe+6809D8: 66 44 3B CA - cmp r9w,dx
NINJA GAIDEN SIGMA.exe+6809DC: 41 0F B7 D2 - movzx edx,r10w
NINJA GAIDEN SIGMA.exe+6809E0: 66 0F 42 C1 - cmovb ax,cx
NINJA GAIDEN SIGMA.exe+6809E4: 41 0F B7 CA - movzx ecx,r10w
NINJA GAIDEN SIGMA.exe+6809E8: 66 43 89 84 46 94 01 00 00 - mov [r14+r8*2+00000194],ax
NINJA GAIDEN SIGMA.exe+6809F1: 41 B8 FF FF 00 00 - mov r8d,0000FFFF
NINJA GAIDEN SIGMA.exe+6809F7: 66 46 89 94 27 D6 C9 D5 00 - mov [rdi+r12+00D5C9D6],r10w
NINJA GAIDEN SIGMA.exe+680A00: 42 0F B7 84 27 A4 C9 D5 00 - movzx eax,word ptr [rdi+r12+00D5C9A4]
NINJA GAIDEN SIGMA.exe+680A09: 66 44 3B C0 - cmp r8w,ax
NINJA GAIDEN SIGMA.exe+680A0D: 74 0F - je "NINJA GAIDEN SIGMA.exe"+680A1E
}
Auto Guard/Dodge
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(autoguard_aob,NINJA GAIDEN SIGMA.exe,48 83 EC 28 80 3D 16 95 56 00 00) // should be unique
alloc(newmem,$100,autoguard_aob)
label(code)
label(return)
newmem:
code:
sub rsp,28
cmp byte ptr ["NINJA GAIDEN SIGMA.exe"+CBA401],00
jmp autoguard_aob+1f
jmp return
autoguard_aob:
jmp newmem
nop 6
return:
autoguard_aob+24:
db 90 90 90 90 90
registersymbol(autoguard_aob)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
autoguard_aob:
db 48 83 EC 28 80 3D 16 95 56 00 00
autoguard_aob+24:
db E8 17 22 9A FF
unregistersymbol(autoguard_aob)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: NINJA GAIDEN SIGMA.exe+750EE0
NINJA GAIDEN SIGMA.exe+750ED6: CC - int 3
NINJA GAIDEN SIGMA.exe+750ED7: CC - int 3
NINJA GAIDEN SIGMA.exe+750ED8: CC - int 3
NINJA GAIDEN SIGMA.exe+750ED9: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDA: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDB: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDC: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDD: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDE: CC - int 3
NINJA GAIDEN SIGMA.exe+750EDF: CC - int 3
// ---------- INJECTING HERE ----------
NINJA GAIDEN SIGMA.exe+750EE0: 48 83 EC 28 - sub rsp,28
// ---------- DONE INJECTING ----------
NINJA GAIDEN SIGMA.exe+750EE4: 80 3D 16 95 56 00 00 - cmp byte ptr ["NINJA GAIDEN SIGMA.exe"+CBA401],00
NINJA GAIDEN SIGMA.exe+750EEB: 74 27 - je "NINJA GAIDEN SIGMA.exe"+750F14
NINJA GAIDEN SIGMA.exe+750EED: 80 3D 0E 95 56 00 00 - cmp byte ptr ["NINJA GAIDEN SIGMA.exe"+CBA402],00
NINJA GAIDEN SIGMA.exe+750EF4: 74 1E - je "NINJA GAIDEN SIGMA.exe"+750F14
NINJA GAIDEN SIGMA.exe+750EF6: 83 3D 07 95 56 00 00 - cmp dword ptr ["NINJA GAIDEN SIGMA.exe"+CBA404],00
NINJA GAIDEN SIGMA.exe+750EFD: 74 15 - je "NINJA GAIDEN SIGMA.exe"+750F14
NINJA GAIDEN SIGMA.exe+750EFF: BA 01 00 00 00 - mov edx,00000001
NINJA GAIDEN SIGMA.exe+750F04: E8 17 22 9A FF - call "NINJA GAIDEN SIGMA.exe"+F3120
NINJA GAIDEN SIGMA.exe+750F09: 85 C0 - test eax,eax
NINJA GAIDEN SIGMA.exe+750F0B: 74 07 - je "NINJA GAIDEN SIGMA.exe"+750F14
}
Ignore Ki (when using ninpo)
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(ignoreki_aob,NINJA GAIDEN SIGMA.exe,66 3B 84 2F CE 01 00 00) // should be unique
alloc(newmem,$100,ignoreki_aob)
label(code)
label(return)
newmem:
code:
cmp ax,[rdi+rbp+000001CE]
jmp ignoreki_aob+a
jmp return
ignoreki_aob:
jmp newmem
nop 3
return:
registersymbol(ignoreki_aob)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ignoreki_aob:
db 66 3B 84 2F CE 01 00 00
unregistersymbol(ignoreki_aob)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: NINJA GAIDEN SIGMA.exe+67CFC0
NINJA GAIDEN SIGMA.exe+67CF93: 0F B6 81 8C 28 00 00 - movzx eax,byte ptr [rcx+0000288C]
NINJA GAIDEN SIGMA.exe+67CF9A: 48 8D 2D 6F F8 6D 00 - lea rbp,["NINJA GAIDEN SIGMA.exe"+D5C810]
NINJA GAIDEN SIGMA.exe+67CFA1: 48 8D 3C C0 - lea rdi,[rax+rax*8]
NINJA GAIDEN SIGMA.exe+67CFA5: 48 C1 E7 06 - shl rdi,06
NINJA GAIDEN SIGMA.exe+67CFA9: 80 BC 2F 2E 02 00 00 00 - cmp byte ptr [rdi+rbp+0000022E],00
NINJA GAIDEN SIGMA.exe+67CFB1: 74 2A - je "NINJA GAIDEN SIGMA.exe"+67CFDD
NINJA GAIDEN SIGMA.exe+67CFB3: B2 01 - mov dl,01
NINJA GAIDEN SIGMA.exe+67CFB5: 0F B7 CE - movzx ecx,si
NINJA GAIDEN SIGMA.exe+67CFB8: E8 B3 2F F3 FF - call "NINJA GAIDEN SIGMA.exe"+5AFF70
NINJA GAIDEN SIGMA.exe+67CFBD: 0F B6 C0 - movzx eax,al
// ---------- INJECTING HERE ----------
NINJA GAIDEN SIGMA.exe+67CFC0: 66 3B 84 2F CE 01 00 00 - cmp ax,[rdi+rbp+000001CE]
// ---------- DONE INJECTING ----------
NINJA GAIDEN SIGMA.exe+67CFC8: 77 13 - ja "NINJA GAIDEN SIGMA.exe"+67CFDD
NINJA GAIDEN SIGMA.exe+67CFCA: 48 8B D3 - mov rdx,rbx
NINJA GAIDEN SIGMA.exe+67CFCD: 0F B7 CE - movzx ecx,si
NINJA GAIDEN SIGMA.exe+67CFD0: E8 4B 30 F3 FF - call "NINJA GAIDEN SIGMA.exe"+5B0020
NINJA GAIDEN SIGMA.exe+67CFD5: 84 C0 - test al,al
NINJA GAIDEN SIGMA.exe+67CFD7: 75 04 - jne "NINJA GAIDEN SIGMA.exe"+67CFDD
NINJA GAIDEN SIGMA.exe+67CFD9: B0 01 - mov al,01
NINJA GAIDEN SIGMA.exe+67CFDB: EB 02 - jmp "NINJA GAIDEN SIGMA.exe"+67CFDF
NINJA GAIDEN SIGMA.exe+67CFDD: 32 C0 - xor al,al
NINJA GAIDEN SIGMA.exe+67CFDF: 48 8B 5C 24 30 - mov rbx,[rsp+30]
}