How do badanah and shah differ in these clauses?

Bab Jinayat al-Muhrim — Intimacy, Invalidity and Compensation (Part II)