Function at 0x40cc10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x4c]
jmp 0x40cc33
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40cc30
cmp edi, 0x20
je 0x40cc30
mov dword [esp + 0x20], ebp
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov ebx, 0xffffffff
jmp 0x40cc77
mov edi, ebx
mov ebp, ecx
inc ebp
mov ebx, edi
mov ecx, ebp
mov edi, dword [esp + 0x10]
add edi, ebp
mov dword [esp + 0x2c], edi
movzx ebp, byte [esi + edi - 1]
lea edi, [ebp - 0x30]
cmp edi, 0xa
jb 0x40cc70
mov dword [esp + 0x24], ebp
cmp ebp, 0x2e
mov ebp, ecx
jne 0x40cca1
mov edi, ebp
test ebx, ebx
js 0x40cc74
mov edi, ebx
test ebx, ebx
setns cl
jns 0x40ccac
mov edi, ebp
xor ebx, ebx
mov bl, cl
mov ecx, ebp
sub ecx, ebx
je 0x40ccf2
neg ebx
cmp ecx, 9
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 8], ebx
jle 0x40cd12
mov dword [esp + 0xc], ecx
add ecx, 0xfffffff6
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x10]
lea edx, [ebx + esi]
mov ch, byte [ebx + esi - 1]
cmp ch, 0x2e
jne 0x40cd29
mov ch, byte [edx]
mov edx, dword [esp + 0x20]
lea edi, [ebx + edx]
mov dword [esp], edi
jmp 0x40cd2c
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40ccfc
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp byte [esp + 7], 0x2d
jne 0x40d034
jmp 0x40d03a
mov edx, ebx
fldz
test ecx, ecx
mov ebx, dword [esp + 0x10]
jle 0x40cd5a
lea ecx, [ebx + eax]
mov dword [esp], ecx
jmp 0x40ce76
mov dword [esp], edx
movsx edi, ch
mov edx, edi
xor edx, 0xffffffcf
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
cmp dword [esp + 0x14], 0
je 0x40ce6a
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40cd61
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40cd62
fld st(0)
jmp 0x40cee0
inc ecx
mov dword [esp], ecx
lea ecx, [edi + edi*4]
movsx edi, dl
mov edx, edi
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jl 0x40ce6a
add ecx, 0xfffffff4
mov dword [esp + 0x14], ecx
mov edx, dword [esp]
mov ch, byte [edx]
cmp ch, 0x2e
jne 0x40cda0
mov ch, byte [edx + 1]
add edx, 2
jmp 0x40cda1
inc edx
mov dword [esp], edx
lea edx, [edi + edi*4]
mov dword [esp + 0x28], edx
movsx edi, ch
mov edx, edi
xor edx, 0xffffffcf
mov ecx, dword [esp + 0x28]
lea edx, [edx + ecx*2]
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
cmp dword [esp + 0x14], 0
je 0x40ce6a
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40cde0
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40cde1
inc ecx
mov dword [esp], ecx
lea ecx, [edi + edi*4]
movsx edi, dl
mov edx, edi
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
mov ecx, dword [esp + 0xc]
cmp ecx, 0xe
jl 0x40ce6a
add ecx, 0xfffffff2
mov dword [esp + 0xc], ecx
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40ce1d
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40ce1e
inc ecx
mov dword [esp], ecx
lea ecx, [edi + edi*4]
movsx edi, dl
mov edx, edi
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
cmp dword [esp + 0xc], 0
je 0x40ce6a
mov ecx, dword [esp]
movzx edx, byte [ecx]
cmp dl, 0x2e
jne 0x40ce51
movzx edx, byte [ecx + 1]
add ecx, 2
jmp 0x40ce52
inc ecx
mov dword [esp], ecx
lea ecx, [edi + edi*4]
movsx edi, dl
mov edx, edi
xor edx, 0xffffffcf
lea edx, [edx + ecx*2]
and edi, 0xffffffcf
lea edi, [edx + edi*2]
inc edi
mov edx, dword [esp + 8]
mov dword [esp + 0x34], edi
fild dword [esp + 0x34]
add edx, ebp
cmp edx, 9
jl 0x40ce82
mov edx, 9
inc edx
xor edi, edi
jmp 0x40cec7
mov ch, byte [ebx + 1]
add ebx, 2
mov dword [esp], ebx
mov ebx, edi
and ebx, 0xa
mov ebp, edi
or edi, 0xa
imul edi, ebx
xor ebx, 0xa
and ebp, 0xfffffff5
imul ebp, ebx
movsx ebx, ch
add edi, ebp
add edi, ebx
add edi, 0xffffffd0
dec edx
cmp edx, 1
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
jle 0x40ced4
mov ebx, dword [esp]
mov ch, byte [ebx]
cmp ch, 0x2e
je 0x40ce90
inc ebx
jmp 0x40ce96
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x40cf0a
mov eax, dword [esp + 0x2c]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40cf12
add ebx, esi
jmp 0x40cf16
add eax, ebp
add ebx, eax
xor eax, eax
jmp 0x40cf71
add ebx, dword [esp + 0x20]
mov eax, ebx
lea esi, [ebx + ebp]
mov edi, ebp
mov ebp, esi
movzx ebx, byte [ebx + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x40cf60
xor eax, eax
nop
mov edi, eax
and edi, 0xa
mov esi, eax
or eax, 0xa
imul eax, edi
xor edi, 0xa
and esi, 0xfffffff5
imul esi, edi
movsx edi, bl
add edi, eax
lea eax, [esi + edi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x40cf30
mov ebx, ebp
cmp dl, 0x2d
jne 0x40cf69
neg eax
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov ecx, ebx
add edx, ebp
cmp edx, 0x10
jge 0x40cf83
mov edx, 0xf
add edi, eax
add edi, edx
mov eax, edi
mov ebx, dword [esp + 8]
sub eax, ebx
sub eax, ebp
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jl 0x40cfc5
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x40cfba
mov dword [esi], 0x22
mov ebx, ecx
movzx ecx, byte [esp + 7]
fldz
jmp 0x40cfda
sub ebx, edi
lea esi, [ebx + ebp]
add esi, 0xf
fld1
test esi, esi
mov ebx, ecx
movzx ecx, byte [esp + 7]
je 0x40d009
fstp st(0)
fld1
mov esi, 0x44c718
mov edi, ebx
jmp 0x40d000
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
mov ebx, edi
jb 0x40d009
test dl, 1
je 0x40cff0
fmul qword [esi]
jmp 0x40cff0
fld st(1)
fmul st(1)
test eax, eax
jns 0x40d01d
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40d02b
mov dword [eax], ebx
fld st(0)
fchs
cmp cl, 0x2d
je 0x40d03a
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret