forked from ShokoAnime/ShokoServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSHA1x64.asm
1580 lines (1538 loc) · 40.1 KB
/
SHA1x64.asm
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
; Don't even think of reading this code
; It was automatically generated by sha1-586.pl
; Which is a perl program used to generate the x86 assember for
; any of ELF, a.out, COFF, Win32, ...
; eric <[email protected]>
;
; TITLE sha1-586.asm
; .486
;.model FLAT
;_TEXT$ SEGMENT PAGE 'CODE'
;PUBLIC _sha1_block_asm_data_order
; void sha1_block_host_order (SHA_CTX *c, const void *p,size_t num);
; void sha1_block_data_order (SHA_CTX *c, const void *p,size_t num);
; see http://weblogs.asp.net/oldnewthing/archive/2004/01/14/58579.aspx
; All registers must be preserved across the call, except for
; rax, rcx, rdx, r8, r9, r10, and r11, which are scratch.
; param on rcx, rdx, r8 and r9
; 32 bits : num=[esp+12], p=[esp+8], c=[esp+4]
.code
sha1_block_asm_data_order PROC
push rdi
push rsi
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r9,rcx
; c = rcx
; p = rdx
; num = r8
shl r8, 6
mov r11,rdx
add r8, r11
mov rbp, rcx
mov edx, DWORD PTR 12[rbp]
sub rsp, 120
mov edi, DWORD PTR 16[rbp]
mov ebx, DWORD PTR 8[rbp]
mov QWORD PTR 112[rsp],r8
; First we need to setup the X array
$L000start:
; First, load the words onto the stack in network byte order
mov r12d, DWORD PTR [r11]
mov r13d, DWORD PTR 4[r11]
bswap r12d
bswap r13d
mov r14d, DWORD PTR 8[r11]
mov r15d, DWORD PTR 12[r11]
bswap r14d
bswap r15d
mov r10d, DWORD PTR 16[r11]
mov r8d, DWORD PTR 20[r11]
bswap r10d
bswap r8d
mov eax, DWORD PTR 24[r11]
mov ecx, DWORD PTR 28[r11]
bswap eax
bswap ecx
mov DWORD PTR 24[rsp],eax
mov DWORD PTR 28[rsp],ecx
mov eax, DWORD PTR 32[r11]
mov ecx, DWORD PTR 36[r11]
bswap eax
bswap ecx
mov DWORD PTR 32[rsp],eax
mov DWORD PTR 36[rsp],ecx
mov eax, DWORD PTR 40[r11]
mov ecx, DWORD PTR 44[r11]
bswap eax
bswap ecx
mov DWORD PTR 40[rsp],eax
mov DWORD PTR 44[rsp],ecx
mov eax, DWORD PTR 48[r11]
mov ecx, DWORD PTR 52[r11]
bswap eax
bswap ecx
mov DWORD PTR 48[rsp],eax
mov DWORD PTR 52[rsp],ecx
mov eax, DWORD PTR 56[r11]
mov ecx, DWORD PTR 60[r11]
bswap eax
bswap ecx
mov DWORD PTR 56[rsp],eax
mov DWORD PTR 60[rsp],ecx
; We now have the X array on the stack
; starting at sp-4
;;;;;mov DWORD PTR 132[rsp],esi
$L001shortcut::
;
; Start processing
mov eax, DWORD PTR [r9]
mov ecx, DWORD PTR 4[r9]
; 00_15 0
mov esi, ebx
mov ebp, eax
rol ebp, 5
xor esi, edx
and esi, ecx
add ebp, edi
; mov edi, r12d
xor esi, edx
ror ecx, 2
lea ebp, DWORD PTR 1518500249[r12d*1+ebp]
add ebp, esi
; 00_15 1
mov edi, ecx
mov esi, ebp
rol ebp, 5
xor edi, ebx
and edi, eax
add ebp, edx
; mov edx, r13d
xor edi, ebx
ror eax, 2
lea ebp, DWORD PTR 1518500249[r13d*1+ebp]
add ebp, edi
; 00_15 2
mov edx, eax
mov edi, ebp
rol ebp, 5
xor edx, ecx
and edx, esi
add ebp, ebx
; mov ebx, r14d
xor edx, ecx
ror esi, 2
lea ebp, DWORD PTR 1518500249[r14d*1+ebp]
add ebp, edx
; 00_15 3
mov ebx, esi
mov edx, ebp
rol ebp, 5
xor ebx, eax
and ebx, edi
add ebp, ecx
mov ecx, r15d
xor ebx, eax
ror edi, 2
lea ebp, DWORD PTR 1518500249[ecx*1+ebp]
add ebp, ebx
; 00_15 4
mov ecx, edi
mov ebx, ebp
rol ebp, 5
xor ecx, esi
and ecx, edx
add ebp, eax
mov eax, r10d
xor ecx, esi
ror edx, 2
lea ebp, DWORD PTR 1518500249[eax*1+ebp]
add ebp, ecx
; 00_15 5
mov eax, edx
mov ecx, ebp
rol ebp, 5
xor eax, edi
and eax, ebx
add ebp, esi
mov esi, r8d
xor eax, edi
ror ebx, 2
lea ebp, DWORD PTR 1518500249[esi*1+ebp]
add ebp, eax
; 00_15 6
mov esi, ebx
mov eax, ebp
rol ebp, 5
xor esi, edx
and esi, ecx
add ebp, edi
mov edi, DWORD PTR 24[rsp]
xor esi, edx
ror ecx, 2
lea ebp, DWORD PTR 1518500249[edi*1+ebp]
add ebp, esi
; 00_15 7
mov edi, ecx
mov esi, ebp
rol ebp, 5
xor edi, ebx
and edi, eax
add ebp, edx
mov edx, DWORD PTR 28[rsp]
xor edi, ebx
ror eax, 2
lea ebp, DWORD PTR 1518500249[edx*1+ebp]
add ebp, edi
; 00_15 8
mov edx, eax
mov edi, ebp
rol ebp, 5
xor edx, ecx
and edx, esi
add ebp, ebx
mov ebx, DWORD PTR 32[rsp]
xor edx, ecx
ror esi, 2
lea ebp, DWORD PTR 1518500249[ebx*1+ebp]
add ebp, edx
; 00_15 9
mov ebx, esi
mov edx, ebp
rol ebp, 5
xor ebx, eax
and ebx, edi
add ebp, ecx
mov ecx, DWORD PTR 36[rsp]
xor ebx, eax
ror edi, 2
lea ebp, DWORD PTR 1518500249[ecx*1+ebp]
add ebp, ebx
; 00_15 10
mov ecx, edi
mov ebx, ebp
rol ebp, 5
xor ecx, esi
and ecx, edx
add ebp, eax
mov eax, DWORD PTR 40[rsp]
xor ecx, esi
ror edx, 2
lea ebp, DWORD PTR 1518500249[eax*1+ebp]
add ebp, ecx
; 00_15 11
mov eax, edx
mov ecx, ebp
rol ebp, 5
xor eax, edi
and eax, ebx
add ebp, esi
mov esi, DWORD PTR 44[rsp]
xor eax, edi
ror ebx, 2
lea ebp, DWORD PTR 1518500249[esi*1+ebp]
add ebp, eax
; 00_15 12
mov esi, ebx
mov eax, ebp
rol ebp, 5
xor esi, edx
and esi, ecx
add ebp, edi
mov edi, DWORD PTR 48[rsp]
xor esi, edx
ror ecx, 2
lea ebp, DWORD PTR 1518500249[edi*1+ebp]
add ebp, esi
; 00_15 13
mov edi, ecx
mov esi, ebp
rol ebp, 5
xor edi, ebx
and edi, eax
add ebp, edx
mov edx, DWORD PTR 52[rsp]
xor edi, ebx
ror eax, 2
lea ebp, DWORD PTR 1518500249[edx*1+ebp]
add ebp, edi
; 00_15 14
mov edx, eax
mov edi, ebp
rol ebp, 5
xor edx, ecx
and edx, esi
add ebp, ebx
mov ebx, DWORD PTR 56[rsp]
xor edx, ecx
ror esi, 2
lea ebp, DWORD PTR 1518500249[ebx*1+ebp]
add ebp, edx
; 00_15 15
mov ebx, esi
mov edx, ebp
rol ebp, 5
xor ebx, eax
and ebx, edi
add ebp, ecx
mov ecx, DWORD PTR 60[rsp]
xor ebx, eax
ror edi, 2
lea ebp, DWORD PTR 1518500249[ecx*1+ebp]
add ebx, ebp
; 16_19 16
mov ecx, r14d
mov ebp, edi
xor ecx, r12d
xor ebp, esi
xor ecx, DWORD PTR 32[rsp]
and ebp, edx
ror edx, 2
xor ecx, DWORD PTR 52[rsp]
rol ecx, 1
xor ebp, esi
mov r12d,ecx
lea ecx, DWORD PTR 1518500249[eax*1+ecx]
mov eax, ebx
rol eax, 5
add ecx, ebp
add ecx, eax
; 16_19 17
mov eax, r15d
mov ebp, edx
xor eax, r13d
xor ebp, edi
xor eax, DWORD PTR 36[rsp]
and ebp, ebx
ror ebx, 2
xor eax, DWORD PTR 56[rsp]
rol eax, 1
xor ebp, edi
mov r13d,eax
lea eax, DWORD PTR 1518500249[esi*1+eax]
mov esi, ecx
rol esi, 5
add eax, ebp
add eax, esi
; 16_19 18
mov esi, r10d
mov ebp, ebx
xor esi, r14d
xor ebp, edx
xor esi, DWORD PTR 40[rsp]
and ebp, ecx
ror ecx, 2
xor esi, DWORD PTR 60[rsp]
rol esi, 1
xor ebp, edx
mov r14d,esi
lea esi, DWORD PTR 1518500249[edi*1+esi]
mov edi, eax
rol edi, 5
add esi, ebp
add esi, edi
; 16_19 19
mov edi, r8d
mov ebp, ecx
xor edi, r15d
xor ebp, ebx
xor edi, DWORD PTR 44[rsp]
and ebp, eax
ror eax, 2
xor edi, r12d
rol edi, 1
xor ebp, ebx
mov r15d,edi
lea edi, DWORD PTR 1518500249[edx*1+edi]
mov edx, esi
rol edx, 5
add edi, ebp
add edi, edx
; 20_39 20
mov ebp, esi
mov edx, r10d
ror esi, 2
xor edx, DWORD PTR 24[rsp]
xor ebp, eax
xor edx, DWORD PTR 48[rsp]
xor ebp, ecx
xor edx, r13d
rol edx, 1
add ebp, ebx
mov r10d,edx
mov ebx, edi
rol ebx, 5
lea edx, DWORD PTR 1859775393[ebp*1+edx]
add edx, ebx
; 20_39 21
mov ebp, edi
mov ebx, r8d
ror edi, 2
xor ebx, DWORD PTR 28[rsp]
xor ebp, esi
xor ebx, DWORD PTR 52[rsp]
xor ebp, eax
xor ebx, r14d
rol ebx, 1
add ebp, ecx
mov r8d,ebx
mov ecx, edx
rol ecx, 5
lea ebx, DWORD PTR 1859775393[ebp*1+ebx]
add ebx, ecx
; 20_39 22
mov ebp, edx
mov ecx, DWORD PTR 24[rsp]
ror edx, 2
xor ecx, DWORD PTR 32[rsp]
xor ebp, edi
xor ecx, DWORD PTR 56[rsp]
xor ebp, esi
xor ecx, r15d
rol ecx, 1
add ebp, eax
mov DWORD PTR 24[rsp],ecx
mov eax, ebx
rol eax, 5
lea ecx, DWORD PTR 1859775393[ebp*1+ecx]
add ecx, eax
; 20_39 23
mov ebp, ebx
mov eax, DWORD PTR 28[rsp]
ror ebx, 2
xor eax, DWORD PTR 36[rsp]
xor ebp, edx
xor eax, DWORD PTR 60[rsp]
xor ebp, edi
xor eax, r10d
rol eax, 1
add ebp, esi
mov DWORD PTR 28[rsp],eax
mov esi, ecx
rol esi, 5
lea eax, DWORD PTR 1859775393[ebp*1+eax]
add eax, esi
; 20_39 24
mov ebp, ecx
mov esi, DWORD PTR 32[rsp]
ror ecx, 2
xor esi, DWORD PTR 40[rsp]
xor ebp, ebx
xor esi, r12d
xor ebp, edx
xor esi, r8d
rol esi, 1
add ebp, edi
mov DWORD PTR 32[rsp],esi
mov edi, eax
rol edi, 5
lea esi, DWORD PTR 1859775393[ebp*1+esi]
add esi, edi
; 20_39 25
mov ebp, eax
mov edi, DWORD PTR 36[rsp]
ror eax, 2
xor edi, DWORD PTR 44[rsp]
xor ebp, ecx
xor edi, r13d
xor ebp, ebx
xor edi, DWORD PTR 24[rsp]
rol edi, 1
add ebp, edx
mov DWORD PTR 36[rsp],edi
mov edx, esi
rol edx, 5
lea edi, DWORD PTR 1859775393[ebp*1+edi]
add edi, edx
; 20_39 26
mov ebp, esi
mov edx, DWORD PTR 40[rsp]
ror esi, 2
xor edx, DWORD PTR 48[rsp]
xor ebp, eax
xor edx, r14d
xor ebp, ecx
xor edx, DWORD PTR 28[rsp]
rol edx, 1
add ebp, ebx
mov DWORD PTR 40[rsp],edx
mov ebx, edi
rol ebx, 5
lea edx, DWORD PTR 1859775393[ebp*1+edx]
add edx, ebx
; 20_39 27
mov ebp, edi
mov ebx, DWORD PTR 44[rsp]
ror edi, 2
xor ebx, DWORD PTR 52[rsp]
xor ebp, esi
xor ebx, r15d
xor ebp, eax
xor ebx, DWORD PTR 32[rsp]
rol ebx, 1
add ebp, ecx
mov DWORD PTR 44[rsp],ebx
mov ecx, edx
rol ecx, 5
lea ebx, DWORD PTR 1859775393[ebp*1+ebx]
add ebx, ecx
; 20_39 28
mov ebp, edx
mov ecx, DWORD PTR 48[rsp]
ror edx, 2
xor ecx, DWORD PTR 56[rsp]
xor ebp, edi
xor ecx, r10d
xor ebp, esi
xor ecx, DWORD PTR 36[rsp]
rol ecx, 1
add ebp, eax
mov DWORD PTR 48[rsp],ecx
mov eax, ebx
rol eax, 5
lea ecx, DWORD PTR 1859775393[ebp*1+ecx]
add ecx, eax
; 20_39 29
mov ebp, ebx
mov eax, DWORD PTR 52[rsp]
ror ebx, 2
xor eax, DWORD PTR 60[rsp]
xor ebp, edx
xor eax, r8d
xor ebp, edi
xor eax, DWORD PTR 40[rsp]
rol eax, 1
add ebp, esi
mov DWORD PTR 52[rsp],eax
mov esi, ecx
rol esi, 5
lea eax, DWORD PTR 1859775393[ebp*1+eax]
add eax, esi
; 20_39 30
mov ebp, ecx
mov esi, DWORD PTR 56[rsp]
ror ecx, 2
xor esi, r12d
xor ebp, ebx
xor esi, DWORD PTR 24[rsp]
xor ebp, edx
xor esi, DWORD PTR 44[rsp]
rol esi, 1
add ebp, edi
mov DWORD PTR 56[rsp],esi
mov edi, eax
rol edi, 5
lea esi, DWORD PTR 1859775393[ebp*1+esi]
add esi, edi
; 20_39 31
mov ebp, eax
mov edi, DWORD PTR 60[rsp]
ror eax, 2
xor edi, r13d
xor ebp, ecx
xor edi, DWORD PTR 28[rsp]
xor ebp, ebx
xor edi, DWORD PTR 48[rsp]
rol edi, 1
add ebp, edx
mov DWORD PTR 60[rsp],edi
mov edx, esi
rol edx, 5
lea edi, DWORD PTR 1859775393[ebp*1+edi]
add edi, edx
; 20_39 32
mov ebp, esi
; mov edx, r12d
ror esi, 2
xor r12d, r14d
xor ebp, eax
xor r12d, DWORD PTR 32[rsp]
xor ebp, ecx
xor r12d, DWORD PTR 52[rsp]
rol r12d, 1
add ebp, ebx
; mov r12d,edx
mov ebx, edi
rol ebx, 5
lea edx, DWORD PTR 1859775393[ebp*1+r12d]
add edx, ebx
; 20_39 33
mov ebp, edi
mov ebx, r13d
ror edi, 2
xor ebx, r15d
xor ebp, esi
xor ebx, DWORD PTR 36[rsp]
xor ebp, eax
xor ebx, DWORD PTR 56[rsp]
rol ebx, 1
add ebp, ecx
mov r13d,ebx
mov ecx, edx
rol ecx, 5
lea ebx, DWORD PTR 1859775393[ebp*1+ebx]
add ebx, ecx
; 20_39 34
mov ebp, edx
mov ecx, r14d
ror edx, 2
xor ecx, r10d
xor ebp, edi
xor ecx, DWORD PTR 40[rsp]
xor ebp, esi
xor ecx, DWORD PTR 60[rsp]
rol ecx, 1
add ebp, eax
mov r14d,ecx
mov eax, ebx
rol eax, 5
lea ecx, DWORD PTR 1859775393[ebp*1+ecx]
add ecx, eax
; 20_39 35
mov ebp, ebx
mov eax, r15d
ror ebx, 2
xor eax, r8d
xor ebp, edx
xor eax, DWORD PTR 44[rsp]
xor ebp, edi
xor eax, r12d
rol eax, 1
add ebp, esi
mov r15d,eax
mov esi, ecx
rol esi, 5
lea eax, DWORD PTR 1859775393[ebp*1+eax]
add eax, esi
; 20_39 36
mov ebp, ecx
mov esi, r10d
ror ecx, 2
xor esi, DWORD PTR 24[rsp]
xor ebp, ebx
xor esi, DWORD PTR 48[rsp]
xor ebp, edx
xor esi, r13d
rol esi, 1
add ebp, edi
mov r10d,esi
mov edi, eax
rol edi, 5
lea esi, DWORD PTR 1859775393[ebp*1+esi]
add esi, edi
; 20_39 37
mov ebp, eax
mov edi, r8d
ror eax, 2
xor edi, DWORD PTR 28[rsp]
xor ebp, ecx
xor edi, DWORD PTR 52[rsp]
xor ebp, ebx
xor edi, r14d
rol edi, 1
add ebp, edx
mov r8d,edi
mov edx, esi
rol edx, 5
lea edi, DWORD PTR 1859775393[ebp*1+edi]
add edi, edx
; 20_39 38
mov ebp, esi
mov edx, DWORD PTR 24[rsp]
ror esi, 2
xor edx, DWORD PTR 32[rsp]
xor ebp, eax
xor edx, DWORD PTR 56[rsp]
xor ebp, ecx
xor edx, r15d
rol edx, 1
add ebp, ebx
mov DWORD PTR 24[rsp],edx
mov ebx, edi
rol ebx, 5
lea edx, DWORD PTR 1859775393[ebp*1+edx]
add edx, ebx
; 20_39 39
mov ebp, edi
mov ebx, DWORD PTR 28[rsp]
ror edi, 2
xor ebx, DWORD PTR 36[rsp]
xor ebp, esi
xor ebx, DWORD PTR 60[rsp]
xor ebp, eax
xor ebx, r10d
rol ebx, 1
add ebp, ecx
mov DWORD PTR 28[rsp],ebx
mov ecx, edx
rol ecx, 5
lea ebx, DWORD PTR 1859775393[ebp*1+ebx]
add ebx, ecx
; 40_59 40
mov ecx, DWORD PTR 32[rsp]
mov ebp, DWORD PTR 40[rsp]
xor ecx, ebp
; mov ebp, r12d
xor ecx, r12d
; mov ebp, r8d
xor ecx, r8d
mov ebp, edx
rol ecx, 1
or ebp, edi
mov DWORD PTR 32[rsp],ecx
and ebp, esi
lea ecx, DWORD PTR 2400959708[eax*1+ecx]
mov eax, edx
ror edx, 2
and eax, edi
or ebp, eax
mov eax, ebx
rol eax, 5
add ecx, ebp
add ecx, eax
; 40_59 41
mov eax, DWORD PTR 36[rsp]
mov ebp, DWORD PTR 44[rsp]
xor eax, ebp
; mov ebp, r13d
xor eax, r13d
mov ebp, DWORD PTR 24[rsp]
xor eax, ebp
mov ebp, ebx
rol eax, 1
or ebp, edx
mov DWORD PTR 36[rsp],eax
and ebp, edi
lea eax, DWORD PTR 2400959708[esi*1+eax]
mov esi, ebx
ror ebx, 2
and esi, edx
or ebp, esi
mov esi, ecx
rol esi, 5
add eax, ebp
add eax, esi
; 40_59 42
mov esi, DWORD PTR 40[rsp]
mov ebp, DWORD PTR 48[rsp]
xor esi, ebp
; mov ebp, r14d
xor esi, r14d
mov ebp, DWORD PTR 28[rsp]
xor esi, ebp
mov ebp, ecx
rol esi, 1
or ebp, ebx
mov DWORD PTR 40[rsp],esi
and ebp, edx
lea esi, DWORD PTR 2400959708[edi*1+esi]
mov edi, ecx
ror ecx, 2
and edi, ebx
or ebp, edi
mov edi, eax
rol edi, 5
add esi, ebp
add esi, edi
; 40_59 43
mov edi, DWORD PTR 44[rsp]
mov ebp, DWORD PTR 52[rsp]
xor edi, ebp
; mov ebp, r15d
xor edi, r15d
mov ebp, DWORD PTR 32[rsp]
xor edi, ebp
mov ebp, eax
rol edi, 1
or ebp, ecx
mov DWORD PTR 44[rsp],edi
and ebp, ebx
lea edi, DWORD PTR 2400959708[edx*1+edi]
mov edx, eax
ror eax, 2
and edx, ecx
or ebp, edx
mov edx, esi
rol edx, 5
add edi, ebp
add edi, edx
; 40_59 44
mov edx, DWORD PTR 48[rsp]
mov ebp, DWORD PTR 56[rsp]
xor edx, ebp
; mov ebp, r10d
xor edx, r10d
mov ebp, DWORD PTR 36[rsp]
xor edx, ebp
mov ebp, esi
rol edx, 1
or ebp, eax
mov DWORD PTR 48[rsp],edx
and ebp, ecx
lea edx, DWORD PTR 2400959708[ebx*1+edx]
mov ebx, esi
ror esi, 2
and ebx, eax
or ebp, ebx
mov ebx, edi
rol ebx, 5
add edx, ebp
add edx, ebx
; 40_59 45
mov ebx, DWORD PTR 52[rsp]
mov ebp, DWORD PTR 60[rsp]
xor ebx, ebp
; mov ebp, r8d
xor ebx, r8d
mov ebp, DWORD PTR 40[rsp]
xor ebx, ebp
mov ebp, edi
rol ebx, 1
or ebp, esi
mov DWORD PTR 52[rsp],ebx
and ebp, eax
lea ebx, DWORD PTR 2400959708[ecx*1+ebx]
mov ecx, edi
ror edi, 2
and ecx, esi
or ebp, ecx
mov ecx, edx
rol ecx, 5
add ebx, ebp
add ebx, ecx
; 40_59 46
mov ecx, DWORD PTR 56[rsp]
; mov ebp, r12d
xor ecx, r12d
mov ebp, DWORD PTR 24[rsp]
xor ecx, ebp
mov ebp, DWORD PTR 44[rsp]
xor ecx, ebp
mov ebp, edx
rol ecx, 1
or ebp, edi
mov DWORD PTR 56[rsp],ecx
and ebp, esi
lea ecx, DWORD PTR 2400959708[eax*1+ecx]
mov eax, edx
ror edx, 2
and eax, edi
or ebp, eax
mov eax, ebx
rol eax, 5
add ecx, ebp
add ecx, eax
; 40_59 47
mov eax, DWORD PTR 60[rsp]
; mov ebp, r13d
xor eax, r13d
mov ebp, DWORD PTR 28[rsp]
xor eax, ebp
mov ebp, DWORD PTR 48[rsp]
xor eax, ebp
mov ebp, ebx
rol eax, 1
or ebp, edx
mov DWORD PTR 60[rsp],eax
and ebp, edi
lea eax, DWORD PTR 2400959708[esi*1+eax]
mov esi, ebx
ror ebx, 2
and esi, edx
or ebp, esi
mov esi, ecx
rol esi, 5
add eax, ebp
add eax, esi
; 40_59 48
mov esi, r12d
; mov ebp, r14d
xor esi, r14d
mov ebp, DWORD PTR 32[rsp]
xor esi, ebp
mov ebp, DWORD PTR 52[rsp]
xor esi, ebp
mov ebp, ecx
rol esi, 1
or ebp, ebx
mov r12d,esi
and ebp, edx
lea esi, DWORD PTR 2400959708[edi*1+esi]
mov edi, ecx
ror ecx, 2
and edi, ebx
or ebp, edi
mov edi, eax
rol edi, 5
add esi, ebp
add esi, edi
; 40_59 49
mov edi, r13d
; mov ebp, r15d
xor edi, r15d
mov ebp, DWORD PTR 36[rsp]
xor edi, ebp
mov ebp, DWORD PTR 56[rsp]
xor edi, ebp
mov ebp, eax
rol edi, 1
or ebp, ecx
mov r13d,edi
and ebp, ebx
lea edi, DWORD PTR 2400959708[edx*1+edi]
mov edx, eax
ror eax, 2
and edx, ecx
or ebp, edx
mov edx, esi
rol edx, 5
add edi, ebp
add edi, edx
; 40_59 50
mov edx, r14d
; mov ebp, r10d
xor edx, r10d
mov ebp, DWORD PTR 40[rsp]
xor edx, ebp
mov ebp, DWORD PTR 60[rsp]
xor edx, ebp
mov ebp, esi
rol edx, 1
or ebp, eax
mov r14d,edx
and ebp, ecx
lea edx, DWORD PTR 2400959708[ebx*1+edx]
mov ebx, esi
ror esi, 2
and ebx, eax
or ebp, ebx
mov ebx, edi
rol ebx, 5
add edx, ebp
add edx, ebx
; 40_59 51
mov ebx, r15d
; mov ebp, r8d
xor ebx, r8d
mov ebp, DWORD PTR 44[rsp]
xor ebx, ebp
; mov ebp, r12d
xor ebx, r12d
mov ebp, edi
rol ebx, 1
or ebp, esi
mov r15d,ebx
and ebp, eax
lea ebx, DWORD PTR 2400959708[ecx*1+ebx]
mov ecx, edi
ror edi, 2
and ecx, esi
or ebp, ecx
mov ecx, edx
rol ecx, 5
add ebx, ebp
add ebx, ecx
; 40_59 52
mov ecx, r10d
mov ebp, DWORD PTR 24[rsp]
xor ecx, ebp
mov ebp, DWORD PTR 48[rsp]
xor ecx, ebp
; mov ebp, r13d
xor ecx, r13d
mov ebp, edx
rol ecx, 1
or ebp, edi
mov r10d,ecx
and ebp, esi
lea ecx, DWORD PTR 2400959708[eax*1+ecx]
mov eax, edx
ror edx, 2
and eax, edi
or ebp, eax
mov eax, ebx
rol eax, 5
add ecx, ebp
add ecx, eax
; 40_59 53
mov eax, r8d
mov ebp, DWORD PTR 28[rsp]
xor eax, ebp
mov ebp, DWORD PTR 52[rsp]
xor eax, ebp
; mov ebp, r14d
xor eax, r14d
mov ebp, ebx
rol eax, 1
or ebp, edx
mov r8d,eax
and ebp, edi
lea eax, DWORD PTR 2400959708[esi*1+eax]
mov esi, ebx
ror ebx, 2
and esi, edx
or ebp, esi
mov esi, ecx
rol esi, 5
add eax, ebp
add eax, esi
; 40_59 54
mov esi, DWORD PTR 24[rsp]
mov ebp, DWORD PTR 32[rsp]
xor esi, ebp