Characters who appear bad at first but are really good people

I've been reading wind and truth and got to a chapter where nivani is talking to Sebarial. He complains about not being able to skim profits off of trading between Urithiru but does it anyway. This seems like a front he is putting up and is doing it out of the goodness of his heart. He seemed like a scumbag at first but I think he genuinely cares for the people. Are there other characters in fantasy that fit this trope?