Function at 0x5b1ea0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.0045cf80
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x48], 0
xor ebx, ebx
call fcn.004bb5d0
mov esi, dword [esp + 0x70]
push esi
mov dword [esp + 0x14], eax
call fcn.004a05f0
mov edi, eax
push edi
call fcn.004ab280
push esi
mov dword [esp + 0x58], eax
call fcn.004ab4b0
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.004aba00
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x58], ebx
call fcn.004c15d0
push esi
mov dword [esp + 0x40], eax
call fcn.004c15c0
add esp, 0x18
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x10], ebx
je 0x5b248d
cmp dword [esp + 0x2c], ebx
jle 0x5b248d
push edi
call fcn.005b1740
mov esi, eax
add esp, 4
mov dword [esp + 0x58], esi
test esi, esi
jne 0x5b1f61
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0x94
jmp 0x5b249c
push edi
call fcn.004c0130
push edi
mov dword [esp + 0x20], eax
call fcn.004c0130
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.004ffde0
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x18], ebp
je 0x5b2479
cmp dword [esp + 0x1c], ebp
je 0x5b2479
test ebx, ebx
je 0x5b2479
push ebx
call fcn.004ffeb0
push ebx
call fcn.004ffc60
push ebx
mov dword [esp + 0x2c], eax
call fcn.004ffc60
push ebx
mov dword [esp + 0x4c], eax
call fcn.004ffc60
push ebx
mov dword [esp + 0x44], eax
call fcn.004ffc60
push ebx
mov dword [esp + 0x58], eax
call fcn.004ffc60
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5b2003
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xa8
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80003
jmp 0x5b24ad
push 0xac
lea eax, [esi + esi]
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.004a7130
push 0xad
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x40]
mov dword [esp + 0x2c], eax
call fcn.004a7130
add esp, 0x18
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], ebp
je 0x5b2465
test eax, eax
je 0x5b2465
mov eax, dword [esp + 0x84]
push dword [eax]
push 0
push dword [esp + 0x88]
call fcn.005bbf50
push ebx
push 0
push dword [esp + 0x60]
push dword [esp + 0x38]
call fcn.0050dc10
add esp, 0x1c
test eax, eax
jne 0x5b208c
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xb7
jmp 0x5b249c
push ebx
push 0
push 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
push edi
call fcn.004bfff0
add esp, 0x18
test eax, eax
je 0x5b2443
push ebx
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x24]
push edi
call fcn.004bfd00
add esp, 0x14
test eax, eax
je 0x5b2443
push ebx
push dword [esp + 0x24]
push dword [esp + 0x58]
push 0
push dword [esp + 0x2c]
push edi
call fcn.004bfff0
add esp, 0x18
test eax, eax
je 0x5b2443
push ebx
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x28]
push edi
call fcn.004bfd00
add esp, 0x14
test eax, eax
je 0x5b2443
mov edi, dword [esp + 0x14]
push esi
push edi
push dword [esp + 0x38]
call fcn.004a73e0
add esp, 0xc
test eax, eax
js 0x5b2432
lea eax, [esi + edi]
push esi
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x58], eax
call fcn.004a73e0
add esp, 0xc
test eax, eax
js 0x5b2432
mov esi, dword [esp + 0x7c]
push 0xc9
push str.crypto_sm2_sm2_crypt.c
push esi
call fcn.004a7130
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x5b2183
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xcb
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0xc0100
jmp 0x5b24ad
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.004e1a30
add esp, 0x24
test eax, eax
jne 0x5b21cb
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xd2
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80006
jmp 0x5b24ad
xor edi, edi
test esi, esi
je 0x5b229b
mov edx, ebp
mov ebp, dword [esp + 0x78]
cmp esi, 0x40
jb 0x5b227c
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, esi
add ecx, esi
cmp edx, eax
ja 0x5b21fa
cmp ecx, ebp
jae 0x5b227c
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]
nop dword [eax]
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 0x5b2220
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x54], edi
cmp edi, esi
je 0x5b2299
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 0x5b2285
mov ebp, dword [esp + 0x20]
jmp 0x5b229b
mov ebp, edx
push dword [esp + 0x38]
push dword [esp + 0x78]
call fcn.004ab990
add esp, 4
push eax
push dword [esp + 0x30]
call fcn.004bb660
add esp, 0xc
mov dword [esp + 0x44], eax
test eax, eax
jne 0x5b22d4
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xdb
jmp 0x5b249c
mov edi, dword [esp + 0x10]
push eax
push edi
call fcn.004baf90
add esp, 8
test eax, eax
je 0x5b241e
mov edi, dword [esp + 0x58]
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004baff0
add esp, 0xc
test eax, eax
je 0x5b241e
push esi
push dword [esp + 0x7c]
push dword [esp + 0x18]
call fcn.004baff0
add esp, 0xc
test eax, eax
je 0x5b241e
push edi
push dword [esp + 0x50]
mov edi, dword [esp + 0x18]
push edi
call fcn.004baff0
add esp, 0xc
test eax, eax
je 0x5b241e
push 0
push dword [esp + 0x28]
push edi
call fcn.004bacb0
add esp, 0xc
test eax, eax
je 0x5b241e
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
call fcn.004e1d40
mov dword [esp + 0x64], eax
call fcn.004e1d40
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x5b240a
test eax, eax
je 0x5b240a
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
call fcn.00519560
add esp, 0xc
test eax, eax
je 0x5b23f6
push esi
push ebp
push dword [esp + 0x70]
call fcn.00519560
add esp, 0xc
test eax, eax
je 0x5b23f6
push 0x660088
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00511500
add esp, 0xc
test eax, eax
jns 0x5b23e0
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xf9
jmp 0x5b249c
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x48], 1
mov dword [ecx], eax
jmp 0x5b24b7
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xf2
jmp 0x5b249c
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xed
jmp 0x5b216d
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xe3
jmp 0x5b21b5
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xc5
jmp 0x5b249c
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xbf
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80010
jmp 0x5b24ad
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0xb0
jmp 0x5b216d
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0x9c
jmp 0x5b216d
call fcn.004ade90
push str.ossl_sm2_encrypt
push 0x8e
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0xc0103
push 0x35
call fcn.004ae040
add esp, 0x18
push dword [esp + 0x44]
call fcn.004bb690
push dword [esp + 0x6c]
call fcn.004e1c30
push dword [esp + 0x6c]
call fcn.004e1c30
push 0x104
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.004a6ed0
push 0x105
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call fcn.004a6ed0
push 0x106
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x50]
call fcn.004a6ed0
push dword [esp + 0x40]
call fcn.004bb540
push ebx
call fcn.004ffbd0
push dword [esp + 0x50]
call fcn.004bfcd0
push dword [esp + 0x58]
call fcn.004bfcd0
mov eax, dword [esp + 0x88]
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret