Function at 0x5c43d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.005c85a0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
xor ebx, ebx
call fcn.004af5e0
mov esi, dword [esp + 0x70]
push esi
mov dword [esp + 0x14], eax
call fcn.0047bee0
mov edi, eax
push edi
call fcn.0046b160
push esi
mov dword [esp + 0x58], eax
call fcn.004ab110
push dword [esp + 0x80]
mov dword [esp + 0x60], eax
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call fcn.004ab680
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ebx
call fcn.004dd620
push esi
mov dword [esp + 0x40], eax
call fcn.004bb070
add esp, 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x10], ebx
je 0x5c48df
cmp dword [esp + 0x2c], ebx
jle 0x5c48df
push edi
call fcn.005c3cc0
mov esi, eax
add esp, 4
mov dword [esp + 0x58], esi
test esi, esi
je 0x5c48df
push edi
call fcn.004dc370
push edi
mov dword [esp + 0x20], eax
call fcn.004dc370
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00517f70
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x18], ebp
je 0x5c4660
cmp dword [esp + 0x1c], ebp
je 0x5c4660
test ebx, ebx
je 0x5c4660
push ebx
call fcn.00518040
push ebx
call fcn.00517e00
push ebx
mov dword [esp + 0x2c], eax
call fcn.00517e00
push ebx
mov dword [esp + 0x4c], eax
call fcn.00517e00
push ebx
mov dword [esp + 0x44], eax
call fcn.00517e00
push ebx
mov dword [esp + 0x58], eax
call fcn.00517e00
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5c451e
call fcn.004a9920
push str.ossl_sm2_encrypt
push ebp
push 0x66fd1f
call fcn.004a9a20
push ebp
push 0x80003
jmp 0x5c48fc
push 0
lea eax, [esi + esi]
push 0x66fd1f
push eax
mov dword [esp + 0x60], eax
call fcn.004a5660
push 0
push 0x66fd1f
push dword [esp + 0x40]
mov dword [esp + 0x2c], eax
call fcn.004a5660
add esp, 0x18
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], ebp
je 0x5c4660
test eax, eax
je 0x5c4660
mov eax, dword [esp + 0x84]
push dword [eax]
push 0
push dword [esp + 0x88]
call fcn.005c9aa0
push ebx
push 0
push dword [esp + 0x60]
push dword [esp + 0x38]
call fcn.00520980
add esp, 0x1c
test eax, eax
je 0x5c48df
push ebx
push 0
push 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
push edi
call fcn.004dc230
add esp, 0x18
test eax, eax
je 0x5c48c0
push ebx
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x24]
push edi
call fcn.004dbf50
add esp, 0x14
test eax, eax
je 0x5c48c0
push ebx
push dword [esp + 0x24]
push dword [esp + 0x58]
push 0
push dword [esp + 0x2c]
push edi
call fcn.004dc230
add esp, 0x18
test eax, eax
je 0x5c48c0
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x28]
push edi
call fcn.004dbf50
add esp, 0x14
test eax, eax
je 0x5c48c0
mov edi, dword [esp + 0x14]
push esi
push edi
push dword [esp + 0x38]
call fcn.004bff30
add esp, 0xc
test eax, eax
js 0x5c48df
lea eax, [esi + edi]
push esi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x58], eax
call fcn.004bff30
add esp, 0xc
test eax, eax
js 0x5c48df
mov esi, dword [esp + 0x7c]
push 0
push 0x66fd1f
push esi
call fcn.004a5660
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x5c4682
call fcn.004a9920
push str.ossl_sm2_encrypt
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0xc0100
jmp 0x5c48fc
push dword [esp + 0x38]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
push 0
push 0
push dword [esp + 0x68]
push edi
push esi
push ebp
call fcn.00544710
add esp, 0x24
test eax, eax
jne 0x5c46c7
call fcn.004a9920
push str.ossl_sm2_encrypt
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x80006
jmp 0x5c48fc
xor edi, edi
test esi, esi
je 0x5c478c
mov edx, ebp
mov ebp, dword [esp + 0x78]
cmp esi, 0x40
jb 0x5c476d
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, esi
add ecx, esi
cmp edx, eax
ja 0x5c46f2
cmp ecx, ebp
jae 0x5c476d
mov eax, esi
lea ecx, [ebp + 0x30]
and eax, 0xffffffc0
mov esi, ebp
sub esi, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], esi
lea eax, [edx + 0x10]
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x54]
movups xmm0, xmmword [eax - 0x10]
add edi, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, dword [esp + 0x50]
jne 0x5c4711
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x54], edi
cmp edi, esi
je 0x5c478a
lea ecx, [edi + edx]
sub ebp, edx
mov edx, esi
sub edx, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x5c4776
mov ebp, dword [esp + 0x20]
jmp 0x5c478c
mov ebp, edx
push dword [esp + 0x38]
push dword [esp + 0x78]
call fcn.004ab620
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.004af780
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
je 0x5c48df
mov edi, dword [esp + 0x10]
push eax
push edi
call fcn.004aef50
add esp, 8
test eax, eax
je 0x5c46a5
mov edi, dword [esp + 0x58]
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004aefb0
add esp, 0xc
test eax, eax
je 0x5c46a5
push esi
push dword [esp + 0x7c]
push dword [esp + 0x18]
call fcn.004aefb0
add esp, 0xc
test eax, eax
je 0x5c46a5
push edi
push dword [esp + 0x50]
mov edi, dword [esp + 0x18]
push edi
call fcn.004aefb0
add esp, 0xc
test eax, eax
je 0x5c46a5
push 0
push dword [esp + 0x28]
push edi
call fcn.004aec90
add esp, 0xc
test eax, eax
je 0x5c46a5
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
call fcn.004a9120
mov dword [esp + 0x64], eax
call fcn.004a9120
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x5c4660
test eax, eax
je 0x5c4660
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
call fcn.004f8de0
add esp, 0xc
test eax, eax
je 0x5c48df
push esi
push ebp
push dword [esp + 0x70]
call fcn.004f8de0
add esp, 0xc
test eax, eax
je 0x5c48df
push 0x664fd0
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004d9160
add esp, 0xc
test eax, eax
js 0x5c48df
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x5c4906
call fcn.004a9920
push str.ossl_sm2_encrypt
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0x80010
jmp 0x5c48fc
call fcn.004a9920
push str.ossl_sm2_encrypt
push 0
push 0x66fd1f
call fcn.004a9a20
push 0
push 0xc0103
push 0x35
call fcn.004a9a30
add esp, 0x18
push dword [esp + 0x44]
call fcn.004af7b0
push dword [esp + 0x6c]
call fcn.004a9010
push dword [esp + 0x6c]
call fcn.004a9010
push 0
push 0x66fd1f
push ebp
call fcn.004a5400
push 0
push 0x66fd1f
push dword [esp + 0x34]
call fcn.004a5400
push 0
push 0x66fd1f
push dword [esp + 0x50]
call fcn.004a5400
push dword [esp + 0x40]
call fcn.004af550
push ebx
call fcn.00517d70
push dword [esp + 0x50]
call fcn.004dbf20
push dword [esp + 0x58]
call fcn.004dbf20
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret