Function at 0x40cb10
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 0x40cb33
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x40cb30
cmp edi, 0x20
je 0x40cb30
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 + 0xc], ebx
xor ecx, ecx
mov dword [esp + 0x14], 0xffffffff
jmp 0x40cb7b
mov ebx, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], ebx
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
mov dword [esp + 0x28], edi
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
mov edi, ecx
jb 0x40cb70
mov dword [esp + 0x24], ebp
cmp ebp, 0x2e
mov ecx, dword [esp + 0x14]
jne 0x40cba7
mov ebx, edi
test ecx, ecx
js 0x40cb74
xor ebx, ebx
test ecx, ecx
setns ch
mov ebp, dword [esp + 0x20]
jns 0x40cbb8
mov dword [esp + 0x14], edi
mov bl, ch
mov ecx, edi
sub ecx, ebx
je 0x40cc22
neg ebx
cmp ecx, 9
mov dword [esp + 0x1c], edi
mov dword [esp + 8], ebx
jle 0x40cc49
lea edx, [ecx - 0xa]
mov dword [esp], edx
mov edi, dword [esp + 0xc]
lea ebp, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
mov dword [esp + 0x10], ecx
jne 0x40cbf9
movzx edx, byte [ebp]
mov ecx, dword [esp + 0x20]
lea ebp, [edi + ecx]
mov ebx, dword [esp + 8]
movsx ecx, dl
lea edx, [ecx - 0x30]
cmp dword [esp], 0
mov edi, dword [esp + 0x1c]
je 0x40cdbb
movzx ebx, byte [ebp]
cmp bl, 0x2e
jne 0x40cc66
movzx ebx, byte [ebp + 1]
mov byte [esp], bl
add ebp, 2
jmp 0x40cc6a
mov eax, dword [esp + 0x4c]
test eax, eax
movzx ecx, byte [esp + 7]
je 0x40cc31
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp cl, 0x2d
je 0x40cc42
fstp st(0)
fldz
fxch st(1)
fstp st(1)
jmp 0x40cf82
fldz
test ecx, ecx
mov ecx, dword [esp + 0x24]
jle 0x40cc5f
mov edx, dword [esp + 0xc]
lea ebp, [edx + eax]
jmp 0x40cdc3
fld st(0)
jmp 0x40ce1b
inc ebp
mov byte [esp], 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]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xc
jl 0x40cdb7
add ecx, 0xfffffff4
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp], ecx
jne 0x40ccba
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x18], cl
add ebp, 2
jmp 0x40ccbf
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], 0
je 0x40cdb7
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40cd00
movzx ecx, byte [ebp + 1]
mov byte [esp], cl
add ebp, 2
jmp 0x40cd04
inc ebp
mov byte [esp], 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]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xe
jl 0x40cdb7
add ecx, 0xfffffff2
movzx ebx, byte [ebp]
cmp bl, 0x2e
mov dword [esp + 0x10], ecx
jne 0x40cd4e
movzx ecx, byte [ebp + 1]
mov byte [esp], cl
add ebp, 2
jmp 0x40cd52
inc ebp
mov byte [esp], 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]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0x10], 0
je 0x40cdb7
movzx ecx, byte [ebp]
cmp cl, 0x2e
jne 0x40cd90
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x10], cl
add ebp, 2
jmp 0x40cd95
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 0x40cdd0
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x40cdfc
mov ch, byte [ebp + 1]
add ebp, 2
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 + 0x1c]
jle 0x40ce07
mov ch, byte [ebp]
cmp ch, 0x2e
je 0x40cde0
inc ebp
jmp 0x40cde6
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
or ecx, 0x20
cmp ecx, 0x65
jne 0x40ce4b
mov eax, dword [esp + 0x28]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40ce59
mov ecx, edi
mov edi, dword [esp + 0xc]
add edi, esi
mov eax, edi
add edi, ecx
jmp 0x40ce67
add eax, edi
add dword [esp + 0xc], eax
xor eax, eax
mov edi, dword [esp + 0x4c]
jmp 0x40cec5
mov esi, dword [esp + 0xc]
add esi, ebp
mov eax, esi
add esi, edi
mov ecx, edi
mov edi, esi
movzx ebx, byte [eax + ecx]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
mov ecx, dword [esp + 0x4c]
ja 0x40ceb2
xor eax, eax
mov ebp, edi
nop
nop
nop
mov esi, eax
and esi, 0xfffffff5
mov edi, eax
and edi, 0xa
or eax, 0xa
imul eax, edi
xor edi, 0xa
imul edi, esi
movsx esi, bl
add esi, eax
lea eax, [edi + esi]
add eax, 0xffffffd0
movzx ebx, byte [ebp + 1]
inc ebp
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x40ce80
jmp 0x40ceb4
mov ebp, edi
mov dword [esp + 0xc], ebp
cmp dl, 0x2d
jne 0x40cebf
neg eax
mov ebx, dword [esp + 8]
mov edi, ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ebx]
cmp edx, 0x10
jge 0x40ced6
mov edx, 0xf
mov ebp, dword [esp + 0x14]
add ebp, eax
add ebp, edx
mov eax, ebp
sub eax, ebx
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
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 0x40cf19
mov edx, 0x1ff
mov esi, dword [esp + 0x50]
test esi, esi
je 0x40cf13
mov dword [esi], 0x22
mov ecx, edi
fldz
jmp 0x40cf29
sub ecx, ebp
lea esi, [ecx + ebx]
add esi, 0xf
fld1
test esi, esi
mov ecx, edi
je 0x40cf57
fstp st(0)
fld1
mov esi, 0x445718
jmp 0x40cf4e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x40cf57
test dl, 1
je 0x40cf40
fmul qword [esi]
jmp 0x40cf40
fld st(1)
fmul st(1)
test eax, eax
jns 0x40cf6b
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test ecx, ecx
mov edi, dword [esp + 0xc]
je 0x40cf79
mov dword [ecx], edi
cmp byte [esp + 7], 0x2d
jne 0x40cf82
fchs
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret