>>87202119>His plan was to marry Anna and see if he could get Elsa assassinatedNah, his plan was to marry Elsa and kill no-one, and then to marry as close to the throne as he could and figure something out later. He also risked his life to save Anna and would have done it again had the other nobility not told him point blank that they support him for the throne and he should just leave Anna to die alone in the wild, and had Anna not appeared at that moment.
He also abandoned Anna to die when it became clear there's absolutely nothing he can do to save her, it's not like the curse could have been stopped if he'd just put on an extra blanket, and his kiss would have done jack shit as there was no true love between them - hell, Hans could barely stand her at that point. He went after Elsa with a grin on his face, yes, at the point where he'd already begged her to thaw the winter and she'd said she can't control it, meaning that for the sake of the kingdom she'd have been executed soon anyway, and also believing that Elsa had intentionally cursed Anna to death.
On top of that, he did a lot of good for Arendelle, keeping the citizens efficiently safe, and also saved Elsa both from herself, from becoming a murderer, and from the arrow to the back.
He's a morally gray character. Without the assholery, the vicious gloating at Anna and the faked love for the sake of his golddigging aspirations he'd be a full-on misinformed good character. "Morally gray" doesn't mean "good but rude and grumpy", it means that someone does both good but also genuinely immoral things.
Kindly also note that Jennifer Lee, the writer-director, has said that in her view Hans is a tragic character, not a villainous one.