Function at 0x40c268
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ecx
mov cl, byte [eax + 0x14]
test cl, cl
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], edx
jne 0x40c484
mov eax, dword [ebp + 0xc]
add eax, 0xa
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x40c2ab
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x1c], eax
je 0x40c2b8
push 8
pop ecx
sub ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.00447c4c
and al, 0xf8
or al, byte [ebp - 0x1c]
xor esi, esi
mov byte [ebp - 0xc], al
inc esi
jmp 0x40c2d7
dec dword [ebp - 0x1c]
call fcn.00447c4c
mov byte [ebp + esi - 0xc], al
inc esi
cmp dword [ebp - 0x1c], 0
jne 0x40c2ca
and dword [ebx], 0
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov edi, eax
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
cmp esi, 8
jge 0x40c312
call fcn.00447c4c
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x40c36d
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x40c31e
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x18]
add eax, 4
push eax
lea eax, [ebp - 0xc]
call fcn.0040bc9c
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40c347
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x20], 8
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 2
jle 0x40c2fd
cmp dword [ebp + 0xc], 0
je 0x40c3ff
lea eax, [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp esi, 8
jge 0x40c39e
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
inc esi
inc dword [ebp - 0x24]
dec dword [ebp + 0xc]
mov byte [ebp + esi - 0xd], al
cmp esi, 8
jne 0x40c3f9
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0xc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x40c3aa
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x18]
add eax, 4
push eax
lea eax, [ebp - 0xc]
call fcn.0040bc9c
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
push 8
pop esi
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40c3d3
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x20], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
jne 0x40c386
lea edi, [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], edi
cmp esi, 8
jge 0x40c420
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x40c47b
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x40c42c
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x18]
add eax, 4
push eax
lea eax, [ebp - 0xc]
call fcn.0040bc9c
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40c455
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x24], 8
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 7
jle 0x40c40f
pop edi
jmp 0x40c49b
cmp cl, 1
jne 0x40c49b
push ebx
push edx
add eax, 4
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040be0c
add esp, 0x14
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00464a9b
leave
ret 0x10