Function at 0x408e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
jmp 0x408e71
inc ebx
movzx ecx, byte [ebx]
movzx eax, cl
lea edx, [eax - 9]
cmp edx, 5
jb 0x408e70
cmp eax, 0x20
je 0x408e70
mov byte [esp + 3], cl
mov eax, ecx
add al, 0xd5
test al, 0xfd
mov eax, 0
sete al
xor ebp, ebp
mov edi, 0xffffffff
jmp 0x408ea5
mov edx, edi
inc ebp
mov edi, edx
lea esi, [eax + ebp]
movzx ecx, byte [ebx + esi]
lea edx, [ecx - 0x30]
cmp edx, 0xa
jb 0x408ea0
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
cmp cl, 0x2e
jne 0x408ec7
mov edx, ebp
test edi, edi
js 0x408ea2
xor edx, edx
test edi, edi
setns ch
jns 0x408ed2
mov edi, ebp
mov dword [esp + 4], edi
add eax, ebx
mov dl, ch
mov dword [esp + 8], ebp
sub ebp, edx
cmp ebp, 0x10
mov dword [esp + 0x10], eax
jl 0x408ef5
add dword [esp + 4], 0xfffffff1
mov ebp, 0xf
jmp 0x408f16
test ebp, ebp
je 0x4090e2
neg edx
mov esi, dword [esp + 4]
sub esi, edx
sub esi, dword [esp + 8]
mov dword [esp + 4], esi
cmp ebp, 0xa
jl 0x4090ff
inc ebp
xor esi, esi
mov edx, eax
jmp 0x408f4c
mov ch, byte [edx + 1]
add edx, 2
mov eax, esi
and eax, 0xfffffff5
mov edi, esi
and edi, 0xa
or esi, 0xa
imul esi, edi
xor edi, 0xa
imul edi, eax
movsx eax, ch
add esi, edi
add esi, eax
add esi, 0xffffffd0
dec ebp
cmp ebp, 0xa
jle 0x408f56
mov ch, byte [edx]
cmp ch, 0x2e
je 0x408f20
inc edx
jmp 0x408f26
mov dword [esp + 0x1c], esi
mov ebp, 9
fild dword [esp + 0x1c]
fldz
fstp st(0)
inc ebp
xor esi, esi
jmp 0x408f98
mov ch, byte [edx + 1]
add edx, 2
lea eax, [esi + esi*4]
movsx esi, ch
mov edi, esi
or edi, 0xffffffcf
and esi, 0xffffffcf
lea eax, [edi + eax*2]
add esi, eax
inc esi
dec ebp
cmp ebp, 1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jle 0x408fa2
mov ch, byte [edx]
cmp ch, 0x2e
je 0x408f70
inc edx
jmp 0x408f76
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov ecx, dword [esp + 0x14]
or ecx, 0x20
cmp ecx, 0x65
jne 0x409022
lea esi, [ebx + edi]
movzx edx, byte [ebx + edi + 1]
mov eax, edx
add al, 0xd5
and al, 0xfd
cmp al, 1
adc esi, 1
mov ebp, esi
movzx ebx, byte [esi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x409035
xor eax, eax
movzx ecx, byte [esp + 3]
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
and esi, 0xa
mov edi, eax
or eax, 0xa
imul eax, esi
xor esi, 0xa
and edi, 0xfffffff5
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 0x408ff0
jmp 0x40903a
add eax, dword [esp + 8]
mov edi, eax
xor eax, eax
mov edx, dword [esp + 4]
movzx ecx, byte [esp + 3]
jmp 0x409047
movzx ecx, byte [esp + 3]
mov edi, ebp
cmp dl, 0x2d
jne 0x409043
neg eax
mov edx, dword [esp + 4]
add eax, edx
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jl 0x409073
mov edx, 0x1ff
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x40906f
mov dword [esi], 0x22
fldz
jmp 0x409079
fld1
test eax, eax
je 0x4090a7
fstp st(0)
fld1
mov esi, 0x43e4e0
jmp 0x40909e
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x4090a7
test dl, 1
je 0x409090
fmul qword [esi]
jmp 0x409090
fld st(1)
fmul st(1)
test eax, eax
jns 0x4090bb
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4090c9
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x4090d8
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4090f0
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x4090d2
jmp 0x4090d8
fldz
mov edx, eax
fld st(0)
test ebp, ebp
mov edi, dword [esp + 0xc]
jg 0x408f65
jmp 0x408faa