Function at 0x564890
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 0x63e55d
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 - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
test al, 1
jne 0x564af9
xor edi, edi
test al, 2
jne 0x564958
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
mov edi, dword [ecx + 0x20]
xor edi, dword [ecx + 0x1c]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
xor edi, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
call fcn.005acb50
bswap edi
xor eax, edi
xor edx, edx
xor eax, dword [ebp - 0x24]
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edi, [eax + edx*4]
mov dword [ebp - 0x18], edi
mov edi, dword [edi]
test edi, edi
je 0x564955
nop
push dword [ebx + 8]
lea ecx, [edi + 4]
call fcn.0053a340
test al, al
jne 0x56497f
mov edi, dword [edi]
test edi, edi
jne 0x564940
mov edi, dword [ebp - 0x18]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x564abf
mov edi, 2
lea ecx, [eax + eax]
cmp eax, edi
cmovb ecx, edi
cmp ecx, edx
jae 0x564990
lea esi, [edi + 1]
jmp 0x564afe
mov eax, dword [ebx + 0xc]
xor esi, esi
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x28], xmm0
jmp 0x564afe
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 - 0x30], edi
test edi, edi
je 0x564af9
mov cl, byte [edi + 0x18]
not cl
test cl, 1
je 0x564af9
cmp dword [esi + 0x14], 0
je 0x564a79
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 0
jbe 0x564a79
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
nop
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x564a50
lea eax, [edi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add ecx, 4
dec dword [esi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
mov edi, dword [ecx + 0x20]
xor edi, dword [ecx + 0x1c]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
xor edi, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 0x28], eax
call fcn.005acb50
mov ecx, dword [ebp - 0x2c]
xor edx, edx
bswap edi
xor eax, edi
mov edi, dword [ebp - 0x30]
xor eax, dword [ebp - 0x28]
div dword [ecx]
mov eax, dword [edi + 0x14]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x34]
mov dword [ecx], edx
mov ecx, eax
inc dword [edi + 0xc]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x5649f3
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp - 0x20], ecx
mov dword [edx + eax], 0
add edx, 4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x10]
jb 0x5649e0
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 ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
mov edi, dword [ecx + 0x20]
xor edi, dword [ecx + 0x1c]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
xor edi, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
call fcn.005acb50
bswap edi
xor eax, edi
xor edx, edx
xor eax, dword [ebp - 0x34]
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edi, [eax + edx*4]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00568970
mov dword [ebp - 0x14], eax
test eax, eax
je 0x564af9
push dword [ebx + 0xc]
mov ecx, eax
push dword [ebx + 8]
call fcn.005687c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x14], 0
jmp 0x564afe
mov esi, 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x564b13
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00561c50
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