Function at 0x408dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
jmp 0x408de1
inc ebx
movzx ecx, byte [ebx]
movzx eax, cl
lea edx, [eax - 9]
cmp edx, 5
jb 0x408de0
cmp eax, 0x20
je 0x408de0
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 0x408e15
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 0x408e10
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
cmp cl, 0x2e
jne 0x408e37
mov edx, ebp
test edi, edi
js 0x408e12
xor edx, edx
test edi, edi
setns ch
jns 0x408e42
mov edi, ebp
add eax, ebx
mov dl, ch
mov dword [esp + 8], ebp
sub ebp, edx
cmp ebp, 0x10
mov dword [esp + 0x10], eax
jl 0x408e6d
mov esi, edi
mov edx, edi
or edx, 0xfffffff0
and esi, 0xfffffff0
add esi, edx
inc esi
mov dword [esp + 4], esi
mov ebp, 0xf
jmp 0x408e8a
test ebp, ebp
je 0x409042
neg edx
sub edi, edx
sub edi, dword [esp + 8]
mov dword [esp + 4], edi
cmp ebp, 0xa
jl 0x40906d
xor esi, esi
mov edx, eax
jmp 0x408eae
mov ch, byte [edx + 1]
add edx, 2
lea esi, [esi + esi*4]
movsx eax, ch
lea esi, [eax + esi*2]
add esi, 0xffffffd0
mov eax, ebp
not eax
lea ebp, [eax + ebp*2]
cmp ebp, 9
jle 0x408eb8
mov ch, byte [edx]
cmp ch, 0x2e
je 0x408e90
inc edx
jmp 0x408e96
mov dword [esp + 0x1c], esi
mov ebp, 9
fild dword [esp + 0x1c]
fldz
fstp st(0)
inc ebp
xor esi, esi
jmp 0x408f04
mov ch, byte [edx + 1]
add edx, 2
mov eax, esi
and eax, 0xa
mov edi, esi
or esi, 0xa
imul esi, eax
xor eax, 0xa
and edi, 0xfffffff5
imul edi, eax
movsx eax, ch
add esi, edi
add esi, eax
add esi, 0xffffffd0
dec ebp
cmp ebp, 1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jle 0x408f0e
mov ch, byte [edx]
cmp ch, 0x2e
je 0x408ed0
inc edx
jmp 0x408ed6
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 0x408f92
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 0x408fa5
xor eax, eax
movzx ecx, byte [esp + 3]
nop
nop
nop
nop
nop
nop
nop
nop
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 0x408f60
jmp 0x408faa
add eax, dword [esp + 8]
mov edi, eax
xor eax, eax
mov edx, dword [esp + 4]
movzx ecx, byte [esp + 3]
jmp 0x408fb7
movzx ecx, byte [esp + 3]
mov edi, ebp
cmp dl, 0x2d
jne 0x408fb3
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
jb 0x408fe3
mov edx, 0x1ff
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x408fdf
mov dword [esi], 0x22
fldz
jmp 0x408fe9
fld1
test eax, eax
je 0x409017
fstp st(0)
fld1
mov esi, 0x43f4e0
jmp 0x40900e
mov ebx, edx
shr ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x409017
test dl, 1
je 0x409000
fmul qword [esi]
jmp 0x409000
fld st(1)
fmul st(1)
test eax, eax
jns 0x40902b
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 0x409039
mov dword [eax], edi
cmp cl, 0x2d
jne 0x409065
fchs
jmp 0x409065
mov eax, dword [esp + 0x38]
test eax, eax
je 0x409050
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
je 0x409063
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
fldz
mov edx, eax
fld st(0)
test ebp, ebp
mov edi, dword [esp + 0xc]
jg 0x408ec7
jmp 0x408f16