Function at 0x564d60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e58d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409430
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
test al, 1
jne 0x564fff
mov dword [ebp - 0x1c], 0
test al, 2
jne 0x564e55
mov eax, dword [ebx + 8]
mov ecx, eax
mov edi, dword [eax + 8]
call fcn.005acb50
mov ecx, eax
xor edx, edx
mov eax, dword [ebx + 8]
bswap edi
xor ecx, edi
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
xor eax, ecx
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov edi, dword [eax + edx*4]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x564e55
mov eax, dword [ebp - 0x14]
nop
cmp dword [edi + 8], eax
jne 0x564e4f
mov edx, dword [ebx + 8]
mov eax, dword [edi + 0xc]
cmp eax, dword [edx + 8]
jne 0x564e4c
mov ecx, dword [edi + 4]
mov edx, dword [edx]
cmp ecx, edx
je 0x564e7c
test ecx, ecx
je 0x564e4c
test edx, edx
je 0x564e4c
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x564e4c
mov edx, dword [edx + 0xc]
mov ecx, dword [ecx + 0xc]
push eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x564e7c
mov eax, dword [ebp - 0x14]
mov edi, dword [edi]
test edi, edi
jne 0x564e10
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x564fa4
mov edi, 2
lea ecx, [eax + eax]
cmp eax, edi
cmovb ecx, edi
cmp ecx, edx
jae 0x564e8d
lea esi, [edi + 1]
jmp 0x565004
mov eax, dword [ebx + 0xc]
xor esi, esi
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x10], xmm0
jmp 0x565004
push dword [esi + 0x18]
mov eax, dword [esi]
push esi
push ecx
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x564fff
mov cl, byte [edi + 0x18]
not cl
test cl, 1
je 0x564fff
cmp dword [esi + 0x14], 0
je 0x564f68
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x20], 0
jbe 0x564f68
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
nop dword [eax + eax]
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x564f3f
lea eax, [edi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
lea ecx, [ecx + 4]
dec dword [esi + 0xc]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x30], eax
call fcn.005acb50
mov ecx, eax
xor edx, edx
bswap edi
xor ecx, edi
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 8]
xor eax, ecx
mov ecx, dword [ebp - 0x2c]
div dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], edi
mov ecx, eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
inc dword [edi + 0xc]
test eax, eax
jne 0x564ef3
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0x24], ecx
mov dword [edx + eax], 0
add edx, 4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
cmp eax, dword [esi + 0x10]
jb 0x564ee0
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov ecx, eax
mov edi, dword [eax + 8]
call fcn.005acb50
mov ecx, eax
xor edx, edx
bswap edi
xor ecx, edi
mov edi, dword [ebx + 8]
mov eax, dword [edi + 4]
xor eax, ecx
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x1c], eax
jmp 0x564fa7
mov edi, dword [ebx + 8]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00568820
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x564fff
mov eax, dword [edi]
test eax, eax
je 0x564fc7
lock inc dword [eax]
jmp 0x564fc9
xor eax, eax
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x18], 0
jmp 0x565004
mov esi, 2
lea eax, [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x56501b
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push eax
call fcn.005619a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc