Function at 0x58fe70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], 0
test eax, eax
mov dword [ebp - 4], ebx
push ecx
cmovne edx, eax
mov dword [ebp - 0x1c], edx
call fcn.005189f0
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
js 0x59012b
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x58fef6
mov edi, eax
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.004f82b0
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.004fc660
mov esi, dword [ebp + 0xc]
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], ebx
jne 0x58fee2
mov byte [esi], bl
inc esi
dec edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + 2]
cmp edx, eax
jge 0x58ff22
push 0xb8
jmp 0x58ff79
cmp edi, 0xfffffffe
jne 0x58fefd
jmp 0x58feb2
jge 0x58feb2
push 0xac
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.0050bc80
add esp, 0x14
jmp 0x59012a
mov eax, edx
sub eax, ecx
mov dword [ebp - 0xc], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffe
jne 0x58ff70
mov edi, ecx
test edi, edi
jle 0x58ffa9
push 0xc3
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_pss.c
push edi
call fcn.004f4e00
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x58ff94
push 0xc6
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.0050bc80
add esp, 0x14
jmp 0x590129
cmp edi, ecx
jle 0x58ff33
push 0xbf
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call fcn.0050bc80
add esp, 0x14
jmp 0x590129
push edi
push ebx
call fcn.004f3c30
add esp, 8
test eax, eax
jle 0x590129
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 8], eax
call fcn.004fb500
mov dword [ebp - 4], eax
test eax, eax
je 0x590129
push 0
push dword [ebp + 0x14]
push eax
call fcn.004fb010
add esp, 0xc
test eax, eax
je 0x590129
push 8
push 0x655518
push dword [ebp - 4]
call fcn.004fb1c0
add esp, 0xc
test eax, eax
je 0x590129
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004fb1c0
add esp, 0xc
test eax, eax
je 0x590129
test edi, edi
je 0x59001f
push edi
push ebx
push dword [ebp - 4]
call fcn.004fb1c0
add esp, 0xc
test eax, eax
je 0x590129
mov eax, dword [ebp - 8]
push 0
add eax, esi
push eax
push dword [ebp - 4]
call fcn.004faf70
add esp, 0xc
test eax, eax
je 0x590129
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.00563bb0
add esp, 0x14
test eax, eax
jne 0x590129
mov eax, dword [ebp - 0xc]
lea ecx, [esi - 2]
sub eax, edi
add ecx, eax
mov dword [ebp + 0x18], ecx
xor byte [ecx], 1
inc ecx
mov dword [ebp - 0x1c], ecx
test edi, edi
jle 0x590103
xor edx, edx
cmp edi, 0x40
jb 0x5900f5
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x59008e
mov eax, dword [ebp + 0x18]
add eax, edi
cmp eax, ebx
jae 0x5900f5
mov eax, edi
and eax, 0x8000003f
jns 0x59009c
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
lea eax, [ebx + 0x20]
movups xmm0, xmmword [ecx]
add edx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [eax - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ecx + 0x10], xmm1
movups xmm1, xmmword [ecx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, dword [ebp + 0x18]
jl 0x5900a5
cmp edx, edi
jge 0x590103
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x5900f5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x59011a
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [eax + esi - 1], 0xbc
pop esi
pop edi
push dword [ebp - 4]
call fcn.004fb4e0
push 0xf5
push str.........prog3rdPartyLibsopenssl_1.1crypto_rsa_rsa_pss.c
push ebx
call fcn.004f4da0
mov eax, dword [ebp - 0x18]
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret