Function at 0x59f180
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x60
call fcn.005b2630
mov eax, dword [0x644a10]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x74]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
call fcn.004ba1a0
mov dword [esp + 0x10], eax
test eax, eax
je 0x59f4af
cmp dword [esp + 0x1c], ebx
jne 0x59f1dd
mov dword [esp + 0x1c], ebp
push ebp
call fcn.004a6d50
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
js 0x59f4af
mov ecx, dword [esp + 0x88]
cmp ecx, 0xffffffff
jne 0x59f247
mov dword [esp + 0x88], eax
mov edx, dword [edi + 0x10]
push edx
call fcn.004f2e10
lea ebp, [eax - 1]
push edi
and ebp, 7
call fcn.004c34b0
mov edx, 0xff
mov ecx, ebp
shl edx, cl
add esp, 8
test byte [esi], dl
je 0x59f269
push 0x46
push str.crypto_rsa_rsa_pss.c
push 0x85
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
cmp ecx, 0xfffffffd
jge 0x59f205
push 0x3f
push str.crypto_rsa_rsa_pss.c
push 0x88
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
test ebp, ebp
jne 0x59f26f
inc esi
dec eax
mov edx, dword [esp + 0x18]
lea ecx, [edx + 2]
cmp eax, ecx
jge 0x59f294
push 0x4e
push str.crypto_rsa_rsa_pss.c
push 0x6d
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
mov edi, dword [esp + 0x88]
mov ecx, eax
sub ecx, edx
lea edx, [ecx - 2]
cmp edi, 0xfffffffd
jne 0x59f2d2
mov dword [esp + 0x88], edx
cmp byte [esi + eax - 1], 0xbc
je 0x59f2da
push 0x58
push str.crypto_rsa_rsa_pss.c
push 0x86
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
cmp edi, edx
jle 0x59f2ae
push 0x54
jmp 0x59f27c
lea edi, [ecx - 1]
push 0x5d
lea eax, [esi + edi]
push str.crypto_rsa_rsa_pss.c
push edi
mov dword [esp + 0x2c], eax
call fcn.0048fb50
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x59f314
push 0x5f
push str.crypto_rsa_rsa_pss.c
push 0x41
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push edi
push ebx
call fcn.00568b20
add esp, 0x14
test eax, eax
js 0x59f4af
test edi, edi
jle 0x59f34a
mov ecx, esi
mov eax, ebx
sub ecx, ebx
mov esi, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x59f341
test ebp, ebp
je 0x59f35e
mov ecx, 8
sub ecx, ebp
mov eax, 0xff
sar eax, cl
and byte [ebx], al
xor esi, esi
cmp byte [ebx], 0
jne 0x59f373
lea eax, [edi - 1]
cmp esi, eax
jge 0x59f373
inc esi
cmp byte [esi + ebx], 0
je 0x59f368
mov cl, byte [esi + ebx]
inc esi
cmp cl, 1
je 0x59f399
push 0x6a
push str.crypto_rsa_rsa_pss.c
push 0x87
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
jmp 0x59f4af
mov eax, dword [esp + 0x88]
cmp eax, 0xfffffffe
je 0x59f3b4
mov edx, edi
sub edx, esi
cmp edx, eax
je 0x59f3b4
push 0x6e
jmp 0x59f24e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call fcn.004ba1e0
add esp, 0xc
test eax, eax
je 0x59f4af
mov edx, dword [esp + 0x10]
push 8
push 0x627428
push edx
call fcn.004ba390
add esp, 0xc
test eax, eax
je 0x59f4af
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push ebp
push eax
push ecx
call fcn.004ba390
add esp, 0xc
test eax, eax
je 0x59f4af
sub edi, esi
je 0x59f428
mov edx, dword [esp + 0x10]
push edi
add esi, ebx
push esi
push edx
call fcn.004ba390
add esp, 0xc
test eax, eax
je 0x59f4af
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.004ba3b0
add esp, 0xc
test eax, eax
je 0x59f4af
mov ecx, dword [esp + 0x20]
mov eax, ebp
lea esi, [esp + 0x2c]
cmp ebp, 4
jb 0x59f464
nop
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x59f488
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x59f450
test eax, eax
je 0x59f4a7
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x59f488
cmp eax, 1
jbe 0x59f4a7
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x59f488
cmp eax, 2
jbe 0x59f4a7
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x59f4a7
push 0x7c
push str.crypto_rsa_rsa_pss.c
push 0x68
push 0x7e
push 4
call fcn.00486d00
add esp, 0x14
mov dword [esp + 0x14], 0
jmp 0x59f4af
mov dword [esp + 0x14], 1
push 0x83
push str.crypto_rsa_rsa_pss.c
push ebx
call fcn.0048fc00
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ba1c0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b2129
add esp, 0x60
ret