This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpaceEngine.CT
3346 lines (3077 loc) · 97.4 KB
/
SpaceEngine.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="26">
<CheatEntries>
<CheatEntry>
<ID>5</ID>
<Description>"导出纹理"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
//SpaceEngine.exe+217B26
originalcode:
pushad
//call zlib1.TestAPI
call HookMain
//call zlib1.Hack
popad
mov cl,[esp+0F]
movss xmm4,[edi+edx*4+00000CD8]
exit:
jmp returnhere
"SpaceEngine.exe"+217B26:
jmp newmem
nop
nop
nop
nop
nop
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"SpaceEngine.exe"+217B26:
mov cl,[esp+0F]
movss xmm4,[edi+edx*4+00000CD8]
//Alt: db 8A 4C 24 0F F3 0F 10 A4 97 D8 0C 00 00
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>33</ID>
<Description>"默认字符信息"</Description>
<ShowAsHex>1</ShowAsHex>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+5D4CE0</Address>
</CheatEntry>
<CheatEntry>
<ID>18</ID>
<Description>"某全局对象"</Description>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+4FCF18</Address>
<Offsets>
<Offset>10</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>15</ID>
<Description>"无描述"</Description>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+4FCE2A</Address>
</CheatEntry>
<CheatEntry>
<ID>17</ID>
<Description>"无描述"</Description>
<VariableType>2 Bytes</VariableType>
<Address>SpaceEngine.exe+4FCE28</Address>
</CheatEntry>
<CheatEntry>
<ID>26</ID>
<Description>"纹理宽"</Description>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+4F90E0+44+8</Address>
</CheatEntry>
<CheatEntry>
<ID>30</ID>
<Description>"纹理宽"</Description>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+4F90E0+44+C</Address>
</CheatEntry>
<CheatEntry>
<ID>16</ID>
<Description>"高"</Description>
<VariableType>Float</VariableType>
<Address>SpaceEngine.exe+4FCE24</Address>
</CheatEntry>
<CheatEntry>
<ID>14</ID>
<Description>"宽"</Description>
<VariableType>Float</VariableType>
<Address>SpaceEngine.exe+4FCE20</Address>
</CheatEntry>
<CheatEntry>
<ID>6</ID>
<Description>"Version"</Description>
<VariableType>String</VariableType>
<Length>20</Length>
<Unicode>0</Unicode>
<CodePage>0</CodePage>
<ZeroTerminate>1</ZeroTerminate>
<Address>SpaceEngine.exe+3DC204</Address>
</CheatEntry>
<CheatEntry>
<ID>13</ID>
<Description>"无描述"</Description>
<VariableType>Float</VariableType>
<Address>SpaceEngine.exe+3A7C14</Address>
</CheatEntry>
<CheatEntry>
<ID>19</ID>
<Description>"自动汇编脚本"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
//测试EDI作用
//预期:字体尺寸
//结果:字体宽度倍数
mov [edi+000000D0],2
mov ecx,[edi+000000D0]
exit:
jmp returnhere
"SpaceEngine.exe"+217B10:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"SpaceEngine.exe"+217B10:
mov ecx,[edi+000000D0]
//Alt: db 8B 8F D0 00 00 00
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>20</ID>
<Description>"自动汇编脚本"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : SpaceEngine.exe
Version:
Date : 2018-05-07
Author : cdkey
This script does blah blah blah
}
define(address,"SpaceEngine.exe"+217B10)
define(bytes,8B 8F D0 00 00 00 8B C1 C1 E0 08 03 D0 F3 0F 10 8C 8F D8 18 00 00 8A 4C 24 0F F3 0F 10 A4 97 D8 0C 00 00 8A C1 F3 0F 10 9C 97 D8 00 00 00 24 0F 8B 15 18 CF D2 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov ecx,[edi+000000D0]
mov eax,ecx
// mov ecx,1
// mov edx,65
shl eax,08 { 8 }
add edx,eax
movss xmm1,[edi+ecx*4+000018D8]
push BF800000
movss xmm4,[esp]
add esp,4
mov cl,[esp+0F]
//movss xmm4,[edi+edx*4+00000CD8]
mov al,cl
movss xmm3,[edi+edx*4+000000D8]
and al,0F { 15 }
mov edx,[SpaceEngine.exe+4FCF18] { [00D2CE40] }
jmp return
address:
jmp newmem
nop
SpaceEngine.exe+217B46:
return:
[DISABLE]
address:
db bytes
// mov ecx,[edi+000000D0]
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "SpaceEngine.exe"+217B10
"SpaceEngine.exe"+217AE4: EB 2A - jmp SpaceEngine.exe+217B10
"SpaceEngine.exe"+217AE6: 0F 28 C1 - movaps xmm0,xmm1
"SpaceEngine.exe"+217AE9: 0F 28 D1 - movaps xmm2,xmm1
"SpaceEngine.exe"+217AEC: F3 0F 59 05 3C 7D BD 00 - mulss xmm0,[SpaceEngine.exe+3A7D3C]
"SpaceEngine.exe"+217AF4: F3 0F 58 D7 - addss xmm2,xmm7
"SpaceEngine.exe"+217AF8: F3 0F 58 C7 - addss xmm0,xmm7
"SpaceEngine.exe"+217AFC: F3 0F 11 54 24 20 - movss [esp+20],xmm2
"SpaceEngine.exe"+217B02: F3 0F 11 44 24 18 - movss [esp+18],xmm0
"SpaceEngine.exe"+217B08: EB 06 - jmp SpaceEngine.exe+217B10
"SpaceEngine.exe"+217B0A: F3 0F 10 54 24 20 - movss xmm2,[esp+20]
// ---------- INJECTING HERE ----------
"SpaceEngine.exe"+217B10: 8B 8F D0 00 00 00 - mov ecx,[edi+000000D0]
// ---------- DONE INJECTING ----------
"SpaceEngine.exe"+217B16: 8B C1 - mov eax,ecx
"SpaceEngine.exe"+217B18: C1 E0 08 - shl eax,08
"SpaceEngine.exe"+217B1B: 03 D0 - add edx,eax
"SpaceEngine.exe"+217B1D: F3 0F 10 8C 8F D8 18 00 00 - movss xmm1,[edi+ecx*4+000018D8]
"SpaceEngine.exe"+217B26: 8A 4C 24 0F - mov cl,[esp+0F]
"SpaceEngine.exe"+217B2A: F3 0F 10 A4 97 D8 0C 00 00 - movss xmm4,[edi+edx*4+00000CD8]
"SpaceEngine.exe"+217B33: 8A C1 - mov al,cl
"SpaceEngine.exe"+217B35: F3 0F 10 9C 97 D8 00 00 00 - movss xmm3,[edi+edx*4+000000D8]
"SpaceEngine.exe"+217B3E: 24 0F - and al,0F
"SpaceEngine.exe"+217B40: 8B 15 18 CF D2 00 - mov edx,[SpaceEngine.exe+4FCF18]
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>21</ID>
<Description>"起始地址"</Description>
<ShowAsHex>1</ShowAsHex>
<VariableType>4 Bytes</VariableType>
<Address>SpaceEngine.exe+217580 </Address>
</CheatEntry>
<CheatEntry>
<ID>22</ID>
<Description>"函数替换"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : SpaceEngine.exe
Version:
Date : 2018-05-07
Author : cdkey
This script does blah blah blah
}
define(address,"SpaceEngine.exe"+217580)
[ENABLE]
//assert(address,bytes)
address:
push ebp
mov ebp,esp
and esp,-12
[DISABLE]
address:
push ebp { 函数起始}
mov ebp,esp
and esp,-10 { 240 }
sub esp,48 { 72 }
cmp byte ptr [ebp+0C],00 { 0 }
push esi
push edi
movss [esp+28],xmm3
mov edi,ecx
movss [esp+24],xmm2
je SpaceEngine.exe+2175C9
mov eax,[edi+000000D0]
movss [edi+000000BC],xmm1
movd xmm0,[edi+eax*4+70]
cvtdq2ps xmm0,xmm0
mulss xmm0,[edi+14]
subss xmm2,xmm0
movss [edi+000000C0],xmm2
jmp SpaceEngine.exe+217607
movaps xmm0,xmm1
call SpaceEngine.exe+34E20
mov eax,[edi+000000D0]
movss xmm1,[esp+24]
movss [edi+000000BC],xmm0
movd xmm0,[edi+eax*4+70]
cvtdq2ps xmm0,xmm0
mulss xmm0,[edi+14]
subss xmm1,xmm0
movaps xmm0,xmm1
call SpaceEngine.exe+34E20
movss [edi+000000C0],xmm0
movups xmm0,[edi+000000A8]
lea eax,[esp+30]
mov esi,[ebp+08] { 取得参数
}
movss xmm6,[edi+000000BC]
mov ecx,SpaceEngine.exe+4F90E0 { [00000566] }
movss xmm7,[edi+000000C0]
push eax
movss [esp+18],xmm6
movss [esp+14],xmm7
movups [esp+34],xmm0
call SpaceEngine.exe+1AD420
mov edx,esi
mov al,[edx]
mov [esp+0F],al
test al,al
je SpaceEngine.exe+217F48
movss xmm1,[SpaceEngine.exe+3A7E44] { [0.50] }
movss xmm3,[SpaceEngine.exe+3A7F08] { [0.75] }
movss xmm4,[SpaceEngine.exe+3A8E34] { [255.00] }
//nop [eax+00000000]
db 0F 1F 80 00 00 00 00
inc esi
mov ecx,esi
mov [esp+24],esi
sub ecx,edx
movzx edx,al
mov [esp+2C],edx
lea eax,[edx-01]
cmp eax,0E { 14 }
ja SpaceEngine.exe+2179C0
//jmp dword ptr [eax*4+SpaceEngine.exe+217F50]
db FF 24 85 50 7F 06 01
mov eax,[edi+24]
cmp eax,02 { 2 }
jnl SpaceEngine.exe+21769F
inc eax
mov [edi+24],eax
cmp byte ptr [ebp+0C],00 { 0 }
jne SpaceEngine.exe+217F37
addss xmm6,xmm1
movaps xmm0,xmm6
call SpaceEngine.exe+34E20
movaps xmm6,xmm0
jmp SpaceEngine.exe+217F13
mov eax,[edi+24]
test eax,eax
jle SpaceEngine.exe+21769F
dec eax
jmp SpaceEngine.exe+21769C
cmp byte ptr [edi+19],00 { 0 }
mov [edi+000000CC],00000000 { 0 }
mov [edi+20],FFFFFFFF { -1 }
mov [edi+1C],FFFFFFFF { -1 }
mov [edi+000000D0],00000000 { 0 }
mov [edi+10],3F400000 { 0.75 }
mov [edi+14],3F400000 { 0.75 }
mov [edi+000000D4],41800000 { 16.00 }
mov [edi],41580000 { 13.50 }
je SpaceEngine.exe+217717
mov [edi+000000D0],00000001 { 1 }
mov eax,[edi+000000D0]
shl eax,04 { 4 }
movups xmm0,[eax+edi+000018E4]
movups [edi+00000094],xmm0
jmp SpaceEngine.exe+21769F
cmp byte ptr [edi+18],00 { 0 }
mov [edi+000000CC],00000001 { 1 }
mov [edi+20],FFFFFFFF { -1 }
mov [edi+1C],FFFFFFFF { -1 }
mov [edi],41900000 { 18.00 }
je SpaceEngine.exe+21777C
mov [edi+000000D0],00000000 { 0 }
mov [edi+10],3F800000 { 1.00 }
mov [edi+14],3F800000 { 1.00 }
mov [edi+000000D4],41800000 { 16.00 }
jmp SpaceEngine.exe+21779E
mov [edi+000000D0],00000002 { 2 }
mov [edi+10],3F0CCCCD { 0.55 }
mov [edi+14],3F0CCCCD { 0.55 }
mov [edi+000000D4],42000000 { 32.00 }
cmp byte ptr [edi+19],00 { 0 }
je SpaceEngine.exe+217717
cmp dword ptr [edi+000000D0],00 { 0 }
jne SpaceEngine.exe+217717
jmp SpaceEngine.exe+21770D
mov [edi+000000CC],00000002 { 2 }
mov [edi+10],3F400000 { 0.75 }
mov [edi+14],3F400000 { 0.75 }
mov [edi+000000D0],00000002 { 2 }
mov [edi+1C],FFFFFFFF { -1 }
mov [edi+20],FFFFFFFF { -1 }
mov [edi+000000D4],42000000 { 32.00 }
mov [edi],42100000 { 36.00 }
movups xmm0,[edi+00001904]
movups [edi+00000094],xmm0
jmp SpaceEngine.exe+21769F
mov [edi+000000CC],00000003 { 3 }
mov [edi+10],3F800000 { 1.00 }
mov [edi+14],3F800000 { 1.00 }
jmp SpaceEngine.exe+2177D2
mov ecx,[esp+24]
lea edx,[edi+0000192C]
call SpaceEngine.exe+2166F0
movzx eax,byte ptr [edi+0000192C]
mov ecx,SpaceEngine.exe+4F90E0 { [00000566] }
mov [esp+3C],3F800000 { 1.00 }
movd xmm2,eax
movzx eax,byte ptr [edi+0000192D]
cvtdq2ps xmm2,xmm2
movd xmm1,eax
movzx eax,byte ptr [edi+0000192E]
cvtdq2ps xmm1,xmm1
movd xmm0,eax
lea eax,[esp+40]
cvtdq2ps xmm0,xmm0
push eax
divss xmm1,xmm4
divss xmm0,xmm4
divss xmm2,xmm4
movss [esp+38],xmm1
movss xmm1,[edi+000000B8]
movss [esp+3C],xmm0
movss [esp+34],xmm2
movaps xmm0,[esp+34]
shufps xmm1,xmm1,00 { 0 }
mulps xmm0,xmm1
movups [esp+44],xmm0
call SpaceEngine.exe+1AD420
mov esi,[esp+24]
add esi,06 { 6 }
jmp SpaceEngine.exe+217F1F
movups xmm1,[edi+000000A8]
lea eax,[esp+40]
mov ecx,SpaceEngine.exe+4F90E0 { [00000566] }
movss xmm0,[edi+000000B8]
shufps xmm0,xmm0,00 { 0 }
movaps [esp+30],xmm1
mulps xmm1,xmm0
push eax
movups [esp+44],xmm1
call SpaceEngine.exe+1AD420
jmp SpaceEngine.exe+217F1F
movd xmm0,[edi+0C]
addss xmm6,[SpaceEngine.exe+3A801C] { [1.00] }
movd xmm1,[edi+08]
cvtdq2ps xmm0,xmm0
cvtdq2ps xmm1,xmm1
subss xmm6,xmm0
divss xmm6,xmm1
movaps xmm0,xmm6
call SpaceEngine.exe+4DBD0
movaps xmm6,xmm0
movd xmm0,[edi+08]
cvtdq2ps xmm0,xmm0
mulss xmm6,xmm0
movd xmm0,[edi+0C]
cvtdq2ps xmm0,xmm0
addss xmm6,xmm0
jmp SpaceEngine.exe+217F13
push [edi+000000CC]
mov ecx,edi
mov byte ptr [edi+19],01 { 1 }
call SpaceEngine.exe+21F330
jmp SpaceEngine.exe+217F37
push [edi+000000CC]
mov ecx,edi
mov byte ptr [edi+19],00 { 0 }
call SpaceEngine.exe+21F330
jmp SpaceEngine.exe+217F37
mov al,[esi]
cmp al,30 { 48 }
jl SpaceEngine.exe+217F37
cmp al,3A { 58 }
jl SpaceEngine.exe+217978
cmp al,3F { 63 }
jng SpaceEngine.exe+217F37
cmp al,5B { 91 }
jl SpaceEngine.exe+217984
cmp al,5F { 95 }
jng SpaceEngine.exe+217F37
cmp al,7B { 123 }
jl SpaceEngine.exe+217990
cmp al,7E { 126 }
jng SpaceEngine.exe+217F37
inc esi
jmp SpaceEngine.exe+217962
movss xmm7,[edi+000000C0]
addss xmm7,[edi]
movss xmm6,[edi+000000BC]
movss [esp+14],xmm6
movss [esp+10],xmm7
movss [edi+000000C0],xmm7
jmp SpaceEngine.exe+217F37
mov eax,[edi+000000D0]
movss xmm1,[edi+000000D4]
mulss xmm1,[edi+14]
shl eax,08 { 8 }
add eax,edx
movss [esp+24],xmm1
movss xmm5,[edi+eax*4+000000D8]
mov eax,[edi+24]
mulss xmm5,[edi+10]
sub eax,00 { 0 }
je SpaceEngine.exe+2179FE
sub eax,01 { 1 }
je SpaceEngine.exe+217A02
sub eax,01 { 1 }
jne SpaceEngine.exe+217A0E
mulss xmm5,xmm3
addss xmm5,xmm6
movss [esp+1C],xmm5
jmp SpaceEngine.exe+217A14
movss xmm5,[esp+1C]
movaps xmm0,xmm5
subss xmm0,[edi+000000BC]
comiss xmm0,[esp+28]
ja SpaceEngine.exe+217F48
lea eax,[ecx-01]
cmp eax,[edi+1C]
jl SpaceEngine.exe+217AA6
cmp eax,[edi+20]
jg SpaceEngine.exe+217AA6
movss [esp+18],xmm7
mov ecx,SpaceEngine.exe+4F90E0 { [00000566] }
movss xmm7,[edi]
addss xmm7,[esp+10]
push SpaceEngine.exe+4FAFA0 { [0.10] }
movss [esp+24],xmm7
call SpaceEngine.exe+1AD420
movss xmm2,[esp+10]
movaps xmm3,xmm5
push ecx
movaps xmm1,xmm6
movss [esp],xmm7
call SpaceEngine.exe+1ACFE0
lea eax,[esp+30]
mov ecx,SpaceEngine.exe+4F90E0 { [00000566] }
push eax
call SpaceEngine.exe+1AD420
movss xmm5,[esp+1C]
movss xmm6,[esp+14]
movss xmm1,[esp+24]
movss xmm7,[esp+10]
movss xmm3,[SpaceEngine.exe+3A7F08] { [0.75] }
mov edx,[esp+2C]
mov eax,[edi+24]
sub eax,00 { 0 }
je SpaceEngine.exe+217AE6
sub eax,01 { 1 }
je SpaceEngine.exe+217AD1
sub eax,01 { 1 }
jne SpaceEngine.exe+217B0A
movaps xmm2,xmm1
movss [esp+18],xmm7
mulss xmm2,xmm3
addss xmm2,xmm7
movss [esp+20],xmm2
jmp SpaceEngine.exe+217B10
movaps xmm2,xmm1
movss [esp+18],xmm7
addss xmm2,xmm7
movss [esp+20],xmm2
jmp SpaceEngine.exe+217B10
movaps xmm0,xmm1
movaps xmm2,xmm1
mulss xmm0,[SpaceEngine.exe+3A7D3C] { [0.25] }
addss xmm2,xmm7
addss xmm0,xmm7
movss [esp+20],xmm2
movss [esp+18],xmm0
jmp SpaceEngine.exe+217B10
movss xmm2,[esp+20]
mov ecx,[edi+000000D0]
mov eax,ecx
shl eax,08 { 8 }
add edx,eax
movss xmm1,[edi+ecx*4+000018D8]
mov cl,[esp+0F]
movss xmm4,[edi+edx*4+00000CD8]
mov al,cl
movss xmm3,[edi+edx*4+000000D8]
and al,0F { 15 }
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
movzx eax,al
shr cl,04 { 4 }
mulss xmm4,xmm1
movd xmm0,eax
movzx eax,cl
cvtdq2ps xmm0,xmm0
movd xmm7,eax
mulss xmm0,[SpaceEngine.exe+3A7C14] { [0.06] }
mov eax,[edx+14]
cvtdq2ps xmm7,xmm7
addss xmm4,xmm0
mulss xmm3,xmm1
mulss xmm7,[SpaceEngine.exe+3A7C14] { [0.06] }
addss xmm3,xmm4
movaps xmm1,xmm7
addss xmm1,[SpaceEngine.exe+3A7C14] { [0.06] }
cmp eax,[edx+10]
jnl SpaceEngine.exe+217C20
movss xmm0,[esp+18]
movss [SpaceEngine.exe+4FCE24],xmm0 { [538.00] }
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm4
movss [SpaceEngine.exe+4FCE20],xmm6 { [331.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm7
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
mov eax,[edx+14]
cmp eax,[edx+10]
jnl SpaceEngine.exe+217CB8
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm4
movss [SpaceEngine.exe+4FCE20],xmm6 { [331.00] }
movss [SpaceEngine.exe+4FCE24],xmm2 { [538.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm1
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
mov eax,[edx+14]
cmp eax,[edx+10]
jnl SpaceEngine.exe+217D50
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm3
movss [SpaceEngine.exe+4FCE20],xmm5 { [331.00] }
movss [SpaceEngine.exe+4FCE24],xmm2 { [538.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm1
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,[SpaceEngine.exe+3A9028] { [32767.00] }
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
mov eax,[edx+14]
cmp eax,[edx+10]
jnl SpaceEngine.exe+217DEA
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm3
movss [SpaceEngine.exe+4FCE24],xmm2 { [538.00] }
movss xmm2,[SpaceEngine.exe+3A9028] { [32767.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
movss [SpaceEngine.exe+4FCE20],xmm5 { [331.00] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm1
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
jmp SpaceEngine.exe+217DF2
movss xmm2,[SpaceEngine.exe+3A9028] { [32767.00] }
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
movss xmm1,[esp+18]
mov eax,[edx+14]
cmp eax,[edx+10]
jnl SpaceEngine.exe+217E84
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm3
movss [SpaceEngine.exe+4FCE20],xmm5 { [331.00] }
movss [SpaceEngine.exe+4FCE24],xmm1 { [538.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm7
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
mov edx,[SpaceEngine.exe+4FCF18] { [0134CE40] }
mov eax,[edx+14]
cmp eax,[edx+10]
jnl SpaceEngine.exe+217F10
movss xmm0,[SpaceEngine.exe+5D4D7C] { [0.25] }
mulss xmm0,xmm4
movss [SpaceEngine.exe+4FCE20],xmm6 { [331.00] }
movss [SpaceEngine.exe+4FCE24],xmm1 { [538.00] }
addss xmm0,[SpaceEngine.exe+5D4D74] { [0.50] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
movss xmm0,[SpaceEngine.exe+5D4D80] { [0.25] }
mulss xmm0,xmm7
mov [SpaceEngine.exe+4FCE28],ax { [77FF0FFF] }
addss xmm0,[SpaceEngine.exe+5D4D78] { [0.50] }
mulss xmm0,xmm2
cvttss2si eax,xmm0
mov [SpaceEngine.exe+4FCE2A],ax { [255] }
mov eax,[edx+14]
movups xmm0,[SpaceEngine.exe+4FCE20] { [331.00] }
lea ecx,[eax+eax*2]
mov eax,[edx+1C]
movups [eax+ecx*8],xmm0
movq xmm0,[SpaceEngine.exe+4FCE30] { [02A10566] }
movq [eax+ecx*8+10],xmm0
mov eax,[SpaceEngine.exe+4FCF18] { [0134CE40] }
inc [eax+14]
movaps xmm6,xmm5
movss xmm7,[esp+10]
movss [esp+14],xmm6
movss xmm4,[SpaceEngine.exe+3A8E34] { [255.00] }
movss xmm1,[SpaceEngine.exe+3A7E44] { [0.50] }
movss xmm3,[SpaceEngine.exe+3A7F08] { [0.75] }
mov al,[esi]
mov edx,[ebp+08]
mov [esp+0F],al
test al,al
jne SpaceEngine.exe+217670
pop edi
pop esi
mov esp,ebp
pop ebp
ret 0008 { 8 }
// push ebp
// mov ebp,esp
// and esp,-10
{
// ORIGINAL CODE - INJECTION POINT: "SpaceEngine.exe"+217580
"SpaceEngine.exe"+21756F: F3 0F 5C C4 - subss xmm0,xmm4
"SpaceEngine.exe"+217573: F3 0F 11 06 - movss [esi],xmm0
"SpaceEngine.exe"+217577: 5E - pop esi
"SpaceEngine.exe"+217578: 8B E5 - mov esp,ebp
"SpaceEngine.exe"+21757A: 5D - pop ebp
"SpaceEngine.exe"+21757B: C3 - ret
"SpaceEngine.exe"+21757C: CC - int 3
"SpaceEngine.exe"+21757D: CC - int 3
"SpaceEngine.exe"+21757E: CC - int 3
"SpaceEngine.exe"+21757F: CC - int 3
// ---------- INJECTING HERE ----------
"SpaceEngine.exe"+217580: 55 - push ebp
"SpaceEngine.exe"+217581: 8B EC - mov ebp,esp
"SpaceEngine.exe"+217583: 83 E4 F0 - and esp,-10
// ---------- DONE INJECTING ----------
"SpaceEngine.exe"+217586: 83 EC 48 - sub esp,48
"SpaceEngine.exe"+217589: 80 7D 0C 00 - cmp byte ptr [ebp+0C],00
"SpaceEngine.exe"+21758D: 56 - push esi
"SpaceEngine.exe"+21758E: 57 - push edi
"SpaceEngine.exe"+21758F: F3 0F 11 5C 24 28 - movss [esp+28],xmm3
"SpaceEngine.exe"+217595: 8B F9 - mov edi,ecx
"SpaceEngine.exe"+217597: F3 0F 11 54 24 24 - movss [esp+24],xmm2
"SpaceEngine.exe"+21759D: 74 2A - je SpaceEngine.exe+2175C9
"SpaceEngine.exe"+21759F: 8B 87 D0 00 00 00 - mov eax,[edi+000000D0]
"SpaceEngine.exe"+2175A5: F3 0F 11 8F BC 00 00 00 - movss [edi+000000BC],xmm1
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>23</ID>
<Description>"循环头部分"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : SpaceEngine.exe
Version:
Date : 2018-05-08
Author : cdkey
This script does blah blah blah
}
//SpaceEngine.exe+1BAC10 切换语言
//SpaceEngine.exe+217669 循环头
//SpaceEngine.exe+1907C5 函数入口
define(address,"SpaceEngine.exe"+217669)
define(bytes,0F 1F 80 00 00 00 00 46 8B CE 89 74 24 24 2B CA 0F B6 D0 89 54 24 2C 8D 42 FF)
//
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
//assert(address,bytes)
address:
label(loop)
//nop
nop
nop
//db 0F 1F 00
loop:
push esi
call zlib1.Decode
mov esi,eax
mov ecx,esi
mov [esp+24],esi
sub ecx,[ebp+08]
mov [esp+2C],edx
"SpaceEngine.exe"+217F37:
mov al,[esi]
mov ebx,[ebp+08]
mov [esp+0F],al
test al,al
jne loop
pop edi
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
address:
db bytes
// nop [eax+00000000]
"SpaceEngine.exe"+217F37:
db 8A 06 8B 55 08 88 44 24 0F 84 C0 0F 85 28 F7 FF FF 5F 5E 8B E5 5D C2 08 00
{
// ORIGINAL CODE - INJECTION POINT: "SpaceEngine.exe"+217669
"SpaceEngine.exe"+217637: 0F 11 44 24 34 - movups [esp+34],xmm0
"SpaceEngine.exe"+21763C: E8 DF 5D F9 FF - call SpaceEngine.exe+1AD420
"SpaceEngine.exe"+217641: 8B D6 - mov edx,esi
"SpaceEngine.exe"+217643: 8A 02 - mov al,[edx]
"SpaceEngine.exe"+217645: 88 44 24 0F - mov [esp+0F],al
"SpaceEngine.exe"+217649: 84 C0 - test al,al
"SpaceEngine.exe"+21764B: 0F 84 F7 08 00 00 - je SpaceEngine.exe+217F48
"SpaceEngine.exe"+217651: F3 0F 10 0D 44 7E BD 00 - movss xmm1,[SpaceEngine.exe+3A7E44]
"SpaceEngine.exe"+217659: F3 0F 10 1D 08 7F BD 00 - movss xmm3,[SpaceEngine.exe+3A7F08]
"SpaceEngine.exe"+217661: F3 0F 10 25 34 8E BD 00 - movss xmm4,[SpaceEngine.exe+3A8E34]
// ---------- INJECTING HERE ----------
"SpaceEngine.exe"+217669: 0F 1F 80 00 00 00 00 - nop [eax+00000000]
// ---------- DONE INJECTING ----------
"SpaceEngine.exe"+217670: 46 - inc esi
"SpaceEngine.exe"+217671: 8B CE - mov ecx,esi
"SpaceEngine.exe"+217673: 89 74 24 24 - mov [esp+24],esi
"SpaceEngine.exe"+217677: 2B CA - sub ecx,edx
"SpaceEngine.exe"+217679: 0F B6 D0 - movzx edx,al
"SpaceEngine.exe"+21767C: 89 54 24 2C - mov [esp+2C],edx
"SpaceEngine.exe"+217680: 8D 42 FF - lea eax,[edx-01]
"SpaceEngine.exe"+217683: 83 F8 0E - cmp eax,0E
"SpaceEngine.exe"+217686: 0F 87 34 03 00 00 - ja SpaceEngine.exe+2179C0
"SpaceEngine.exe"+21768C: FF 24 85 50 7F A4 00 - jmp dword ptr [eax*4+SpaceEngine.exe+217F50]
}
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>28</ID>
<Description>"测试修补"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : SpaceEngine.exe
Version:
Date : 2018-05-08
Author : cdkey
This script does blah blah blah
}
//SpaceEngine.exe+217B26
define(address,"SpaceEngine.exe"+217B26)
define(bytes,8A 4C 24 0F F3 0F 10 A4 97 D8 0C 00 00)
[ENABLE]
assert(address,bytes)
address:
mov ecx,edx
nop
nop
[DISABLE]
address:
db bytes
// mov cl,[esp+0F]
// movss xmm4,[edi+edx*4+00000CD8]
{
// ORIGINAL CODE - INJECTION POINT: "SpaceEngine.exe"+217B26
"SpaceEngine.exe"+217AF8: F3 0F 58 C7 - addss xmm0,xmm7
"SpaceEngine.exe"+217AFC: F3 0F 11 54 24 20 - movss [esp+20],xmm2
"SpaceEngine.exe"+217B02: F3 0F 11 44 24 18 - movss [esp+18],xmm0
"SpaceEngine.exe"+217B08: EB 06 - jmp SpaceEngine.exe+217B10
"SpaceEngine.exe"+217B0A: F3 0F 10 54 24 20 - movss xmm2,[esp+20]
"SpaceEngine.exe"+217B10: 8B 8F D0 00 00 00 - mov ecx,[edi+000000D0]
"SpaceEngine.exe"+217B16: 8B C1 - mov eax,ecx
"SpaceEngine.exe"+217B18: C1 E0 08 - shl eax,08
"SpaceEngine.exe"+217B1B: 01 C2 - add edx,eax
"SpaceEngine.exe"+217B1D: F3 0F 10 8C 8F D8 18 00 00 - movss xmm1,[edi+ecx*4+000018D8]
// ---------- INJECTING HERE ----------
"SpaceEngine.exe"+217B26: 8A 4C 24 0F - mov cl,[esp+0F]
"SpaceEngine.exe"+217B2A: F3 0F 10 A4 97 D8 0C 00 00 - movss xmm4,[edi+edx*4+00000CD8]
// ---------- DONE INJECTING ----------
"SpaceEngine.exe"+217B33: 88 C8 - mov al,cl
"SpaceEngine.exe"+217B35: F3 0F 10 9C 97 D8 00 00 00 - movss xmm3,[edi+edx*4+000000D8]
"SpaceEngine.exe"+217B3E: 24 0F - and al,0F
"SpaceEngine.exe"+217B40: 8B 15 18 CF 34 01 - mov edx,[SpaceEngine.exe+4FCF18]
"SpaceEngine.exe"+217B46: 0F B6 C0 - movzx eax,al
"SpaceEngine.exe"+217B49: C0 E9 04 - shr cl,04
"SpaceEngine.exe"+217B4C: F3 0F 59 E1 - mulss xmm4,xmm1
"SpaceEngine.exe"+217B50: 66 0F 6E C0 - movd xmm0,eax
"SpaceEngine.exe"+217B54: 0F B6 C1 - movzx eax,cl
"SpaceEngine.exe"+217B57: 0F 5B C0 - cvtdq2ps xmm0,xmm0
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>27</ID>
<Description>"循环部分-方案3"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : SpaceEngine.exe
Version:
Date : 2018-05-08
Author : cdkey
This script does blah blah blah
}
//SpaceEngine.exe+1BAC10 切换语言
//SpaceEngine.exe+217669 循环头
//SpaceEngine.exe+217580 函数入口
//SpaceEngine.exe+217F37 循环尾
define(address,"SpaceEngine.exe"+217641)
//
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat