OLD | NEW |
1 default rel | 1 default rel |
2 %define XMMWORD | 2 %define XMMWORD |
3 %define YMMWORD | 3 %define YMMWORD |
4 %define ZMMWORD | 4 %define ZMMWORD |
5 section .text code align=64 | 5 section .text code align=64 |
6 | 6 |
7 EXTERN OPENSSL_ia32cap_P | 7 EXTERN OPENSSL_ia32cap_P |
8 | 8 |
9 global asm_RC4 | 9 global asm_RC4 |
10 | 10 |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 | 612 |
613 ALIGN 16 | 613 ALIGN 16 |
614 $L$exit_key: | 614 $L$exit_key: |
615 xor eax,eax | 615 xor eax,eax |
616 mov DWORD[((-8))+rdi],eax | 616 mov DWORD[((-8))+rdi],eax |
617 mov DWORD[((-4))+rdi],eax | 617 mov DWORD[((-4))+rdi],eax |
618 mov rdi,QWORD[8+rsp] ;WIN64 epilogue | 618 mov rdi,QWORD[8+rsp] ;WIN64 epilogue |
619 mov rsi,QWORD[16+rsp] | 619 mov rsi,QWORD[16+rsp] |
620 DB 0F3h,0C3h ;repret | 620 DB 0F3h,0C3h ;repret |
621 $L$SEH_end_asm_RC4_set_key: | 621 $L$SEH_end_asm_RC4_set_key: |
622 | |
623 global RC4_options | |
624 | |
625 ALIGN 16 | |
626 RC4_options: | |
627 lea rax,[$L$opts] | |
628 mov rdx,QWORD[OPENSSL_ia32cap_P] | |
629 mov edx,DWORD[rdx] | |
630 bt edx,20 | |
631 jc NEAR $L$8xchar | |
632 bt edx,30 | |
633 jnc NEAR $L$done | |
634 add rax,25 | |
635 DB 0F3h,0C3h ;repret | |
636 $L$8xchar: | |
637 add rax,12 | |
638 $L$done: | |
639 DB 0F3h,0C3h ;repret | |
640 ALIGN 64 | |
641 $L$opts: | |
642 DB 114,99,52,40,56,120,44,105,110,116,41,0 | |
643 DB 114,99,52,40,56,120,44,99,104,97,114,41,0 | |
644 DB 114,99,52,40,49,54,120,44,105,110,116,41,0 | |
645 DB 82,67,52,32,102,111,114,32,120,56,54,95,54,52,44,32 | |
646 DB 67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97 | |
647 DB 112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103 | |
648 DB 62,0 | |
649 ALIGN 64 | |
650 | |
651 EXTERN __imp_RtlVirtualUnwind | 622 EXTERN __imp_RtlVirtualUnwind |
652 | 623 |
653 ALIGN 16 | 624 ALIGN 16 |
654 stream_se_handler: | 625 stream_se_handler: |
655 push rsi | 626 push rsi |
656 push rdi | 627 push rdi |
657 push rbx | 628 push rbx |
658 push rbp | 629 push rbp |
659 push r12 | 630 push r12 |
660 push r13 | 631 push r13 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 DD $L$SEH_info_asm_RC4_set_key wrt ..imagebase | 732 DD $L$SEH_info_asm_RC4_set_key wrt ..imagebase |
762 | 733 |
763 section .xdata rdata align=8 | 734 section .xdata rdata align=8 |
764 ALIGN 8 | 735 ALIGN 8 |
765 $L$SEH_info_asm_RC4: | 736 $L$SEH_info_asm_RC4: |
766 DB 9,0,0,0 | 737 DB 9,0,0,0 |
767 DD stream_se_handler wrt ..imagebase | 738 DD stream_se_handler wrt ..imagebase |
768 $L$SEH_info_asm_RC4_set_key: | 739 $L$SEH_info_asm_RC4_set_key: |
769 DB 9,0,0,0 | 740 DB 9,0,0,0 |
770 DD key_se_handler wrt ..imagebase | 741 DD key_se_handler wrt ..imagebase |
OLD | NEW |