Function at 0x40cbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x48]
jmp 0x40cc13
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40cc10
cmp edi, 0x20
je 0x40cc10
mov dword [esp + 0x1c], ebp
mov byte [esp + 3], ch
add ch, 0xd5
test ch, 0xfd
mov ecx, 0
sete cl
add ecx, edx
xor edi, edi
mov dword [esp + 0xc], 0xffffffff
jmp 0x40cc5b
mov ebx, dword [esp + 0xc]
mov edi, ebp
inc edi
mov dword [esp + 0xc], ebx
mov ebp, edi
lea ebx, [ecx + edi]
mov dword [esp + 0x28], ebx
movzx edi, byte [esi + ebx - 1]
lea ebx, [edi - 0x30]
cmp ebx, 0xa
jb 0x40cc50
mov dword [esp + 0x24], edi
cmp edi, 0x2e
mov edi, ebp
jne 0x40cc85
mov ebx, edi
cmp dword [esp + 0xc], 0
js 0x40cc56
mov dword [esp + 0x14], ecx
xor ebx, ebx
cmp dword [esp + 0xc], 0
setns ch
mov ebp, dword [esp + 0x1c]
jns 0x40cc9d
mov dword [esp + 0xc], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40cd06
neg ebx
cmp ecx, 9
mov dword [esp + 0x20], edi
mov dword [esp + 8], ebx
jle 0x40cd2d
mov dword [esp + 0x10], ecx
add ecx, 0xfffffff6
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x14]
lea ebp, [ecx + esi]
movzx edx, byte [ecx + esi - 1]
cmp dl, 0x2e
jne 0x40ccdf
movzx edx, byte [ebp]
mov ebx, dword [esp + 0x1c]
lea ebp, [ecx + ebx]
mov ebx, dword [esp + 8]
movsx ecx, dl
lea edx, [ecx - 0x30]
cmp dword [esp + 4], 0
je 0x40cead
movzx ebx, byte [ebp]
cmp bl, 0x2e
jne 0x40cd4e
movzx ebx, byte [ebp + 1]
mov byte [esp + 4], bl
add ebp, 2
jmp 0x40cd53
mov eax, dword [esp + 0x4c]
test eax, eax
movzx ecx, byte [esp + 3]
je 0x40cd15
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
je 0x40cd26
fstp st(0)
fldz
fxch st(1)
fstp st(1)
jmp 0x40d081
fldz
test ecx, ecx
mov ebx, dword [esp + 0x14]
jle 0x40cd43
lea ebp, [ebx + eax]
mov ebx, dword [esp + 8]
jmp 0x40ceb5
fld st(0)
mov ecx, dword [esp + 0x24]
jmp 0x40cf14
inc ebp
mov byte [esp + 4], bl
and ecx, 0xa
mov dword [esp + 0x18], ecx
mov ebx, ecx
xor ebx, 0xa
mov ecx, edx
and ecx, 0xfffffff5
imul ecx, ebx
or edx, 0xa
imul edx, dword [esp + 0x18]
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xc
jl 0x40cea9
add ecx, 0xfffffff4
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x40cda5
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x18], cl
add ebp, 2
jmp 0x40cdaa
inc ebp
mov byte [esp + 0x18], bl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 0x18]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x40cea9
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40cded
movzx ecx, byte [ebp + 1]
mov byte [esp + 4], cl
add ebp, 2
jmp 0x40cdf2
inc ebp
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xe
jl 0x40cea9
add ecx, 0xfffffff2
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 0x10], ecx
jne 0x40ce3e
movzx ecx, byte [ebp + 1]
mov byte [esp + 4], cl
add ebp, 2
jmp 0x40ce43
inc ebp
mov byte [esp + 4], bl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0x10], 0
je 0x40cea9
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40ce82
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x10], cl
add ebp, 2
jmp 0x40ce87
inc ebp
mov byte [esp + 0x10], cl
mov ebx, edx
and ebx, 0xa
mov ecx, edx
or edx, 0xa
imul edx, ebx
xor ebx, 0xa
and ecx, 0xfffffff5
imul ecx, ebx
movsx ebx, byte [esp + 0x10]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ebx, dword [esp + 8]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
lea edx, [ebx + edi]
cmp edx, 9
jl 0x40cec2
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x40cef5
mov ch, byte [ebp + 1]
add ebp, 2
lea ebx, [ebx + ebx*4]
movsx ecx, ch
mov edi, ecx
xor edi, 0xffffffcf
lea edi, [edi + ebx*2]
and ecx, 0xffffffcf
lea ebx, [edi + ecx*2]
inc ebx
dec edx
cmp edx, 1
mov edi, dword [esp + 0x20]
jle 0x40cf00
mov ch, byte [ebp]
cmp ch, 0x2e
je 0x40ced0
inc ebp
jmp 0x40ced6
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x40cf40
mov eax, dword [esp + 0x28]
movzx eax, byte [esi + eax]
mov ecx, eax
add cl, 0xd5
test cl, 0xfd
je 0x40cf48
mov ecx, dword [esp + 0x14]
add ecx, esi
jmp 0x40cf4e
add eax, edi
add ebx, eax
xor edx, edx
jmp 0x40cfb6
mov ecx, dword [esp + 0x14]
add ecx, ebp
lea esi, [ecx + edi]
movzx ebx, byte [ecx + edi]
lea ecx, [ebx - 0x30]
xor edx, edx
cmp ecx, 9
ja 0x40cfac
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edi, [esi + 1]
mov ecx, edx
or ecx, 0xa
mov ebp, edx
and ebp, 0xa
imul ecx, ebp
and edx, 0xfffffff5
xor ebp, 0xa
imul ebp, edx
add ebp, ecx
movsx ecx, bl
add ecx, 0xffffffd0
mov edx, ebp
xor edx, ecx
and ecx, ebp
lea edx, [edx + ecx*2]
movzx ebx, byte [esi + 1]
mov ecx, ebx
add ecx, 0xffffffd0
mov esi, edi
cmp ecx, 0xa
jb 0x40cf70
jmp 0x40cfae
mov edi, esi
mov ebx, edi
cmp al, 0x2d
jne 0x40cfb6
neg edx
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
add eax, ecx
cmp eax, 0x10
jge 0x40cfce
mov eax, 0xf
add ebp, edx
add ebp, eax
mov eax, ebp
mov edi, dword [esp + 8]
sub eax, edi
mov esi, dword [esp + 0x20]
sub eax, esi
add eax, 0xfffffff1
mov ecx, eax
sar ecx, 0x1f
mov edx, eax
xor edx, ecx
sub edx, ecx
cmp edx, 0x200
jb 0x40d011
mov edx, 0x1ff
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x40d009
mov dword [ecx], 0x22
mov edi, dword [esp + 0x4c]
fldz
jmp 0x40d028
sub edi, ebp
lea ecx, [edi + esi]
add ecx, 0xf
fld1
test ecx, ecx
movzx ecx, byte [esp + 3]
mov edi, dword [esp + 0x4c]
je 0x40d05c
fstp st(0)
fld1
mov esi, 0x445690
jmp 0x40d053
mov ecx, edx
shr ecx, 1
add esi, 8
cmp edx, 2
mov edx, ecx
movzx ecx, byte [esp + 3]
jb 0x40d05c
test dl, 1
je 0x40d040
fmul qword [esi]
jmp 0x40d040
fld st(1)
fmul st(1)
test eax, eax
jns 0x40d070
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test edi, edi
je 0x40d07a
mov dword [edi], ebx
cmp cl, 0x2d
jne 0x40d081
fchs
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret