Function at 0x5f901d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push esi
cmovne eax, dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
call fcn.0054f2fe
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
pop ecx
test eax, eax
js 0x5f9218
cmp edi, 0xffffffff
jne 0x5f90a2
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0054d4d4
dec eax
and eax, 7
push esi
mov dword [ebp - 0x18], eax
call fcn.0058ded7
mov edx, eax
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], ebx
jne 0x5f9087
mov byte [esi], bl
inc esi
dec edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], esi
lea eax, [ecx + 2]
cmp edx, eax
jge 0x5f90d4
push 0xba
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x5f90c0
cmp edi, 0xfffffffe
jne 0x5f90ac
push 0xfffffffffffffffd
pop edi
jmp 0x5f9059
cmp edi, 0xfffffffd
jge 0x5f9059
push 0xae
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.00553208
add esp, 0x14
jmp 0x5f9218
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x10], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffd
jne 0x5f9111
mov edi, ecx
test edi, edi
jle 0x5f9133
push 0xc5
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
call fcn.0055426d
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x5f911f
push 0xc8
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push 0x41
jmp 0x5f90c0
cmp edi, ecx
jle 0x5f90e5
push 0xc1
jmp 0x5f9099
push edi
push eax
call fcn.00554e04
pop ecx
pop ecx
test eax, eax
jle 0x5f9218
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
call fcn.005702ef
mov dword [ebp - 4], eax
test eax, eax
je 0x5f9218
push ebx
push dword [ebp + 0x14]
push eax
call fcn.0056ffbe
add esp, 0xc
test eax, eax
je 0x5f9218
push 8
push 0x8539d0
push dword [ebp - 4]
call fcn.0057013f
add esp, 0xc
test eax, eax
je 0x5f9218
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0057013f
add esp, 0xc
test eax, eax
je 0x5f9218
test edi, edi
je 0x5f91a6
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0057013f
add esp, 0xc
test eax, eax
je 0x5f9218
mov eax, dword [ebp - 0xc]
push ebx
add eax, esi
push eax
push dword [ebp - 4]
call fcn.0056ff33
add esp, 0xc
test eax, eax
je 0x5f9218
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.005a9334
add esp, 0x14
test eax, eax
jne 0x5f9218
mov ecx, dword [ebp - 0x10]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x5f91f8
mov esi, dword [ebp - 8]
mov al, byte [ebx + esi]
xor byte [ecx], al
inc ecx
inc ebx
cmp ebx, edi
jl 0x5f91ea
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5f920d
push 8
pop ecx
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
mov byte [eax + esi - 1], 0xbc
push dword [ebp - 4]
call fcn.005702d0
push 0xf7
push str.d:package_cacheopenssl1.1.1g.2crypto_rsa_rsa_pss.c
push edi
push dword [ebp - 8]
call fcn.00554316
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret