The thought just occurred to me, whether the Old Testament as we know it, would not by any chance, in one way or another, also refer to an invasion of Egypt by the Israelites. And lo and behold, it does - Joseph’s brothers, exactly the same guys who, in the Story of Jospeh and Asenath, invaded Egypt at the request of the king’s eldest son, so the he (this son of the king), could kill his own father. Following the usual justification of their deeds, and the embellishments, etc., etc., we read in Josephus’ account of Joseph and his brothers, that they had come to Egypt, supposedly because of a famine in their land (Israel / Palestine may have been suffering the same deadly plagues that Egypt was), and that they had left Egypt and with “wagons full of corn, and gold, and silver.” This matches Manetho’s description of the Hyksos rulers invading Egypt and plundering it for at least a decade.
In Exodus 12:36 we read “The LORD had made the Egyptians favorably disposed toward the people, and they gave them what they asked for; so they plundered the Egyptians.” This must have been an attempt by a scribe or scribes who could not deny that the Israelites had plundered Egypt, but needed some feeble justification (BS, of course) for why Egypt had been plundered.
This is a classic case of looking for an explanation of your own idea. And you have to twist the tale to make it work. Joseph was sold into slavery by his brothers and abandoned. Joseph’s dream interpretation skills got him out of slavery and eventually into riches. His brothers showed up later because the famine, and their father died of old age. The OT stories were not “feeble attempts to justify” anything. Your Exodus citation is completely disconnected from the Joseph story anyway.