Function at 0x5b8d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
call fcn.005b2420
xor edi, edi
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], edi
call fcn.005b8c60
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00533110
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x5b91ad
test eax, eax
jle 0x5b91ad
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.005e1180
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005b8c40
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x5b8e24
push 0x126
push str.....crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.00528240
jmp 0x5b91aa
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x5b8e48
push 0x12b
push str.....crypto_sm2_sm2_crypt.c
push 0x68
push 0x66
push 0x35
call fcn.00528240
jmp 0x5b91aa
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x40], ecx
mov edi, dword [eax + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], ebx
call fcn.00557d10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5b8e72
push 0x135
jmp 0x5b9197
push eax
call fcn.00557d80
push dword [ebp - 0x10]
call fcn.00557ca0
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00557ca0
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5b8ea6
push 0x13e
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x5b919e
push 0x142
push str.....crypto_sm2_sm2_crypt.c
push ebx
call fcn.00519aa0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push 0x143
add eax, eax
push str.....crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x38], eax
call fcn.00519aa0
push 0x144
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.00519aa0
add esp, 0x24
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
je 0x5b9192
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5b9192
test eax, eax
je 0x5b9192
push dword [ebp - 0x14]
call fcn.00549270
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5b8f26
push 0x14d
jmp 0x5b9197
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.005493b0
add esp, 0x14
test eax, eax
je 0x5b9184
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005b2410
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push eax
push dword [ebp - 0x14]
call fcn.00549220
add esp, 0x18
test eax, eax
je 0x5b9184
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00548fb0
add esp, 0x14
test eax, eax
je 0x5b9184
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0051c630
add esp, 0xc
test eax, eax
js 0x5b9176
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
call fcn.0051c630
add esp, 0xc
test eax, eax
js 0x5b9176
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.005b80c0
add esp, 0x1c
test eax, eax
je 0x5b9176
xor esi, esi
test ebx, ebx
je 0x5b90c8
mov edx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x5b909e
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, ebx
add ecx, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9015
cmp ecx, edx
jae 0x5b909e
lea eax, [edi - 1]
add eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9023
cmp ecx, edi
jae 0x5b909e
mov eax, ebx
and eax, 0x8000001f
jns 0x5b9031
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [ebp + 0x18]
mov edx, ebx
sub edx, eax
mov ebx, edi
mov eax, dword [ebp - 8]
add ecx, 0x10
sub ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, edi
sub ebx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
mov ebx, dword [ebp - 0x30]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
mov ebx, dword [ebp - 0x2c]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [ebx + ecx - 0x20]
mov ebx, dword [ebp - 0x3c]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, edx
jne 0x5b9060
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp esi, ebx
je 0x5b90c8
sub edi, edx
lea ecx, [esi + edx]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0x18]
sub edi, edx
mov edx, ebx
sub edx, esi
mov esi, dword [ebp - 0x20]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + edi - 1], al
sub edx, 1
jne 0x5b90b6
call fcn.005204b0
mov esi, eax
test esi, esi
jne 0x5b90dd
push 0x167
jmp 0x5b9197
push dword [ebp + 0xc]
push esi
call fcn.005200d0
add esp, 8
test eax, eax
je 0x5b9168
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0xc]
push esi
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5b9168
push ebx
push dword [ebp + 0x18]
push esi
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5b9168
push edi
push dword [ebp - 0x14]
push esi
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5b9168
mov edi, dword [ebp - 0x28]
push 0
push edi
push esi
call fcn.0051ff90
add esp, 0xc
test eax, eax
je 0x5b9168
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push edi
call fcn.00547900
add esp, 0xc
test eax, eax
je 0x5b9157
push 0x175
push str.....crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x5b919e
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], 1
mov dword [eax], ebx
jmp 0x5b91bf
push 0x170
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x5b919e
push 0x15e
push str.....crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x5b919e
push 0x156
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x5b919e
push 0x147
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00528240
mov edi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e1180
add esp, 0xc
push 0x180
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.005199a0
push 0x181
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.005199a0
push 0x182
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
call fcn.005199a0
push dword [ebp - 0x1c]
call fcn.00548f70
push dword [ebp - 0x10]
call fcn.00557c70
push edi
call fcn.005b8c10
push esi
call fcn.00520490
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret