Perturbative aspects of dilepton production at finite temperature