The first film in the Mission Impossible franchise uses a reference to the Book of Job from the Old Testament of the Bible. I remember watching this movie as a kid and I remembered this reference. The problem of suffering is talked about in the Book of Job. God uses Satan (Lucifer) to test Job, taking away his possessions and way of life.
The way I interpret all of the texts is this: Satan is actually Sabaoth, a child of Yaldabaoth (God), who introduced secret knowledge to Adam and Eve in secret. Sabaoth (Lucifer, Satan) was then raised to the higher divine realms for subverting Yaldabaoth's plot.
Yaldabaoth punished the serpent (widely interpreted as Lucifer or Satan) and began tormenting humans with souls for millennia, but Sophia brought Sabaoth from out of the material chaos because he repented of his father's (God's) wickedness. When you interpret all of the texts this way, it all begins to make sense.
The dragon referenced in the Book of Revelation actually isn't Satan, but is Yaldabaoth (God) himself, as he is described as a serpent with a lion's face, i.e. a dragon. The dragon (Yaldabaoth, God) then pursues the woman (Sophia) who gave birth to the male child (Jesus).