Spectral function for overoccupied gluodynamics from classical lattice simulations