-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dev.CT
3857 lines (3299 loc) · 114 KB
/
Dev.CT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="45">
<Forms>
<CESplitter1 Class="TCEForm" Encoding="Ascii85">@J8FO2nldAU:MM2b.}cx/#u*rF38C(DM;9dWbsK(D]9?b$mWrnnVwO=e2j?XB*?:)ku@Lsr6hximCMK3CoHw7I5R)wjonBO1PvG%00</CESplitter1>
</Forms>
<CheatEntries>
<CheatEntry>
<ID>24</ID>
<Description>"www.patreon.com/gamercare"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
{$lua}
shellExecute('www.patreon.com/gamercare')
{$asm}
[DISABLE]
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>34</ID>
<Description>"cheats"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
{$lua}
OpenProcess("THKM.exe")
showMessage("Created by GamerCare, enjoy.")
mono_initialize()
LaunchMonoDataCollector()
{$asm}
[DISABLE]
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>46</ID>
<Description>"godmode"</Description>
<LastState/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
THKM:PlayerBaseDamage:set_Health+16:
nop
nop
[DISABLE]
THKM:PlayerBaseDamage:set_Health+16:
test eax,eax
{
// ORIGINAL CODE - INJECTION POINT: THKM:PlayerBaseDamage:set_Health+16
18687053E3B: 01 00 - add [rax],eax
18687053E3D: 00 00 - add [rax],al
18687053E3F: 00 55 48 - add [rbp+48],dl
THKM:PlayerBaseDamage:set_Health+2: 8B EC - mov ebp,esp
THKM:PlayerBaseDamage:set_Health+4: 57 - push rdi
THKM:PlayerBaseDamage:set_Health+5: 48 83 EC 18 - sub rsp,18
THKM:PlayerBaseDamage:set_Health+9: 48 8B F9 - mov rdi,rcx
THKM:PlayerBaseDamage:set_Health+c: 48 89 55 E0 - mov [rbp-20],rdx
THKM:PlayerBaseDamage:set_Health+10: 48 8B C2 - mov rax,rdx
THKM:PlayerBaseDamage:set_Health+13: 89 47 20 - mov [rdi+20],eax
// ---------- INJECTING HERE ----------
THKM:PlayerBaseDamage:set_Health+16: 85 C0 - test eax,eax
// ---------- DONE INJECTING ----------
THKM:PlayerBaseDamage:set_Health+18: 0F85 9D000000 - jne 18687053EFB
THKM:PlayerBaseDamage:set_Health+1e: 48 B8 F095FFC986010000 - mov rax,00000186C9FF95F0
THKM:PlayerBaseDamage:set_Health+28: 48 8B 00 - mov rax,[rax]
THKM:PlayerBaseDamage:set_Health+2b: 0FB6 40 50 - movzx eax,byte ptr [rax+50]
THKM:PlayerBaseDamage:set_Health+2f: 85 C0 - test eax,eax
THKM:PlayerBaseDamage:set_Health+31: 75 2A - jne 18687053E9D
THKM:PlayerBaseDamage:set_Health+33: 48 B8 F095FFC986010000 - mov rax,00000186C9FF95F0
THKM:PlayerBaseDamage:set_Health+3d: 48 8B 00 - mov rax,[rax]
THKM:PlayerBaseDamage:set_Health+40: 48 8B C8 - mov rcx,rax
THKM:PlayerBaseDamage:set_Health+43: 83 39 00 - cmp dword ptr [rcx],00
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>42</ID>
<Description>"weapon"</Description>
<LastState/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
alloc(newmem_rapidfire,1024,THKM:PlayerBaseInput:ButtonInputs+16)
alloc(showstat_rapidfire,8)
label(return_rapidfire)
label(code_rapidfire)
label(exit_rapidfire)
registersymbol(showstat_rapidfire)
newmem_rapidfire:
mov [showstat_rapidfire],rax
code_rapidfire:
movzx eax,byte ptr [rax+000000AC]
exit_rapidfire:
jmp return_rapidfire
THKM:PlayerBaseInput:ButtonInputs+16:
rapidfire:
jmp newmem_rapidfire
nop 2
return_rapidfire:
[DISABLE]
THKM:PlayerBaseInput:ButtonInputs+16:
movzx eax,byte ptr [rax+000000AC]
//db 0F B6 80 AC 00 00 00
unregistersymbol(showstat_rapidfire)
dealloc(showstat_rapidfire)
dealloc(newmem_rapidfire)
{
// ORIGINAL CODE - INJECTION POINT: THKM:PlayerBaseInput:ButtonInputs+16
1868700886B: 00 00 - add [rax],al
1868700886D: 00 00 - add [rax],al
1868700886F: 00 55 48 - add [rbp+48],dl
18687008872: 8B EC - mov ebp,esp
18687008874: 56 - push rsi
18687008875: 48 83 EC 28 - sub rsp,28
18687008879: 48 8B F1 - mov rsi,rcx
1868700887C: 48 8B 46 18 - mov rax,[rsi+18]
18687008880: 48 8B C8 - mov rcx,rax
18687008883: 83 39 00 - cmp dword ptr [rcx],00
// ---------- INJECTING HERE ----------
18687008886: 0F B6 80 AC 00 00 00 - movzx eax,byte ptr [rax+000000AC]
// ---------- DONE INJECTING ----------
1868700888D: 85 C0 - test eax,eax
1868700888F: 0F 84 78 00 00 00 - je 1868700890D
18687008895: 48 8B 46 10 - mov rax,[rsi+10]
18687008899: 48 8B C8 - mov rcx,rax
1868700889C: 48 BA 00 2A B8 E0 86 01 00 00 - mov rdx,00000186E0B82A00
186870088A6: 48 83 EC 20 - sub rsp,20
186870088AA: 83 38 00 - cmp dword ptr [rax],00
186870088AD: 49 BB 20 87 02 87 86 01 00 00 - mov r11,0000018687028720
186870088B7: 41 FF D3 - call r11
186870088BA: 48 83 C4 20 - add rsp,20
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>43</ID>
<Description>"rapidfire"</Description>
<DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0:No
1:Yes
</DropDownList>
<Color>FF8000</Color>
<VariableType>4 Bytes</VariableType>
<Address>[showstat_rapidfire]+ac</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>35</ID>
<Description>"infinite ammo"</Description>
<LastState Activated="1"/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
alloc(newmem_bullets,1024,THKM:WeaponBase:Fire+28)
label(return_bullets)
label(code_bullets)
label(exit_bullets)
newmem_bullets:
code_bullets:
nop
mov [rsi+0000011C],eax
exit_bullets:
jmp return_bullets
THKM:WeaponBase:Fire+28:
bullets:
jmp newmem_bullets
nop 3
return_bullets:
[DISABLE]
THKM:WeaponBase:Fire+28:
dec eax
mov [rsi+0000011C],eax
//db FF C8 89 86 1C 01 00 00
dealloc(newmem_bullets)
{
// ORIGINAL CODE - INJECTION POINT: THKM:WeaponBase:Fire+28
22F08CC03F2: 8B EC - mov ebp,esp
22F08CC03F4: 56 - push rsi
22F08CC03F5: 48 83 EC 48 - sub rsp,48
22F08CC03F9: 48 8B F1 - mov rsi,rcx
22F08CC03FC: 48 8D 86 F8 00 00 00 - lea rax,[rsi+000000F8]
22F08CC0403: 48 8B 4D 40 - mov rcx,[rbp+40]
22F08CC0407: 48 89 08 - mov [rax],rcx
22F08CC040A: 48 63 4D 48 - movsxd rcx,dword ptr [rbp+48]
22F08CC040E: 89 48 08 - mov [rax+08],ecx
22F08CC0411: 48 63 86 1C 01 00 00 - movsxd rax,dword ptr [rsi+0000011C]
// ---------- INJECTING HERE ----------
22F08CC0418: FF C8 - dec eax
22F08CC041A: 89 86 1C 01 00 00 - mov [rsi+0000011C],eax
// ---------- DONE INJECTING ----------
22F08CC0420: 48 8B 86 80 00 00 00 - mov rax,[rsi+00000080]
22F08CC0427: F3 0F 10 05 31 01 00 00 - movss xmm0,[22F08CC0560]
22F08CC042F: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
22F08CC0433: 48 8B C8 - mov rcx,rax
22F08CC0436: F2 0F 10 C8 - movsd xmm1,xmm0
22F08CC043A: F2 0F 5A C9 - cvtsd2ss xmm1,xmm1
22F08CC043E: 48 83 EC 20 - sub rsp,20
22F08CC0442: 83 38 00 - cmp dword ptr [rax],00
22F08CC0445: 49 BB 50 24 CC 08 2F 02 00 00 - mov r11,0000022F08CC2450
22F08CC044F: 41 FF D3 - call r11
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>36</ID>
<Description>"infinite stars"</Description>
<LastState Activated="1"/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
alloc(newmem_stars,1024,InventoryBase:WeaponInventoryBase:Start+2c)
label(return_stars)
label(code_stars)
label(exit_stars)
newmem_stars:
mov [rax+60],#999
code_stars:
movsxd rax,dword ptr [rax+60]
mov [rsi+20],eax
exit_stars:
jmp return_stars
InventoryBase:WeaponInventoryBase:Start+2c:
stars:
jmp newmem_stars
nop 2
return_stars:
[DISABLE]
InventoryBase:WeaponInventoryBase:Start+2c:
movsxd rax,dword ptr [rax+60]
mov [rsi+20],eax
//db 48 63 40 60 89 46 20
dealloc(newmem_stars)
{
// ORIGINAL CODE - INJECTION POINT: InventoryBase:WeaponInventoryBase:Start+2c
22F08C7A4A3: 18 48 89 - sbb [rax-77],cl
22F08C7A4A6: 34 24 - xor al,24
22F08C7A4A8: 48 89 7C 24 08 - mov [rsp+08],rdi
22F08C7A4AD: 4C 89 7C 24 10 - mov [rsp+10],r15
22F08C7A4B2: 48 8B F1 - mov rsi,rcx
22F08C7A4B5: 48 B8 00 CC C1 38 2F 02 00 00 - mov rax,0000022F38C1CC00
22F08C7A4BF: 48 8B 00 - mov rax,[rax]
22F08C7A4C2: 48 8B C8 - mov rcx,rax
22F08C7A4C5: 83 39 00 - cmp dword ptr [rcx],00
22F08C7A4C8: 48 8B 40 28 - mov rax,[rax+28]
// ---------- INJECTING HERE ----------
22F08C7A4CC: 48 63 40 60 - movsxd rax,dword ptr [rax+60]
22F08C7A4D0: 89 46 20 - mov [rsi+20],eax
// ---------- DONE INJECTING ----------
22F08C7A4D3: 45 33 FF - xor r15d,r15d
22F08C7A4D6: E9 53 00 00 00 - jmp 22F08C7A52E
22F08C7A4DB: 48 8D 64 24 00 - lea rsp,[rsp+00]
22F08C7A4E0: 48 8B 46 18 - mov rax,[rsi+18]
22F08C7A4E4: 49 63 CF - movsxd rcx,r15d
22F08C7A4E7: 39 48 18 - cmp [rax+18],ecx
22F08C7A4EA: 0F 86 75 00 00 00 - jbe 22F08C7A565
22F08C7A4F0: 48 8D 44 C8 20 - lea rax,[rax+rcx*8+20]
22F08C7A4F5: 48 8B 38 - mov rdi,[rax]
22F08C7A4F8: 48 B8 00 CC C1 38 2F 02 00 00 - mov rax,0000022F38C1CC00
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>39</ID>
<Description>"unlimited slow motion power"</Description>
<LastState/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
alloc(newmem_matrix,1024,THKM:PlayerBaseInput:ButtonInputs+762)
label(return_matrix)
label(code_matrix)
label(exit_matrix)
newmem_matrix:
code_matrix:
mov [rax+000000B0],(float)1.0
//movss [rax+000000B0],xmm5
exit_matrix:
jmp return_matrix
THKM:PlayerBaseInput:ButtonInputs+762:
matrix:
jmp newmem_matrix
nop 3
return_matrix:
[DISABLE]
THKM:PlayerBaseInput:ButtonInputs+762:
movss [rax+000000B0],xmm5
//db F3 0F 11 A8 B0 00 00 00
dealloc(newmem_matrix)
{
// ORIGINAL CODE - INJECTION POINT: THKM:PlayerBaseInput:ButtonInputs+762
18687008FA7: F2 0F 10 45 E0 - movsd xmm0,[rbp-20]
18687008FAC: F2 0F 10 4D D8 - movsd xmm1,[rbp-28]
18687008FB1: F2 0F 59 CA - mulsd xmm1,xmm2
18687008FB5: F2 0F 5C C1 - subsd xmm0,xmm1
18687008FB9: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
18687008FBD: F3 0F 11 6D F4 - movss [rbp-0C],xmm5
18687008FC2: 83 38 00 - cmp dword ptr [rax],00
18687008FC5: F3 0F 10 45 F4 - movss xmm0,[rbp-0C]
18687008FCA: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
18687008FCE: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
// ---------- INJECTING HERE ----------
18687008FD2: F3 0F 11 A8 B0 00 00 00 - movss [rax+000000B0],xmm5
// ---------- DONE INJECTING ----------
18687008FDA: E9 8D 03 00 00 - jmp 1868700936C
18687008FDF: 48 B8 00 CC 09 BB 86 01 00 00 - mov rax,00000186BB09CC00
18687008FE9: 48 8B 00 - mov rax,[rax]
18687008FEC: 83 38 00 - cmp dword ptr [rax],00
18687008FEF: 48 B8 D8 4E 09 BB 86 01 00 00 - mov rax,00000186BB094ED8
18687008FF9: 48 63 00 - movsxd rax,dword ptr [rax]
18687008FFC: 83 F8 02 - cmp eax,02
18687008FFF: 0F 85 AD 00 00 00 - jne 186870090B2
18687009005: 48 8B 46 18 - mov rax,[rsi+18]
18687009009: 48 8B C8 - mov rcx,rax
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>44</ID>
<Description>"movement speed"</Description>
<LastState Activated="1"/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>// Game Executable : THKM.exe
// Author : GamerCare
// Tables Archive : wwww.pastelink.net/133ki
// Patreon : www.patreon.com/gamercare
[ENABLE]
alloc(newmem_movspeed,1024,THKM:PlayerBaseInput:UpdateMoveAxis+68)
alloc(showstat_movspeed,8)
label(return_movspeed)
label(code_movspeed)
label(exit_movspeed)
registersymbol(showstat_movspeed)
newmem_movspeed:
mov [showstat_movspeed],rsi
code_movspeed:
push rax
mov eax,(float)2.0
mov [rsi+4c],eax
pop rax
movss xmm1,[rsi+4C]
exit_movspeed:
jmp return_movspeed
THKM:PlayerBaseInput:UpdateMoveAxis+68:
movspeed:
jmp newmem_movspeed
return_movspeed:
[DISABLE]
THKM:PlayerBaseInput:UpdateMoveAxis+68:
movss xmm1,[rsi+4C]
//db F3 0F 10 4E 4C
unregistersymbol(showstat_movspeed)
dealloc(showstat_movspeed)
dealloc(newmem_movspeed)
{
// ORIGINAL CODE - INJECTION POINT: THKM:PlayerBaseInput:UpdateMoveAxis+68
18687008357: 48 8B 46 10 - mov rax,[rsi+10]
1868700835B: 48 8B C8 - mov rcx,rax
1868700835E: 48 BA A0 2A B8 E0 86 01 00 00 - mov rdx,00000186E0B82AA0
18687008368: 48 83 EC 20 - sub rsp,20
1868700836C: 83 38 00 - cmp dword ptr [rax],00
1868700836F: 49 BB 80 84 00 87 86 01 00 00 - mov r11,0000018687008480
18687008379: 41 FF D3 - call r11
1868700837C: 48 83 C4 20 - add rsp,20
18687008380: F3 0F 5A C0 - cvtss2sd xmm0,xmm0
18687008384: 48 8B 45 D8 - mov rax,[rbp-28]
// ---------- INJECTING HERE ----------
18687008388: F3 0F 10 4E 4C - movss xmm1,[rsi+4C]
// ---------- DONE INJECTING ----------
1868700838D: F3 0F 5A C9 - cvtss2sd xmm1,xmm1
18687008391: F2 0F 59 C1 - mulsd xmm0,xmm1
18687008395: F2 0F 5A E8 - cvtsd2ss xmm5,xmm0
18687008399: F3 0F 11 28 - movss [rax],xmm5
1868700839D: 48 85 F6 - test rsi,rsi
186870083A0: 0F 84 82 00 00 00 - je 18687008428
186870083A6: 48 8D 46 30 - lea rax,[rsi+30]
186870083AA: 48 89 45 E0 - mov [rbp-20],rax
186870083AE: 48 8B 46 10 - mov rax,[rsi+10]
186870083B2: 48 8B C8 - mov rcx,rax
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>45</ID>
<Description>"value"</Description>
<LastState Value="2" RealAddress="2E5F7C8EB8C"/>
<Color>FF8000</Color>
<VariableType>Float</VariableType>
<Address>[showstat_movspeed]+4c</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>3</ID>
<Description>"MonoHelper"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[enable]
{$lua}
LaunchMonoDataCollector()
--[[--------------------------------------------------------------------------------
-- Forms - Save strings as temp files, then load using createFormFromFile()
--------------------------------------------------------------------------------]]
-- close any open forms
if formMonoClass ~= nil then
formMonoClass.close()
formMonoClass:destroy()
formMonoClass = nil
end
if formMonoImage ~= nil then
formMonoImage.close()
formMonoImage:destroy()
formMonoImage = nil
end
if formMonoSearch ~= nil then
formMonoSearch.close()
formMonoSearch:destroy()
formMonoSearch = nil
end
-- unselect image, refs won't be correct if re-ran
if mono then mono.selectedImage = nil end
-- generate forms from saved XML
local stringFormMonoClass = [==========[<?xml version="1.0" encoding="utf-8"?>
<FormData>
<formMonoClass Class="TCEForm" Encoding="Ascii85">/yXCLBSjP,?7mt4B(XzZcStnuKnO*ZNoPCfi:^XYS#y,V=0vRJ+[}N-$CtRF.J?L_pa9+!KncxNNVJHC]Pg]8oh+c$fP!W^@S/Z3-?JM5KSF47KKRI*@q(t^mh8@OXT(J$$2iZMr!eO;SnU%aizT.rZF_B{;,9ARB.rf@S/}s]loLkVzSQX]rJa6Efbv4,H!INl8/pk::+n;u?f}48kt.l).wi+=vHU6%XE:eUT^;H]EF:-gD31D!?^Gk!YkWl@ds1;mL_aT1w(fR5TTfNcei8H:bkJj21X-Bk8KH_KExcbPDvizQo_LEiwA1B0BhwX!oq[Or*L-H)1n%r}(%*uC^gduR[/Ry5R@k5[PwnKP,QE;^7_mIXIrbI#obcJwapviOTtlR7ezw9f.cG$t;Nvx5t_ddhjv.8z@B#+M6rAHsq[xjtmbt#)NHG[wl%8V;v6srPO!I?XxmA(as,9b7Je,4e#yLx#mD}$=;?63E,w3j%cS@n^*Q4E]w,vK@Zojrv*!!=sZZ^omAP-vjQgGV%QYtw3QibE/OKs-/:y,VEDKnOTSfy(C29)N?RPV^[;OHZW=gUTA)v+dqmn0_C7,e(H%7(?H28S#tmmlkk]g7yv@grm,H{vVP7E,ooGPX+4=AlvQN5GdXDlYh(8a={6tJRIkf.ujab#$9@IE95W%tqCTyO/6L#Dx#5(c#oS!bKa$svtKG,FHA]Zy_+C6tWjkV8czt]hN-U=^yYG+udNG(Nz7mGC7XNagqD}7WA?qLmI*gg-n:u6R]:G0Ne/4tL*Xw?on^T^BA3xosyitByi:(VxiUQa8Np]!9poeTj*}c.l.i*jz23nYHw1Y3XWPgDY$QG9q}e{5{NNd$^dg9@BlN4B2?Q;[lrJpgi4_2WSzn-5(Ju2%E*[jTc+:6WLoNi6]Y{H61ykjpdrLClYG{x[(+l!q34}mbd^=4AV{r1XaN[1qcM%wo[E2nw5DgYM@A!4J(un1D!,h}WnA:%5?x;0deN=K@^;AJv[Jx[)5pk5.j0E{hD0sa44H=6=e0,ib,m1P/deeYk0y{h^34^pQ/mSB^H7L8AKn+EJE;mkC,ltT/ch=eF%Bh}T59]OSdv5b2omNc.-fU]P[+$-gP^$-7C^=^hvVn2ApTkO,.@h;@^prBE!3Fvvw.LxNQ4_].%uH,o(sG6Tq2}/Am/JVuJW(ppo!(;L+gZ5tdL/eoPuCT9V8=a+y@nnrUxX.%kk(2/aBy#^jZ}:n8=sQ*VjJu[SU,id*+ah^UyvUz4E[^GNk3CJuPXPdL(FO,0}FPAtM}3yR7VsEXS)_IvXj_LZB@to^Q/?E@S_OJBp1:y;;!gFwV,WA$QftBt?VHaxU.wPSG2ZX;MPOA45I@8ez(yg{?-n@7*fZbExzNXG_5t++B=+R8cbDCt;an</formMonoClass>
</FormData>
]==========]
local stringFormMonoImage = [==========[<?xml version="1.0" encoding="utf-8"?>
<FormData>
<formMonoImage Class="TCEForm" Encoding="Ascii85">#goBu):ZT+Wtl^dlQI).N^(5n(hQF{X^MQJn@1eo5fn$ZHIXe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W$+2WYWF__0WHi4iIRWyxdQuB=9H)6YR.Y9]8kV26ci!)eI8O5qsXn2T@qBV$B33oxK:rJyNCdwJw9X6Jd%NTBe{{nSm2PR2H4ei):F^BH)xw1V9DEq$Dq#ZNyY1lMDQ.</formMonoSearch>
</FormData>
]==========]
local function saveForm(text)
local path = os.tmpname() -- get temp file name
local f, err = io.open(path, "w")
if f == nil then return nil, err end
f:write(text)
f:close()
return path
end
local function createFormFromString(text)
local path = saveForm(text)
local form = createFormFromFile(path)
pcall(os.remove, path)
return form
end
-- create forms from xml (using temp files)
formMonoClass = createFormFromString(stringFormMonoClass)
formMonoImage = createFormFromString(stringFormMonoImage)
formMonoSearch = createFormFromString(stringFormMonoSearch)
--[[--------------------------------------------------------------------------------
-- Included File: src/lua/bootstrap.lua
--------------------------------------------------------------------------------]]
-- loadstring(loadTextFile('src/lua/util.lua'))()
-- loadstring(loadTextFile('../temp/notes.lua'))()
-- loadstring(loadTextFile('src/lua/mono.lua'))()
--[[--------------------------------------------------------------------------------
-- Included File: src/lua/util.lua
--------------------------------------------------------------------------------]]
util = util or {}
util.loadTextFile = function (name)
local path = getMainForm().openDialog1.InitialDir..name
local f, err = io.open(path, "r")
-- fall back to table file if disk file error (doesn't exist)
if f == nil then return loadTextFile(name, true) end
local text = f:read("*all")
f:close()
return text
end
--[[
Save a string to a text file. If useTableFile is true it will be saved as
a TableFile. The directory should be where the cheat file is, it is the
initial directory for the dialog when you are saving your cheat table.
--]]
util.saveTextFile = function(name, text)
local path = getMainForm().saveDialog1.InitialDir..name
local f, err = io.open(path, "w")
if f == nil then return nil, err end
f:write(text)
f:close()
return true
end
util.getSubmenuByCaption = function(menuItem, caption)
for i = 0, menuItem.getCount() - 1 do
if menuItem.Item[i].Caption == caption then return menuItem.Item[i] end
end
return nil
end
--[[
For mono symbols, you have to surround them in quotes for use in AA
]]
function util.safeAddress(s)
local tbl = {}
for a in string.gmatch(s, "([^+]+)[+]?") do table.insert(tbl, a) end
local result = '"'..tbl[1]..'"'
if #tbl > 1 then result = result..'+'..tbl[2] end
return result
end
function util.split(s, separator)
local tbl = {}
for str in string.gmatch(s, "([^"..separator.."]+)") do table.insert(tbl, str) end
return tbl
end
function util.trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
--[[
Pretty-print serialize the passed object and return the results
as a string. This does nice indenting and follows metatables. It
is not guaranteed to provide the same object back if the string is
loaded because it just replaces circular references with a string
among other things. It does try to keep tables/arrays on one line
if there is room (120 characters).
--]]
function util.pretty(value, funcs, indent, done, stack)
indent = indent or 0
funcs = funcs or {}
done = done or {}
stack = stack or { {value=value} } -- initialize with passed value, no key
-- if a 'userdata', use metatable
local l = value
if type(value) == "userdata" then
l = getmetatable(value)
end
if type(l) == "table" then
-- if we've already serialized the table, return string representation
-- to avoid self-referencing in recursion. Only the first serialization
-- will have the full serialized string
if done[l] then return tostring(l) end
done[l] = true
local list = {}
-- here we return "{", the values, and "}"
if (#l > 0) then
-- if we have a count ('#'), then it's just an array of values
for i,v in ipairs(l) do
table.insert(list, util.pretty(v, funcs, indent + 2, done, stack))
end
else
-- no count, so either empty or object with key/value
-- first we sort the keys
local keys = {}
for k,v in pairs(l) do table.insert(keys, k) end
table.sort(keys)
local last = {key = "UNKNOWN", value = "NONE"}
table.insert(stack, last)
for i,k in ipairs(keys) do
local propValue = value[k]
last.key = k
last.value = value[k]
for j,f in ipairs(funcs) do
local returnValue = f(value, k, value[k], stack, indent)
if returnValue ~= nil then
propValue = returnValue
break
end
end
table.insert(list, string.format("%s = %s", tostring(k), util.pretty(propValue, funcs, indent+2, done, stack)))
end
table.remove(stack, #stack)
end
-- now we find the total size, add 200 if there are line breaks
local size = 0
for i,v in ipairs(list) do
size = size + string.len(v) + 2
if string.find(v, "\r\n") then
size = 200
break;
end
end
-- if it's small enough, join with commas
if (size < 120) then
local result = {"{ "}
for i,v in ipairs(list) do
if i > 1 then table.insert(result, ", ") end
table.insert(result, v)
end
table.insert(result, " }")
return table.concat(result);
else
local indentString1 = string.rep(" ", indent)
local indentString2 = string.rep(" ", indent + 2)
local result = {"{\r\n"}
for i,v in ipairs(list) do
table.insert(result, indentString2)
table.insert(result, v)
if (i < #list) then table.insert(result, ",") end
table.insert(result, "\r\n")
end
-- table.insert(result, indentString)
table.insert(result, indentString1)
table.insert(result, "}")
return table.concat(result);
end
end
if type(value) == "string" then
return string.format("\"%s\"", value)
end
return tostring(value)
end
--[[
Values and functions used by util.serialize(t)
---]]
local oddvals = {[tostring(1/0)] = '1/0', [tostring(-1/0)] = '-1/0', [tostring(-(0/0))] = '-(0/0)', [tostring(0/0)] = '0/0'}
local kw = {['and'] = true, ['break'] = true, ['do'] = true, ['else'] = true,
['elseif'] = true, ['end'] = true, ['false'] = true, ['for'] = true,
['function'] = true, ['goto'] = true, ['if'] = true, ['in'] = true,
['local'] = true, ['nil'] = true, ['not'] = true, ['or'] = true,
['repeat'] = true, ['return'] = true, ['then'] = true, ['true'] = true,
['until'] = true, ['while'] = true}
local getchr = function(c)
return "\\" .. c:byte()
end
local make_safe = function(text)
return ("%q"):format(text):gsub('\n', 'n'):gsub("[\128-\255]", getchr)
end
local write = function(t, memo, rev_memo)
local ty = type(t)
if ty == 'number' then
t = format("%.17g", t)
return oddvals[t] or t
elseif ty == 'boolean' or ty == 'nil' then
return tostring(t)
elseif ty == 'string' then
return make_safe(t)
elseif ty == 'table' or ty == 'function' then
if not memo[t] then
local index = #rev_memo + 1
memo[t] = index
rev_memo[index] = t
end
return '_[' .. memo[t] .. ']'
else
error("Trying to serialize unsupported type " .. ty)
end
end
local write_key_value_pair = function(k, v, memo, rev_memo, name)
if type(k) == 'string' and k:match '^[_%a][_%w]*$' and not kw[k] then
return (name and name .. '.' or '') .. k ..'=' .. write(v, memo, rev_memo)
else
return (name or '') .. '[' .. write(k, memo, rev_memo) .. ']=' .. write(v, memo, rev_memo)
end
end
local is_cyclic = function(memo, sub, super)
local m = memo[sub]
local p = memo[super]
return m and p and m < p
end
local write_table_ex = function(t, memo, rev_memo, srefs, name)
if type(t) == 'function' then
return '_[' .. name .. ']=loadstring' .. make_safe(string.dump(t))
end
local m = {}
local mi = 1
for i = 1, #t do -- don't use ipairs here, we need the gaps
local v = t[i]
if v == t or is_cyclic(memo, v, t) then
srefs[#srefs + 1] = {name, i, v}
m[mi] = 'nil'
mi = mi + 1
else
m[mi] = write(v, memo, rev_memo)
mi = mi + 1
end
end
for k,v in pairs(t) do
if type(k) ~= 'number' or math.floor(k) ~= k or k < 1 or k > #t then
if v == t or k == t or is_cyclic(memo, v, t) or is_cyclic(memo, k, t) then
srefs[#srefs + 1] = {name, k, v}
else
m[mi] = write_key_value_pair(k, v, memo, rev_memo)
mi = mi + 1
end
end
end
return '_[' .. name .. ']={' .. table.concat(m, ',') .. '}'
end
--[[
A function more appropriate for serializing objects in a reproduceable way.
--]]
function util.serialize(t)
local memo = {[t] = 0}
local rev_memo = {[0] = t}
local srefs = {}
local result = {}
-- phase 1: recursively descend the table structure
local n = 0
while rev_memo[n] do
result[n + 1] = write_table_ex(rev_memo[n], memo, rev_memo, srefs, n)
n = n + 1
end
-- phase 2: reverse order
for i = 1, n*.5 do
local j = n - i + 1
result[i], result[j] = result[j], result[i]
end
-- phase 3: add all the tricky cyclic stuff
for i, v in ipairs(srefs) do
n = n + 1
result[n] = write_key_value_pair(v[2], v[3], memo, rev_memo, '_[' .. v[1] .. ']')
end
-- phase 4: add something about returning the main table
if result[n]:sub(1, 5) == '_[0]=' then
result[n] = 'return ' .. result[n]:sub(6)
else
result[n + 1] = 'return _[0]'
end
-- phase 5: just concatenate everything
result = table.concat(result, '\n')
return n > 1 and 'local _={}\n' .. result or result
end
function util.map(t, f)
local results = {}
local func = f or tostring
for i,v in ipairs(t) do
table.insert(results, func(v))
end
return results
end
function util.slice(t, index)
local result = {}
for i = index, #t do table.insert(result, t[i]) end
return result
end
--[[--------------------------------------------------------------------------------
-- Included File: src/lua/temp/notes.lua
--------------------------------------------------------------------------------]]
--[[
A note has 'key' and 'text' fields, lists are sorted by key.
--]]
notes = notes or {}
notesmt = notesmt or {}
note = note or {}
notemt = notemt or {}
notemt.__index = note
notemt.__lt = function(a,b) return a.key < b.key end
function notes.new(filename, useTableFile)
local obj = {}
setmetatable(obj, {__index = notes})
obj:load(filename, useTableFile)
return obj
end
function notes:load(filename, useTableFile)
self.filename = filename
self.useTableFile = useTableFile
local s = loadTextFile(self.filename, self.useTableFile)
self.dict = {}
if s then self.dict = loadstring(s)() end
self.lastSave = os.clock()
self.lastChange = 0
end
function notes:save()
local text = util.serialize(self.dict)
saveTextFile(self.filename, text, self.useTableFile)
self.lastSave = os.clock()
end
function notes:saveAs(filename, useTableFile)
self.filename = filename
self.useTableFile = useTableFile
self:save()
end
function notes:update(key, text)
if text == nil or string.len(text) == 0 then
if self.dict[key] then self.dict[key] = nil end
else
self.dict[key] = {key = key, text = text}
end
self.lastUpdate = os.clock()
end
function notes:getList()
local keys = {}
for k,n in pairs(self.dict) do table.insert(keys, n) end
return keys
end
--[[--------------------------------------------------------------------------------
-- Included File: src/lua/mono.lua
--------------------------------------------------------------------------------]]
-- moduled
mono = mono or {}
-- classes
mono.MonoClass = mono.MonoClass or {}
mono.MonoField = mono.MonoField or {}
mono.MonoMethod = mono.MonoMethod or {}
mono.MonoImage = mono.MonoImage or {}
mono.menu = mono.menu or {}
mono.popups = mono.popups or {}
mono.formSelectImage = mono.formSelectImage or {}
mono.formSearch = mono.formSearch or {}
mono.formClass = mono.formClass or {}
-- defines
mono.TYPE_NAMES = {
[0] = 'END',
[1] = 'void',
[2] = 'bool',
[3] = 'char',
[4] = 'sbyte',
[5] = 'byte',
[6] = 'short',
[7] = 'ushort',
[8]= 'int',
[9]= 'uint',
[10] = 'long',
[11] = 'ulong',
[12] = 'float',
[13] = 'double',
[14] = 'string',
[15] = 'ptr',
[16] = 'byref',
[17] = 'valuetype',
[18] = 'class',
[19] = 'var',
[20] = 'array',
[21] = 'genericinst',
[22] = 'typedbyref',
[24] = 'I',
[25] = 'U',
[0x1b] = 'FNPTR',
[0x1c] = 'object',
[0x1d] = 'szarray', -- 0-based one-dim-array
[0x1e] = 'mvar',
[0x1f] = 'CMOD_REQD', -- typedef or typeref token
[0x20] = 'CMOD_OPT', -- optional arg: typedef or typeref token
[0x21] = 'INTERNAL',
[0x40] = 'MODIFIER', -- Or with the following types
[0x41] = 'SENTINEL', -- sentinel for varargs method signature
[0x45] = 'PINNED', -- local var that points to pinned object
[0x55] = 'ENUM', -- an enumeration
}
mono.reset = function()
-- close any open forms
if formMonoClass ~= nil then
formMonoClass.close()
formMonoClass:destroy()
end
if formMonoImage ~= nil then
formMonoImage.close()
formMonoImage:destroy()
end
if formMonoSearch ~= nil then
formMonoSearch.close()
formMonoSearch:destroy()
end
-- unselect image, refs won't be correct if re-ran
if mono then
mono.selectedImage = nil
if mono.timer then mono.clearTimer() end
end
end
mono.clearTimer = function()
if mono.timer then