Function at 0x5ba650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], 0
push esi
test eax, eax
mov dword [ebp - 4], ebx
push edi
cmovne edx, eax
push ecx
mov dword [ebp - 0x1c], edx
call fcn.00533110
mov edi, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
js 0x5ba8f7
cmp edi, 0xffffffff
jne 0x5ba6c7
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0051cc30
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.005217c0
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], ebx
jne 0x5ba6fb
mov ecx, dword [ebp + 0xc]
mov byte [ecx], bl
inc ecx
dec edx
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x5ba701
cmp edi, 0xfffffffe
jne 0x5ba6d3
mov edi, 0xfffffffd
jmp 0x5ba693
cmp edi, 0xfffffffd
jge 0x5ba693
push 0xae
push str.....crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.00528240
add esp, 0x14
jmp 0x5ba8f7
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 8]
lea eax, [ecx + 2]
cmp edx, eax
jge 0x5ba72b
push 0xba
push str.....crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call fcn.00528240
add esp, 0x14
jmp 0x5ba8f7
mov esi, edx
sub esi, ecx
cmp edi, 0xfffffffd
jne 0x5ba774
lea edi, [esi - 2]
test edi, edi
jle 0x5ba794
push 0xc5
push str.....crypto_rsa_rsa_pss.c
push edi
call fcn.00519a00
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5ba782
push 0xc8
push str.....crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.00528240
add esp, 0x14
jmp 0x5ba8f7
lea eax, [esi - 2]
cmp edi, eax
jle 0x5ba737
push 0xc1
jmp 0x5ba710
push edi
push ebx
call fcn.00525650
add esp, 8
test eax, eax
jle 0x5ba8f7
mov eax, dword [ebp + 0x18]
lea ecx, [esi - 1]
add eax, ecx
mov dword [ebp - 0xc], eax
call fcn.005204b0
mov dword [ebp - 4], eax
test eax, eax
je 0x5ba8f7
push 0
push dword [ebp + 0x14]
push eax
call fcn.005200f0
add esp, 0xc
test eax, eax
je 0x5ba8f7
push 8
push 0x6777b0
push dword [ebp - 4]
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5ba8f7
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5ba8f7
test edi, edi
je 0x5ba811
push edi
push ebx
push dword [ebp - 4]
call fcn.005202a0
add esp, 0xc
test eax, eax
je 0x5ba8f7
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00520050
add esp, 0xc
test eax, eax
je 0x5ba8f7
push dword [ebp - 0x1c]
lea eax, [esi - 1]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push dword [ebp + 0x18]
call fcn.00596c00
add esp, 0x14
test eax, eax
jne 0x5ba8f7
mov edx, dword [ebp + 0x18]
sub esi, edi
xor byte [esi + edx - 2], 1
lea ecx, [esi + edx]
dec ecx
test edi, edi
jle 0x5ba8d1
xor edx, edx
cmp edi, 0x20
jb 0x5ba8b9
lea eax, [ebx - 1]
lea esi, [ecx - 1]
add eax, edi
add esi, edi
cmp ecx, eax
ja 0x5ba874
cmp esi, ebx
jae 0x5ba8b9
mov eax, edi
and eax, 0x8000001f
jns 0x5ba882
dec eax
or eax, 0xffffffe0
inc eax
mov esi, edi
sub esi, eax
nop word [eax + eax]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ebx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm1, xmmword [ebx + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, esi
jl 0x5ba890
cmp edx, edi
jge 0x5ba8ce
nop dword [eax]
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x5ba8c0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5ba8e8
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [edx], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [eax + edx - 1], 0xbc
push dword [ebp - 4]
call fcn.00520490
push 0xf7
push str.....crypto_rsa_rsa_pss.c
push edi
push ebx
call fcn.005198e0
mov eax, dword [ebp - 0x18]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret