Nothing predates creation, Adam and Eve, the flood. Everything, including Egypt, comes after that. The promise of this comes at creation
(Gen 3:15 JPS) And I will put enmity between thee and the woman, and between thy seed and her seed; they shall bruise thy head, and thou shalt bruise their heel.'
Cain and Abel were sacrificing to God, the sacrificial system was already in place then,, and after the flood continued with Noah. The sacrificial system pointed to a savior and what He would do--- be the sacrificial lamb. That was passed on. To everything of God, Satan forms a substitute, including the sacrificial system. But instead of a lamb, some cultures put in just the killing of something, anything---including people, and babies. Jesus is all over the OT---that is what all Jews were studying when Christ came. Everything pointed to Him, but most still did not see Him. The first Christians only had the OT to come to the conclusion that Jesus fulfilled all the expectations of the OT. The Egyptians retained that concept from the sacrificial system already in place with Cain and Able. As with Cain, they wanted to do it their way but expected the same results. The similarities should not be unexpected. They went the route of many different Gods, not just One. They wouldn't even accept the one God of the sun--the priests, in every culture, end up holding the reins of power. And they all do whatever it takes to keep it.