Even still probably most scholars opine that the book of Genesis was first recorded by Moses or later even after the time of king David, a supposed amalgam of ancient legends and/or imaginations, but when you analyze the Wiseman Hypothesis (by British air force officer P. J. Wiseman before WWII), that the earliest portions of Genesis (except the six days of creation) were recorded by eleven individuals contemporaneous to the events in the Genesis history, from Adam to even Esau, it’s quite clear that Moses or someone later didn’t essentially dream-up the whole thing, what a story!