Function at 0x563790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e4cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00409430
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ebx, dword [edi + 0x18]
test bl, 1
jne 0x5639f6
mov dword [ebp - 0x18], 0
test bl, 2
jne 0x563830
mov ecx, dword [ebp + 8]
xor edx, edx
movzx eax, word [ecx]
xor eax, dword [ecx + 2]
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x563830
mov edx, dword [ecx]
xor ebx, ebx
cmp dword [esi + 4], edx
jne 0x563825
mov ax, word [esi + 8]
cmp ax, word [ecx + 4]
je 0x56385d
mov ebx, esi
mov esi, dword [esi]
test esi, esi
jne 0x563816
mov ebx, dword [edi + 0x18]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
cmp edx, eax
jb 0x5639de
mov esi, 2
lea ecx, [eax + eax]
cmp eax, esi
cmovb ecx, esi
cmp ecx, edx
jae 0x56390a
mov esi, 3
jmp 0x5639fb
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x56386c
lea esi, [eax + 1]
jmp 0x5639fb
sub eax, 2
je 0x563897
mov edx, dword [ebp + 0xc]
sub eax, 0xc6
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [esi + 0x12], eax
mov dword [esi + 0x16], ecx
xor esi, esi
jmp 0x5639fb
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00568d60
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5639f6
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.00568eb0
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
test ebx, ebx
je 0x5638ce
mov dword [ebx], eax
jmp 0x5638d3
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [edi + 0x1c]
add edi, 0x1c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
cmp ecx, edi
je 0x563903
test ecx, ecx
je 0x563903
mov eax, dword [ecx]
xor ebx, ebx
cmp eax, edi
cmove eax, ebx
cmp dword [ecx + 8], ebx
je 0x5638fd
cmp dword [ecx + 0xc], esi
jne 0x5638fd
mov dword [ecx + 0xc], edx
mov ecx, eax
test eax, eax
jne 0x5638e7
xor esi, esi
jmp 0x5639fb
mov eax, dword [edi]
push ebx
push edi
push ecx
mov ecx, edi
call dword [eax + 8]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x5639f6
mov cl, byte [esi + 0x18]
not cl
test cl, 1
je 0x5639f6
cmp dword [edi + 0x14], 0
je 0x5639b4
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x18], 0
jbe 0x5639b4
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [edi + 0x14]
mov ebx, dword [ecx + eax]
test ebx, ebx
je 0x56398f
mov ecx, dword [ebp + 0x10]
nop dword [eax]
mov esi, dword [ebx]
xor edx, edx
dec dword [edi + 0xc]
movzx eax, word [ebx + 4]
xor eax, dword [ebx + 6]
div dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebx], eax
mov dword [ecx], ebx
mov ebx, esi
mov ecx, dword [ebp + 0x10]
inc dword [ecx + 0xc]
test esi, esi
jne 0x563960
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x14]
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 [edi + 0x10]
jb 0x563950
mov esi, dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
xor edx, edx
movzx eax, word [ebx]
xor eax, dword [ebx + 2]
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
jmp 0x5639e1
mov ebx, dword [ebp + 8]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [ecx]
call fcn.00568d60
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x563a26
mov esi, 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x563a10
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00562460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov ax, word [ebx + 4]
mov word [esi + 8], ax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], ecx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x12], eax
mov dword [esi + 0x16], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
inc dword [edi + 0xc]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc