Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>70</ID>
<Description>"Unlock Shop Items / Shop Stock"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : TRIANGLE_STRATEGY-Win64-Shipping.exe
Version:
Date : 2022-10-17
Author : khuong
This script does blah blah blah
}
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(shopHook,TRIANGLE_STRATEGY-Win64-Shipping.exe,F6 43 10 01 75 50) // should be unique
alloc(newmem,$1000,shopHook)
label(code)
label(return)
newmem:
mov byte ptr [rbx+10], #5
mov byte ptr [rbx+0C], #99
code:
test byte ptr [rbx+10],01
jne TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA4E
jmp return
shopHook:
jmp newmem
nop
return:
registersymbol(shopHook)
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
shopHook:
db F6 43 10 01 75 50
unregistersymbol(shopHook)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9F8
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9D1: 4C 8D 34 D0 - lea r14,[rax+rdx*8]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9D5: 4D 85 F6 - test r14,r14
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9D8: 0F 84 B9 01 00 00 - je TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DB97
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9DE: 49 8B 5E 10 - mov rbx,[r14+10]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9E2: 4D 8B 76 18 - mov r14,[r14+18]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9E6: 4D 85 F6 - test r14,r14
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9E9: 74 04 - je TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9EF
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9EB: 41 FF 46 08 - inc [r14+08]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9EF: 48 85 DB - test rbx,rbx
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9F2: 0F 84 76 01 00 00 - je TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DB6E
// ---------- INJECTING HERE ----------
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9F8: F6 43 10 01 - test byte ptr [rbx+10],01
// ---------- DONE INJECTING ----------
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9FC: 75 50 - jne TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA4E
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2D9FE: 83 7D 14 00 - cmp dword ptr [rbp+14],00
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA02: 74 27 - je TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA2B
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA04: 48 8B 05 C5 46 FD 03 - mov rax,[TRIANGLE_STRATEGY-Win64-Shipping.exe+4D020D0]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA0B: 0F B6 55 18 - movzx edx,byte ptr [rbp+18]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA0F: 48 8B 88 28 04 00 00 - mov rcx,[rax+00000428]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA16: 48 8B 49 18 - mov rcx,[rcx+18]
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA1A: 48 81 C1 18 03 00 00 - add rcx,00000318
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA21: E8 1A 60 FD FF - call TRIANGLE_STRATEGY-Win64-Shipping.exe+D03A40
TRIANGLE_STRATEGY-Win64-Shipping.exe+D2DA26: 3B 45 14 - cmp eax,[rbp+14]
}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>