Function at 0x7331e0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x78]
call fcn.005b9f40
mov edi, eax
push ebx
call fcn.005a17e0
add esp, 4
mov esi, eax
push eax
call fcn.005a2e30
add esp, 4
mov dword [esp + 0x10], eax
push ebx
call fcn.005a1970
add esp, 4
mov dword [esp + 0x18], eax
push dword [esp + 0x7c]
call fcn.005c4cc0
add esp, 4
mov ebp, eax
push ebx
call fcn.005a17b0
add esp, 4
mov dword [esp], eax
push ebx
call fcn.005a17c0
add esp, 4
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 8], edi
test edi, edi
sete dl
mov dword [esp + 0x48], ebp
test ebp, ebp
setle cl
or cl, dl
cmp cl, 1
jne 0x73327f
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0x8d
jmp 0x7332bc
mov dword [esp + 0x44], eax
push esi
call fcn.005a2ed0
add esp, 4
test eax, eax
je 0x7332ad
push eax
call fcn.00589790
add esp, 4
lea edi, [eax + 7]
add eax, 0xe
test edi, edi
cmovs edi, eax
cmp eax, 0xe
ja 0x733397
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0x93
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b7310
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], 0
xor ebx, ebx
xor eax, eax
mov dword [esp], 0
mov edi, dword [esp + 8]
push eax
call fcn.005b9d90
add esp, 4
push dword [esp + 0x58]
call fcn.00579160
add esp, 4
push dword [esp + 0x54]
call fcn.00579160
add esp, 4
push 0x109
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.005dcbc0
add esp, 0xc
push 0x10a
push str.crypto_sm2_sm2_crypt.c
push esi
call fcn.005dcbc0
add esp, 0xc
push 0x10b
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x1c]
call fcn.005dcbc0
add esp, 0xc
push edi
call fcn.005b9f60
add esp, 4
push ebx
call fcn.00586030
add esp, 4
push dword [esp + 0x1c]
call fcn.005a2500
add esp, 4
push dword [esp + 0x24]
call fcn.005a2500
add esp, 4
mov eax, dword [esp]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.005a2880
add esp, 4
mov ebx, eax
push esi
call fcn.005a2880
add esp, 4
test ebx, ebx
sete dl
mov dword [esp + 0x24], eax
test eax, eax
sete cl
or cl, dl
cmp cl, 1
mov dword [esp + 0x1c], ebx
jne 0x7333ec
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0x9a
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80010
jmp 0x7334e3
push dword [esp]
call fcn.00585f70
add esp, 4
test eax, eax
je 0x7334c0
mov ebp, eax
push eax
call fcn.00586200
add esp, 4
push ebp
call fcn.005863b0
add esp, 4
mov ebx, eax
push ebp
call fcn.005863b0
add esp, 4
mov dword [esp + 0x38], eax
push ebp
call fcn.005863b0
add esp, 4
mov dword [esp + 0x40], eax
push ebp
call fcn.005863b0
add esp, 4
mov dword [esp + 0x34], eax
push ebp
call fcn.005863b0
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
je 0x7334f2
sar edi, 3
mov dword [esp + 0x20], edi
lea eax, [edi + edi]
push 0xaf
push str.crypto_sm2_sm2_crypt.c
mov dword [esp + 0x38], eax
push eax
call fcn.005dca40
add esp, 0xc
mov edi, eax
push 0xb0
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x50]
call fcn.005dca40
add esp, 0xc
mov dword [esp + 0xc], edi
test edi, edi
mov edi, eax
sete al
test edi, edi
sete cl
or cl, al
mov dword [esp + 0x14], edi
je 0x733532
xor eax, eax
mov ebx, ebp
mov dword [esp], 0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x733305
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0x9f
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80003
push 0x35
call fcn.005b7310
add esp, 0xc
jmp 0x7332ea
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xab
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80003
push 0x35
call fcn.005b7310
add esp, 0xc
mov ebx, ebp
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], 0
jmp 0x7332f8
mov eax, dword [esp + 0x8c]
push dword [eax]
push 0
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0xb7
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x8c]
call fcn.005dca40
add esp, 0xc
test eax, eax
je 0x7337ce
mov dword [esp + 4], eax
push ebp
push 0
push dword [esp + 0x18]
push ebx
call fcn.0058da40
add esp, 0x10
test eax, eax
mov edi, ebp
mov ebp, dword [esp + 0x1c]
je 0x7337e8
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov ecx, eax
and ecx, 0xffffffe0
mov dword [esp + 0x5c], ecx
and eax, 0xfffffff8
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], ebx
jmp 0x7335ef
test al, al
jne 0x733888
push dword [esp + 0x30]
push 0
push dword [esp + 0x14]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push edi
push 0
push dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
push ebx
call fcn.0058da40
add esp, 0x10
test eax, eax
mov ebp, dword [esp + 0x1c]
je 0x7337e8
push edi
push 0
push 0
push ebx
push ebp
push esi
call fcn.005a3fc0
add esp, 0x18
test eax, eax
mov ebx, ebp
mov ebp, dword [esp + 0x24]
je 0x7337f9
push edi
push dword [esp + 0x38]
push dword [esp + 0x40]
push ebx
push esi
call fcn.005a3950
add esp, 0x14
test eax, eax
je 0x7337f9
push edi
push dword [esp + 0x30]
push dword [esp + 0x20]
push 0
push ebp
push esi
call fcn.005a3fc0
add esp, 0x18
test eax, eax
je 0x7337f9
push edi
push dword [esp + 0x40]
push dword [esp + 0x48]
push ebp
push esi
call fcn.005a3950
add esp, 0x14
test eax, eax
je 0x7337f9
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x48]
call fcn.0058a140
add esp, 0xc
test eax, eax
js 0x73381e
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x44]
call fcn.0058a140
add esp, 0xc
test eax, eax
js 0x73381e
push dword [esp + 0x44]
push dword [esp + 4]
push dword [esp + 0x84]
push 0
push 0
push dword [esp + 0x44]
push dword [esp + 0x24]
mov ebx, dword [esp + 0xa0]
push ebx
push dword [esp + 0x24]
call fcn.006d40b0
add esp, 0x24
test eax, eax
je 0x733863
test ebx, ebx
je 0x7335bd
xor ecx, ecx
mov eax, 0
cmp ebx, 8
mov ebp, dword [esp + 4]
jb 0x7337c0
xor eax, eax
mov edx, 0
cmp ebx, 0x20
jb 0x73376c
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
mov ecx, dword [esp + 0x5c]
movdqu xmm2, xmmword [ebp + eax]
por xmm0, xmm2
movdqu xmm2, xmmword [ebp + eax + 0x10]
por xmm1, xmm2
add eax, 0x20
cmp ecx, eax
jne 0x733703
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd eax, xmm1
mov ebx, dword [esp + 0x84]
cmp ecx, ebx
je 0x7335b5
mov edx, ecx
test bl, 0x18
mov ebp, dword [esp + 4]
je 0x7337c0
movzx eax, al
movd xmm0, eax
mov ecx, dword [esp + 0x60]
movq xmm1, qword [ebp + edx]
por xmm0, xmm1
add edx, 8
cmp ecx, edx
jne 0x733777
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd eax, xmm1
mov ebx, dword [esp + 0x84]
cmp ecx, ebx
je 0x7335b5
nop
or al, byte [ebp + ecx]
inc ecx
cmp ebx, ecx
jne 0x7337c0
jmp 0x7335b5
mov ebx, ebp
xor ebp, ebp
xor eax, eax
mov dword [esp], 0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x733305
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xbd
jmp 0x73382d
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xc5
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80010
jmp 0x733841
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b7310
add esp, 0xc
xor eax, eax
mov ebx, edi
mov dword [esp], 0
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 4]
jmp 0x733301
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80006
jmp 0x733841
xor eax, eax
cmp ebx, 8
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ebp, dword [esp + 0x80]
jb 0x73391a
xor eax, eax
cmp ebx, 0x20
jb 0x7338ed
mov eax, ebx
and eax, 0xffffffe0
xor ecx, ecx
movdqu xmm0, xmmword [ebp + ecx]
movdqu xmm1, xmmword [ebp + ecx + 0x10]
movdqu xmm2, xmmword [edx + ecx]
pxor xmm2, xmm0
movdqu xmm0, xmmword [edx + ecx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [edx + ecx], xmm2
movdqu xmmword [edx + ecx + 0x10], xmm0
add ecx, 0x20
cmp eax, ecx
jne 0x7338ac
mov ebx, dword [esp + 0x84]
cmp eax, ebx
je 0x733927
test bl, 0x18
je 0x73391a
mov ecx, eax
mov eax, ebx
and eax, 0xfffffff8
movq xmm0, qword [ebp + ecx]
movq xmm1, qword [edx + ecx]
pxor xmm1, xmm0
movq qword [edx + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x7338f4
mov ebx, dword [esp + 0x84]
cmp eax, ebx
je 0x733927
movzx ecx, byte [ebp + eax]
xor byte [edx + eax], cl
inc eax
cmp ebx, eax
jne 0x73391a
push dword [esp + 0x7c]
call fcn.005c4bd0
add esp, 4
push dword [esp + 0x44]
push eax
push dword [esp + 8]
call fcn.005bb2e0
add esp, 0xc
test eax, eax
je 0x733a6f
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
push eax
mov edi, dword [esp + 0xc]
push edi
call fcn.005ba590
add esp, 8
test eax, eax
je 0x733a2a
push dword [esp + 0x20]
push esi
push edi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x733a2a
push dword [esp + 0x84]
push dword [esp + 0x84]
push edi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x733a2a
push dword [esp + 0x20]
push dword [esp + 0x2c]
push edi
call fcn.005ba610
add esp, 0xc
test eax, eax
je 0x733a2a
push 0
push dword [esp + 0x18]
push edi
call fcn.005ba730
add esp, 0xc
test eax, eax
je 0x733a2a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
call fcn.00579150
mov edi, eax
mov dword [esp + 0x54], eax
call fcn.00579150
mov esi, eax
mov dword [esp + 0x58], eax
test edi, edi
sete al
test esi, esi
sete cl
or cl, al
cmp cl, 1
jne 0x733aac
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x8000d
jmp 0x733b2c
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xe8
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80006
push 0x35
call fcn.005b7310
add esp, 0xc
mov dword [esp], 0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 4]
mov eax, dword [esp + 0x18]
jmp 0x733305
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xe0
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b7310
add esp, 0xc
xor eax, eax
mov ebx, edi
mov dword [esp], 0
jmp 0x73385a
push dword [esp + 0x48]
push dword [esp + 0x18]
push edi
call fcn.006a4de0
add esp, 0xc
test eax, eax
je 0x733b09
push dword [esp + 0x84]
push dword [esp + 8]
push esi
call fcn.006a4de0
add esp, 0xc
test eax, eax
je 0x733b09
lea eax, [esp + 0x88]
lea ecx, [esp + 0x4c]
push 0xa6af7c
push eax
push ecx
call fcn.00577c20
add esp, 0xc
test eax, eax
js 0x733b4e
mov ecx, dword [esp + 0x8c]
mov dword [ecx], eax
mov dword [esp], 1
jmp 0x733b3d
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xf7
push str.crypto_sm2_sm2_crypt.c
call fcn.005b7220
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b7310
add esp, 0xc
mov dword [esp], 0
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
jmp 0x733a62
call fcn.005b7120
push str.ossl_sm2_encrypt
push 0xfe
jmp 0x733b18