Groups with ties to the Muslim Brotherhood operate legally in some countries, and illegally in others.