Function at 0x808078
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x808081
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 0x80832e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.00805a1c
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.00805a1c
mov dword [ebp + 8], eax
dec dword [ebp + 8]
cmp dword [ebp - 0x44], 0
jne 0x8080f8
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 ebx, 3
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
imul esi, dword [ebp - 0x30]
mov edi, ecx
shl edi, 7
mov dword [edx + edi*8], esi
inc ecx
add eax, 4
dec ebx
jne 0x80811a
add dword [ebp - 0x40], 0xc
dec dword [ebp - 0xc]
jne 0x808112
inc dword [ebp - 0x30]
add edx, 4
cmp dword [ebp - 0x30], 0x100
jne 0x808103
mov dl, 1
mov eax, dword [0x85ef34]
call fcn.008730d8
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 + 0x28]
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 ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub eax, ebx
jl 0x8082fc
inc eax
mov dword [ebp - 0x38], eax
mov eax, ebx
dec eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00805a24
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00875704
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00875704
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00805a24
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00875704
mov dword [ebp - 0x20], eax
mov edx, ebx
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 0x8082d2
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
xor edx, edx
call fcn.00805a14
mov esi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov edx, dword [ebp - 0x34]
call fcn.00805a1c
mov edi, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + esi]
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 + edi]
add eax, dword [ebp + edx*4 - 0x1c68]
mov edx, dword [ebp - 0x1c]
movzx edx, byte [edx + esi]
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 + edi]
add eax, dword [ebp + edx*4 - 0x1068]
mov edx, dword [ebp - 0x20]
movzx edx, byte [edx + esi]
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 + edi]
add eax, dword [ebp + edx*4 - 0x468]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x44]
call fcn.00805a34
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x80820e
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.008757cc
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.008757cc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.008757cc
inc ebx
dec dword [ebp - 0x38]
jne 0x80819e
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.0087882c
lea eax, [ebp - 0x10]
call fcn.0041f804
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc