The central twist reveals that Katie's mummification wasn't an ancient curse she stumbled upon, but a deliberate, horrific ritual performed by the cultist known as the Magician. The Magician used Katie as a living vessel to contain the Nasmaranian, embedding binding spells into layers of the young girl's skin to trap the demon.
As the demon begins to tear through Katie to infect her siblings, Charlie learns that the entity cannot be killed, only contained in a new host. In the film's climax, Charlie willingly undergoes the ritual, absorbing the demon from his daughter. He is subsequently mummified alive and locked in a sarcophagus in the basement to protect his family, managing only to tap I love you in Morse code.
However, the theatrical ending features a dark final twist: Larissa and Detective Zaki smuggle the mummified Charlie back to Cairo. They infiltrate the Magician's prison cell and begin the ritual chant, intending to forcibly transfer the Nasmaranian into the woman who started it all, choosing a path of terrifying vengeance over peaceful resolution.