Egypt remained in control of Group C with a comfortable victory over Sudan.
Hosny won and converted a penalty to give Egypt the lead
The first goal of a rather uninspiring contest was Hosni Abd Rabou's well-taken penalty on 29 minutes.
The match was livened up by two late goals from Mohamed Aboutrika, the first from close range, the second a clever strike from a tight angle.
Sudan showed strength but were let down by poor finishing and have only a slim mathematical chance of progressing beyond the group stage.
Egypt may have begun their opening game against Cameroon at a dazzling pace, but this time they took longer to assert themselves.
In the first half, the Sudan midfield managed to contain Mohamed Zidan, the star of Egypt's 4-2 victory in the opening game against Cameroon.
Haytham Tambal had Egypt goalkeeper Essam Al-Hadary diving to his right to stop a shot in the fourth minute.
Soon after, at the other end, Egypt were denied a penalty when Ritshard Lado handled, an incident missed by the referee.
Sudan captain Haitham Mustafa had a long-distance shot spilled by Al-Hadary midway through the first half.
The opener came on 29 minutes, after Sudan goalkeeper Elmuez Mugoub brought down Hosny Abd Rabou in the penalty area.
Abd Rabou sent Mughoub the wrong way with his spot-kick.
Egypt began the second half in search of a second goal, but Sudan fought hard and began to create chances of their own, but the Nile Crocodiles' finishing was their weak link.
But in the 55th minute the Pharaohs nearly struck when Zidan chested down and whipped in a volley that fully tested Mughoub.
Egypt then brought on captain Ahmed Hassan and Mohamed Aboutrika, and the two key players helped to take control of the game.
Aboutrika put Egypt 2-0 ahead on 78 minutes, finishing a three-man move that sliced through the Sudanese defence.
Amr Zaki passed to Aboutrika inside the penalty area, his first attempt was blocked, but the second hit the target.
Aboutrika then showed why he is known as "the Magician" with a delightful goal.
Abd Rabou sent Aboutrika on a run down the left into the box, and he deceived Mughoub into diving to the wrong post as he slotted home from a narrow angle.
Egypt need a draw in their final game against Zambia to be certain of a place in the quarter-finals.
Sudan can progress only if they beat Cameroon and Zambia lose to Egypt, a situation that would see head-to-head record and goal difference come into play.
Egypt: El Hadari, Fathallah (Hassan 56), Hany Said, Fathi, Moawad, Gomaa, Abd Rabou, Shawky, Zidan (Aboutriaka 56), Moteab, Zaki (El Mohamady 80).
Subs Not Used: Abdel Monssef, El Saeed, Fadl, Gamal, Mohamed, Mostafa, Ibrahim Said, Shaaban, Sobhy.
Booked: Fathallah, Zaki, Aboutriaka.
Goals: Abd Rabou 29 pen, Aboutriaka 78, 83.
Sudan: Elmuiz Abdalla, El Tayeb, Ali Elkhidir, Eldin Ahmed Gibril (Ali Idris Farah 47), Kuku, Yousif Hado, Lado, Karar, Bader Eldin Abdalla, Kamal Tambal (Hameed Amari 60), Babiker (Agab Sido 81).
Subs Not Used: Ahmed, Bakhit, El Basha Adam, El Bashir, El Hadi Salem, Hassan Ali, Hassan, Mohamed Abdalla, Tahir Osman.
Booked: Ali Elkhidir, Elmuiz Abdalla, Eldin Ahmed Gibril, Ali Idris Farah.
Ref: Codja Koffi (Benin)