He had vaguely decided he hated Naruto, Sakura and Kakashi, but working with Taka had actually temporarily shifted that hatred away- we see he actually smiles when he sees the "Great Naruto Bridge" in the Land of Waves, and even as late as when Taka fights Bee, he has a fond flashback to learning teamwork in Team 7.
Madara directs Sasuke's hate to become someone that would treat the team he formed (that he had just shortly before valued enough to severely injure himself to save them -when they fought Bee) as tools to use, abandon and coldly mortally injure.
All Madara did to him was tell him the truth about Itachi. That's it. You claim that Madara "directed" Sasuke's hate, but you provide no hard evidence of that. Can you provide some specific examples of Madara "twisting" Sasuke's mind?