Function at 0x50ae40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xac
call fcn.0040c2f0
mov eax, dword [0x59c024]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xcc]
push ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xbc]
push ebp
mov dword [esp + 8], eax
xor ebp, ebp
mov eax, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], eax
push edi
mov edi, dword [esp + 0xe0]
test ecx, ecx
jne 0x50aec0
call fcn.004a04b0
mov ecx, eax
mov dword [esp + 0x18], eax
test edi, edi
push ecx
cmove edi, ecx
mov dword [esp + 0x18], edi
call fcn.004b6940
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0xc4], ebp
jle 0x50b245
test ebx, ebx
jle 0x50b245
cmp esi, ebx
jl 0x50b1e5
lea eax, [edi*2 + 2]
cmp esi, eax
jl 0x50b1e5
mov ebx, esi
push 0x9b
sub ebx, edi
dec ebx
push str..crypto_rsa_rsa_oaep.c
push ebx
call fcn.00499590
push 0x9c
push str..crypto_rsa_rsa_oaep.c
push esi
mov ebp, eax
call fcn.00499590
add esp, 0x18
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x50b237
test eax, eax
je 0x50b237
push esi
push 0
push eax
call fcn.004177a0
mov eax, dword [esp + 0x30]
sub esi, eax
add esi, dword [esp + 0x2c]
push eax
push dword [esp + 0x20]
push esi
call fcn.004165e0
mov edx, dword [esp + 0x38]
push dword [esp + 0x2c]
push ebx
movzx eax, byte [edx]
lea esi, [edx + 1]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
add eax, edi
neg ecx
push eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x5c]
push edi
push eax
mov dword [esp + 0x3c], ecx
call fcn.0050a8f0
add esp, 0x2c
test eax, eax
jne 0x50b200
xor edx, edx
test edi, edi
jle 0x50b040
cmp edi, 0x20
jb 0x50b024
lea eax, [esi - 1]
add eax, edi
lea ecx, [esp + edi + 0x37]
lea edi, [esp + 0x38]
cmp edi, eax
mov edi, dword [esp + 0x1c]
ja 0x50afca
cmp ecx, esi
jae 0x50b024
mov eax, edi
and eax, 0x8000001f
jns 0x50afd8
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, edi
mov edi, esi
sub ecx, eax
lea eax, [esp + 0x38]
sub edi, eax
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [esp + edx + 0x38]
lea eax, [edi + edx]
movups xmm1, xmmword [esp + eax + 0x38]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x38], xmm1
movups xmm1, xmmword [esi + edx + 0x10]
movups xmm0, xmmword [esp + edx + 0x48]
pxor xmm1, xmm0
movups xmmword [esp + edx + 0x48], xmm1
add edx, 0x20
cmp edx, ecx
jl 0x50aff0
mov edi, dword [esp + 0x1c]
cmp edx, edi
jge 0x50b040
lea eax, [esp + 0x38]
sub esi, eax
nop
lea ecx, [esp + 0x38]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x50b030
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push edi
push eax
push ebx
push ebp
call fcn.0050a8f0
add esp, 0x14
test eax, eax
jne 0x50b200
xor edx, edx
test ebx, ebx
jle 0x50b102
cmp ebx, 0x20
jb 0x50b0de
mov ecx, dword [esp + 0x24]
lea esi, [ebp - 1]
add esi, ebx
lea eax, [ecx - 1]
add eax, ebx
cmp ebp, eax
ja 0x50b081
cmp esi, ecx
jae 0x50b0de
mov eax, ebx
and eax, 0x8000001f
jns 0x50b08f
dec eax
or eax, 0xffffffe0
inc eax
mov dword [esp + 0x14], ecx
mov esi, ebx
sub dword [esp + 0x14], ebp
sub esi, eax
add ecx, 0x10
mov eax, ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, esi
jl 0x50b0b0
mov edi, dword [esp + 0x1c]
cmp edx, ebx
jge 0x50b102
mov edi, dword [esp + 0x24]
lea ecx, [edx + ebp]
mov esi, ebx
sub edi, ebp
sub esi, edx
nop
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x50b0f0
mov edi, dword [esp + 0x1c]
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x80]
push 0
push eax
push dword [esp + 0xe8]
push dword [esp + 0x44]
call fcn.0049fdb0
add esp, 0x18
test eax, eax
je 0x50b200
push edi
lea eax, [esp + 0x7c]
push eax
push ebp
call fcn.004af350
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp edi, ebx
jge 0x50b1b6
nop
movzx esi, byte [edi + ebp]
not ecx
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [esp + 0x28]
or eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
or ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [esp + 0x18], ecx
neg eax
or eax, ecx
and edx, eax
mov dword [esp + 0x10], edx
cmp edi, ebx
jl 0x50b160
test edx, ecx
je 0x50b1e5
mov eax, dword [esp + 0x28]
inc eax
sub ebx, eax
cmp dword [esp + 0xc4], ebx
jge 0x50b225
push 0xe1
push str..crypto_rsa_rsa_oaep.c
push 0x6d
push 0xa1
push 4
call fcn.004a6d60
add esp, 0x14
push 0xee
push str..crypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.004a6d60
add esp, 0x14
or ebx, 0xffffffff
test ebp, ebp
je 0x50b210
push ebp
call fcn.004994c0
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x50b221
push eax
call fcn.004994c0
add esp, 4
mov eax, ebx
jmp 0x50b248
push ebx
add eax, ebp
push eax
push dword [esp + 0x3c]
call fcn.004165e0
add esp, 0xc
jmp 0x50b203
push 0x9e
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x50b1f1
or eax, 0xffffffff
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c19b
add esp, 0xac
ret