Function at 0x5b9ba0
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.004b2280
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.005b9a80
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00533e30
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x5b9fcd
test eax, eax
jle 0x5b9fcd
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.005e1e60
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005b9a60
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x5b9c44
push 0x126
push str.....crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.00528ff0
jmp 0x5b9fca
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x5b9c68
push 0x12b
push str.....crypto_sm2_sm2_crypt.c
push 0x68
push 0x66
push 0x35
call fcn.00528ff0
jmp 0x5b9fca
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.00558a30
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5b9c92
push 0x135
jmp 0x5b9fb7
push eax
call fcn.00558aa0
push dword [ebp - 0x10]
call fcn.005589c0
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.005589c0
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5b9cc6
push 0x13e
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x5b9fbe
push 0x142
push str.....crypto_sm2_sm2_crypt.c
push ebx
call fcn.0051a7b0
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.0051a7b0
push 0x144
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0051a7b0
add esp, 0x24
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
je 0x5b9fb2
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5b9fb2
test eax, eax
je 0x5b9fb2
push dword [ebp - 0x14]
call fcn.00549fd0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5b9d46
push 0x14d
jmp 0x5b9fb7
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.0054a110
add esp, 0x14
test eax, eax
je 0x5b9fa4
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00549570
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push eax
push dword [ebp - 0x14]
call fcn.00549f80
add esp, 0x18
test eax, eax
je 0x5b9fa4
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00549d10
add esp, 0x14
test eax, eax
je 0x5b9fa4
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0051d370
add esp, 0xc
test eax, eax
js 0x5b9f96
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.0051d370
add esp, 0xc
test eax, eax
js 0x5b9f96
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.005b8ee0
add esp, 0x1c
test eax, eax
je 0x5b9f96
xor esi, esi
test ebx, ebx
je 0x5b9ee8
mov edx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x5b9ebe
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, ebx
add ecx, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9e35
cmp ecx, edx
jae 0x5b9ebe
lea eax, [edi - 1]
add eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9e43
cmp ecx, edi
jae 0x5b9ebe
mov eax, ebx
and eax, 0x8000001f
jns 0x5b9e51
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 0x5b9e80
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp esi, ebx
je 0x5b9ee8
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 0x5b9ed6
call fcn.005211f0
mov esi, eax
test esi, esi
jne 0x5b9efd
push 0x167
jmp 0x5b9fb7
push dword [ebp + 0xc]
push esi
call fcn.00520e10
add esp, 8
test eax, eax
je 0x5b9f88
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0xc]
push esi
call fcn.00520fe0
add esp, 0xc
test eax, eax
je 0x5b9f88
push ebx
push dword [ebp + 0x18]
push esi
call fcn.00520fe0
add esp, 0xc
test eax, eax
je 0x5b9f88
push edi
push dword [ebp - 0x14]
push esi
call fcn.00520fe0
add esp, 0xc
test eax, eax
je 0x5b9f88
mov edi, dword [ebp - 0x28]
push 0
push edi
push esi
call fcn.00520cd0
add esp, 0xc
test eax, eax
je 0x5b9f88
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push edi
call fcn.00548630
add esp, 0xc
test eax, eax
je 0x5b9f77
push 0x175
push str.....crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x5b9fbe
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], 1
mov dword [eax], ebx
jmp 0x5b9fdf
push 0x170
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x5b9fbe
push 0x15e
push str.....crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x5b9fbe
push 0x156
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x5b9fbe
push 0x147
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.00528ff0
mov edi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e1e60
add esp, 0xc
push 0x180
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.0051a6b0
push 0x181
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.0051a6b0
push 0x182
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
call fcn.0051a6b0
push dword [ebp - 0x1c]
call fcn.00549ce0
push dword [ebp - 0x10]
call fcn.00558990
push edi
call fcn.005b9a30
push esi
call fcn.005211d0
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret