Sociopathic Hero

They fight for the good guys. They might even believe in the cause. But they are a hero only in name.

They are antiheroes who have a fundamental lack of empathy, a sociopathic disregard for human life. They may be motivated by boredom, or by some sort of carrot-and-stick arrangement - a chip in the head, an attachment to some person or thing that requires them to do good, or a pragmatic code that prevents their truly inhuman nature from landing them in jail. Sometimes they may be a Reluctant Psycho, whose attempts to do the right thing are obstructed by their own pathology.

They may solve their problems in much the same way as a villain would—ruthlessly manipulating and killing their way to their goal. They may routinely torture, murder, and commit evil acts nearly as bad as the Big Bad. They'll do whatever it takes to win. The people they fight beside worry about their behavior, but feel "At least they're on our side."

Compare Heroic Comedic Sociopath, for when this kind of behavior is Played for Laughs. Also compare Nominal Hero, a character who fights for a heroic cause, but couldn't care less about actually doing good deeds, and Token Evil Teammate, which he will be if a team player.

Anime and Manga

 * Alucard from Hellsing. Has no regard for human life unless told otherwise,  will kill if ordered or if allowed and enjoys the thrill of war.
 * The title character of Karakuridouji Ultimo: Very cute, good with kids, and created to be the literal embodiment of good. But provoke him in any way? Get ready for a world of pain.
 * Mello from Death Note a ruthless mafia boss whose methods include kidnapping, extortion, and killing his own men and anyone who gets in his way but he is technically speaking on the same side as the detectives.
 * While L doesn't kill (or at least take the act upon himself) he's not above manipulating, kidnapping, and torture to get the answers.
 * Near is even more manipulative than L and treats the case like it was a game or puzzle and the other people in it as expendable pawns.
 * Light kind of looks like this in the beginning of the series before he goes more and more ruthless, willing to fight evil... no matter the cost.
 * And of course Misa would be his sidekick.
 * Bleach: Mayuri Kurotsuchi and Kenpachi Zaraki are sometimes depicted this way but can also veer into the Heroic Comedic Sociopath trope as well.
 * Dragon Ball Z has Vegeta when he was the Token Evil Teammate.
 * Baccano!'s Claire is an odd case because his moral code is very strange. He will Pay Evil Unto Evil by being eviler than the genuine bad guys yet he still has standards. He's motivated by heroism but he's also a professional assassin and employs countless methods of torture. He cares about his mentor and  and his family. Off the job he's a Nice Guy but can quickly shift into a Ax Crazy mode if his sense of morality is violated.
 * Black Lagoon: Roberta. You could group Revy in there too, though. It's a stretch.
 * Guts in his days as the vengeance-driven Black Swordsman from Berserk was very much this trope.

Comic Books

 * Rorschach of Watchmen is one of the better-known examples, being more than willing to torture and kill if he believes good will come of it. He is also the target of a large Misaimed Fandom that admires his absolute dedication to his cause.
 * The Punisher. All his enemies are mob bosses and criminals, but his ultimate goal isn't to catch them or stop them, but to kill them.
 * The Spectre is such a sociopath that the only reason he isn't a well-meaning villain is that God keeps him bound to a human soul, to give him a conscience and sense of proportion. It works... barely. Sorta. If you stretch the definition of "proportion".
 * Griffin and Hyde in The League of Extraordinary Gentlemen.
 * The Scarab, the source of Blue Beetle's powers, will default to lethal force for almost any situation. Thankfully, Jaime keeps it in check. It starts to get better with Jaime's influence.

Films -- Live-Action

 * Riddick from The Chronicles of Riddick series, at least mildly. He's more of a survivor than a sociopath, though Fridge Logic would suggest he's done a fair amount of killing over his life to earn a trip to a triple-max prison. He certainly has nothing against killing when it benefits him, at any rate. Just make sure you mind the children. Lookin' at you,.
 * Over the course of Falling Down, Bill Foster transitions into this.
 * Daniel Plainview in There Will Be Blood starts out as a borderline psychopath with a few tenuous links to humanity, and ends the film as a full-blown Villain Protagonist.
 * Depending on the actor, James Bond is a borderline case. Being a 00 agent practically requires it, as one has to kill in cold blood, that is without the deceased having been any direct, active threat to the agent.

Live-Action TV

 * Dexter Morgan, in the TV show Dexter, is a prime example. A Serial Killer (albeit of other killers) who has to emulate emotions to go unnoticed by others, and is only motivated by his urge to kill.
 * In the 4th, 5th and 6th seasons of Buffy the Vampire Slayer, plays this role, at first against his will, under the influence of an implanted chip that causes him pain when he attacks something with a soul. Now, his only outlet for his violent predilection is beating up monsters and demons. He sides with the heroes more out of boredom, looking for something to do. Later, he begins to do good for the love of a female character, but only because that's what she would want him to do. His transition to true selflessness occurs without him ever becoming capable of the soulful qualities that distinguish humans from Buffyverse vampires; for that reason, his final act of Season 6 is to seek a real soul.
 * In the 5th season of Angel, works for the good guys, but her motivation is her own personal development. She does good because it seems like an interesting thing to do.
 * In Sons of Anarchy, this applies to pretty much everyone in SAMCRO. Tig is the leading example in the early episodes, but he's overpaced by Happy. While the club watches an IRA member torture a traitor, most are shown to be either stoic or disturbed by the display. Happy is smiling.
 * Shane in The Walking Dead slowly slides into this role. By the second season  he's this fully.
 * Sherlock swings between this and Comedic Sociopathy. Further complicated by the fact he gets less sociopathic as the show goes on.
 * In Doctor Who, the later regenerations of the Doctor constantly struggle against becoming this. During "The Waters of Mars" the Tenth Doctor ended up going so completely off the deep end, he briefly styled himself as "The Time Lord Victorious" and was willing to break time itself in half to save people, even if they didn't want him to.

