Omar Marmoush, Rami Rabia and Mohamed Salah all netted to give the Pharaohs a 3-2 win over defending champions Ivory Coast and progress to the semis.