Function at 0x58b310
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.005d6920
mov eax, dword [0x6a8c7c]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x84]
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], eax
dec edi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x58b378
call fcn.0055fa50
mov ecx, eax
mov dword [esp + 0x18], eax
test ebp, ebp
push ecx
cmove ebp, ecx
mov dword [esp + 0x30], ebp
call fcn.00563570
mov esi, eax
mov ecx, edi
add esp, 4
mov dword [esp + 0x10], esi
lea eax, [esi + esi]
sub ecx, eax
mov dword [esp + 0x20], ecx
dec ecx
cmp ebx, ecx
jle 0x58b3cd
push 0x3c
push str.crypto_rsa_rsa_oaep.c
push 0x6e
push 0x9a
push 4
call fcn.005474b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d584c
add esp, 0x68
ret
inc eax
cmp edi, eax
jge 0x58b3ff
push 0x42
push str.crypto_rsa_rsa_oaep.c
push 0x78
push 0x9a
push 4
call fcn.005474b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d584c
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
lea ebx, [eax + 1]
mov byte [eax], 0
push 0
add ebx, esi
lea ebp, [eax + 1]
push ebx
push dword [esp + 0xa0]
mov dword [esp + 0x28], ebp
push dword [esp + 0x44]
mov dword [esp + 0x34], ebx
call fcn.0056b520
add esp, 0x18
test eax, eax
je 0x58b6eb
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x28]
dec eax
push eax
lea eax, [ebx + esi]
push 0
push eax
call fcn.005ed310
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, ecx
sub eax, esi
push ecx
push dword [esp + 0x34]
add eax, edi
push eax
mov byte [eax - 1], 1
call fcn.005ed5a0
push esi
push ebp
call fcn.0054c9b0
add esp, 0x20
test eax, eax
jle 0x58b6eb
push 0x57
sub edi, esi
push str.crypto_rsa_rsa_oaep.c
push edi
call fcn.00548830
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebp, ebp
jne 0x58b4c5
push 0x59
push str.crypto_rsa_rsa_oaep.c
push 0x41
push 0x9a
push 4
call fcn.005474b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d584c
add esp, 0x68
ret
push dword [esp + 0x2c]
push esi
push dword [esp + 0x1c]
push edi
push ebp
call fcn.0058b180
add esp, 0x14
test eax, eax
js 0x58b6db
xor ebx, ebx
test edi, edi
jle 0x58b5c2
mov edx, dword [esp + 0x1c]
cmp edi, 0x40
jb 0x58b59c
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x58b50d
cmp ecx, ebp
jae 0x58b59c
mov eax, edi
and eax, 0x8000003f
jns 0x58b51b
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov esi, ebp
sub ecx, eax
sub esi, edx
mov dword [esp + 0x24], esi
lea eax, [edx + 0x10]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
lea ecx, [ebp + 0x30]
mov ebp, dword [esp + 0x24]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
add ebx, 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 xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [esp + 0x20]
jl 0x58b540
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ebx
cmp ebx, edi
jge 0x58b5c6
lea ecx, [ebx + edx]
mov dword [esp + 0x10], ebp
sub ebp, edx
mov edx, edi
sub edx, ebx
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x58b5b0
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push edi
push edx
push esi
push eax
call fcn.0058b180
add esp, 0x14
test eax, eax
js 0x58b6db
xor edx, edx
test esi, esi
jle 0x58b6b3
mov ebx, dword [esp + 0x14]
cmp esi, 0x40
jb 0x58b69a
lea ecx, [ebx - 1]
lea eax, [esp + esi + 0x33]
add ecx, esi
cmp ebx, eax
ja 0x58b612
lea eax, [esp + 0x34]
cmp ecx, eax
jae 0x58b69a
mov eax, esi
and eax, 0x8000003f
jns 0x58b620
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, esi
lea edi, [esp + 0x34]
sub ecx, eax
lea ebp, [esp + 0x44]
sub edi, ebx
lea eax, [ebx + 0x20]
sub ebp, ebx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
nop
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esp + edx + 0x34]
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [esp + edx + 0x44]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp edx, ecx
jl 0x58b640
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
cmp edx, esi
jge 0x58b6b3
lea edi, [esp + 0x34]
sub edi, ebx
lea ecx, [edx + ebx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x58b6a5
push 0x67
push str.crypto_rsa_rsa_oaep.c
push ebp
call fcn.00548860
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005d584c
add esp, 0x68
ret
push 0x6b
push str.crypto_rsa_rsa_oaep.c
push ebp
call fcn.00548860
add esp, 0xc
mov ecx, dword [esp + 0x74]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d584c
add esp, 0x68
ret