Function at 0x602d7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x602d85
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 0x603032
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.00601bbc
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.00601bbc
mov dword [ebp + 8], eax
dec dword [ebp + 8]
cmp dword [ebp - 0x44], 0
jne 0x602dfc
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 0x602e1e
add dword [ebp - 0x40], 0xc
dec dword [ebp - 0xc]
jne 0x602e16
inc dword [ebp - 0x30]
add edx, 4
cmp dword [ebp - 0x30], 0x100
jne 0x602e07
mov dl, 1
mov eax, dword [0x619234]
call fcn.00620658
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 ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
sub eax, ebx
jl 0x603000
inc eax
mov dword [ebp - 0x38], eax
mov eax, ebx
dec eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00601bc4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.006224dc
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.006224dc
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.00601bc4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.006224dc
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 0x602fd6
inc edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
xor edx, edx
call fcn.00601bb4
mov esi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov edx, dword [ebp - 0x34]
call fcn.00601bbc
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.00601bd4
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x602f12
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.006225b4
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.006225b4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.006225b4
inc ebx
dec dword [ebp - 0x38]
jne 0x602ea2
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.00624ee8
lea eax, [ebp - 0x10]
call fcn.00410204
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc