Function at 0x560b04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x560b0d
mov eax, dword [ebp - 4]
add esp, 0xfffffb9c
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x68]
push ecx
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x10]
cmp al, 3
jne 0x560dba
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.0055e934
mov dword [ebp + 0xc], eax
dec dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0055e934
mov dword [ebp + 8], eax
dec dword [ebp + 8]
cmp dword [ebp - 0x44], 0
jne 0x560b84
mov dword [ebp - 0x44], 1
xor eax, eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x2468]
xor ecx, ecx
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov esi, 3
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
imul ebx, dword [ebp - 0x30]
mov edi, ecx
shl edi, 7
mov dword [edx + edi*8], ebx
inc ecx
add eax, 4
dec esi
jne 0x560ba6
add dword [ebp - 0x40], 0xc
dec dword [ebp - 0xc]
jne 0x560b9e
inc dword [ebp - 0x30]
add edx, 4
cmp dword [ebp - 0x30], 0x100
jne 0x560b8f
mov dl, 1
mov eax, dword [0x595da4]
call fcn.0059eae0
mov dword [ebp - 0x10], eax
push 3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x10]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub eax, esi
jl 0x560d88
inc eax
mov dword [ebp - 0x38], eax
mov eax, esi
dec eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0055e93c
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov dword [ebp - 0x18], eax
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 1]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0055e93c
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov dword [ebp - 0x20], eax
mov edx, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
sub edx, eax
jl 0x560d5e
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
xor edx, edx
call fcn.0055e92c
mov edi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov edx, dword [ebp - 0x34]
call fcn.0055e934
mov ebx, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + edi]
mov eax, dword [ebp + eax*4 - 0x2468]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x2068]
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + ebx]
add eax, dword [ebp + edx*4 - 0x1c68]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + edi]
add eax, dword [ebp + edx*4 - 0x1868]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x1468]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + ebx]
add eax, dword [ebp + edx*4 - 0x1068]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + edi]
add eax, dword [ebp + edx*4 - 0xc68]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [edx + ecx]
add eax, dword [ebp + edx*4 - 0x868]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + ebx]
add eax, dword [ebp + edx*4 - 0x468]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x44]
call fcn.0055e94c
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x560c9a
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
inc esi
dec dword [ebp - 0x38]
jne 0x560c2a
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
inc eax
push eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
inc eax
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.005a26dc
mov eax, dword [ebp - 0x10]
call fcn.00403d24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc