well, there's also this
https://en.wikipedia.org/wiki/Cainites
He tells us that the Cainites regarded Cain as derived from the higher principle. They claimed fellowship with Esau, Korah, the men of Sodom, and all such people, and regarded themselves as on that account persecuted by the Creator. But they escaped injury from him, for Sophia used to carry away from them to herself that which belonged to her.