2
"Weight"
Auto Assembler Script
{ Game : Ultimate Admiral Dreadnoughts.exe
Version:
Date : 2022-11-03
Author : UncleAi
This script does blah blah blah
}
[ENABLE]
aobscanmodule(INJECT,GameAssembly.dll,F3 44 0F 11 9E 88 04 00 00) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
newmem:
code:
//movss [rsi+00000488],xmm11
mov [rsi+00000488],(float)100
jmp return
INJECT:
jmp newmem
nop 4
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db F3 44 0F 11 9E 88 04 00 00
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: GameAssembly.dll+14D107C
GameAssembly.dll+14D1045: 0F 28 F0 - movaps xmm6,xmm0
GameAssembly.dll+14D1048: 45 33 C0 - xor r8d,r8d
GameAssembly.dll+14D104B: F3 0F 10 0D ED 1A 2C 00 - movss xmm1,[GameAssembly.dll+1792B40]
GameAssembly.dll+14D1053: 48 8B 0D B6 81 7E 00 - mov rcx,[GameAssembly.dll+1CB9210]
GameAssembly.dll+14D105A: E8 71 15 FB FE - call GameAssembly.dll+4825D0
GameAssembly.dll+14D105F: F3 45 0F 58 DE - addss xmm11,xmm14
GameAssembly.dll+14D1064: F3 45 0F 58 DA - addss xmm11,xmm10
GameAssembly.dll+14D1069: F3 45 0F 58 D9 - addss xmm11,xmm9
GameAssembly.dll+14D106E: F3 44 0F 58 DF - addss xmm11,xmm7
GameAssembly.dll+14D1073: F3 44 0F 58 9E 88 04 00 00 - addss xmm11,[rsi+00000488]
// ---------- INJECTING HERE ----------
GameAssembly.dll+14D107C: F3 44 0F 11 9E 88 04 00 00 - movss [rsi+00000488],xmm11
// ---------- DONE INJECTING ----------
GameAssembly.dll+14D1085: F3 45 0F 59 C2 - mulss xmm8,xmm10
GameAssembly.dll+14D108A: F3 44 0F 58 86 90 04 00 00 - addss xmm8,[rsi+00000490]
GameAssembly.dll+14D1093: F3 41 0F 59 F1 - mulss xmm6,xmm9
GameAssembly.dll+14D1098: F3 44 0F 58 C6 - addss xmm8,xmm6
GameAssembly.dll+14D109D: F3 0F 59 C7 - mulss xmm0,xmm7
GameAssembly.dll+14D10A1: F3 44 0F 58 C0 - addss xmm8,xmm0
GameAssembly.dll+14D10A6: F3 44 0F 58 86 8C 04 00 00 - addss xmm8,[rsi+0000048C]
GameAssembly.dll+14D10AF: F3 44 0F 11 86 8C 04 00 00 - movss [rsi+0000048C],xmm8
GameAssembly.dll+14D10B8: 48 8B 0D 31 61 7F 00 - mov rcx,[GameAssembly.dll+1CC71F0]
GameAssembly.dll+14D10BF: F6 81 33 01 00 00 02 - test byte ptr [rcx+00000133],02
}
5
"Cost"
Auto Assembler Script
{ Game : Ultimate Admiral Dreadnoughts.exe
Version:
Date : 2022-11-03
Author : aiyuxuan
This script does blah blah blah
}
[ENABLE]
aobscanmodule(INJECT,GameAssembly.dll,F3 44 0F 11 86 8C 04 00 00) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
newmem:
code:
//movss [rsi+0000048C],xmm8
mov [rsi+0000048C],(float)1000
jmp return
INJECT:
jmp newmem
nop 4
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db F3 44 0F 11 86 8C 04 00 00
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: INJECT
GameAssembly.dll+14D106E: F3 44 0F 58 DF - addss xmm11,xmm7
GameAssembly.dll+14D1073: F3 44 0F 58 9E 88 04 00 00 - addss xmm11,[rsi+00000488]
GameAssembly.dll+14D107C: F3 44 0F 11 9E 88 04 00 00 - movss [rsi+00000488],xmm11
GameAssembly.dll+14D1085: F3 45 0F 59 C2 - mulss xmm8,xmm10
GameAssembly.dll+14D108A: F3 44 0F 58 86 90 04 00 00 - addss xmm8,[rsi+00000490]
GameAssembly.dll+14D1093: F3 41 0F 59 F1 - mulss xmm6,xmm9
GameAssembly.dll+14D1098: F3 44 0F 58 C6 - addss xmm8,xmm6
GameAssembly.dll+14D109D: F3 0F 59 C7 - mulss xmm0,xmm7
GameAssembly.dll+14D10A1: F3 44 0F 58 C0 - addss xmm8,xmm0
GameAssembly.dll+14D10A6: F3 44 0F 58 86 8C 04 00 00 - addss xmm8,[rsi+0000048C]
// ---------- INJECTING HERE ----------
INJECT: F3 44 0F 11 86 8C 04 00 00 - movss [rsi+0000048C],xmm8
// ---------- DONE INJECTING ----------
GameAssembly.dll+14D10B8: 48 8B 0D 31 61 7F 00 - mov rcx,[GameAssembly.dll+1CC71F0]
GameAssembly.dll+14D10BF: F6 81 33 01 00 00 02 - test byte ptr [rcx+00000133],02
GameAssembly.dll+14D10C6: 74 0E - je GameAssembly.dll+14D10D6
GameAssembly.dll+14D10C8: 83 B9 E0 00 00 00 00 - cmp dword ptr [rcx+000000E0],00
GameAssembly.dll+14D10CF: 75 05 - jne GameAssembly.dll+14D10D6
GameAssembly.dll+14D10D1: E8 BA 60 C4 FE - call GameAssembly.il2cpp_runtime_class_init
GameAssembly.dll+14D10D6: 33 C9 - xor ecx,ecx
GameAssembly.dll+14D10D8: E8 23 52 16 00 - call GameAssembly.dll+1636300
GameAssembly.dll+14D10DD: 84 C0 - test al,al
GameAssembly.dll+14D10DF: 0F 84 E8 03 00 00 - je GameAssembly.dll+14D14CD
}