Function at 0x50aab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x740fdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
test edx, edx
jne 0x50aafc
cmp ecx, 0x10000000
jne 0x50aafc
mov eax, dword [ebp + 8]
pop edi
cdq
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, edx
or eax, ecx
jne 0x50ab1f
push dword [ebp + 8]
call fcn.004f3ee0
add esp, 4
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push esi
test edx, edx
jne 0x50ab84
cmp ecx, 0xf0000000
jne 0x50ab84
mov edx, dword [ebp + 8]
test edx, edx
je 0x50ab46
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ab38
sub ecx, edx
mov edx, dword [ebp + 8]
jmp 0x50ab48
xor ecx, ecx
lea eax, [ecx + edx]
xor esi, esi
mov dword [ebp - 0x18], eax
mov ebx, edx
cmp edx, eax
je 0x50ab78
mov edi, eax
movsx edx, byte [ebx]
mov ecx, esi
mov eax, esi
shl ecx, 6
shr eax, 2
add ecx, edx
add eax, 0x9e3779b9
inc ebx
add eax, ecx
xor esi, eax
cmp ebx, edi
jne 0x50ab58
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], esi
mov dword [ebx + 4], 0
call fcn.004fc900
mov esi, eax
push esi
mov dword [ebp - 0x20], esi
call fcn.006eb0ee
add esp, 4
test eax, eax
jne 0x50ad8a
mov dword [ebp - 4], eax
mov ecx, edi
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0050a7f0
test al, al
je 0x50abf1
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [edi]
cmp ebx, eax
je 0x50abf1
push dword [ebx + 0xc]
push dword [ebx + 8]
push 6
call fcn.004fc880
add esp, 0xc
test eax, eax
jne 0x50abe6
push dword [ebp + 8]
call fcn.004f3ee0
add esp, 4
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
jmp 0x50ad6a
mov ebx, dword [edi + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x24], eax
cmp ebx, dword [edi + 0x24]
jb 0x50ad24
mov esi, ebx
jmp 0x50ac0a
lea eax, [edi + 0x10]
mov ecx, dword [eax + 8]
dec ecx
and ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0050a7f0
mov edx, dword [ebp - 0x18]
test al, al
je 0x50ac31
mov ebx, esi
jmp 0x50aca2
lea esi, [ebx + 1]
mov dword [ebp - 0x10], edx
mov ebx, dword [edi + 0xc]
lea eax, [esi*4]
lea ecx, [ebx + ebx*2]
cmp eax, ecx
jb 0x50ac67
lea eax, [ebx + ebx]
push eax
mov ecx, edi
call fcn.0050bfc0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ebx
mov ecx, edi
call fcn.0050a7f0
mov edx, dword [ebp - 0x10]
jmp 0x50ac7d
mov ecx, ebx
mov eax, ebx
sub ecx, dword [edi + 8]
sub ecx, esi
shr eax, 3
cmp ecx, eax
ja 0x50ac7a
push ebx
jmp 0x50ac4c
mov ebx, dword [ebp - 0x14]
inc dword [edi + 4]
mov eax, dword [edx]
and eax, dword [edx + 4]
cmp eax, 0xffffffff
je 0x50ac8d
dec dword [edi + 8]
mov eax, dword [ebx]
xorps xmm0, xmm0
mov ecx, dword [ebx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
movq qword [edx + 8], xmm0
mov ebx, dword [edi + 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0xc]
cmp dword [eax + 8], esi
jne 0x50acf2
cmp dword [eax + 0xc], ecx
jne 0x50acf2
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.0050a7f0
test al, al
je 0x50acde
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xfffffffe
mov dword [eax + 4], 0xffffffff
dec dword [edi + 4]
mov ebx, dword [edi + 4]
inc dword [edi + 8]
add dword [edi + 0x20], 0xffffffff
jne 0x50aced
mov dword [edi + 0x1c], 0
jmp 0x50ad16
inc dword [edi + 0x1c]
jmp 0x50ad16
mov dword [eax + 0xc], ecx
lea ecx, [edi + 0x10]
push eax
mov dword [eax + 8], esi
call fcn.0050c200
add dword [edi + 0x20], 0xffffffff
jne 0x50ad10
mov dword [edi + 0x1c], 0
jmp 0x50ad13
inc dword [edi + 0x1c]
mov ebx, dword [edi + 4]
mov esi, ebx
cmp ebx, dword [edi + 0x24]
jae 0x50ac07
mov esi, dword [ebp - 0x20]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0050aa10
push dword [ebp + 8]
mov ebx, eax
call fcn.004f3ee0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], edx
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 4]
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edx
call fcn.0050c200
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
push esi
call fcn.006eb149
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
mov edx, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.006eb4aa
int3