Here's the thing ...
There are Law Codes older than the Decalogue, so prohibitions against murder and theft, codes for the protection and fair exchange of property, for marriage and divorce, inheritance, and much, much more, were customary practices among ancient civilisations, and there in the Akkadian, Assyrian and Babylonians empires.
The story of the Flood, as recorded in Genesis, exists in older records, The Epic of Gilgamesh, for example, although I happen to believe that the Biblical version shows a far more enlightened theology – but then it had the benefit of editing.
Even the Sabbath as a Day of Rest is not exclusive to the Abrahamic peoples, and again the Akkadians had 'a day of rest of the heart' on the 7th, 14th, 21st and 28th, although the dates were altered somewhat to suit the lunar calendar, but the basic 'seventh day' is there.
I'm not decrying the Decalogue, I suppose I am saying two things:
1: Any civil structure of families living in community necessitates some order of law code, of what is, and what is not, acceptable behaviour. The laws are not dependent upon God, inasmuch as it's about 'us' living harmoniously.
2: Other cultic patterns emerge as means of separation – of marking 'us' as different to 'them'.
As an afterthought – I can understand that law-codes be enshrined as 'divine' because they serve the good, and God is the source of all that is good.
Flip the coin, for example, would God not endorse the idea that murder, theft or usury are wrong? No, of course S/He wouldn't. But then, would God not endorse the idea that slavery is wrong ...
So I think I am saying that Law Codes, like the Decalogue, tell us much about us, as they do about our Gods.