While these are all definitely factors in the post-Islamist government's decision to crackdown on homosexuals and atheists, I want to focus on e). It's the most interesting and least popular assertion anyone has made about the current government, the armed forces, and those who support them.
And so Egypt has successfully replaced one enemy with another. Unfortunately, however, I'm not sure what the alternative to this is. It is a fact that all ideologies create enemies. There is no such thing as a completely inclusive ideology. Enemies, be they other people or other ideas, are what legitimize ideology. This is because it's impossible for a system of belief to stand for something without simultaneously standing against something else. Even the seemingly more inclusive ideologies of tolerance and diversity are against something. Against conservatism, traditionalism, and complete freedom of thought and speech. Egypt is not unique in this respect. It's just that its choice of enemies seems a bit odd from a western point of view. Especially since they claim to be fighting Islamists, who have pretty much the same enemies and worldview as "secular" Egyptians.