Molecular dynamics of atomic rearrangements at perturbed surfaces