Function at 0x4b9a80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.0057aae0
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, dword [esp + 0x3c]
mov edx, ecx
test eax, eax
mov dword [esp + 0x20], 0
push ecx
cmovne edx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edx
call fcn.00464e60
mov esi, dword [esp + 0x44]
mov ebp, eax
add esp, 4
test ebp, ebp
js 0x4b9d49
cmp esi, 0xffffffff
jne 0x4b9ad6
mov esi, ebp
jmp 0x4b9ae9
cmp esi, 0xfffffffe
je 0x4b9ae4
cmp esi, 0xfffffffc
jne 0x4b9b25
mov dword [esp + 0x14], ebp
mov esi, 0xfffffffd
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0x14]
call fcn.0046f540
dec eax
and eax, 7
push ebx
mov dword [esp + 0x20], eax
call fcn.004b7760
add esp, 8
mov edx, eax
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x18], edi
jne 0x4b9b56
mov ecx, dword [esp + 0x30]
mov byte [ecx], 0
inc ecx
dec edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], edx
jmp 0x4b9b5e
jge 0x4b9ae9
call fcn.004657e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xc4
push str.crypto_rsa_rsa_pss.c
call fcn.00465830
push 0
push 0x88
push 4
call fcn.00465860
add esp, 0x18
jmp 0x4b9d49
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
lea eax, [ebp + 2]
cmp edx, eax
jge 0x4b9b91
call fcn.004657e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xcf
push str.crypto_rsa_rsa_pss.c
call fcn.00465830
push 0
push 0x6e
push 4
call fcn.00465860
add esp, 0x18
jmp 0x4b9d49
mov ebx, edx
sub ebx, ebp
cmp esi, 0xfffffffd
jne 0x4b9d72
mov eax, dword [esp + 0x14]
lea esi, [ebx - 2]
test eax, eax
js 0x4b9baf
cmp esi, eax
jle 0x4b9baf
mov esi, eax
test esi, esi
jle 0x4b9beb
push 0xdb
push str.crypto_rsa_rsa_pss.c
push esi
call fcn.00460490
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b9d49
mov eax, dword [esp + 0x2c]
push 0
push esi
push edi
push dword [eax + 4]
call fcn.00458a70
add esp, 0x10
test eax, eax
jle 0x4b9d49
mov eax, dword [esp + 0x3c]
lea ecx, [ebx - 1]
add eax, ecx
mov dword [esp + 0x14], eax
call fcn.00480f90
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b9d49
push 0
push dword [esp + 0x3c]
push eax
call fcn.00480a80
add esp, 0xc
test eax, eax
je 0x4b9d49
push 8
push 0x5acd44
push dword [esp + 0x18]
call fcn.00480ac0
add esp, 0xc
test eax, eax
je 0x4b9d49
push ebp
push dword [esp + 0x38]
push dword [esp + 0x18]
call fcn.00480ac0
add esp, 0xc
test eax, eax
je 0x4b9d49
test esi, esi
je 0x4b9c6e
push esi
push edi
push dword [esp + 0x18]
call fcn.00480ac0
add esp, 0xc
test eax, eax
je 0x4b9d49
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00480890
add esp, 0xc
test eax, eax
je 0x4b9d49
push dword [esp + 0x24]
lea eax, [ebx - 1]
push ebp
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
push eax
push ebp
call fcn.004b8cf0
add esp, 0x14
test eax, eax
jne 0x4b9d49
sub ebx, esi
xor byte [ebx + ebp - 2], 1
lea ecx, [ebx + ebp]
dec ecx
test esi, esi
jle 0x4b9d1f
xor edx, edx
cmp esi, 0x20
jb 0x4b9d0d
lea eax, [edi - 1]
lea ebx, [ecx - 1]
add eax, esi
add ebx, esi
cmp ecx, eax
ja 0x4b9cd2
cmp ebx, edi
jae 0x4b9d0d
mov eax, esi
and eax, 0x8000001f
jns 0x4b9ce0
dec eax
or eax, 0xffffffe0
inc eax
mov ebx, esi
sub ebx, eax
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm1, xmmword [edi + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, ebx
jl 0x4b9ce4
cmp edx, esi
jge 0x4b9d1f
mov al, byte [edx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, esi
jl 0x4b9d11
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b9d38
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [ebp], al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
mov byte [eax + ebp - 1], 0xbc
push dword [esp + 0x10]
call fcn.00480f00
push 0x10a
push str.crypto_rsa_rsa_pss.c
push esi
push edi
call fcn.004605a0
mov eax, dword [esp + 0x34]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [ebx - 2]
cmp esi, eax
jle 0x4b9baf
call fcn.004657e0
push str.RSA_padding_add_PKCS1_PSS_mgf1
push 0xd7
jmp 0x4b9b74