First of all, Molly DOESN'T know it is wrong. In fact, she was rewarded for doing it, the whole time she did. Kitty crunchies, trash, playing.
The behavior you see when you get home, when she cowers and slinks, is her knowing she is in trouble because she has learned that she gets in trouble...