Indirect searches of dark matter via polynomial spectral features