Function at 0x565270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e5bd
mov eax, dword fs:[0]
push eax
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 - 0x10]
mov dword [ebp - 0x10], 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 0x5654c9
xor edi, edi
test al, 2
jne 0x565328
mov ecx, dword [ebp + 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 - 0x20], eax
call fcn.005acb50
bswap edi
xor eax, edi
xor edx, edx
xor eax, dword [ebp - 0x20]
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edi, [eax + edx*4]
mov dword [ebp - 0x14], edi
mov edi, dword [edi]
test edi, edi
je 0x565325
nop word [eax + eax]
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0053a340
test al, al
jne 0x56534f
mov edi, dword [edi]
test edi, edi
jne 0x565310
mov edi, dword [ebp - 0x14]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp edx, eax
jb 0x56548f
mov edi, 2
lea ecx, [eax + eax]
cmp eax, edi
cmovb ecx, edi
cmp ecx, edx
jae 0x565360
lea esi, [edi + 1]
jmp 0x5654ce
mov eax, dword [ebp + 0xc]
xor esi, esi
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x28], xmm0
jmp 0x5654ce
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 - 0x2c], edi
test edi, edi
je 0x5654c9
mov cl, byte [edi + 0x18]
not cl
test cl, 1
je 0x5654c9
cmp dword [esi + 0x14], 0
je 0x565449
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x18], 0
jbe 0x565449
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
nop
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x565420
lea eax, [edi + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
add ecx, 4
dec dword [esi + 0xc]
mov dword [ebp - 0x30], 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 - 0x24], eax
call fcn.005acb50
mov ecx, dword [ebp - 0x28]
xor edx, edx
bswap edi
xor eax, edi
mov edi, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x24]
div dword [ecx]
mov eax, dword [edi + 0x14]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], edx
mov ecx, eax
inc dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5653c3
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
mov dword [edx + eax], 0
add edx, 4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x10]
jb 0x5653b0
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 [ebp + 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 - 0x30], eax
call fcn.005acb50
bswap edi
xor eax, edi
xor edx, edx
xor eax, dword [ebp - 0x30]
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.005685e0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5654c9
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.005687c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
inc dword [esi + 0xc]
xor esi, esi
mov dword [ebp - 0x10], 0
jmp 0x5654ce
mov esi, 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5654e3
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push eax
call fcn.005616f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc