-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBorderlands3 2.CT
1573 lines (1395 loc) · 54.7 KB
/
Borderlands3 2.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="29">
<Forms>
<Info Class="TCEForm" Encoding="Ascii85">b($/Y!ax+-,YT?-KMR-cd..PtNF$M0q[K@z2e]BohZ%BbfUxty-1#nsolCb*TUun^=%w2^bG}}Hp5vtP[=D+O^aE3.HIXaTieP2PyW4pHp5:yoyChW]@5L^!]O?U%)^0{go:NI65eg2^@hOGofRlxiy4Roc/e(_#ry#cu4cW$UB_D^czq*UXd)}e1]mxfyxTaSdHQP)T0xGl?fP+Ag]-x1Mej72QRGTN+0Xn]#kC[A!6anQ[KH!m;_5*.S/b.oIcVv{fwzaM[nC}LB2ZUuqdN#VmJznCX;!*l!D.}Ek77b2etw@M?D!:LPtIBsz]J4ahOUyw4=acL*k{!z41U+a*a,ztjQ{^aFn4!HND]_ZH8Q5_r#Ubb;3sgebRy6Hu^Q[wCf^8zLegYyf3}eca9V3vL$t_=w1QvU:HAYE46u[^iC%YQoyDsUyir#xX+Hj8[tfF544a1ya0;+3g%JroFxnORPT${w1</Info>
</Forms>
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"[ Enable ]"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<Color>000080</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">[ENABLE]
aobscanmodule( retGetGamePlayers, Borderlands3.exe, 488B00488B004885C074??488B40??4885C074??48 )
registersymbol( retGetGamePlayers )
label( retGetGamePlayers_o )
registersymbol( retGetGamePlayers_o )
alloc( Hook, 0x1000, Borderlands3.exe )
label( LocalPlayer )
registersymbol( LocalPlayer )
label( OakPlayerController )
registersymbol( OakPlayerController )
label( OakDeveloperPerks )
registersymbol( OakDeveloperPerks )
Hook:
retGetGamePlayers_o:
readmem( retGetGamePlayers, 6 )
mov [LocalPlayer],rax
mov rcx,[rax+30]
test rcx,rcx
je short @f
mov [OakPlayerController],rcx
mov rcx,[rcx+488] // if OakCharacter valid (we're in game world)
test rcx,rcx
je short @f
mov rcx,[rax+30] // get OakPlayerController back
mov rcx,[rcx+1988] // offset to OakDeveloperPerks
test rcx,rcx // check if not NULL first
je short @f
mov [OakDeveloperPerks],rcx // store it
test byte ptr [rcx+C8],40 // flip UWorld_destroy bool
jne short @f
or byte ptr [rcx+C8],40
@@:
jmp retGetGamePlayers+6
align 10 CC
LocalPlayer:
dq 0
align 10 CC
OakPlayerController:
dq 0
align 10 CC
OakDeveloperPerks:
dq 0
retGetGamePlayers:
jmp Hook
db 90
[DISABLE]
retGetGamePlayers:
readmem( retGetGamePlayers_o, 6 )
unregistersymbol( OakDeveloperPerks )
unregistersymbol( OakPlayerController )
unregistersymbol( LocalPlayer )
dealloc( Hook )
unregistersymbol( retGetGamePlayers_o )
unregistersymbol( retGetGamePlayers )
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>6</ID>
<Description>"Restore 'god', 'playersonly', 'fly', 'ghost', 'walk'"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">{$STRICT}
{$lua}
if syntaxcheck then return end
[ENABLE]
local gameProcess = "Borderlands3.exe"
local gameModule = getAddress( gameProcess )
autoAssemble([[
alloc( ReCode, 0x1000, Borderlands3.exe )
registersymbol( ReCode )
label( UCheatManager_PlayersOnly )
registersymbol( UCheatManager_PlayersOnly )
label( UCharacter_ClientCheatWalk_Implementation )
registersymbol( UCharacter_ClientCheatWalk_Implementation )
label( UCharacter_ClientCheatFly_Implementation )
registersymbol( UCharacter_ClientCheatFly_Implementation )
label( UCharacter_ClientCheatGhost_Implementation )
registersymbol( UCharacter_ClientCheatGhost_Implementation )
label( Init )
registersymbol( Init )
label( Init_exit )
label( ConstructUFunctions )
registersymbol( ConstructUFunctions )
label( Z_Construct_UClass_UCheatManager_Statics_FuncInfo )
registersymbol( Z_Construct_UClass_UCheatManager_Statics_FuncInfo )
label( Z_Construct_UFunction_UCheatManager_God )
registersymbol( Z_Construct_UFunction_UCheatManager_God )
label( Z_Construct_UFunction_UCheatManager_Ghost )
registersymbol( Z_Construct_UFunction_UCheatManager_Ghost )
label( Z_Construct_UFunction_UCheatManager_God_Statics_FuncParams )
registersymbol( Z_Construct_UFunction_UCheatManager_God_Statics_FuncParams )
label( Z_Construct_UFunction_UCheatManager_Ghost_Statics_FuncParams )
registersymbol( Z_Construct_UFunction_UCheatManager_Ghost_Statics_FuncParams )
label( UFunction_God )
registersymbol( UFunction_God )
label( UFunction_Ghost )
registersymbol( UFunction_Ghost )
label( pszGod )
label( pszGhost )
label( pszSpawnAwesomeItems )
CreateThread( Init )
ReCode:
UCheatManager_PlayersOnly:
push rdi
sub rsp,20
mov rax,[rcx]
mov rdi,rcx
call qword ptr [rax+148] // UCheatManager::GetWorld
test byte ptr [rax+830],0x80
jne short @f
mov rax,[rdi]
mov rcx,rdi
call qword ptr [rax+148] // UCheatManager::GetWorld
test [rax+830],0x100
jne short @f
mov rax,[rdi]
mov rcx,rdi
mov [rsp+30],rbx
call qword ptr [rax+148] // UCheatManager::GetWorld
mov rdx,[rdi]
mov rcx,rdi
mov rbx,rax
call qword ptr [rdx+148] // UCheatManager::GetWorld
mov ecx,[rbx+830]
mov rbx,[rsp+30]
not ecx
xor ecx,[rax+830]
and ecx,0x100
xor [rax+830],ecx
add rsp,20
pop rdi
ret
@@:
mov rax,[rdi]
mov rcx,rdi
call qword ptr [rax+148] // UCheatManager::GetWorld
mov rcx,rdi
and [rax+830],0xFFFFFF7F
mov rax,[rdi]
call qword ptr [rax+148] // UCheatManager::GetWorld
and [rax+830],0xFFFFFEFF
add rsp,20
pop rdi
ret
align 10 CC
UCharacter_ClientCheatFly_Implementation:
push rbx
sub rsp,20
mov dl,1
mov rbx,rcx
call Borderlands3.exe+1F7F1C0 // AActor::SetActorEnableCollision
mov rax,[rbx+4C8]
test rax,rax
je short @f
or [rax+4B4],400
xor r8d,r8d
mov rcx,[rbx+4C8]
lea edx,[r8+5]
mov rax,[rcx]
add rsp,20
pop rbx
jmp qword ptr [rax+5A0] // UCharacterMovementComponent::SetMovementMode
@@:
add rsp,20
pop rbx
ret
align 10 CC
UCharacter_ClientCheatGhost_Implementation:
push rbx
sub rsp,20
xor edx,edx
mov rbx,rcx
call Borderlands3.exe+1F7F1C0 // AActor::SetActorEnableCollision
mov rax,[rbx+4C8]
test rax,rax
je short @f
or [rax+4B4],400
xor r8d,r8d
mov rcx,[rbx+4C8]
lea edx,[r8+5]
mov rax,[rcx]
add rsp,20
pop rbx
jmp qword ptr [rax+5A0] // UCharacterMovementComponent::SetMovementMode
@@:
add rsp,20
pop rbx
ret
align 10 CC
UCharacter_ClientCheatWalk_Implementation:
push rbx
sub rsp,20
mov dl,1
mov rbx,rcx
call Borderlands3.exe+1F7F1C0 // AActor::SetActorEnableCollision
mov rax,[rbx+4C8]
test rax,rax
je short @f
and [rax+4B4],BFF
xor r8d,r8d
mov rcx,[rbx+4C8]
lea edx,[r8+3]
mov rax,[rcx]
add rsp,20
pop rbx
jmp qword ptr [rax+5A0] // UCharacterMovementComponent::SetMovementMode
@@:
add rsp,20
pop rbx
ret
align 10 CC
Init:
sub rsp,28
xor r9d,r9d
lea r8,[pszSpawnAwesomeItems]
mov rax,[OakPlayerController]
mov rax,[rax+1970]
test rax,rax // if this is NULL by the time the user enables this script, abort
je short Init_exit
mov rdx,[rax+10] // 0x20: BlueprintGeneratedClass BP_DevPerks.BP_DevPerks_C
mov rcx,[Borderlands3.exe+64D6EA0] // 0x10: Class CoreUObject.Function
call Borderlands3.exe+14F9D80 // StaticFindObject
test rax,rax
je short @f
mov dword ptr [rax+88],4020600 // patch UFunction flags
@@:
call ConstructUFunctions
Init_exit:
add rsp,28
ret
align 10 CC
ConstructUFunctions:
sub rsp,178
mov r8d,2 // uint32 NumFunctions
lea rdx,[Z_Construct_UClass_UCheatManager_Statics_FuncInfo] // FClassFunctionLinkInfo* Functions
mov rcx,[Borderlands3.exe+6607640] // Class Engine.CheatManager
call Borderlands3.exe+14785A0 // UClass::CreateLinkAndAddChildFunctionsToMap
add rsp,178
ret
align 10 CC
Z_Construct_UFunction_UCheatManager_God:
sub rsp,28
mov rax,[UFunction_God]
test rax,rax
jne short @f
lea rdx,[Z_Construct_UFunction_UCheatManager_God_Statics_FuncParams]
lea rcx,[UFunction_God]
call Borderlands3.exe+14E7540 // UE4CodeGen_Private::ConstructUFunction
mov rax,[UFunction_God]
@@:
add rsp,28
ret
align 10 CC
Z_Construct_UFunction_UCheatManager_Ghost:
sub rsp,28
mov rax,[UFunction_Ghost]
test rax,rax
jne short @f
lea rdx,[Z_Construct_UFunction_UCheatManager_Ghost_Statics_FuncParams]
lea rcx,[UFunction_Ghost]
call Borderlands3.exe+14E7540 // UE4CodeGen_Private::ConstructUFunction
mov rax,[UFunction_Ghost]
@@:
add rsp,28
ret
align 10 CC
UFunction_God:
dq 0
align 10 CC
UFunction_Ghost:
dq 0
align 10 CC
pszGod:
db 'God',0
align 10 CC
pszGhost:
db 'Ghost',0
align 10 CC
pszSpawnAwesomeItems:
db 'S',0,'p',0,'a',0,'w',0,'n',0,'A',0,'w',0,'e',0,'s',0,'o',0,'m',0,'e',0,'I',0,'t',0,'e',0,'m',0,'s',0,0,0
align 10 CC
Z_Construct_UFunction_UCheatManager_God_Statics_FuncParams:
dq Borderlands3.exe+265A7C0 // 0x00 -> Z_Construct_UClass_UCheatManager
dq pszGod // 0x08
dq 0x45 // 0x10
dq 0 // 0x18
dq 04020600 // 0x20
dq 0 // 0x28
dq 0 // 0x30
dq 0 // 0x38
dq 0
align 10 CC
Z_Construct_UFunction_UCheatManager_Ghost_Statics_FuncParams:
dq Borderlands3.exe+265A7C0 // 0x00 -> Z_Construct_UClass_UCheatManager
dq pszGhost // 0x08
dq 0x45 // 0x10
dq 0 // 0x18
dq 04020600 // 0x20
dq 0 // 0x28
dq 0 // 0x30
dq 0 // 0x38
dq 0
align 10 CC
Z_Construct_UClass_UCheatManager_Statics_FuncInfo:
dq Z_Construct_UFunction_UCheatManager_God // 0x00
dq pszGod // 0x08
dq Z_Construct_UFunction_UCheatManager_Ghost // 0x10
dq pszGhost // 0x18
dq 0
]])
-- might need some Sleep
Sleep( 2000 )
-- restore the execs in God and Ghost UFunctions
local UFunction_God = readQword( getAddressSafe( "UFunction_God" ) )
local UFunction_Ghost = readQword( getAddressSafe( "UFunction_Ghost" ) )
-- UCheatManager::execGod
local UCheatManager_execGod = gameModule + 0x2689790
-- UCheatManager::execGhost
local UCheatManager_execGhost = gameModule + 0x26898D0
writeQword( UFunction_God + 0xB0, UCheatManager_execGod )
writeQword( UFunction_Ghost + 0xB0, UCheatManager_execGhost )
-- patch the UCheatManager functions back in
-- OakPlayerController
local OakPlayerController = readQword( getAddressSafe( "OakPlayerController" ) )
-- OakCheatManager
local OakCheatManager = readQword( OakPlayerController + 0x5A8 )
-- member-functions pointer
local mf_OakCheatManager = readQword( OakCheatManager )
-- UCheatManager::Fly
local UCheatManager_Fly = gameModule + 0x20525D0
-- UCheatManager::Walk
local UCheatManager_Walk = gameModule + 0x2065930
-- UCheatManager::Ghost
local UCheatManager_Ghost = gameModule + 0x2055920
-- UCheatManager::God
local UCheatManager_God = gameModule + 0x2055A30
-- UCheatManager::PlayersOnly
local UCheatManager_PlayersOnly = getAddressSafe( "UCheatManager_PlayersOnly" )
fullAccess( mf_OakCheatManager + 0x2A0, 8 )
writeQword( mf_OakCheatManager + 0x2A0, UCheatManager_Fly )
fullAccess( mf_OakCheatManager + 0x2A8, 8 )
writeQword( mf_OakCheatManager + 0x2A8, UCheatManager_Walk )
fullAccess( mf_OakCheatManager + 0x2B0, 8 )
writeQword( mf_OakCheatManager + 0x2B0, UCheatManager_Ghost )
fullAccess( mf_OakCheatManager + 0x2B8, 8 )
writeQword( mf_OakCheatManager + 0x2B8, UCheatManager_God )
fullAccess( mf_OakCheatManager + 0x2F8, 8 )
writeQword( mf_OakCheatManager + 0x2F8, UCheatManager_PlayersOnly )
-- patch the UOakChararacter ClientCheat functions back in
-- OakCharacter
local OakCharacter = readQword( OakPlayerController + 0x488 )
-- member-functions pointer
local mf_OakCharacter = readQword( OakCharacter )
-- ACharacter::ClientCheatWalk_Implementation
local UCharacter_ClientCheatWalk_Implementation = getAddressSafe( "UCharacter_ClientCheatWalk_Implementation" )
-- ACharacter::ClientCheatFly_Implementation
local UCharacter_ClientCheatFly_Implementation = getAddressSafe( "UCharacter_ClientCheatFly_Implementation" )
-- ACharacter::ClientCheatGhost_Implementation
local UCharacter_ClientCheatGhost_Implementation = getAddressSafe( "UCharacter_ClientCheatGhost_Implementation" )
fullAccess( mf_OakCharacter + 0x928, 8 )
writeQword( mf_OakCharacter + 0x928, UCharacter_ClientCheatWalk_Implementation )
fullAccess( mf_OakCharacter + 0x930, 8 )
writeQword( mf_OakCharacter + 0x930, UCharacter_ClientCheatFly_Implementation )
fullAccess( mf_OakCharacter + 0x938, 8 )
writeQword( mf_OakCharacter + 0x938, UCharacter_ClientCheatGhost_Implementation )
[DISABLE]
{$asm}
unregistersymbol( UFunction_Ghost )
unregistersymbol( UFunction_God )
unregistersymbol( Z_Construct_UFunction_UCheatManager_Ghost_Statics_FuncParams )
unregistersymbol( Z_Construct_UFunction_UCheatManager_God_Statics_FuncParams )
unregistersymbol( Z_Construct_UFunction_UCheatManager_Ghost )
unregistersymbol( Z_Construct_UFunction_UCheatManager_God )
unregistersymbol( Z_Construct_UClass_UCheatManager_Statics_FuncInfo )
unregistersymbol( ConstructUFunctions )
unregistersymbol( UCharacter_ClientCheatGhost_Implementation )
unregistersymbol( UCharacter_ClientCheatFly_Implementation )
unregistersymbol( UCharacter_ClientCheatWalk_Implementation )
unregistersymbol( UCheatManager_PlayersOnly )
dealloc( ReCode )
unregistersymbol( ReCode )
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>11</ID>
<Description>"Infinite Clip Ammo"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">[ENABLE]
aobscanmodule( OnFire, Borderlands3.exe, 40534883EC??488B01488BD948896C24 )
registersymbol( OnFire )
label( OnFire_o )
registersymbol( OnFire_o )
alloc( Hook, 0x1000, Borderlands3.exe )
Hook:
push rax
mov rax,[rcx+1A8] // BPWeap_SR_DAL_C
test rax,rax
jne short @f
mov rax,[rcx+118] // BPWeap_SR_DAL_C
@@:
cmp [rax+4A0],0 // OakCharacter
je short @f
mov rax,[rax+4A8]
mov rax,[rax-8E8] // OakPlayerController
cmp rax,[OakPlayerController]
jne short @f
pop rax
ret // no ammo processing
@@:
pop rax
OnFire_o:
readmem( OnFire, 6 )
jmp OnFire+6
OnFire:
jmp Hook
db 90
[DISABLE]
OnFire:
readmem( OnFire_o, 6 )
dealloc( Hook )
unregistersymbol( OnFire )
unregistersymbol( OnFire_o )
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>13</ID>
<Description>"Rig 'UPlayer::Exec'"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">[ENABLE]
aobscanmodule( hUPlayer_Exec, Borderlands3.exe, 488D4C24??E8????????30C04883C4??415F415E415D5F5E5D5BC3 )
registersymbol( hUPlayer_Exec )
label( hUPlayer_Exec_o )
registersymbol( hUPlayer_Exec_o )
alloc( Hook, 0x1000, Borderlands3.exe )
label( Hook_true )
Hook:
// [ObjectProperty BPCont_Player.BPCont_Player_C.DeveloperPerks + 0x44] = 0x1970
// r14 = OakPlayerController
mov rcx,[r14+1970]
test rcx,rcx
je short @f
mov rax,[rcx]
mov r9,rdi
mov r8,rbp
mov rdx,rsi
call qword ptr [rax+220] // UObject::ProcessConsoleExec
test al,al
jne short Hook_true
hUPlayer_Exec_o:
readmem( hUPlayer_Exec, 5 )
jmp hUPlayer_Exec+5
Hook_true:
jmp hUPlayer_Exec+1B
hUPlayer_Exec:
jmp Hook
[DISABLE]
hUPlayer_Exec:
readmem( hUPlayer_Exec_o, 5 )
dealloc( Hook )
unregistersymbol( hUPlayer_Exec_o )
unregistersymbol( hUPlayer_Exec )
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>16241</ID>
<Description>"Assemble execOpenDebugMenu"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
alloc( execOpenDebugMenu, 0x1000, Borderlands3.exe )
registersymbol( execOpenDebugMenu )
label( szCheatMenuData )
label( szGbxCheatSettings )
label( @L00000001 )
label( @L00000002 )
label( @L00000003 )
label( @L00000004 )
label( @L00000005 )
label( @L00000006 )
execOpenDebugMenu:
mov [rsp+10],rbp
mov [rsp+18],rsi
push rdi
sub rsp,50
mov rax,[rcx]
mov rdi,rcx
call qword ptr [rax+F90]
xor ebp,ebp
mov rsi,rax
mov [rsp+40],rbp
mov [rsp+48],rbp
test rax,rax
je @L00000006
mov rcx,[Borderlands3.exe+63C5F20] // GConfig
test rcx,rcx
je @L00000006
lea rax,[Borderlands3.exe+63D2110] // path to Engine.ini
lea r9,[rsp+40]
mov [rsp+20],rax
lea r8,[szCheatMenuData] // L"CheatMenuData"
lea rdx,[szGbxCheatSettings] // L"GbxCheatSettings"
call Borderlands3.exe+13A37C0 // FConfigCacheIni::GetString
test al,al
je @L00000005
cmp [rsp+48],ebp
mov [rsp+60],rbx
lea rbx,[Borderlands3.exe+3DBFD28]
cmovne rbx,[rsp+40]
call Borderlands3.exe+2C141F0 // GbxUmgMenuData::GetPrivateStaticClass
mov byte ptr [rsp+30],1
xor r9d,r9d
mov [rsp+28],rbp
mov r8,rbx
xor edx,edx
mov [rsp+20],ebp
mov rcx,rax
call Borderlands3.exe+14FA600 // StaticLoadObject
mov rbx,rax
test rax,rax
je short @L00000004
cmp [rax+48],rbp
je short @L00000002
call Borderlands3.exe+2C14140 // GbxUmgMenu::GetPrivateStaticClass
mov rdx,[rbx+48]
mov rcx,rdx
test rdx,rdx
je short @L00000002
@L00000001:
cmp rcx,rax
je short @L00000003
mov rcx,[rcx+30]
test rcx,rcx
jne short @L00000001
@L00000002:
mov rdx,rbp
@L00000003:
mov rcx,[rdi+A68]
call Borderlands3.exe+2BB9D60
test al,al
jne short @L00000004
mov rdx,rbx
mov rcx,rsi
call Borderlands3.exe+2BD4B80
@L00000004:
mov rbx,[rsp+60]
@L00000005:
mov rcx,[rsp+40]
test rcx,rcx
je short @L00000006
call Borderlands3.exe+134A7A0 // FMemory::Free
@L00000006:
mov rbp,[rsp+68]
mov rsi,[rsp+70]
add rsp,50
pop rdi
ret
align 10 CC
szCheatMenuData:
db 'C',0,'h',0,'e',0,'a',0,'t',0,'M',0,'e',0,'n',0,'u',0,'D',0,'a',0,'t',0,'a',0,0,0
align 10 CC
szGbxCheatSettings:
db 'G',0,'b',0,'x',0,'C',0,'h',0,'e',0,'a',0,'t',0,'S',0,'e',0,'t',0,'t',0,'i',0,'n',0,'g',0,'s',0,0,0
[DISABLE]
dealloc( execOpenDebugMenu )
unregistersymbol( execOpenDebugMenu )
</AssemblerScript>
</CheatEntry>
<CheatEntry>
<ID>16225</ID>
<Description>"Item Spawner"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<Color>FF0000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
alloc( UEThread, 0x1000, Borderlands3.exe )
registersymbol( UEThread )
CreateThread( UEThread )
label( UEThreadOff )
registersymbol( UEThreadOff )
label( UEThread_loop )
label( SpawnItem_do )
label( iAmount )
registersymbol( iAmount )
label( ppItemPoolArr )
registersymbol( ppItemPoolArr )
label( pItemPool )
registersymbol( pItemPool )
UEThread:
sub rsp,28
UEThread_loop:
mov rcx,A
call Sleep
cmp [UEThreadOff],1
jne short @f
add rsp,28
mov [UEThreadOff],2
ret
@@:
mov rcx,6E // VK_DECIMAL
call GetAsyncKeyState
test ax,ax
je short @f
call short SpawnItem_do
mov rcx,C8
call Sleep
@@:
jmp short UEThread_loop
align 10 CC
SpawnItem_do:
sub rsp,38
mov r8d,[iAmount] // item amount
lea rdx,[ppItemPoolArr] // pointer to pointer to ItemPoolArr
mov rcx,[OakDeveloperPerks] // UObject
call Borderlands3.exe+BAF140 // SpawnItems_Internal
add rsp,38
ret
align 10 CC
iAmount:
dd 1
align 10 CC
ppItemPoolArr:
dq pItemPool
dd 1 // dwArrSize (expand this to > 1 if you add more items in pItemPool
align 10 CC
pItemPool:
dq 0
dq 0
UEThreadOff:
dd 0
[DISABLE]
{$lua}
if( syntaxcheck == false ) then --actual execution
local starttime = getTickCount()
if readInteger( "UEThreadOff" ) == 0 then --could be 2 already
writeInteger( "UEThreadOff", 1 ) --tell the thread to kill itself
end
while( getTickCount() < starttime + 1000 ) and ( readInteger( "UEThreadOff" ) ~= 2 ) do --wait till it has finished
sleep( 20 )
end
if( getTickCount() > starttime + 1000 ) then --could happen when the window is shown
showMessage( 'Disabling the thread failed!' )
error( 'Thread disabling failed!' )
end
sleep( 1 )
end
{$asm}
unregistersymbol( pItemPool )
unregistersymbol( ppItemPoolArr )
unregistersymbol( iAmount )
unregistersymbol( UEThreadOff )
unregistersymbol( UEThread )
dealloc( UEThread )
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>16226</ID>
<Description>"iAmount"</Description>
<LastState Value="1" RealAddress="13FFD00B0"/>
<Color>FF8080</Color>
<VariableType>4 Bytes</VariableType>
<Address>iAmount</Address>
</CheatEntry>
<CheatEntry>
<ID>16227</ID>
<Description>"pItemPool"</Description>
<LastState Value="0000000063C79DC0" RealAddress="13FFD00D0"/>
<ShowAsHex>1</ShowAsHex>
<Color>FF8080</Color>
<VariableType>8 Bytes</VariableType>
<Address>pItemPool</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>3</ID>
<Description>"[ Debug ]"</Description>
<Options moHideChildren="1"/>
<LastState Value="" RealAddress="00000000"/>
<Color>0080FF</Color>
<GroupHeader>1</GroupHeader>
<CheatEntries>
<CheatEntry>
<ID>1</ID>
<Description>"LocalPlayer"</Description>
<LastState Value="000000005FC7C800" RealAddress="13FFF0060"/>
<ShowAsHex>1</ShowAsHex>
<Color>8000FF</Color>
<VariableType>8 Bytes</VariableType>
<Address>LocalPlayer</Address>
</CheatEntry>
<CheatEntry>
<ID>2</ID>
<Description>"OakPlayerController"</Description>
<LastState Value="0000000045A3C720" RealAddress="13FFF0070"/>
<ShowAsHex>1</ShowAsHex>
<Color>8000FF</Color>
<VariableType>8 Bytes</VariableType>
<Address>OakPlayerController</Address>
<CheatEntries>
<CheatEntry>
<ID>5</ID>
<Description>"OakCharacter"</Description>
<LastState Value="0000000078A6CCD0" RealAddress="45A3CBA8"/>
<ShowAsHex>1</ShowAsHex>
<Color>8000FF</Color>
<VariableType>8 Bytes</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>488</Offset>
</Offsets>
<CheatEntries>
<CheatEntry>
<ID>9</ID>
<Description>"bGod"</Description>
<LastState Value="C2" RealAddress="78A6CD61"/>
<ShowAsHex>1</ShowAsHex>
<Color>8000FF</Color>
<VariableType>Byte</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>91</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16224</ID>
<Description>"Level"</Description>
<LastState Value="38" RealAddress="4C2A73E4"/>
<Color>8000FF</Color>
<VariableType>4 Bytes</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>1A4</Offset>
<Offset>2A18</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16185</ID>
<Description>"CWeapon"</Description>
<LastState Value="000000006FCF20E0" RealAddress="77F94AE8"/>
<ShowAsHex>1</ShowAsHex>
<Color>8000FF</Color>
<VariableType>8 Bytes</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
<CheatEntries>
<CheatEntry>
<ID>16186</ID>
<Description>"Fire Rate (Calculated)"</Description>
<LastState Value="14.23697948" RealAddress="5996D79C"/>
<Color>8000FF</Color>
<VariableType>Float</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>21C</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16188</ID>
<Description>"Fire Rate"</Description>
<LastState Value="13.20684624" RealAddress="5996D7A0"/>
<Color>8000FF</Color>
<VariableType>Float</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>220</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16221</ID>
<Description>"Bullets To Fire"</Description>
<LastState Value="0" RealAddress="5996D7A8"/>
<Color>8000FF</Color>
<VariableType>4 Bytes</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>228</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16217</ID>
<Description>"Fire Delay (Calculated)"</Description>
<LastState Value="0.3462749422" RealAddress="5996D7B4"/>
<Color>8000FF</Color>
<VariableType>Float</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>234</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16218</ID>
<Description>"Fire Delay"</Description>
<LastState Value="0.3462749422" RealAddress="5996D7B8"/>
<Color>8000FF</Color>
<VariableType>Float</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>238</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16222</ID>
<Description>"dwClipToSpend"</Description>
<LastState Value="1" RealAddress="5996D864"/>
<Color>8000FF</Color>
<VariableType>4 Bytes</VariableType>
<Address>OakPlayerController</Address>
<Offsets>
<Offset>2E4</Offset>
<Offset>470</Offset>
<Offset>8</Offset>
<Offset>1508</Offset>
<Offset>488</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>16190</ID>
<Description>"Damage (Calculated)"</Description>
<LastState Value="136.0813141" RealAddress="5996D89C"/>
<Color>8000FF</Color>
<VariableType>Float</VariableType>
<Address>OakPlayerController</Address>
<Offsets>