The way I remember it being explained to me many years ago, was that either:
1) the aircraft is equipped with an onboard disinfectant system whereby the disinfectant/pesticide is dispersed directly into the cabin's air circulation system, or
2) if the aircraft is not equipped with such a dispersion ability, the pesticide is distributed manually by personnel spraying cans throughout the cabin with open overhead bins.