Function at 0x518600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x6db1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x64], ebx
mov ecx, dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov ecx, dword [edi + 0x170]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], eax
call fcn.0051a5c0
test eax, eax
jne 0x518677
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffb
cmp eax, 0x1f
ja case.0x518657.6
movzx eax, byte [eax + 0x5189e4]
jmp dword [eax*4 + 0x5189d0]
cmp dword [edi + 0x134], 0
mov dword [edi + 0x130], esi
je 0x518696
mov dword [edi + 0x134], 0
mov byte [ebx], 1
mov dword [ebx + 4], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba1ab
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [edi + 0x138], 0
jne 0x518677
test esi, esi
jne 0x5186d4
mov eax, dword [edi + 0x150]
cmp dword [eax + 4], 1
jne 0x5186d4
mov ecx, dword [edi + 0x1dc]
push 1
call fcn.0050c7d0
push dword [edi + 0x100]
call dword [0x64c404]
mov dword [edi + 0x12c], 1
jmp 0x518677
mov eax, dword [edi + 0x150]
cmp dword [eax + 4], 1
jne 0x518677
cmp dword [edi + 0x12c], 1
jne 0x518677
push 1
push dword [edi + 0x100]
call dword [0x64c484]
mov ecx, dword [edi + 0x1dc]
call fcn.0050c180
test eax, eax
jne 0x518720
mov ecx, dword [edi + 0x1dc]
push 1
call fcn.0050c7d0
mov eax, dword [edi + 0x150]
mov dword [eax + 4], 0
mov dword [edi + 0x12c], 0
jmp 0x518677
push dword [edi + 0x100]
call dword [0x64c400]
test eax, eax
je 0x518677
push dword [edi + 0x100]
call dword [0x64c3fc]
test eax, eax
jne 0x518677
mov eax, dword [edi + 0x150]
cmp dword [eax + 4], 0
jne 0x518677
mov eax, dword [edi + 0x10c]
xorps xmm0, xmm0
mov esi, dword [edi + 0x110]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push eax
push dword [edi + 0x100]
movups xmmword [ebp - 0x50], xmm0
call dword [0x64c440]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jne 0x5187a6
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x518677
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x2c
push eax
push dword [edi + 0x100]
call dword [0x64c354]
push dword [edi + 0x128]
mov eax, dword [ebp - 0x54]
movups xmm0, xmmword [ebp - 0x24]
push 0
push dword [edi + 0x124]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], esi
call dword [0x64c370]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
movups xmm1, xmmword [ebp - 0x78]
push 4
push eax
mov eax, dword [ebp - 0xc]
movaps xmm0, xmm1
sub eax, dword [ebp - 0x14]
push eax
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push dword [edi + 0x100]
call dword [0x64c368]
jmp 0x518677
mov eax, dword [edi + 0x150]
cmp dword [eax + 4], 0
jne 0x518677
push dword [edi + 0x128]
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x10c]
push 0
push dword [edi + 0x124]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ecx
call dword [0x64c370]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
jmp 0x518677
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
cmp eax, 1
mov eax, dword [0x6e19b0]
jne 0x5189b8
mov esi, dword [eax + 0x178]
mov dword [ebp - 0x54], esi
cmp dword [esi + 4], 0
je 0x51899b
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
push ecx
push dword [eax + 0x100]
movups xmmword [ebp - 0x50], xmm0
call dword [0x64c43c]
mov eax, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [esi + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [eax + 0x14]
mov ecx, eax
cmp esi, eax
je 0x518927
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add eax, ecx
push dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
push dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
call dword [0x64c430]
test eax, eax
jne 0x518987
mov edx, dword [ebp - 0x54]
add esi, 0x20
inc dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov ecx, eax
cmp esi, eax
jne 0x5188e2
mov esi, dword [edx + 0x10]
or edx, 0xffffffff
mov dword [ebp - 0x5c], 0x7fffffff
mov dword [ebp - 0x54], 0
cmp esi, eax
je 0x51898a
lea edi, [esi + 0xc]
mov ebx, edx
mov eax, dword [ebp - 0x50]
lea edi, [edi + 0x20]
sub eax, dword [edi - 0x24]
cdq
mov esi, eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [edi - 0x20]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
lea edx, [esi + eax]
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
cmp edx, esi
cmovge eax, ebx
inc dword [ebp - 0x54]
cmp edx, esi
mov ebx, eax
lea eax, [edi - 0xc]
cmovge edx, esi
mov dword [ebp - 0x5c], edx
cmp eax, ecx
jne 0x518941
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
cmp edx, 0xffffffff
je 0x51899b
mov eax, dword [edi + 0x150]
mov dword [eax + 0x388], edx
mov ecx, edi
call fcn.00519710
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
jmp 0x518677
mov ecx, dword [eax + 0x168]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x518677
mov byte [ebx], 0
jmp 0x518681