Function at 0x40cc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ebx
nop
movzx eax, byte [ebx + edx]
mov byte [ebp + edx*4 - 0x14], al
movzx eax, byte [ebx + edx + 4]
mov byte [ebp + edx*4 - 0x13], al
movzx eax, byte [ebx + edx + 8]
mov byte [ebp + edx*4 - 0x12], al
movzx eax, byte [ebx + edx + 0xc]
mov byte [ebp + edx*4 - 0x11], al
inc edx
cmp edx, 4
jl 0x40cc20
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x10]
mov esi, 4
lea edx, [ebx + 0x208]
nop word [eax + eax]
movzx eax, byte [edx - 4]
lea ecx, [ecx + 1]
xor byte [ecx - 5], al
movzx eax, byte [edx]
xor byte [ecx - 1], al
movzx eax, byte [edx + 4]
xor byte [ecx + 3], al
movzx eax, byte [edx + 8]
inc edx
xor byte [ecx + 7], al
sub esi, 1
jne 0x40cc60
lea eax, [ebx + 0x218]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x2c], eax
xor ecx, ecx
nop word [eax + eax]
movzx eax, byte [ebp + ecx*4 - 0x14]
movzx eax, byte [eax + ebx + 4]
mov byte [ebp + ecx*4 - 0x14], al
movzx eax, byte [ebp + ecx*4 - 0x13]
movzx eax, byte [eax + ebx + 4]
mov byte [ebp + ecx*4 - 0x13], al
movzx eax, byte [ebp + ecx*4 - 0x12]
movzx eax, byte [eax + ebx + 4]
mov byte [ebp + ecx*4 - 0x12], al
movzx eax, byte [ebp + ecx*4 - 0x11]
movzx eax, byte [eax + ebx + 4]
mov byte [ebp + ecx*4 - 0x11], al
inc ecx
cmp ecx, 4
jl 0x40cca0
mov esi, 4
mov edi, 3
nop dword [eax + eax]
lea eax, [edi - 2]
and eax, reloc.WS2_32.dll_closesocket
jns 0x40ccff
dec eax
or eax, 0xfffffffc
inc eax
add eax, esi
mov bl, byte [ebp + eax - 0x14]
lea eax, [edi - 1]
and eax, reloc.WS2_32.dll_closesocket
jns 0x40cd14
dec eax
or eax, 0xfffffffc
inc eax
add eax, esi
mov dl, byte [ebp + eax - 0x14]
mov eax, edi
and eax, reloc.WS2_32.dll_closesocket
jns 0x40cd28
dec eax
or eax, 0xfffffffc
inc eax
add eax, esi
inc edi
mov cl, byte [ebp + eax - 0x14]
mov eax, edi
and eax, reloc.WS2_32.dll_closesocket
jns 0x40cd3d
dec eax
or eax, 0xfffffffc
inc eax
add eax, esi
mov al, byte [ebp + eax - 0x14]
mov byte [ebp + esi - 0x11], al
lea eax, [edi - 2]
mov byte [ebp + esi - 0x14], bl
mov byte [ebp + esi - 0x13], dl
mov byte [ebp + esi - 0x12], cl
add esi, 4
cmp eax, 4
jl 0x40ccf0
mov esi, dword [ebp - 0x1c]
cmp esi, 0xa
je 0x40ce22
xor ecx, ecx
mov dword [ebp - 0x28], ecx
nop
lea eax, [ebp + ecx - 0x14]
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], eax
mov edi, 1
movzx eax, byte [eax]
mov byte [ebp - 0x18], al
movzx eax, byte [ebp + ecx - 0x10]
mov byte [ebp - 0x17], al
movzx eax, byte [ebp + ecx - 0xc]
mov byte [ebp - 0x16], al
movzx eax, byte [ebp + ecx - 8]
mov byte [ebp - 0x15], al
mov cl, byte [ebp + edi - 0x19]
mov al, cl
add al, al
test cl, cl
jns 0x40cdaf
xor al, 0x1b
mov ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40cdbe
dec ecx
or ecx, 0xfffffffc
inc ecx
mov cl, byte [ebp + ecx - 0x18]
mov bl, cl
add bl, bl
test cl, cl
jns 0x40cdcd
xor bl, 0x1b
xor bl, cl
lea ecx, [edi + 1]
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40cddf
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dl, byte [ebp + ecx - 0x18]
lea ecx, [edi + 2]
and ecx, reloc.WS2_32.dll_closesocket
jns 0x40cdf3
dec ecx
or ecx, 0xfffffffc
inc ecx
mov cl, byte [ebp + ecx - 0x18]
inc edi
xor al, cl
xor al, dl
mov edx, dword [ebp - 0x20]
xor al, bl
mov byte [edx], al
add edx, 4
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x20], edx
jne 0x40cda1
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, 4
jl 0x40cd70
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
nop word [eax + eax]
movzx eax, byte [edx + ecx - 4]
xor byte [ebp + ecx - 0x14], al
movzx eax, byte [edx + ecx]
xor byte [ebp + ecx - 0x10], al
movzx eax, byte [edx + ecx + 4]
xor byte [ebp + ecx - 0xc], al
movzx eax, byte [edx + ecx + 8]
xor byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 4
jl 0x40ce30
mov ebx, dword [ebp - 0x30]
inc esi
add edx, 0x10
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], edx
cmp esi, 0xa
jle 0x40cc94
mov esi, dword [ebp - 0x34]
lea edi, [ebp - 0x14]
xor edx, edx
lea ebx, [ebp - 0x12]
nop word [eax + eax]
movzx eax, byte [edi + edx*4]
movzx ecx, byte [ebx + edx*4]
mov byte [esi + edx], al
movzx eax, byte [ebp + edx*4 - 0x13]
mov byte [esi + edx + 4], al
lea eax, [ebp - 0x11]
mov byte [esi + edx + 8], cl
movzx ecx, byte [eax + edx*4]
mov byte [esi + edx + 0xc], cl
inc edx
cmp edx, 4
jl 0x40ce80
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c15
mov esp, ebp
pop ebp
ret 4