Disturbing details were revealed in court in the case of a registered sex offender accused of sexually assaulting an eight-year-old boy.