-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathdump.a
593 lines (556 loc) · 13.3 KB
/
dump.a
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
start_func:
push rbp
sub rsp, 0x1a0
// artificially add copy data process
xor rax, rax
lea r9, [rsp+0xd0]
mov r10, rcx
copyloop:
cmp eax, 0x26
jge start
mov bl, BYTE ptr [r10]
mov BYTE ptr [r9], bl
add r9, 0x1
add r10, 0x1
add eax, 0x1
start:
xor rsi, rsi
lea r10, [rsp+0xd0]
lea rbx, [rsp+0x50]
lea r14, [rsp+0x48]
add r10, 0x5
mov qword ptr [rbx], r10
mov dword ptr [r14], 0x0
lec:
cmp DWORD PTR [rsp+0x48], 0x4
jge l185
mov DWORD PTR [rsp+0x44], 0x0
lff:
cmp DWORD PTR [rsp+0x44], 0x2
jge l174
lea rdx, [rsp+0x48]
lea r15, [rsp+0x70]
// call 0x39f
l470:
push r14
push r13
push rbx
push rax
sub rsp, 0x28
mov r10, r15
jmp l48a
l48a:
mov r14d, DWORD PTR [rdx]
mov edx, 0x4
mov r15d, edx
// mov rdx, QWORD PTR [rip+0x1dac] # 0x1dd8
// call rdx
push rcx
mov rcx, r15
mov r9, r14
shl r9, cl
pop rcx
//
mov edx, 0x55aa00ff
mov r14d, edx
mov r15d, r9d
// mov rdx, QWORD PTR [rip+0x1dd8] # 0x1e18
// call rdx
mov r9, r14
xor r9, r15
//
mov QWORD PTR [r10], r9
jmp l47f
l47f:
add rsp, 0x28
pop rax
pop rbx
pop r13
pop r14
jmp lret1
//
lret1:
mov r10, QWORD PTR [rsp+0x70]
//mov rsi, QWORD PTR [rip+0x20af] # 0x20ff
lea rbx, [rsp+0x50]
lea r14, [rsp+0x44]
lea rax, [rsp+0xc0]
lea rcx, [rsp+0xa0]
lea rdx, [rsp+0x64]
// call rsi
movsxd rsi, r10d
mov rdi, rsi
sar rdi, 0x3f
mov QWORD PTR [rax], rsi
mov QWORD PTR [rax+0x8], rdi
mov rax, QWORD PTR [rbx]
mov QWORD PTR [rcx], rax
mov eax, DWORD PTR [r14]
mov DWORD PTR [rdx], eax
//
mov r11, QWORD PTR [rsp+0xc0]
mov r13, QWORD PTR [rsp+0xc8]
mov r15, QWORD PTR [rsp+0xa0]
mov r14d, DWORD PTR [rsp+0x64]
//mov rax, QWORD PTR [rip+0x20aa] # 0x213f
// call rax
push rdx
movsxd rsi, r14d
shl rsi, 0x4
mov rax, QWORD PTR [r15+rsi*1]
mov rdi, QWORD PTR [r15+rsi*1+0x8]
mov rbx, rax
imul rbx, r13
mul r11
add rdx, rbx
imul rdi, r11
add rdx, rdi
mov QWORD PTR [r15+rsi*1], rax
mov QWORD PTR [r15+rsi*1+0x8], rdx
pop rdx
//
lea r10, [rsp+0x44]
// call 0x3ef
push r15
push r13
sub rsp, 0x28
mov r14d, dword ptr [r10]
mov ebx, 0x1
mov r13d, ebx
// call libs12
mov rbx, r14
add rbx, r13
//
mov dword ptr [r10], ebx
add rsp, 0x28
pop r13
pop r15
//
jmp lff
l174:
jmp l176
l176:
lea r10, [rsp+0x48]
// call 0x41f
push r15
push r13
sub rsp, 0x28
mov r14d, DWORD PTR [r10]
mov ebx, 0x1
mov r13d, ebx
// call lib12-YAHP
mov rbx, r14
add rbx, r13
//
MOV dword ptr [R10 ],EBX
add rsp, 0x28
pop r13
pop r15
//
jmp lec
l185:
mov DWORD PTR [rsp+0x40], 0x0
l18d:
cmp DWORD PTR [rsp+0x40], 0x4
jge l1d2
//mov rcx, QWORD PTR [rip+0x2055] # 0x211f
lea r10, [rsp+0x50]
lea rbx, [rsp+0x40]
lea r14, [rsp+0x78]
lea rax, [rsp+0x80]
// call rcx
mov r8, QWORD PTR [r10]
movsxd rsi, DWORD PTR [rbx]
mov rdi, rsi
shl rdi, 0x3
mov rdx, r8
add rdx, rdi
mov QWORD PTR [r14], rdx
mov rdx, QWORD PTR [r8+rsi*8]
mov QWORD PTR [rax], rdx
//
mov rdx, QWORD PTR [rsp+0x78]
mov r10, QWORD PTR [rsp+0x80]
// call 0x62f-1700
push r15
push r13
push rax
sub rsp, 0x20
movabs r15, 0x7a026655fd263677
mov r14, r10
// call r8
mov r9, r14
xor r9, r15
//
mov QWORD PTR [rdx], r9
add rsp, 0x20
pop rax
pop r13
pop r15
//
lea rax, [rsp+0x40]
// call 0x44f
push r12
push rdx
sub rsp, 0x28
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
// call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x28
pop rdx
pop r12
//
jmp l18d
l1d2:
mov DWORD PTR [rsp+0x3c], 0x0
l1da:
cmp DWORD PTR [rsp+0x3c], 0x4
jge l271
mov DWORD PTR [rsp+0x38], 0x0
l1ed:
cmp DWORD PTR [rsp+0x38], 0x8
jge l260
lea r14, [rsp+0x3c]
lea r13, [rsp+0x88]
// call 0x47f
push rcx
push r11
push rdi
push rax
sub rsp, 0x28
mov rdx, r13
mov r14d, DWORD PTR [r14]
mov ecx, 0x2
mov r15d, ecx
//mov rcx, QWORD PTR [rip+0x1cce] # 0x1ce0
//call rcx
push rcx
mov rcx, r15
mov r9, r14
shl r9, cl
pop rcx
//
mov ecx, 0xdeadbeef
mov r14d, ecx
mov r15d, r9d
//mov rcx, QWORD PTR [rip+0x1cfa] # 0x1d20
//call rcx
mov r9, r14
xor r9, r15
//
mov QWORD PTR [rdx], r9
add rsp, 0x28
pop rax
pop rdi
pop r11
pop rcx
//
mov r13, QWORD PTR [rsp+0x88]
//mov rax, QWORD PTR [rip+0x1fab] # 0x20ef
lea r10, [rsp+0x50]
lea r14, [rsp+0x38]
lea r15, [rsp+0x68]
lea rcx, [rsp+0xa8]
lea rdx, [rsp+0xb0]
// call rax
mov DWORD PTR [r15], r13d
mov rsi, QWORD PTR [r10]
mov QWORD PTR [rcx], rsi
movsxd rsi, DWORD PTR [r14]
mov QWORD PTR [rdx], rsi
//
mov r13d, DWORD PTR [rsp+0x68]
mov r14, QWORD PTR [rsp+0xa8]
mov r15, QWORD PTR [rsp+0xb0]
//mov rax, QWORD PTR [rip+0x1fde] # 0x215f
// call rax
imul r13d, DWORD PTR [r14+r15*4]
mov DWORD PTR [r14+r15*4], r13d
//
lea r14, [rsp+0x38]
// call 0x4cf
push rax
sub rsp, 0x20
mov rax, r14
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
// mov rbx, QWORD PTR [rip+0x1cb6] # 0x1cc8
// call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x20
pop rax
//
jmp l1ed
l260:
jmp l262
l262:
lea rdx, [rsp+0x3c]
// call 0x4ff
push r14
push r13
push rbx
push rax
sub rsp, 0x28
mov rax, rdx
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
//mov rbx, QWORD PTR [rip+0x1c7c] # 0x1c8e
//call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x28
pop rax
pop rbx
pop r13
pop r14
//
jmp l1da
l271:
mov DWORD PTR [rsp+0x34], 0x0
l279:
cmp DWORD PTR [rsp+0x34], 0x10
jge l2be
// mov rax, QWORD PTR [rip+0x1f29] # 0x20df
lea rdx, [rsp+0x50]
lea r15, [rsp+0x34]
lea r12, [rsp+0x90]
lea r10, [rsp+0x5c]
// call rax
mov r8, QWORD PTR [rdx]
movsxd rsi, DWORD PTR [r15]
mov rdi, rsi
shl rdi, 1
mov rdx, r8
add rdx, rdi
mov QWORD PTR [r12], rdx
movzx edx, WORD PTR [r8+rsi*2]
mov DWORD PTR [r10], edx
//
mov rbx, QWORD PTR [rsp+0x90]
mov r10d, DWORD PTR [rsp+0x5c]
// call 0x66f
push rcx
push r13
push r11
sub rsp, 0x20
mov rdx, rbx
mov r14d, r10d
mov ecx, 0xcdec
mov r15d, ecx
// mov rcx, QWORD PTR [rip+0x1b1e] # 0x1b30
// call rcx
mov r9, r14
xor r9, r15
//
mov WORD PTR [rdx], r9w
add rsp, 0x20
pop r11
pop r13
pop rcx
//
lea r14, [rsp+0x34]
// call 0x53f
push rax
sub rsp, 0x20
mov rax, r14
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
//mov rbx, QWORD PTR [rip+0x1c46] # 0x1c58
//call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x20
pop rax
//
jmp l279
l2be:
mov DWORD PTR [rsp+0x30], 0x0
l2c6:
cmp DWORD PTR [rsp+0x30], 0x4
jge l3a1
mov DWORD PTR [rsp+0x2c], 0x0
l2d9:
cmp DWORD PTR [rsp+0x2c], 0x20
jge l390
lea r10, [rsp+0x30]
lea rdx, [rsp+0x98]
// call 0x56f
push r15
push r13
push rax
sub rsp, 0x20
mov r14d, DWORD PTR [r10]
mov r8d, 0x1
mov r15d, r8d
// mov r8, QWORD PTR [rip+0x1be0] # 0x1bf3
// call r8
push rcx
mov rcx, r15
mov r9, r14
shl r9, cl
pop rcx
//
mov r8d, 0x21
mov r14d, r8d
mov r15d, r9d
// mov r8, QWORD PTR [rip+0x1c0a] # 0x1c33
// call r8
mov r9, r14
xor r9, r15
//
mov QWORD PTR [rdx], r9
add rsp, 0x20
pop rax
pop r13
pop r15
//
mov rax, QWORD PTR [rsp+0x98]
// mov rbx, QWORD PTR [rip+0x1e9b] # 0x20cf
lea r10, [rsp+0x50]
lea r11, [rsp+0x2c]
lea r15, [rsp+0x6c]
lea rcx, [rsp+0xb8]
lea rdx, [rsp+0x2b]
// call rbx
mov DWORD PTR [r15], eax
mov rax, QWORD PTR [r10]
movsxd rsi, DWORD PTR [r11]
mov rdi, rax
add rdi, rsi
mov QWORD PTR [rcx], rdi
mov al, BYTE PTR [rax+rsi*1]
mov BYTE PTR [rdx], al
//
mov r15d, DWORD PTR [rsp+0x6c]
mov r14, QWORD PTR [rsp+0xb8]
mov al, BYTE PTR [rsp+0x2b]
movzx r13d, al
// mov rax, QWORD PTR [rip+0x1ec1] # 0x212f
lea r12, [rsp+0x30]
// call rax-lib6
movzx edx, r13b
imul edx, r15d
mov BYTE PTR [r14], dl
cmp DWORD PTR [r12], 0x3
je lcmp2
jmp lcmp5
lcmp5:
xor ebx, ebx
jmp lcmp_ret
lcmp2:
mov bl, 0x1
//
lcmp_ret:
test bl, 0x1
jne l34d
jmp l37f
l34d:
// mov rax, QWORD PTR [rip+0x1e8c] # 0x210f
lea r10, [rsp+0x50]
lea rbx, [rsp+0x2c]
lea r14, [rsp+0x60]
// call rax
mov rax, QWORD PTR [r10]
movsxd rdx, DWORD PTR [rbx]
movzx eax, BYTE PTR [rax+rdx*1]
mov DWORD PTR [r14], eax
//
mov r10d, DWORD PTR [rsp+0x60]
lea r13, [rsp+0x2c]
// call 0x6af
// NOTE DATA_HERE
mov r8, QWORD PTR [rip+0x1ae1] # 0x1ae8
movsxd r9, DWORD PTR [r13+0x0]
movzx r8d, BYTE PTR [r8 + r9*0x1]
cmp r10d, r8d
jne lcmp2_782
jmp lcmp2_785
lcmp2_782:
mov bl, 0x1
jmp lcmp2_ret
lcmp2_785:
xor ebx, ebx
//
lcmp2_ret:
test bl, 0x1
jne l37b
jmp l37d
l37b:
jmp l3b7
l37d:
jmp l37f
l37f:
jmp l381
l381:
lea rdx, [rsp+0x2c]
// call 0x5bf
push r14
push r13
push rbx
push rax
sub rsp, 0x28
mov rax, rdx
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
//mov rbx, QWORD PTR [rip+0x1bbc] # 0x1bce
//call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x28
pop rax
pop rbx
pop r13
pop r14
//
jmp l2d9
l390:
jmp l392
l392:
lea rax, [rsp+0x30]
// call 0x5ff
push r12
push rdx
sub rsp, 0x28
mov r14d, DWORD PTR [rax]
mov ebx, 0x1
mov r13d, ebx
//mov rbx, QWORD PTR [rip+0x1b85] # 0x1b97
//call rbx
mov rbx, r14
add rbx, r13
//
mov DWORD PTR [rax], ebx
add rsp, 0x28
pop rdx
pop r12
//
jmp l2c6
l3a1:
// success
mov rax, 1
jmp final_ret
l3b7:
// fail
xor rax, rax
final_ret:
add rsp, 0x1a0
leave
ret