I think that the Egyptian pharoah Akenaten had a revelation to worship one god, the Creator (the Aten or Aton?) which was symbolised as the sun. He even built a new city to pay homage to this god. Later his images and tomb were desecrated and all images of the Aten were chisled out of history (so the priests thought) and everyone went back to the older gods, but of course some of those things changed.
So many of the Hebrew Laws were derived from the Egyptian religion and others were to maintain their nomadic existence ie., no pork, no shell fish ... neither of them suited to nomadic tent and travel.
It wouldn't have been a moon god because death/creation and the moon/night (everything womb related) were considered goddess territory (Maat, Nut, Hathor)