Function at 0x40cbe0
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 0x40cc03
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40cc00
cmp edi, 0x20
je 0x40cc00
mov byte [esp + 7], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x14], ebx
xor ecx, ecx
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40cc4b
mov ebx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x1c], ebx
mov ecx, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x2c], edi
movzx edx, byte [esi + edi - 1]
lea ebx, [edx - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x40cc40
mov dword [esp + 0x28], edx
cmp edx, 0x2e
mov ecx, dword [esp + 0x1c]
jne 0x40cc77
mov ebx, edi
test ecx, ecx
js 0x40cc44
xor ebx, ebx
test ecx, ecx
setns ch
jns 0x40cc84
mov dword [esp + 0x1c], edi
mov bl, ch
mov edx, edi
sub edx, ebx
movzx ecx, byte [esp + 7]
je 0x40cccb
neg ebx
cmp edx, 9
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ebx
jle 0x40cce0
mov dword [esp + 0xc], edx
lea ecx, [edx - 0xa]
mov dword [esp + 8], ecx
mov edi, dword [esp + 0x14]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x40ccf5
movzx edx, byte [ecx]
lea ebx, [edi + ebp]
mov dword [esp], ebx
mov ebx, dword [esp + 0x10]
jmp 0x40ccf8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40ccd9
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
fldz
jmp 0x40d0a9
fldz
test edx, edx
jle 0x40cd2e
mov edx, dword [esp + 0x14]
lea ecx, [edx + eax]
mov dword [esp], ecx
jmp 0x40cf04
mov dword [esp], ecx
movsx ecx, dl
mov dword [esp + 0x18], ecx
add ecx, 0xffffffd0
cmp dword [esp + 8], 0
mov edi, dword [esp + 0x24]
je 0x40cefc
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40cd35
movzx ecx, byte [edx + 1]
mov byte [esp + 8], cl
add edx, 2
mov dword [esp], edx
jmp 0x40cd3d
fld st(0)
jmp 0x40cf58
inc edx
mov dword [esp], edx
mov byte [esp + 8], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
and ecx, 0xa
mov edx, ecx
xor edx, 0xa
imul edx, dword [esp + 0x20]
or ebx, 0xa
imul ebx, ecx
movsx ecx, byte [esp + 8]
mov dword [esp + 8], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 8]
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0xc]
cmp edx, 0xc
jl 0x40cef8
mov dword [esp + 0x18], ecx
lea ecx, [edx - 0xc]
mov edx, dword [esp]
mov bh, byte [edx]
cmp bh, 0x2e
mov dword [esp + 8], ecx
jne 0x40cda5
movzx ecx, byte [edx + 1]
mov byte [esp + 0x20], cl
add edx, 2
mov dword [esp], edx
jmp 0x40cdaf
mov bl, bh
inc edx
mov dword [esp], edx
mov byte [esp + 0x20], bh
mov ebx, dword [esp + 0x18]
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 0x18]
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 8], 0
je 0x40cef8
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40ce07
movzx ecx, byte [edx + 1]
mov byte [esp + 8], cl
add edx, 2
mov dword [esp], edx
jmp 0x40ce0f
inc edx
mov dword [esp], edx
mov byte [esp + 8], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 8]
mov dword [esp + 8], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 8]
add ecx, edx
add ecx, 0xffffffd0
mov edx, dword [esp + 0xc]
cmp edx, 0xe
jl 0x40cef8
mov ebx, ecx
add edx, 0xfffffff2
mov dword [esp + 0xc], edx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40ce6c
movzx ecx, byte [edx + 1]
mov byte [esp + 8], cl
add edx, 2
mov dword [esp], edx
jmp 0x40ce74
inc edx
mov dword [esp], edx
mov byte [esp + 8], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 8]
mov dword [esp + 8], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 8]
add ecx, edx
add ecx, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x40cef8
mov ebx, ecx
mov edx, dword [esp]
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x40cec4
movzx ecx, byte [edx + 1]
mov byte [esp + 0xc], cl
add edx, 2
mov dword [esp], edx
jmp 0x40cecc
inc edx
mov dword [esp], edx
mov byte [esp + 0xc], cl
mov ecx, ebx
and ecx, 0xfffffff5
mov edx, ebx
and edx, 0xa
or ebx, 0xa
imul ebx, edx
xor edx, 0xa
imul edx, ecx
movsx ecx, byte [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, ebx
add ecx, edx
mov edx, dword [esp + 0xc]
add ecx, edx
add ecx, 0xffffffd0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x40cf11
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x40cf3f
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp], edi
lea ebx, [ebx + ebx*4]
movsx edi, ch
lea ebx, [edi + ebx*2]
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov edi, dword [esp + 0x24]
jle 0x40cf4c
mov edi, dword [esp]
mov ch, byte [edi]
cmp ch, 0x2e
je 0x40cf20
inc edi
jmp 0x40cf26
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x28]
or edx, 0x20
cmp edx, 0x65
jne 0x40cf8f
mov eax, dword [esp + 0x2c]
movzx eax, byte [esi + eax]
mov edx, eax
add dl, 0xd5
test dl, 0xfd
je 0x40cf9b
mov ecx, edi
mov edi, dword [esp + 0x14]
add edi, esi
mov edx, edi
lea ebp, [edi + ecx]
jmp 0x40cfa8
add eax, edi
mov edi, dword [esp + 0x14]
add edi, eax
xor edx, edx
jmp 0x40cff0
mov esi, dword [esp + 0x14]
add esi, ebp
mov edx, esi
lea ebp, [esi + edi]
mov ecx, edi
movzx ebx, byte [edx + ecx]
lea esi, [ebx - 0x30]
xor edx, edx
cmp esi, 9
ja 0x40cfe4
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [edx + edx*4]
movsx esi, bl
mov edi, esi
xor edi, 0xffffffcf
lea edx, [edi + edx*2]
and esi, 0xffffffcf
lea edx, [edx + esi*2]
inc edx
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x40cfc0
mov edi, ebp
cmp al, 0x2d
jne 0x40cfec
neg edx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add eax, ebx
cmp eax, 0x10
jge 0x40d000
mov eax, 0xf
mov ebp, dword [esp + 0x1c]
add ebp, edx
add ebp, eax
mov eax, ebp
sub eax, ebx
mov ecx, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jb 0x40d046
mov edx, 0x1ff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x40d03d
mov dword [esi], 0x22
movzx ecx, byte [esp + 7]
fldz
jmp 0x40d059
sub ecx, ebp
lea esi, [ecx + ebx]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 7]
je 0x40d087
fstp st(0)
fld1
mov esi, 0x447690
jmp 0x40d07e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x40d087
test dl, 1
je 0x40d070
fmul qword [esi]
jmp 0x40d070
fld st(1)
fmul st(1)
test eax, eax
jns 0x40d09b
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 0x40d0a9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x40d0b8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret