Whoever the Moses character represents when "he" is writing the 5 books you can see that he is borrowing from previous writings\scripture and also grafting Persian ideas into the writings. The very evidence for this is in Genesis first 3 books. Moses took the Egyptian cosmogony, then in the second chapter he injects persian ideas of: the first man, man naming the animals, and women being created after man. He also introduces the idea of the serpent (ashmogh).
Moses is also writing to provide military reconnaissance for an invasion. This is why he mentions the rivers that flow in certain lands, and the resources and minerals that are to be found there.
Look into Moses the Persian. And how his chief reform was the introduction of the everburning fire, and priest to tend to the fire. In their scripture they even refer to their god as an Everlasting flame. And they refer to their Aramaic lettering system as the Fire Letters. The very first letter of which is ALEPH which is an allusion to both the flame and the bull\calf. Now, go check out Mazdaism-Zoroastrianism Perso-Irani traditions and their bulls, fire temples, priests and everlasting flames.
Diving further into Persi\Farsi-Irani traditions you will also discover the reliance on dreams and dream interpretations.
In Moses narrative, Jospeh rises to power thru his abilities to interpret dreams. Joseph runs a scheme in Egypt that allows for him (and his administration which consist of his brethren) to take over control of the food supply an land of Egypt and reduce the people of Egypt to debt slavery. A champion arose who recognized the scheme and suppressed the power of Joseph and his administration, and removed them from power.