You capture her during the main story (when you break her armor). When she is in your prison, you have the choice whether to break her or be nice to her. The option to treat her nice will put you on her good path.