Function at 0x40cd70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xcc
mov eax, dword [0x427da0]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd8]
push ebx
push ebp
mov ebp, dword [esp + 0xdc]
push esi
push edi
push 0x7f
lea ecx, [esp + 0x5d]
push 0
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov byte [esp + 0x64], 0
call fcn.0040fd40
mov edx, dword [esp + 0xec]
imul edx, edx, 0x126
add esp, 0xc
cmp dword [edx + 0x432bc8], 0
jne 0x40cdd4
mov eax, 0xa2
jmp 0x40cfea
lea eax, [esp + 0x20]
push 0x19
push eax
call fcn.0040a4f0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410924
add esp, 4
call fcn.00410931
mov bl, al
mov al, byte [esp + 0xf0]
xor al, bl
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], al
jmp 0x40ce14
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x14]
mov edx, dword [ebp]
xor cl, bl
mov byte [esp + 0x24], al
mov eax, dword [ebp + 4]
mov byte [esp + 0x23], cl
mov ecx, dword [ebp + 8]
mov dword [esp + 0x25], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x29], eax
mov byte [esp + 0x21], 0x33
mov byte [esp + 0x22], bl
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], edx
xor eax, eax
lea esp, [esp]
xor byte [esp + eax + 0x25], bl
add eax, 1
cmp eax, 0x10
jl 0x40ce50
sub esp, 0x1c
mov ecx, 6
lea esi, [esp + 0x3c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov edx, dword [esp + 0xfc]
mov byte [esp + 0x54], al
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40cfc1
mov eax, dword [esp + 0x14]
add eax, 1
add ebp, 0x10
cmp eax, 8
mov dword [esp + 0x14], eax
jl 0x40ce10
mov cl, byte [esp + 0x13]
mov byte [esp + 0x24], cl
mov al, bl
sub esp, 0x1c
xor al, 8
mov byte [esp + 0x3f], al
mov byte [esp + 0x3d], 0x33
mov byte [esp + 0x3e], bl
mov ecx, 6
lea esi, [esp + 0x3c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
mov ecx, dword [esp + 0xfc]
lea edx, [esp + 0x58]
mov byte [esp + 0x54], al
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40cfea
mov dword [esp + 0x14], eax
lea ebp, [esp + 0x58]
lea esp, [esp]
mov dl, byte [esp + 0x14]
mov al, byte [esp + 0x13]
add dl, 9
sub esp, 0x1c
xor dl, bl
mov byte [esp + 0x3f], dl
mov byte [esp + 0x40], al
mov byte [esp + 0x3d], 0x33
mov byte [esp + 0x3e], bl
mov ecx, 6
lea esi, [esp + 0x3c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a880
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x40]
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x100]
push edx
push eax
call fcn.0040a6d0
add esp, 0x28
test eax, eax
jne 0x40cfc1
mov ecx, dword [esp + 0x41]
mov edx, dword [esp + 0x45]
mov eax, dword [esp + 0x49]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x4d]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [ebp + 0xc], ecx
add ebp, 0x10
cmp eax, 8
mov dword [esp + 0x14], eax
jl 0x40cf10
cmp word [esp + 0xec], 0
jne 0x40cfc8
movzx ax, byte [esp + 0x5f]
cmp ax, 0x78
mov edx, dword [esp + 0x1c]
mov word [edx], ax
ja 0x40cfc1
movzx eax, ax
push eax
lea ecx, [esp + 0x64]
jmp 0x40cfda
mov eax, 0x2e
jmp 0x40cfea
mov eax, dword [esp + 0x1c]
mov word [eax], 0x80
push 0x80
lea ecx, [esp + 0x5c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00411170
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fac6
add esp, 0xcc
ret 0x14