Function at 0x408f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
xor ebx, ebx
mov edi, dword [esp + 0x30]
jmp 0x408f21
inc ebx
movzx edx, byte [edi + ebx]
movzx eax, dl
lea ecx, [eax - 9]
cmp ecx, 5
jb 0x408f20
cmp eax, 0x20
je 0x408f20
mov eax, edx
add al, 0xd5
and al, 0xfd
cmp al, 1
adc ebx, 0
xor ebp, ebp
mov esi, 0xffffffff
jmp 0x408f61
mov ecx, esi
mov eax, ebp
and eax, 1
xor ebp, 1
lea ebp, [ebp + eax*2]
inc ebx
mov esi, ecx
movzx eax, byte [edi + ebx]
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jb 0x408f50
cmp al, 0x2e
jne 0x408f77
mov ecx, ebp
test esi, esi
js 0x408f52
xor ecx, ecx
test esi, esi
setns dh
jns 0x408f82
mov esi, ebp
mov cl, dh
mov dword [esp + 8], ecx
mov ecx, ebp
sub ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 0xc], ecx
cmp ecx, 0xf
jl 0x408fa1
mov dword [esp], 0xf
mov dword [esp + 4], 0xfffffff1
cmp dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
jge 0x408fc2
mov eax, dword [esp + 0xc]
neg eax
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp]
test ecx, ecx
je 0x409021
mov edi, ecx
mov ecx, dword [esp + 0x30]
sub ecx, ebp
add ecx, ebx
cmp edi, 9
mov dword [esp + 0x10], esi
jle 0x409043
neg ebp
add ebp, dword [esp + 0x30]
lea eax, [ebx + ebp]
inc eax
movzx ecx, byte [ecx]
cmp cl, 0x2e
jne 0x408ff7
movzx ecx, byte [eax]
lea eax, [ebx + ebp]
add eax, 2
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea esi, [ecx + ebp]
inc esi
cmp dword [esp], 0xb
jl 0x409135
movzx ecx, byte [eax]
cmp cl, 0x2e
jne 0x40905a
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x40905b
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40902b
mov dword [eax], edi
fldz
fld st(0)
fchs
cmp dl, 0x2d
je 0x40903c
fstp st(0)
fldz
fxch st(1)
fstp st(1)
jmp 0x4092ab
fldz
fld st(0)
cmp dword [esp + 0xc], 0
mov edi, dword [esp]
jg 0x409146
jmp 0x40919a
inc eax
lea esi, [esi + esi*4]
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea ebp, [ebp + esi*2]
lea esi, [ecx + ebp]
inc esi
cmp dword [esp], 0xc
jl 0x409135
movzx ecx, byte [eax]
cmp cl, 0x2e
jne 0x40908c
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x40908d
inc eax
lea esi, [esi + esi*4]
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea ebp, [ebp + esi*2]
lea esi, [ecx + ebp]
inc esi
cmp dword [esp], 0xd
jl 0x409135
movzx ecx, byte [eax]
cmp cl, 0x2e
jne 0x4090be
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x4090bf
inc eax
lea esi, [esi + esi*4]
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea ebp, [ebp + esi*2]
lea esi, [ecx + ebp]
inc esi
cmp dword [esp], 0xe
jl 0x409135
movzx ecx, byte [eax]
cmp cl, 0x2e
jne 0x4090ec
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x4090ed
inc eax
lea esi, [esi + esi*4]
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea ebp, [ebp + esi*2]
lea esi, [ecx + ebp]
inc esi
cmp dword [esp], 0xf
jl 0x409135
movzx ecx, byte [eax]
cmp cl, 0x2e
jne 0x40911a
movzx ecx, byte [eax + 1]
add eax, 2
jmp 0x40911b
inc eax
lea esi, [esi + esi*4]
movsx ecx, cl
mov ebp, ecx
or ebp, 0xffffffcf
and ecx, 0xffffffcf
lea esi, [esi*2]
add esi, ebp
add esi, ecx
inc esi
mov dword [esp + 0x18], esi
mov edi, 9
fild dword [esp + 0x18]
mov ecx, eax
fldz
fstp st(0)
inc edi
xor ebp, ebp
jmp 0x409188
mov dh, byte [ecx + 1]
add ecx, 2
mov eax, ebp
and eax, 0xa
mov esi, ebp
or ebp, 0xa
imul ebp, eax
xor eax, 0xa
and esi, 0xfffffff5
imul esi, eax
movsx eax, dh
add ebp, esi
add ebp, eax
add ebp, 0xffffffd0
mov eax, edi
dec eax
mov edi, eax
cmp eax, 1
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
jle 0x409192
mov dh, byte [ecx]
cmp dh, 0x2e
je 0x409150
inc ecx
jmp 0x409156
mov dword [esp + 0x14], ebp
fild dword [esp + 0x14]
fxch st(1)
fmul dword [str._knN]
mov ebp, dword [esp + 4]
add ebp, esi
faddp st(1)
or eax, 0x20
mov edi, dword [esp + 0x30]
cmp eax, 0x65
jne 0x4091c8
movzx ecx, byte [edi + ebx + 1]
mov eax, ecx
add al, 0xd5
test al, 0xfd
je 0x4091d2
add edi, ebx
inc edi
jmp 0x4091d7
add edi, ebx
xor eax, eax
mov esi, dword [esp + 0x34]
jmp 0x40922f
add edi, ebx
add edi, 2
mov dword [esp + 4], ebp
movzx ebx, byte [edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x409220
xor eax, eax
nop
nop
nop
nop
nop
nop
mov esi, eax
and esi, 0xfffffff5
mov ebp, eax
and ebp, 0xa
or eax, 0xa
imul eax, ebp
xor ebp, 0xa
imul ebp, esi
movsx esi, bl
add esi, eax
lea eax, [esi + ebp]
add eax, 0xffffffd0
movzx ebx, byte [edi + 1]
inc edi
mov esi, ebx
add esi, 0xffffffd0
cmp esi, 0xa
jb 0x4091f0
cmp cl, 0x2d
jne 0x409227
neg eax
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 4]
add ebp, eax
mov ecx, ebp
sar ecx, 0x1f
mov eax, ebp
xor eax, ecx
sub eax, ecx
cmp eax, 0x200
jb 0x40925a
mov eax, 0x1ff
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x409256
mov dword [ecx], 0x22
fldz
jmp 0x409260
fld1
test ebp, ebp
je 0x409286
fstp st(0)
fld1
mov ecx, 0x43e4e0
jmp 0x40927e
mov ebx, eax
shr ebx, 1
add ecx, 8
cmp eax, 2
mov eax, ebx
jb 0x409286
test al, 1
je 0x409270
fmul qword [ecx]
jmp 0x409270
fld st(1)
fmul st(1)
test ebp, ebp
jns 0x40929a
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
test esi, esi
je 0x4092a4
mov dword [esi], edi
cmp dl, 0x2d
jne 0x4092ab
fchs
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret