Function at 0x401208
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [section..data], esi
je 0x401223
call section..text
mov dword [section..data], esi
mov eax, dword [ebp + 0x10]
sub eax, 0x80
je 0x40125d
sub eax, 0x40
je 0x40124e
sub eax, 0x40
je 0x40123f
xor eax, eax
inc eax
jmp 0x401671
mov edx, dword [ebp + 8]
mov dword [edx + 0x200], 0xe
jmp 0x40126c
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xc
jmp 0x40126a
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xa
mov edx, eax
mov ecx, dword [ebp + 0x10]
push ebx
push edi
sar ecx, 5
push 4
mov eax, edx
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
pop edi
cmp ecx, esi
jle 0x4012b8
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx ebx, byte [ecx - 2]
movzx esi, byte [ecx - 1]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 1]
shl ebx, 8
or ebx, esi
mov esi, dword [ebp - 4]
mov dword [edx + esi*4], ebx
inc esi
add ecx, edi
mov dword [ebp - 4], esi
cmp esi, dword [ebp - 8]
jl 0x401289
mov ecx, dword [ebp + 0x10]
sub ecx, 0x80
je 0x401442
sub ecx, 0x40
je 0x4013b7
sub ecx, 0x40
jne 0x4014b8
mov dword [ebp + 0x10], 0x40cc50
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x40c050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40c050]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40c050]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x40c050]
mov edx, dword [ebp + 0x10]
xor ecx, dword [eax]
add dword [ebp + 0x10], edi
xor ecx, dword [edx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov dword [ebp - 8], edx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x40c050]
mov ebx, edx
shl ecx, 8
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x40c050]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x40c050]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40c050]
mov edx, dword [eax + 0x14]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
cmp dword [ebp + 0x10], 0x40cc6c
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], esi
mov eax, dword [ebp - 8]
jl 0x4012e0
jmp 0x40143d
mov dword [ebp + 0x10], 0x40cc50
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x40c050]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x40c050]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x40c050]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x40c050]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp + 0x10], edi
xor edx, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
xor esi, ecx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], esi
add eax, 0x18
cmp dword [ebp + 0x10], 0x40cc70
jl 0x4013be
mov edx, dword [ebp + 8]
jmp 0x4014b8
mov dword [ebp + 0x10], 0x40cc50
mov esi, dword [eax + 0xc]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x40c050]
shl ecx, 8
mov ebx, esi
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x40c050]
movzx ebx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [ebx*4 + 0x40c050]
mov ebx, esi
shl ecx, 8
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x40c050]
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax]
add dword [ebp + 0x10], edi
xor ecx, dword [ebx]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, ebx
xor esi, ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
add eax, 0x10
cmp dword [ebp + 0x10], 0x40cc78
jl 0x401449
xor ecx, ecx
cmp dword [0x40c004], ecx
je 0x40150d
mov esi, dword [ecx + 0x40c050]
mov ebx, dword [esi*4 + 0x40dc78]
mov dword [ecx + 0x40d478], ebx
mov ebx, dword [esi*4 + 0x40d878]
mov dword [ecx + 0x40d078], ebx
mov ebx, dword [esi*4 + 0x40c850]
mov esi, dword [esi*4 + 0x40c450]
mov dword [ecx + 0x40cc78], ebx
mov dword [ecx + 0x40f478], esi
add ecx, edi
cmp ecx, 0x400
jl 0x4014c2
and dword [0x40c004], 0
mov esi, dword [eax]
add eax, edi
lea ecx, [edx + 0x100]
mov dword [ecx], esi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
xor esi, esi
inc esi
add ecx, edi
add eax, edi
mov dword [ebp - 4], esi
cmp dword [edx + 0x200], esi
jle 0x401650
mov dword [ebp - 8], edx
sub eax, 0x20
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40d478]
movzx esi, dl
xor ebx, dword [esi*4 + 0x40d078]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x40cc78]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x40f478]
add eax, edi
mov dword [ecx], ebx
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40d478]
movzx esi, dl
xor ebx, dword [esi*4 + 0x40d078]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x40cc78]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x40f478]
add ecx, edi
mov dword [ecx], ebx
add eax, edi
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40d478]
movzx esi, dl
xor ebx, dword [esi*4 + 0x40d078]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x40cc78]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x40f478]
add ecx, edi
mov dword [ecx], ebx
add eax, edi
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x40d478]
movzx esi, dl
xor ebx, dword [esi*4 + 0x40d078]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x40cc78]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x40f478]
mov edx, dword [ebp - 8]
add ecx, edi
mov dword [ecx], ebx
add ecx, edi
add eax, edi
inc dword [ebp - 4]
mov esi, dword [ebp - 4]
cmp esi, dword [edx + 0x200]
jl 0x401545
sub eax, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
add eax, edi
mov edx, dword [eax]
add ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + edi]
mov dword [ecx + edi], edx
mov eax, dword [eax + edi + 4]
mov dword [ecx + edi + 4], eax
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret