Function at 0x5958cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov dword [ebp - 0x48], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
dec edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ecx
test edx, edx
jne 0x59591f
call fcn.0053391f
mov edx, eax
mov dword [ebp - 0x54], eax
test ebx, ebx
push edx
cmove ebx, edx
mov dword [ebp - 0x5c], ebx
call fcn.0053b734
mov ebx, eax
pop ecx
mov ecx, edi
lea eax, [ebx + ebx]
sub ecx, eax
mov dword [ebp - 0x68], ecx
dec ecx
cmp dword [ebp - 0x4c], ecx
jle 0x59595f
push 0x3e
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_oaep.c
push 0x6e
push 0x9a
push 4
call fcn.0053f640
add esp, 0x14
xor eax, eax
jmp 0x595aa5
inc eax
cmp edi, eax
jge 0x59596f
push 0x44
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x595949
mov ecx, dword [ebp - 0x48]
xor eax, eax
push eax
push dword [ebp - 0x54]
lea edi, [ecx + 1]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x70], edi
push eax
add ecx, ebx
push ecx
push dword [ebp + 0x1c]
push dword [ebp - 0x64]
call fcn.0055c260
add esp, 0x18
test eax, eax
je 0x595a84
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x4c]
dec eax
push eax
mov eax, dword [ebp - 0x48]
inc eax
add eax, ebx
add eax, ebx
push 0
push eax
call fcn.00718210
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
inc eax
add eax, ebx
sub eax, edx
sub eax, ebx
add eax, dword [ebp - 0x58]
push edx
push dword [ebp - 0x6c]
push eax
mov byte [eax - 1], 1
call fcn.00717660
push ebx
push edi
call fcn.0054123c
add esp, 0x20
test eax, eax
jle 0x595a84
mov esi, dword [ebp - 0x58]
push 0x55
sub esi, ebx
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_oaep.c
push esi
call fcn.005406a5
add esp, 0xc
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x595a19
push 0x57
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_oaep.c
push 0x41
push 0x9a
push 4
call fcn.0053f640
add esp, 0x14
jmp 0x595a84
push dword [ebp - 0x5c]
push ebx
push edi
push esi
push eax
call fcn.0059576d
add esp, 0x14
test eax, eax
js 0x595a84
test esi, esi
jle 0x595a4d
mov eax, dword [ebp - 0x48]
mov edi, esi
mov edx, dword [ebp - 0x50]
inc eax
add eax, ebx
mov ecx, eax
sub edx, eax
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x595a3f
mov edi, dword [ebp - 0x70]
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
inc eax
push esi
add eax, ebx
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0059576d
add esp, 0x14
test eax, eax
js 0x595a84
test ebx, ebx
jle 0x595a7d
lea ecx, [ebp - 0x44]
sub ecx, edi
mov al, byte [ecx + edi]
xor byte [edi], al
inc edi
sub ebx, 1
jne 0x595a72
mov dword [ebp - 0x60], 1
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0054ec79
push 0x68
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_oaep.c
push esi
push dword [ebp - 0x50]
call fcn.0054074e
mov eax, dword [ebp - 0x60]
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret