Function at 0x58b730
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc0
call fcn.005d6920
mov eax, dword [0x6a8c7c]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xcc]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe0]
push esi
mov dword [esp + 0x40], eax
xor esi, esi
mov eax, dword [esp + 0xec]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
push edi
mov edi, dword [esp + 0xf4]
test eax, eax
jne 0x58b7b2
call fcn.0055fa50
mov dword [esp + 0x38], eax
test edi, edi
push eax
cmove edi, eax
mov dword [esp + 0x38], edi
call fcn.00563570
add esp, 4
mov edi, eax
mov dword [esp + 0x18], edi
cmp dword [esp + 0xd8], ebx
jle 0x58bbbe
test ebp, ebp
jle 0x58bbbe
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jl 0x58bb3d
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x58bb3d
mov ebx, ecx
push 0x9d
sub ebx, edi
dec ebx
push str.crypto_rsa_rsa_oaep.c
push ebx
call fcn.00548830
push 0x9e
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x40], esi
call fcn.00548830
add esp, 0x18
mov dword [esp + 0x20], eax
test esi, esi
je 0x58bba4
test eax, eax
je 0x58bba4
push dword [esp + 0x10]
push 0
push eax
call fcn.005ed310
mov eax, dword [esp + 0x1c]
push ebp
push dword [esp + 0x34]
sub eax, ebp
add eax, dword [esp + 0x34]
push eax
call fcn.005ed5a0
mov ecx, dword [esp + 0x38]
push dword [esp + 0x4c]
push ebx
movzx eax, byte [ecx]
lea ebp, [ecx + 1]
dec eax
mov dword [esp + 0x50], ebp
shr eax, 0x1f
neg eax
mov dword [esp + 0x3c], eax
lea eax, [ecx + 1]
add eax, edi
push eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x70]
push edi
push eax
call fcn.0058b180
add esp, 0x2c
test eax, eax
jne 0x58bb60
xor edx, edx
test edi, edi
jle 0x58b980
cmp edi, 0x40
jb 0x58b964
lea eax, [ebp - 1]
add eax, edi
lea ecx, [esp + edi + 0x4b]
lea edi, [esp + 0x4c]
cmp edi, eax
mov edi, dword [esp + 0x18]
ja 0x58b8cd
cmp ecx, ebp
jae 0x58b964
mov eax, edi
and eax, 0x8000003f
jns 0x58b8db
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
lea esi, [esp + 0x5c]
lea edi, [esp + 0x4c]
sub ecx, eax
sub edi, ebp
lea eax, [ebp + 0x20]
sub esi, ebp
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [esp + edx + 0x4c]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x4c], xmm1
movups xmm0, xmmword [esp + edx + 0x5c]
movups xmm1, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [esp + edx + 0x5c], xmm1
add edx, 0x40
movups xmm1, xmmword [eax + esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax + esi - 0x40], xmm1
movups xmm0, xmmword [eax + ebp - 0x40]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
cmp edx, ecx
jl 0x58b902
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x14], edx
cmp edx, edi
jge 0x58b980
lea eax, [esp + 0x4c]
sub ebp, eax
nop word [eax + eax]
lea ecx, [esp + 0x4c]
add ecx, edx
inc edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
cmp edx, edi
jl 0x58b970
push dword [esp + 0x34]
lea eax, [esp + 0x50]
push edi
push eax
push ebx
push esi
call fcn.0058b180
add esp, 0x14
test eax, eax
jne 0x58bb60
xor ebp, ebp
test ebx, ebx
jle 0x58ba68
cmp ebx, 0x40
jb 0x58ba45
mov edx, dword [esp + 0x24]
lea ecx, [esi - 1]
add ecx, ebx
lea eax, [edx - 1]
add eax, ebx
cmp esi, eax
ja 0x58b9c9
cmp ecx, edx
jae 0x58ba45
mov eax, ebx
and eax, 0x8000003f
jns 0x58b9d7
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, ebx
sub ecx, eax
lea eax, [esi + 0x10]
mov dword [esp + 0x30], ecx
lea ecx, [edx + 0x30]
sub edx, esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
add ebp, 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 [edi + eax - 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 ebp, edx
jl 0x58b9f3
mov edi, dword [esp + 0x18]
cmp ebp, ebx
jge 0x58ba68
mov edi, dword [esp + 0x24]
lea ecx, [esi + ebp]
mov edx, ebx
sub edi, esi
sub edx, ebp
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x58ba56
mov edi, dword [esp + 0x18]
push 0
push dword [esp + 0x3c]
lea eax, [esp + 0x94]
push 0
push eax
push dword [esp + 0xfc]
push dword [esp + 0x58]
call fcn.0056b520
add esp, 0x18
test eax, eax
je 0x58bb60
push edi
lea eax, [esp + 0x90]
push eax
push esi
call fcn.004013d0
mov edx, dword [esp + 0x28]
add esp, 0xc
xor ebp, ebp
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp edi, ebx
jge 0x58bb0a
movzx esi, byte [edi + esi]
mov ecx, ebp
mov edx, esi
not ecx
xor edx, 1
dec edx
shr edx, 0x1f
neg edx
and ecx, edx
or ebp, edx
mov edx, dword [esp + 0x1c]
mov eax, ecx
not eax
and ecx, edi
and eax, dword [esp + 0x3c]
inc edi
or ecx, eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x28]
shr eax, 0x1f
neg eax
mov dword [esp + 0x3c], ecx
or eax, ebp
and edx, eax
mov dword [esp + 0x1c], edx
cmp edi, ebx
jl 0x58bac4
jmp 0x58bb0c
xor ecx, ecx
test edx, ebp
je 0x58bb3d
inc ecx
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0xd8], eax
jge 0x58bb91
push 0xe3
push str.crypto_rsa_rsa_oaep.c
push 0x6d
push 0x99
push 4
call fcn.005474b0
add esp, 0x14
push 0xf0
push str.crypto_rsa_rsa_oaep.c
push 0x79
push 0x99
push 4
call fcn.005474b0
mov dword [esp + 0x40], 0xffffffff
add esp, 0x14
push 0xf2
push str.crypto_rsa_rsa_oaep.c
push ebx
push esi
call fcn.00548920
push 0xf3
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x28]
push dword [esp + 0x3c]
call fcn.00548920
mov eax, dword [esp + 0x4c]
add esp, 0x20
jmp 0x58bbc1
push eax
lea eax, [ecx + esi]
push eax
push dword [esp + 0x50]
call fcn.005ed5a0
add esp, 0xc
jmp 0x58bb60
push 0xa0
push str.crypto_rsa_rsa_oaep.c
push 0x41
push 0x99
push 4
call fcn.005474b0
jmp 0x58bb5d
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d584c
add esp, 0xc0
ret