Function at 0x7311e0
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.005b8930
mov edi, eax
push ebx
call fcn.005a01d0
add esp, 4
mov esi, eax
push eax
call fcn.005a1820
add esp, 4
mov dword [esp + 0x10], eax
push ebx
call fcn.005a0360
add esp, 4
mov dword [esp + 0x18], eax
push dword [esp + 0x7c]
call fcn.005c36b0
add esp, 4
mov ebp, eax
push ebx
call fcn.005a01a0
add esp, 4
mov dword [esp], eax
push ebx
call fcn.005a01b0
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 0x73127f
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0x8d
jmp 0x7312bc
mov dword [esp + 0x44], eax
push esi
call fcn.005a18c0
add esp, 4
test eax, eax
je 0x7312ad
push eax
call fcn.00588180
add esp, 4
lea edi, [eax + 7]
add eax, 0xe
test edi, edi
cmovs edi, eax
cmp eax, 0xe
ja 0x731397
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0x93
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b5d00
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.005b8780
add esp, 4
push dword [esp + 0x58]
call fcn.00577b50
add esp, 4
push dword [esp + 0x54]
call fcn.00577b50
add esp, 4
push 0x109
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.005db5b0
add esp, 0xc
push 0x10a
push str.crypto_sm2_sm2_crypt.c
push esi
call fcn.005db5b0
add esp, 0xc
push 0x10b
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x1c]
call fcn.005db5b0
add esp, 0xc
push edi
call fcn.005b8950
add esp, 4
push ebx
call fcn.00584a20
add esp, 4
push dword [esp + 0x1c]
call fcn.005a0ef0
add esp, 4
push dword [esp + 0x24]
call fcn.005a0ef0
add esp, 4
mov eax, dword [esp]
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.005a1270
add esp, 4
mov ebx, eax
push esi
call fcn.005a1270
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 0x7313ec
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0x9a
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80010
jmp 0x7314e3
push dword [esp]
call fcn.00584960
add esp, 4
test eax, eax
je 0x7314c0
mov ebp, eax
push eax
call fcn.00584bf0
add esp, 4
push ebp
call fcn.00584da0
add esp, 4
mov ebx, eax
push ebp
call fcn.00584da0
add esp, 4
mov dword [esp + 0x38], eax
push ebp
call fcn.00584da0
add esp, 4
mov dword [esp + 0x40], eax
push ebp
call fcn.00584da0
add esp, 4
mov dword [esp + 0x34], eax
push ebp
call fcn.00584da0
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
je 0x7314f2
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.005db430
add esp, 0xc
mov edi, eax
push 0xb0
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x50]
call fcn.005db430
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 0x731532
xor eax, eax
mov ebx, ebp
mov dword [esp], 0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x731305
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0x9f
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80003
push 0x35
call fcn.005b5d00
add esp, 0xc
jmp 0x7312ea
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xab
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80003
push 0x35
call fcn.005b5d00
add esp, 0xc
mov ebx, ebp
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], 0
jmp 0x7312f8
mov eax, dword [esp + 0x8c]
push dword [eax]
push 0
push dword [esp + 0xc]
call fcn.00786b68
add esp, 0xc
push 0xb7
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x8c]
call fcn.005db430
add esp, 0xc
test eax, eax
je 0x7317ce
mov dword [esp + 4], eax
push ebp
push 0
push dword [esp + 0x18]
push ebx
call fcn.0058c430
add esp, 0x10
test eax, eax
mov edi, ebp
mov ebp, dword [esp + 0x1c]
je 0x7317e8
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 0x7315ef
test al, al
jne 0x731888
push dword [esp + 0x30]
push 0
push dword [esp + 0x14]
call fcn.00786b68
add esp, 0xc
push edi
push 0
push dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
push ebx
call fcn.0058c430
add esp, 0x10
test eax, eax
mov ebp, dword [esp + 0x1c]
je 0x7317e8
push edi
push 0
push 0
push ebx
push ebp
push esi
call fcn.005a29b0
add esp, 0x18
test eax, eax
mov ebx, ebp
mov ebp, dword [esp + 0x24]
je 0x7317f9
push edi
push dword [esp + 0x38]
push dword [esp + 0x40]
push ebx
push esi
call fcn.005a2340
add esp, 0x14
test eax, eax
je 0x7317f9
push edi
push dword [esp + 0x30]
push dword [esp + 0x20]
push 0
push ebp
push esi
call fcn.005a29b0
add esp, 0x18
test eax, eax
je 0x7317f9
push edi
push dword [esp + 0x40]
push dword [esp + 0x48]
push ebp
push esi
call fcn.005a2340
add esp, 0x14
test eax, eax
je 0x7317f9
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x48]
call fcn.00588b30
add esp, 0xc
test eax, eax
js 0x73181e
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x44]
call fcn.00588b30
add esp, 0xc
test eax, eax
js 0x73181e
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.006d2ab0
add esp, 0x24
test eax, eax
je 0x731863
test ebx, ebx
je 0x7315bd
xor ecx, ecx
mov eax, 0
cmp ebx, 8
mov ebp, dword [esp + 4]
jb 0x7317c0
xor eax, eax
mov edx, 0
cmp ebx, 0x20
jb 0x73176c
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 0x731703
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 0x7315b5
mov edx, ecx
test bl, 0x18
mov ebp, dword [esp + 4]
je 0x7317c0
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 0x731777
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 0x7315b5
nop
or al, byte [ebp + ecx]
inc ecx
cmp ebx, ecx
jne 0x7317c0
jmp 0x7315b5
mov ebx, ebp
xor ebp, ebp
xor eax, eax
mov dword [esp], 0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x731305
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xbd
jmp 0x73182d
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xc5
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80010
jmp 0x731841
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b5d00
add esp, 0xc
xor eax, eax
mov ebx, edi
mov dword [esp], 0
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 4]
jmp 0x731301
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80006
jmp 0x731841
xor eax, eax
cmp ebx, 8
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ebp, dword [esp + 0x80]
jb 0x73191a
xor eax, eax
cmp ebx, 0x20
jb 0x7318ed
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 0x7318ac
mov ebx, dword [esp + 0x84]
cmp eax, ebx
je 0x731927
test bl, 0x18
je 0x73191a
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 0x7318f4
mov ebx, dword [esp + 0x84]
cmp eax, ebx
je 0x731927
movzx ecx, byte [ebp + eax]
xor byte [edx + eax], cl
inc eax
cmp ebx, eax
jne 0x73191a
push dword [esp + 0x7c]
call fcn.005c35c0
add esp, 4
push dword [esp + 0x44]
push eax
push dword [esp + 8]
call fcn.005b9cd0
add esp, 0xc
test eax, eax
je 0x731a6f
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
push eax
mov edi, dword [esp + 0xc]
push edi
call fcn.005b8f80
add esp, 8
test eax, eax
je 0x731a2a
push dword [esp + 0x20]
push esi
push edi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x731a2a
push dword [esp + 0x84]
push dword [esp + 0x84]
push edi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x731a2a
push dword [esp + 0x20]
push dword [esp + 0x2c]
push edi
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x731a2a
push 0
push dword [esp + 0x18]
push edi
call fcn.005b9120
add esp, 0xc
test eax, eax
je 0x731a2a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
call fcn.00577b40
mov edi, eax
mov dword [esp + 0x54], eax
call fcn.00577b40
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 0x731aac
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xf2
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x8000d
jmp 0x731b2c
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xe8
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0x80006
push 0x35
call fcn.005b5d00
add esp, 0xc
mov dword [esp], 0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 4]
mov eax, dword [esp + 0x18]
jmp 0x731305
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xe0
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b5d00
add esp, 0xc
xor eax, eax
mov ebx, edi
mov dword [esp], 0
jmp 0x73185a
push dword [esp + 0x48]
push dword [esp + 0x18]
push edi
call fcn.006a37e0
add esp, 0xc
test eax, eax
je 0x731b09
push dword [esp + 0x84]
push dword [esp + 8]
push esi
call fcn.006a37e0
add esp, 0xc
test eax, eax
je 0x731b09
lea eax, [esp + 0x88]
lea ecx, [esp + 0x4c]
push 0xad09dc
push eax
push ecx
call fcn.00576610
add esp, 0xc
test eax, eax
js 0x731b4e
mov ecx, dword [esp + 0x8c]
mov dword [ecx], eax
mov dword [esp], 1
jmp 0x731b3d
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xf7
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push 0xc0103
push 0x35
call fcn.005b5d00
add esp, 0xc
mov dword [esp], 0
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
jmp 0x731a62
call fcn.005b5b10
push str.ossl_sm2_encrypt
push 0xfe
jmp 0x731b18