Function at 0x5b9480
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.004b1b30
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.005b9360
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00533770
add esp, 0xc
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x5b98ad
test eax, eax
jle 0x5b98ad
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.005e1720
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005b9340
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
jne 0x5b9524
push 0x126
push str.....crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.005288a0
jmp 0x5b98aa
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x24]
cmp dword [ecx], eax
je 0x5b9548
push 0x12b
push str.....crypto_sm2_sm2_crypt.c
push 0x68
push 0x66
push 0x35
call fcn.005288a0
jmp 0x5b98aa
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.00558380
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x5b9572
push 0x135
jmp 0x5b9897
push eax
call fcn.005583f0
push dword [ebp - 0x10]
call fcn.00558310
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00558310
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5b95a6
push 0x13e
push str.....crypto_sm2_sm2_crypt.c
push 3
jmp 0x5b989e
push 0x142
push str.....crypto_sm2_sm2_crypt.c
push ebx
call fcn.0051a060
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.0051a060
push 0x144
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
call fcn.0051a060
add esp, 0x24
mov dword [ebp - 0x28], eax
cmp dword [ebp - 8], esi
je 0x5b9892
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x5b9892
test eax, eax
je 0x5b9892
push dword [ebp - 0x14]
call fcn.00549900
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5b9626
push 0x14d
jmp 0x5b9897
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.00549a40
add esp, 0x14
test eax, eax
je 0x5b9884
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004e47a0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push eax
push dword [ebp - 0x14]
call fcn.005498b0
add esp, 0x18
test eax, eax
je 0x5b9884
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00549640
add esp, 0x14
test eax, eax
je 0x5b9884
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call fcn.0051cc20
add esp, 0xc
test eax, eax
js 0x5b9876
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.0051cc20
add esp, 0xc
test eax, eax
js 0x5b9876
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 8]
call fcn.005b87c0
add esp, 0x1c
test eax, eax
je 0x5b9876
xor esi, esi
test ebx, ebx
je 0x5b97c8
mov edx, dword [ebp - 8]
cmp ebx, 0x20
jb 0x5b979e
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, ebx
add ecx, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9715
cmp ecx, edx
jae 0x5b979e
lea eax, [edi - 1]
add eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x5b9723
cmp ecx, edi
jae 0x5b979e
mov eax, ebx
and eax, 0x8000001f
jns 0x5b9731
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 0x5b9760
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
cmp esi, ebx
je 0x5b97c8
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 0x5b97b6
call fcn.00520aa0
mov esi, eax
test esi, esi
jne 0x5b97dd
push 0x167
jmp 0x5b9897
push dword [ebp + 0xc]
push esi
call fcn.005206c0
add esp, 8
test eax, eax
je 0x5b9868
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0xc]
push esi
call fcn.00520890
add esp, 0xc
test eax, eax
je 0x5b9868
push ebx
push dword [ebp + 0x18]
push esi
call fcn.00520890
add esp, 0xc
test eax, eax
je 0x5b9868
push edi
push dword [ebp - 0x14]
push esi
call fcn.00520890
add esp, 0xc
test eax, eax
je 0x5b9868
mov edi, dword [ebp - 0x28]
push 0
push edi
push esi
call fcn.00520580
add esp, 0xc
test eax, eax
je 0x5b9868
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push edi
call fcn.00547f70
add esp, 0xc
test eax, eax
je 0x5b9857
push 0x175
push str.....crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x5b989e
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x34], 1
mov dword [eax], ebx
jmp 0x5b98bf
push 0x170
push str.....crypto_sm2_sm2_crypt.c
push 6
jmp 0x5b989e
push 0x15e
push str.....crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x5b989e
push 0x156
push str.....crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x5b989e
push 0x147
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.005288a0
mov edi, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e1720
add esp, 0xc
push 0x180
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 8]
call fcn.00519f50
push 0x181
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.00519f50
push 0x182
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
call fcn.00519f50
push dword [ebp - 0x1c]
call fcn.00549610
push dword [ebp - 0x10]
call fcn.005582e0
push edi
call fcn.005b9310
push esi
call fcn.00520a80
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret