Function at 0x807bbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x807bc5
mov eax, dword [ebp - 4]
add esp, 0xfffffb94
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x6c]
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, 5
jne 0x808065
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp + 0x10]
call fcn.00805a1c
mov dword [ebp + 0x10], eax
dec dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.00805a1c
mov dword [ebp + 0xc], eax
dec dword [ebp + 0xc]
cmp dword [ebp - 0x48], 0
jne 0x807c3c
mov dword [ebp - 0x48], 1
xor eax, eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x246c]
xor ecx, ecx
mov ebx, 3
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0x44]
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 dword [ebp - 0xc]
jne 0x807c5e
add dword [ebp - 0x44], 0xc
dec ebx
jne 0x807c54
inc dword [ebp - 0x30]
add edx, 4
cmp dword [ebp - 0x30], 0x100
jne 0x807c47
mov dl, 1
mov eax, dword [0x85ef34]
call fcn.008730d8
mov dword [ebp - 0x10], eax
push 5
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 + 0xc]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0x2470], eax
fild dword [ebp - 0x2470]
fadd dword [0x808070]
fdivr dword [0x808074]
mov eax, dword [ebp + 8]
fstp qword [eax + 0x18]
wait
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
sub edx, eax
jl 0x808033
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
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, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00875704
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
inc eax
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, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
add dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
sub eax, ebx
jl 0x807fc4
inc eax
mov dword [ebp - 0x40], eax
mov eax, ebx
dec eax
xor edx, edx
call fcn.00805a14
mov edi, eax
lea eax, [ebx + 1]
mov edx, dword [ebp - 0x34]
call fcn.00805a1c
mov esi, eax
lea eax, [edi + edi*2]
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + eax + 2]
mov eax, dword [ebp + eax*4 - 0x246c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x206c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x1c6c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x186c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x146c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x106c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0xc6c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x86c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 2]
add eax, dword [ebp + edx*4 - 0x46c]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x48]
call fcn.00805a34
mov edx, dword [ebp - 0x2c]
mov byte [edx + 2], al
lea eax, [edi + edi*2]
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + eax + 1]
mov eax, dword [ebp + eax*4 - 0x246c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x206c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x1c6c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x186c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x146c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x106c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0xc6c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x86c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 1]
add eax, dword [ebp + edx*4 - 0x46c]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x48]
call fcn.00805a34
mov edx, dword [ebp - 0x2c]
mov byte [edx + 1], al
lea eax, [edi + edi*2]
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + eax]
mov eax, dword [ebp + eax*4 - 0x246c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x206c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x1c6c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x186c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x146c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x106c]
lea edx, [edi + edi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0xc6c]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x86c]
lea edx, [esi + esi*2]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx]
add eax, dword [ebp + edx*4 - 0x46c]
cdq
xor eax, edx
sub eax, edx
cdq
idiv dword [ebp - 0x48]
call fcn.00805a34
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
add dword [ebp - 0x2c], 3
inc ebx
dec dword [ebp - 0x40]
jne 0x807d85
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0
je 0x808006
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x14]
inc eax
mov dword [ebp - 0x2470], eax
fild dword [ebp - 0x2470]
mov eax, dword [ebp + 8]
fmul qword [eax + 0x18]
call fcn.00404894
mov ebx, eax
cmp ebx, dword [ebp - 0x38]
je 0x808006
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, ebx
mov eax, dword [esi + 4]
call dword [esi]
mov dword [ebp - 0x38], ebx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.008757cc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.008757cc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.008757cc
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x807d11
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
inc eax
push eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x14]
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 0x10