Literature

 * This is how the main character of The Takeshi Kovacs Series views himself. Several times, he describes the traits needed to qualify for Envoy training as "psychopathic tendencies and a sense of team spirit", at least one of which he had instilled during time in the military. While he has enough of a conscience to Pet the Dog for those who he feels to be the victims, he has no problem with permakilling or torturing anyone who interferes with his goals.
 * Several characters in Peter Watt's Blindsight; most prominently Jukka Sarasti: a potential murderer, a sociopathic, but one who leads the crew against impossible odds, and who is possibly going out of his way not to offend their sensibilities.
 * Like his television version, Dexter Morgan in Dexter in the Dark and subsequent novels.
 * Severian the Torturer from the Book of the New Sun series by Gene Wolfe. His values are so far astern from the readers sensibilities that he sometimes comes across as shockingly cruel. In some instances, it seems he is ambiguous when describing events that are of great moral relevance to the reader, apparently because he sees no ethical dilemma in them. He shows a mixture of traits, some of which may be sociopathic, others which may indicate a place on the autism spectrum.

Professional Wrestling

 * A lot of wrestlers who either have monster gimmicks or spent a long time as a heel will become this after a Heel Face Turn.
 * The Undertaker
 * Kane
 * Randy Orton

Tabletop Games

 * This happens in Exalted if you have Compassion 1. Alchemicals with high Clarity are explicitly spelled out as not examples - they're emotionless, not wantonly cruel - but those infected by Gremlin Syndrome may well attempt to continue fighting the good fight even as their condition instils a psychotic desire to destroy and maim.

Video Games

 * Karel from Fire Emblem is definitely this trope in The Blazing Blade where he was known as the "Sword Demon".
 * Morrigan of Dragon Age Origins is one of the Stupid Evil variants; her answer to everything tends to be "Eh, we don't need to help them, let's just kill everyone." This has at least some justification since her only social interaction for most of her life came from her mother, who.
 * The Warden can be played as such, which actually resonates with their entire order. Depersonalization is one of the reasons why the Wardens are such effective warriors, as we are often reminded, the Grey Wardens can and will do whatever it takes to defeat the Darkspawn. Even if it means razing a city to the ground to save the people within.
 * The Legion of the Dead are also comprised of this. Exiles, criminals, murderers and even rapists from Orzammar are accepted as members, who hold their own funerals when they join, consider themselves dead and are willing to spend their last days waging guerrilla warfare and full head-on assaults against the Darkspawn horde.
 * Mass Effect 2 has the Bounty Hunter and Punch Clock Hero mercenary Zaeed. While he doesn't exact always propose Murder Is the Best Solution, he probably wouldn't be against suggestions for it, though he makes clear at a few points that he has standards nonetheless.
 * Caim from Drakengard fit's this trope to a T, he will slaughter The Empire and save his sister no matter what the others say.
 * Kratos from God of War. In some games he's a somewhat-tragic Byronic Hero, in others he's just a rampaging deicide machine, but no matter what he's on a Roaring Rampage of Revenge and anyone in his way is going to be splattered on the walls, regardless of consequences.
 * It gets to the point where he's practically a Designated Hero, doing far more direct damage to the universe than the villains are doing while flat-out admitting he only cares about revenge.
 * Alex Mercer from Prototype is a very complex case, but he ends up being well-intentioned in the end, saving New York from destruction. Doesn't prevent him from being an Axe Crazy Psycho Prototype who savagely kills his enemies, consumes people (though the player can choose whether to eat civilians or not) and has a hard backstory behind him. Though by the time it gets around to the second game he has become a Complete Monster and the new antagonist.
 * In the lore of The Elder Scrolls, Pelinel Whitestrike, the Divine Crusader, was the legendary hero and companion to Saint Alessia who was instrumental in toppling the tyrannical Aylied Empire, and personally slew their leader, Umaril. He was also a frothing-at-the-mouth racist and berserker who once did something so heinous it nearly caused the Divines to turn their backs on mortal life.

Web Comics

 * In Order of the Stick we have Belkar, an Axe Crazy Knife Nut halfling. Word of God makes it VERY clear that Belkar is 100% Chaotic Evil. For most of his screen time he fits better into Heroic Comedic Sociopath, though there have definitely been moments where his impulsive bloodlust causes drama and even setbacks for the rest of the team. For example, during Roy's afterlife judgement it's mentioned that Belkar would normally cause Roy a lot of karma demerits if the team weren't so good at directing Belkar's violence toward the villains.
 * Last Res0rt has Jason Spades, who considers himself a hero... y'know, except for that whole "wanting to kill Daisy" thing.
 * The Light Warriors in Eight Bit Theater would more or less be this, with emphasis on the "In name only" part.

Web Original

 * Cracked.com's Mark Hill discusses this trope when applied to video games, calling the requirement for player characters to murder innocent people the #6 Reason Video Games Have Terrible Stories.