Function at 0x59ba80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
xor ebx, ebx
test eax, eax
push ecx
cmove eax, ecx
mov dword [ebp + 0x18], eax
call fcn.00541650
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
js 0x59bd36
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x59bb42
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.005146c0
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.00545a80
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], ebx
jne 0x59baec
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 8], ecx
cmp edi, 0xfffffffe
jne 0x59bb79
mov edi, ecx
sub edi, dword [ebp - 4]
sub edi, 2
test edi, edi
jle 0x59bbac
push 0xe9
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push edi
call fcn.00513040
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x59bb97
push 0xec
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x41
push 0x9e
push 4
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x59bb4c
jmp 0x59babd
jge 0x59babd
push 0xd7
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x88
push 0x9e
push 4
call fcn.00529440
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x59bafd
push 0xe5
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x59bb2a
push edi
push ebx
call fcn.00529b00
add esp, 8
test eax, eax
jle 0x59bd1a
mov ecx, dword [ebp - 8]
mov eax, ecx
sub eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
dec eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00531280
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00530e60
add esp, 0x10
test eax, eax
je 0x59bd1a
push 8
lea eax, [ebp - 0x2c]
push 0x606f58
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59bd1a
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59bd1a
test edi, edi
je 0x59bc29
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00531010
add esp, 0xc
test eax, eax
je 0x59bd1a
mov eax, dword [ebp - 0xc]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00530db0
add esp, 0xc
test eax, eax
je 0x59bd1a
lea eax, [ebp - 0x2c]
push eax
call fcn.00531020
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.00593eb0
add esp, 0x18
test eax, eax
jne 0x59bd1a
mov ecx, dword [ebp - 0x14]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x59bcf4
xor edx, edx
cmp edi, 0x20
jb 0x59bce2
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x59bc96
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x59bce2
mov eax, edi
and eax, 0x8000001f
jns 0x59bca4
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
lea eax, [ebx + 0x10]
lea ecx, [ecx]
movdqu xmm0, xmmword [ecx]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
movdqu xmm1, xmmword [eax - 0x20]
movdqu xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, dword [ebp + 0x18]
jl 0x59bcb0
cmp edx, edi
jge 0x59bcf4
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x59bce6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x59bd0b
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 8]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x59bd1c
xor esi, esi
test ebx, ebx
je 0x59bb70
push ebx
call fcn.00512fc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret