Was she aware of what she was doing ? Probably, but the hurt and the fury she had  coped up inside her, needed to be released. Now, when Ron tried to assault her, to take what wasn't his, she knew that there's no good in him left.