Function at 0x59a490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push ebx
push esi
xor esi, esi
xor ebx, ebx
test eax, eax
push ecx
cmovne edx, eax
mov dword [ebp - 0x10], edx
call fcn.005190d0
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
js 0x59a770
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x59a554
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.004f1650
dec eax
and eax, 7
push esi
mov dword [ebp - 0xc], eax
call fcn.004f66f0
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], ebx
jne 0x59a4fe
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 4], ecx
cmp edi, 0xfffffffe
jne 0x59a58b
mov edi, ecx
sub edi, dword [ebp + 0x18]
sub edi, 2
test edi, edi
jle 0x59a5be
push 0xe9
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push edi
call fcn.004ee770
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x59a5a9
push 0xec
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.0050ab50
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x59a55e
jmp 0x59a4cf
jge 0x59a4cf
push 0xd7
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.0050ab50
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x59a50f
push 0xe5
push str.g:copenssl_1.0.2ecrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x59a53c
push edi
push ebx
call fcn.00507be0
add esp, 8
test eax, eax
jle 0x59a754
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
dec ecx
push eax
mov dword [ebp - 8], ecx
call fcn.004f5660
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.004f5110
add esp, 0x10
test eax, eax
je 0x59a754
push 8
lea eax, [ebp - 0x2c]
push 0x680b10
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
je 0x59a754
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
je 0x59a754
test edi, edi
je 0x59a639
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
je 0x59a754
mov eax, dword [ebp - 8]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004f5060
add esp, 0xc
test eax, eax
je 0x59a754
lea eax, [ebp - 0x2c]
push eax
call fcn.004f52c0
push dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.0056ea30
add esp, 0x18
test eax, eax
jne 0x59a754
mov eax, dword [ebp - 0x14]
lea ecx, [esi - 2]
sub eax, edi
add ecx, eax
mov dword [ebp + 0x18], ecx
xor byte [ecx], 1
inc ecx
mov dword [ebp - 0x14], ecx
test edi, edi
jle 0x59a72e
xor edx, edx
cmp edi, 0x40
jb 0x59a71b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x59a6b2
mov eax, dword [ebp + 0x18]
add eax, edi
cmp eax, ebx
jae 0x59a71b
mov eax, edi
and eax, 0x8000003f
jns 0x59a6c0
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
nop dword [eax]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ebx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [ebx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [ebx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, eax
jl 0x59a6d0
cmp edx, edi
jge 0x59a72e
nop
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x59a720
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x59a745
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 4]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x59a756
xor esi, esi
test ebx, ebx
je 0x59a582
push ebx
call fcn.004ee6a0
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