Function at 0x731b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
push dword [esp + 0x58]
call fcn.005a01d0
add esp, 4
mov dword [esp + 0x1c], eax
push eax
call fcn.005a18c0
add esp, 4
mov dword [esp + 0x20], 0
mov ecx, 0
test eax, eax
je 0x731baa
push eax
call fcn.00588180
add esp, 4
mov ecx, eax
add eax, 7
add ecx, 0xe
test eax, eax
cmovns ecx, eax
sar ecx, 3
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
push dword [esp + 0x5c]
call fcn.005c36b0
add esp, 4
mov ebp, eax
mov edi, dword [esp + 0x58]
push edi
call fcn.005a01a0
add esp, 4
mov dword [esp + 0x30], eax
push edi
mov edi, dword [esp + 0x1c]
call fcn.005a01b0
add esp, 4
test edi, edi
sete dl
mov dword [esp + 0x24], ebp
test ebp, ebp
setle cl
or cl, dl
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov ebp, 0
jne 0x731d07
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x64]
push dword [ebx]
push 0xff
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esp + 0x60]
push 0xa2891c
push ebp
push eax
push 0
call fcn.005748b0
add esp, 0x10
test eax, eax
je 0x731c94
mov edx, dword [eax + 8]
mov ebx, 0x68
mov esi, 0x139
mov ecx, dword [esp + 0x24]
cmp dword [edx], ecx
mov dword [esp + 0x20], eax
jne 0x731cb0
mov ecx, dword [eax + 0xc]
mov ebx, dword [ecx]
mov esi, dword [esp + 0x6c]
cmp dword [esi], ebx
jae 0x731d94
mov dword [esp + 0x10], 0
mov ebx, 0x6b
mov esi, 0x141
jmp 0x731cb8
mov dword [esp + 0x10], 0
mov ebx, 0x64
mov esi, 0x134
mov dword [esp + 0x20], 0
jmp 0x731cb8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
xor ebp, ebp
call fcn.005b5b10
push str.ossl_sm2_decrypt
push esi
push str.crypto_sm2_sm2_crypt.c
call fcn.005b5c10
add esp, 0xc
push 0
push ebx
push 0x35
call fcn.005b5d00
add esp, 0xc
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
push dword [ebx]
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor esi, esi
push 0x195
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0xc]
call fcn.005db5b0
add esp, 0xc
push 0x196
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x18]
call fcn.005db5b0
add esp, 0xc
push 0x197
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x14]
call fcn.005db5b0
add esp, 0xc
push dword [esp + 8]
call fcn.005a0ef0
add esp, 4
push dword [esp + 0x14]
call fcn.00584a20
add esp, 4
push 0xa2891c
push dword [esp + 0x24]
call fcn.005771b0
add esp, 8
push ebp
call fcn.005b8950
add esp, 4
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov ebp, dword [edx + 8]
push dword [esp + 0x30]
call fcn.00584960
add esp, 4
test eax, eax
je 0x731e6a
mov dword [esp], ebx
push eax
mov ebx, eax
call fcn.00584bf0
add esp, 4
push ebx
call fcn.00584da0
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], ebx
push ebx
call fcn.00584da0
add esp, 4
test eax, eax
je 0x731e91
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ebp
push 0x154
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 8]
call fcn.005db430
add esp, 0xc
mov ebp, eax
lea eax, [edi + edi]
push 0x155
push str.crypto_sm2_sm2_crypt.c
mov dword [esp + 0x40], eax
push eax
call fcn.005db430
add esp, 0xc
mov ebx, eax
push 0x156
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x2c]
call fcn.005db430
add esp, 0xc
mov dword [esp + 4], ebp
test ebp, ebp
sete dl
mov dword [esp + 0x10], ebx
test ebx, ebx
sete cl
or cl, dl
mov dword [esp + 0xc], eax
test eax, eax
sete al
or al, cl
je 0x731ec2
mov dword [esp + 8], 0
xor ebp, ebp
mov ebx, esi
mov esi, dword [esp + 0x68]
jmp 0x731d07
mov dword [esp + 0x10], 0
mov esi, 0x147
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
jmp 0x731eae
mov dword [esp + 0x10], 0
mov esi, 0x150
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
xor ebp, ebp
mov ebx, 0x80003
jmp 0x731cda
mov esi, dword [esp + 0x1c]
push esi
call fcn.005a1270
add esp, 4
xor ebp, ebp
test eax, eax
je 0x73205b
mov ebx, eax
mov ecx, esi
mov esi, dword [esp + 0x14]
push esi
mov eax, dword [esp + 0x24]
push dword [eax + 4]
push dword [eax]
push ebx
push ecx
call fcn.005a2070
add esp, 0x14
test eax, eax
mov dword [esp + 8], ebx
je 0x73204c
push dword [esp + 0x58]
call fcn.005a0260
add esp, 4
push esi
push eax
push ebx
push 0
push ebx
push dword [esp + 0x30]
call fcn.005a29b0
add esp, 0x18
test eax, eax
je 0x73204c
push esi
push dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
push esi
push ebx
push dword [esp + 0x2c]
call fcn.005a2340
add esp, 0x14
test eax, eax
je 0x73204c
push edi
mov ebx, dword [esp + 0x14]
push ebx
push esi
call fcn.00588b30
add esp, 0xc
mov esi, 0x16e
test eax, eax
js 0x732077
mov esi, ebx
add esi, edi
push edi
push esi
push dword [esp + 0x30]
call fcn.00588b30
add esp, 0xc
test eax, eax
js 0x732072
mov dword [esp + 0x1c], esi
push dword [esp + 0x40]
push dword [esp + 0x34]
push dword [esp + 0x64]
push 0
push 0
push dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x1c]
push esi
mov ebx, dword [esp + 0x24]
push ebx
call fcn.006d2ab0
add esp, 0x24
test eax, eax
je 0x732072
test esi, esi
je 0x7320fe
mov edx, esi
xor eax, eax
mov ecx, 0
cmp esi, 8
mov ebp, dword [esp + 0x68]
jb 0x7320dc
xor ecx, ecx
mov eax, 0
cmp edx, 0x20
jb 0x732091
mov eax, edx
and eax, 0xffffffe0
pxor xmm0, xmm0
xor ecx, ecx
pxor xmm1, xmm1
movdqu xmm2, xmmword [ebx + ecx]
por xmm0, xmm2
movdqu xmm2, xmmword [ebx + ecx + 0x10]
por xmm1, xmm2
add ecx, 0x20
cmp eax, ecx
jne 0x731fec
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 ecx, xmm1
cmp dword [esp], eax
jne 0x732081
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
jmp 0x7320e4
mov esi, 0x166
mov ebx, 0x80010
jmp 0x731cda
mov esi, 0x15d
mov dword [esp + 8], 0
mov ebx, 0x80010
jmp 0x731cda
mov esi, 0x16e
mov ebx, 0xc0103
jmp 0x731cda
mov edx, dword [esp]
test dl, 0x18
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
je 0x7320dc
mov edx, eax
mov eax, dword [esp]
and eax, 0xfffffff8
movzx ecx, cl
movd xmm0, ecx
movq xmm1, qword [ebx + edx]
por xmm0, xmm1
add edx, 8
cmp eax, edx
jne 0x7320a0
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 ecx, xmm1
mov edx, dword [esp]
jmp 0x7320e0
or cl, byte [ebx + eax]
inc eax
cmp edx, eax
jne 0x7320dc
test cl, cl
je 0x7320fc
xor eax, eax
cmp dword [esp], 8
jae 0x73210d
mov edx, dword [esp]
mov esi, dword [esp + 0x2c]
jmp 0x7321b0
xor ebp, ebp
mov ebx, 0x68
mov esi, 0x173
jmp 0x731cda
mov ecx, ebp
mov esi, dword [esp + 0x2c]
sub ecx, esi
cmp ecx, 0x20
setb cl
mov edx, ebp
sub edx, ebx
cmp edx, 0x20
setb dl
or dl, cl
mov edx, dword [esp]
jne 0x7321b0
xor eax, eax
cmp edx, 0x20
jb 0x732183
mov eax, edx
and eax, 0xffffffe0
xor ecx, ecx
movdqu xmm0, xmmword [esi + ecx]
movdqu xmm1, xmmword [esi + ecx + 0x10]
movdqu xmm2, xmmword [ebx + ecx]
pxor xmm2, xmm0
movdqu xmm0, xmmword [ebx + ecx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [ebp + ecx], xmm2
movdqu xmmword [ebp + ecx + 0x10], xmm0
add ecx, 0x20
cmp eax, ecx
jne 0x73213e
mov edx, dword [esp]
cmp edx, eax
mov edi, dword [esp + 0x18]
je 0x732213
test dl, 0x18
je 0x7321b0
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
movq xmm0, qword [esi + ecx]
movq xmm1, qword [ebx + ecx]
pxor xmm1, xmm0
movq qword [ebp + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x73218a
mov edx, dword [esp]
cmp edx, eax
mov edi, dword [esp + 0x18]
je 0x732213
mov ecx, eax
and edx, 3
je 0x7321d0
mov ecx, eax
mov ebx, dword [esp + 4]
movzx ebx, byte [ebx + ecx]
xor bl, byte [esi + ecx]
mov byte [ebp + ecx], bl
mov ebx, dword [esp + 4]
inc ecx
dec edx
jne 0x7321b9
mov edx, dword [esp]
sub eax, edx
cmp eax, 0xfffffffc
ja 0x732213
movzx eax, byte [ebx + ecx]
xor al, byte [esi + ecx]
mov byte [ebp + ecx], al
movzx eax, byte [ebx + ecx + 1]
xor al, byte [esi + ecx + 1]
mov byte [ebp + ecx + 1], al
movzx eax, byte [ebx + ecx + 2]
xor al, byte [esi + ecx + 2]
mov byte [ebp + ecx + 2], al
movzx eax, byte [ebx + ecx + 3]
xor al, byte [esi + ecx + 3]
mov byte [ebp + ecx + 3], al
add ecx, 4
cmp edx, ecx
jne 0x7321da
call fcn.005b8930
mov ebx, 0x80006
test eax, eax
je 0x7322b1
mov ebp, eax
push dword [esp + 0x5c]
push eax
call fcn.005b8f80
add esp, 8
test eax, eax
je 0x7322cc
push edi
push dword [esp + 0x14]
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x7322bd
push dword [esp]
push dword [esp + 0x6c]
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x7322bd
push dword [esp + 0x18]
push dword [esp + 0x20]
push ebp
call fcn.005b9000
add esp, 0xc
test eax, eax
je 0x7322bd
push 0
push dword [esp + 0x10]
push ebp
call fcn.005b9120
add esp, 0xc
test eax, eax
je 0x7322bd
push dword [esp + 0x24]
push dword [esp + 0x38]
push dword [esp + 0x14]
call fcn.005e84d0
add esp, 0xc
test eax, eax
je 0x7322d6
mov ebx, 0x66
mov esi, 0x18a
jmp 0x731cda
xor ebp, ebp
mov esi, 0x17c
jmp 0x731cda
mov esi, 0x185
mov ebx, 0x80006
jmp 0x731cda
mov esi, 0x185
jmp 0x731cda
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp]
mov dword [eax], ecx
mov esi, 1
jmp 0x731d16