Function at 0x408e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, 1
mov ebp, 2
xor eax, eax
mov edx, dword [esp + 0x44]
jmp 0x408e33
inc esi
inc ebp
inc eax
mov ch, byte [edx + eax]
movzx edi, ch
lea ebx, [edi - 9]
cmp ebx, 5
jb 0x408e30
cmp edi, 0x20
je 0x408e30
mov dword [esp + 0x18], ebp
mov byte [esp + 3], ch
add ch, 0xd5
xor ebx, ebx
test ch, 0xfd
sete bl
add ebx, edx
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov ecx, 0xffffffff
jmp 0x408e73
mov ebp, edx
inc ebp
mov edi, dword [esp + 0x10]
mov edx, ebp
add edi, ebp
movzx ebp, byte [esi + edi - 1]
lea ebx, [ebp - 0x30]
cmp ebx, 0xa
jb 0x408e70
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
cmp ebp, 0x2e
mov edi, ecx
mov ebp, edx
jne 0x408ea2
mov ecx, ebp
test edi, edi
jns 0x408ea2
inc ebp
jmp 0x408e73
xor ebx, ebx
test edi, edi
setns ch
mov edx, dword [esp + 0x44]
jns 0x408eb1
mov edi, ebp
mov bl, ch
mov ecx, ebp
sub ecx, ebx
je 0x408eef
mov dword [esp + 0x1c], edi
neg ebx
cmp ecx, 9
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
jle 0x408f0f
mov dword [esp + 0xc], ecx
lea ebx, [ecx - 0xa]
mov edi, dword [esp + 0x10]
lea ecx, [edi + esi]
movzx edx, byte [edi + esi - 1]
cmp dl, 0x2e
jne 0x408f20
movzx edx, byte [ecx]
mov ecx, dword [esp + 0x18]
add edi, ecx
jmp 0x408f22
mov eax, dword [esp + 0x48]
test eax, eax
je 0x408ef9
mov dword [eax], edx
fldz
fld st(0)
fchs
cmp byte [esp + 3], 0x2d
jne 0x409272
jmp 0x409278
fldz
test ecx, ecx
mov edi, dword [esp + 0x10]
jle 0x408f45
add edi, eax
jmp 0x4090b1
mov edi, ecx
movsx ecx, dl
lea edx, [ecx - 0x30]
test ebx, ebx
je 0x4090a5
movzx ebx, byte [edi]
cmp bl, 0x2e
jne 0x408f4c
movzx ebx, byte [edi + 1]
mov byte [esp + 2], bl
add edi, 2
jmp 0x408f51
fld st(0)
jmp 0x409122
inc edi
mov byte [esp + 2], bl
mov ebx, edx
and ebx, 0xfffffff5
and ecx, 0xa
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
xor ecx, 0xa
imul ecx, ebx
or edx, 0xa
imul edx, dword [esp + 4]
movsx ebx, byte [esp + 2]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jl 0x4090a5
add ecx, 0xfffffff4
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 4], ecx
jne 0x408fa4
movzx ecx, byte [edi + 1]
mov byte [esp + 2], cl
add edi, 2
jmp 0x408fa9
inc edi
mov byte [esp + 2], bl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 2]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 4], 0
je 0x4090a5
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x408feb
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x408ff0
inc edi
mov byte [esp + 4], cl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xe
jl 0x4090a5
add ecx, 0xfffffff2
movzx ebx, byte [edi]
cmp bl, 0x2e
mov dword [esp + 0xc], ecx
jne 0x40903b
movzx ecx, byte [edi + 1]
mov byte [esp + 4], cl
add edi, 2
jmp 0x409040
inc edi
mov byte [esp + 4], bl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 4]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
cmp dword [esp + 0xc], 0
je 0x4090a5
movzx ecx, byte [edi]
cmp cl, 0x2e
jne 0x40907e
movzx ecx, byte [edi + 1]
mov byte [esp + 0xc], cl
add edi, 2
jmp 0x409083
inc edi
mov byte [esp + 0xc], cl
mov ebx, edx
and ebx, 0xfffffff5
mov ecx, edx
and ecx, 0xa
or edx, 0xa
imul edx, ecx
xor ecx, 0xa
imul ecx, ebx
movsx ebx, byte [esp + 0xc]
add edx, ecx
add edx, ebx
add edx, 0xffffffd0
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
lea edx, [ebx + ebp]
cmp edx, 9
jl 0x4090be
mov edx, 9
inc edx
xor ebx, ebx
jmp 0x409108
mov ch, byte [edi + 1]
add edi, 2
mov dword [esp + 0xc], edi
mov edi, ebx
and edi, 0xa
mov ebp, ebx
or ebx, 0xa
imul ebx, edi
xor edi, 0xa
and ebp, 0xfffffff5
imul ebp, edi
movsx edi, ch
add ebx, ebp
add ebx, edi
add ebx, 0xffffffd0
dec edx
cmp edx, 1
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
jle 0x409112
mov ch, byte [edi]
cmp ch, 0x2e
je 0x4090d0
inc edi
jmp 0x4090d6
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 8]
fxch st(1)
fmul dword [str._knN]
faddp st(1)
mov edx, dword [esp + 0x24]
or edx, 0x20
cmp edx, 0x65
jne 0x409155
mov eax, dword [esp + 0x20]
movzx edx, byte [esi + eax]
mov eax, edx
add al, 0xd5
test al, 0xfd
je 0x40915d
mov edi, dword [esp + 0x10]
add edi, esi
mov eax, edi
lea esi, [edi + ebp]
jmp 0x409169
add eax, ebp
add edi, eax
xor eax, eax
jmp 0x4091c1
mov esi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
mov eax, esi
add esi, ebp
mov edi, ebp
mov ebp, esi
movzx ebx, byte [eax + edi]
lea esi, [ebx - 0x30]
xor eax, eax
cmp esi, 9
ja 0x4091b0
xor eax, eax
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 0x409180
mov edi, ebp
cmp dl, 0x2d
jne 0x4091b9
neg eax
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 8]
lea edx, [ebx + ebp]
cmp edx, 0x10
jge 0x4091ce
mov edx, 0xf
mov ebx, dword [esp + 0x1c]
add ebx, eax
add ebx, edx
mov eax, ebx
mov ecx, dword [esp + 8]
sub eax, ecx
sub eax, ebp
add eax, 0xfffffff1
mov esi, eax
sar esi, 0x1f
mov edx, eax
xor edx, esi
sub edx, esi
cmp edx, 0x200
jl 0x409212
mov edx, 0x1ff
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x409209
mov dword [esi], 0x22
movzx ecx, byte [esp + 3]
fldz
jmp 0x409225
sub ecx, ebx
lea esi, [ecx + ebp]
add esi, 0xf
fld1
test esi, esi
movzx ecx, byte [esp + 3]
je 0x409247
fstp st(0)
fld1
mov esi, 0x443250
jmp 0x40923e
mov ebx, edx
sar ebx, 1
add esi, 8
cmp edx, 2
mov edx, ebx
jb 0x409247
test dl, 1
je 0x409230
fmul qword [esi]
jmp 0x409230
fld st(1)
fmul st(1)
test eax, eax
jns 0x40925b
fstp st(0)
fdivp st(1)
fldz
fldz
fxch st(1)
fxch st(2)
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x48]
test eax, eax
je 0x409269
mov dword [eax], edi
fld st(0)
fchs
cmp cl, 0x2d
je 0x409278
fstp st(0)
fldz
fxch st(1)
fstp st(1)
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret