Function at 0x40cc00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x42768c]
sub esp, 0x28
push ebx
mov ebx, dword [ecx*4 + 0x427410]
test ebx, ebx
je 0x40ce75
mov edx, dword [ecx*4 + 0x427350]
xor eax, eax
test edx, edx
jbe 0x40cc43
mov dl, byte [eax + ebx]
mov cl, al
add cl, 0x42
xor dl, cl
mov byte [eax + ebx], dl
mov edx, dword [0x42768c]
inc eax
cmp eax, dword [edx*4 + 0x427350]
jb 0x40cc26
xor eax, eax
mov ax, word [ebx]
add ebx, 2
test eax, eax
jbe 0x40ce75
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x18], eax
add ebx, 9
mov dword [esp + 0x14], ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov ebp, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
lea edx, [ebx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov esi, edx
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
lea ebx, [edx + ecx + 1]
mov edx, dword [0x4271fc]
mov dword [esp + 0x34], ebx
push edx
add ebx, edi
call fcn.0040c690
push 0xffdc
push esi
push 0
call fcn.0040c0c0
mov ebp, eax
add esp, 0x14
test ebp, ebp
mov dword [esp + 0x34], ebp
je 0x40ce63
lea eax, [ebp + ebp + 1]
push eax
call fcn.00419070
lea ecx, [ebp + 1]
mov dword [esp + 0x2c], eax
push ecx
push esi
push eax
call fcn.0040c0c0
mov edx, dword [0x4271fc]
push 2
push edx
call fcn.00401040
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x40ce56
cmp dword [esp + 0x18], 0xffffffff
jne 0x40ce25
test edi, edi
je 0x40ce4d
push esi
call fcn.004011c0
add esp, 4
cmp eax, 0x8000
mov esi, eax
jb 0x40cd27
mov esi, 0x8000
sub eax, esi
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x28], ebp
call fcn.004020e0
add esp, 8
test eax, eax
je 0x40ce49
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
call fcn.004010c0
add esp, 0xc
mov dword [esp + 0x24], 0
mov eax, esi
test ebp, ebp
mov edx, 0x4000
jne 0x40cd70
sub eax, edi
inc eax
mov edx, eax
mov eax, dword [esp + 0x10]
test edx, edx
je 0x40cd9a
jmp 0x40cd7e
mov edi, dword [esp + 0x14]
mov ecx, edi
mov edi, dword [esp + 0x30]
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x40cd92
inc eax
dec edx
jne 0x40cd7a
jmp 0x40cd96
test edx, edx
jne 0x40cdf1
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40ce07
mov edi, dword [esp + 0x10]
mov ecx, 0x1000
lea esi, [edi + 0x4000]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov esi, 0x4000
add ecx, esi
cmp ebp, esi
mov dword [esp + 0x24], ecx
ja 0x40cdc4
mov esi, ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 0x4000
push esi
push eax
push ecx
call fcn.004010c0
mov edi, dword [esp + 0x20]
add esp, 0xc
sub ebp, esi
lea eax, [esi + 0x4000]
mov dword [esp + 0x20], ebp
jmp 0x40cd62
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub eax, esi
add eax, edx
add eax, ecx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
push edx
call fcn.00402160
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 0xffffffff
je 0x40ce49
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
push esi
call fcn.00401160
mov ecx, dword [esp + 0x30]
push ebp
push ecx
push esi
call fcn.00401100
push 0
push esi
call fcn.004011a0
add esp, 0x1c
jmp 0x40ce4d
mov esi, dword [esp + 0x1c]
push esi
call fcn.004012c0
add esp, 4
mov edx, dword [esp + 0x28]
push edx
call fcn.004191d3
add esp, 4
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40cc5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret