Function at 0x59aa10
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.005405c0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
js 0x59acc6
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x59aad2
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.00513620
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.005449c0
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], ebx
jne 0x59aa7c
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 8], ecx
cmp edi, 0xfffffffe
jne 0x59ab09
mov edi, ecx
sub edi, dword [ebp - 4]
sub edi, 2
test edi, edi
jle 0x59ab3c
push 0xe9
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push edi
call fcn.00511fa0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x59ab27
push 0xec
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x41
push 0x9e
push 4
call fcn.005283a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x59aadc
jmp 0x59aa4d
jge 0x59aa4d
push 0xd7
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x88
push 0x9e
push 4
call fcn.005283a0
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 0x59aa8d
push 0xe5
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x59aaba
push edi
push ebx
call fcn.00528a80
add esp, 8
test eax, eax
jle 0x59acaa
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.00530200
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.0052fde0
add esp, 0x10
test eax, eax
je 0x59acaa
push 8
lea eax, [ebp - 0x2c]
push 0x605f58
push eax
call fcn.0052ff90
add esp, 0xc
test eax, eax
je 0x59acaa
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.0052ff90
add esp, 0xc
test eax, eax
je 0x59acaa
test edi, edi
je 0x59abb9
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0052ff90
add esp, 0xc
test eax, eax
je 0x59acaa
mov eax, dword [ebp - 0xc]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0052fd30
add esp, 0xc
test eax, eax
je 0x59acaa
lea eax, [ebp - 0x2c]
push eax
call fcn.0052ffa0
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.00592e60
add esp, 0x18
test eax, eax
jne 0x59acaa
mov ecx, dword [ebp - 0x14]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x59ac84
xor edx, edx
cmp edi, 0x20
jb 0x59ac72
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x59ac26
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x59ac72
mov eax, edi
and eax, 0x8000001f
jns 0x59ac34
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 0x59ac40
cmp edx, edi
jge 0x59ac84
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x59ac76
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x59ac9b
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 0x59acac
xor esi, esi
test ebx, ebx
je 0x59ab00
push ebx
call fcn.00511f20
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