Maximum punishment. All offenses under Article 99. Death or such other punishment as a court-martial may direct.Misbehavior in front of the enemy? I hope that's worse than it sounds.
Article 99 is fairly complicated:
http://usmilitary.about.com/library/milinfo/mcm/bl99.htm
Desertion is "only" 5 years in Fed pen and DD.