Function at 0x401208
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
cmp dword [0x4094b0], esi
je 0x401228
call section..text
mov dword [0x4094b0], esi
mov ecx, dword [ebp + 8]
push 4
mov dword [ebp - 4], esi
mov dword [ebx + 0x200], 0xa
mov eax, ebx
add ecx, 2
pop esi
movzx edx, byte [ecx - 2]
movzx edi, byte [ecx - 1]
shl edx, 8
or edx, edi
movzx edi, byte [ecx]
shl edx, 8
or edx, edi
movzx edi, byte [ecx + 1]
shl edx, 8
or edx, edi
mov edi, dword [ebp - 4]
inc dword [ebp - 4]
add ecx, esi
cmp dword [ebp - 4], esi
mov dword [ebx + edi*4], edx
jl 0x401240
mov dword [ebp - 8], 0x40a0b8
mov edi, dword [eax + 0xc]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x4094b8]
shl ecx, 8
mov edx, edi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x4094b8]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x4094b8]
mov edx, edi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x4094b8]
mov edx, dword [ebp - 8]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp - 8], esi
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
xor edi, ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
add eax, 0x10
cmp dword [ebp - 8], 0x40a0e0
jl 0x401275
xor ecx, ecx
cmp dword [0x4094b4], ecx
je 0x401338
mov edx, dword [ecx + 0x4094b8]
shl edx, 2
mov edi, dword [edx + 0x40b0e0]
mov dword [ecx + 0x40a8e0], edi
mov edi, dword [edx + 0x40ace0]
mov dword [ecx + 0x40a4e0], edi
mov edi, dword [edx + 0x409cb8]
mov edx, dword [edx + 0x4098b8]
mov dword [ecx + 0x40a0e0], edi
mov dword [ecx + 0x40c8e0], edx
add ecx, esi
cmp ecx, 0x400
jl 0x4012ee
and dword [0x4094b4], 0
mov edx, dword [eax]
add eax, esi
lea ecx, [ebx + 0x100]
mov dword [ecx], edx
mov edx, dword [eax]
add ecx, esi
mov dword [ecx], edx
add eax, esi
mov edx, dword [eax]
add ecx, esi
mov dword [ecx], edx
add eax, esi
mov edx, dword [eax]
add ecx, esi
mov dword [ecx], edx
xor edx, edx
inc edx
add ecx, esi
add eax, esi
cmp dword [ebx + 0x200], edx
mov dword [ebp - 4], edx
jle 0x40147b
mov dword [ebp - 0xc], ebx
sub eax, 0x20
mov edi, dword [eax]
mov ebx, edi
shr ebx, 0x10
mov edx, edi
shr edx, 0x18
mov edx, dword [edx*4 + 0x40a8e0]
movzx edi, bl
xor edx, dword [edi*4 + 0x40a4e0]
mov ebx, dword [eax]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x40a0e0]
movzx edi, byte [eax]
xor edx, dword [edi*4 + 0x40c8e0]
add eax, esi
mov dword [ecx], edx
mov edi, dword [eax]
mov ebx, edi
shr ebx, 0x10
mov edx, edi
shr edx, 0x18
mov edx, dword [edx*4 + 0x40a8e0]
movzx edi, bl
xor edx, dword [edi*4 + 0x40a4e0]
mov ebx, dword [eax]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x40a0e0]
movzx edi, byte [eax]
xor edx, dword [edi*4 + 0x40c8e0]
add ecx, esi
mov dword [ecx], edx
add eax, esi
mov edi, dword [eax]
mov ebx, edi
shr ebx, 0x10
mov edx, edi
shr edx, 0x18
mov edx, dword [edx*4 + 0x40a8e0]
movzx edi, bl
xor edx, dword [edi*4 + 0x40a4e0]
mov ebx, dword [eax]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x40a0e0]
movzx edi, byte [eax]
xor edx, dword [edi*4 + 0x40c8e0]
add ecx, esi
mov dword [ecx], edx
add eax, esi
mov edi, dword [eax]
mov ebx, edi
shr ebx, 0x10
mov edx, edi
shr edx, 0x18
mov edx, dword [edx*4 + 0x40a8e0]
movzx edi, bl
xor edx, dword [edi*4 + 0x40a4e0]
mov ebx, dword [eax]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x40a0e0]
movzx edi, byte [eax]
xor edx, dword [edi*4 + 0x40c8e0]
mov ebx, dword [ebp - 0xc]
add ecx, esi
mov dword [ecx], edx
add ecx, esi
add eax, esi
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
cmp edx, dword [ebx + 0x200]
jl 0x401370
sub eax, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
add eax, esi
mov edx, dword [eax]
add ecx, esi
mov dword [ecx], edx
add eax, esi
mov edx, dword [eax]
add ecx, esi
mov dword [ecx], edx
mov eax, dword [eax + 4]
pop edi
pop esi
mov dword [ecx + 4], eax
xor eax, eax
pop ebx
leave
ret