Liu Yunfei is one of the heroes in the Samurai Shodown series.
Liu Yunfei was lived at one point in 800 A.D. with his wife. Desiring to gain more power, he made a deal with a demon being calling himself "The Dark Emperor" (Kuraki-sumeragi) which caused him to go berserk. He killed his wife before he is sealed into a boulder by his eight students (according to SSVI, two of them were Enja and Suija).
A millennium later, he is freed due to the entity leaving him to possess someone else. Through wanting to redeem himself, he has would be tracks down the entity's source with intents to exorcise it. In his ending, the entity is found in Gaoh and it begins to overwhelm its host. In order to help Gaoh, Yunfei must takes possession of the monster's body and urges the free Gaoh to slay the demon. He is struck down and is reunited with his wife (presumably in heaven).
Haunted by his past, Yunfei became a bitter, yet honorable man, seeking to the destroy the Dark Emperor for redemption.