there are multiple "origin stories" for freemasonry. the ones who view it in a sentimentalist christian "hidden knowledge" + "hiddean means" way are, ideally, the most accurate, and if so, then it is was not based on kabbalah but was subverted by kabbalists. but since the books investigating the origins of freemasons can't give a unified answer, it's a pointless mindbender to state what freemasonry is at its core.
Nazi