Function at 0x50edb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7455cd
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 0x50edfc
cmp ecx, 0x10000000
jne 0x50edfc
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 0x50ee1f
push dword [ebp + 8]
call fcn.004f6360
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 0x50ee84
cmp ecx, 0xf0000000
jne 0x50ee84
mov edx, dword [ebp + 8]
test edx, edx
je 0x50ee46
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ee38
sub ecx, edx
mov edx, dword [ebp + 8]
jmp 0x50ee48
xor ecx, ecx
lea eax, [ecx + edx]
xor esi, esi
mov dword [ebp - 0x18], eax
mov ebx, edx
cmp edx, eax
je 0x50ee78
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 0x50ee58
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], esi
mov dword [ebx + 4], 0
call fcn.004fee00
mov esi, eax
push esi
mov dword [ebp - 0x20], esi
call fcn.006eefbe
add esp, 4
test eax, eax
jne 0x50f08a
mov dword [ebp - 4], eax
mov ecx, edi
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0050ea80
test al, al
je 0x50eef1
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [edi]
cmp ebx, eax
je 0x50eef1
push dword [ebx + 0xc]
push dword [ebx + 8]
push 6
call fcn.004fed80
add esp, 0xc
test eax, eax
jne 0x50eee6
push dword [ebp + 8]
call fcn.004f6360
add esp, 4
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
jmp 0x50f06a
mov ebx, dword [edi + 4]
lea eax, [edi + 0x10]
mov dword [ebp - 0x24], eax
cmp ebx, dword [edi + 0x24]
jb 0x50f024
mov esi, ebx
jmp 0x50ef0a
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.0050ea80
mov edx, dword [ebp - 0x18]
test al, al
je 0x50ef31
mov ebx, esi
jmp 0x50efa2
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 0x50ef67
lea eax, [ebx + ebx]
push eax
mov ecx, edi
call fcn.00510300
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push ebx
mov ecx, edi
call fcn.0050ea80
mov edx, dword [ebp - 0x10]
jmp 0x50ef7d
mov ecx, ebx
mov eax, ebx
sub ecx, dword [edi + 8]
sub ecx, esi
shr eax, 3
cmp ecx, eax
ja 0x50ef7a
push ebx
jmp 0x50ef4c
mov ebx, dword [ebp - 0x14]
inc dword [edi + 4]
mov eax, dword [edx]
and eax, dword [edx + 4]
cmp eax, 0xffffffff
je 0x50ef8d
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 0x50eff2
cmp dword [eax + 0xc], ecx
jne 0x50eff2
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.0050ea80
test al, al
je 0x50efde
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 0x50efed
mov dword [edi + 0x1c], 0
jmp 0x50f016
inc dword [edi + 0x1c]
jmp 0x50f016
mov dword [eax + 0xc], ecx
lea ecx, [edi + 0x10]
push eax
mov dword [eax + 8], esi
call fcn.00510540
add dword [edi + 0x20], 0xffffffff
jne 0x50f010
mov dword [edi + 0x1c], 0
jmp 0x50f013
inc dword [edi + 0x1c]
mov ebx, dword [edi + 4]
mov esi, ebx
cmp ebx, dword [edi + 0x24]
jae 0x50ef07
mov esi, dword [ebp - 0x20]
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0050eca0
push dword [ebp + 8]
mov ebx, eax
call fcn.004f6360
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.00510540
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
push esi
call fcn.006ef019
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.006ef37a
int3