Apostasy (murrtaad) is not a crime listed in the penal code, but in some serious cases (or political cases), since the judge interprets Sharia, the apostate may be prosecuted for it.
Blasphemy (sabb-al-nabi) of the Prophet Muhammad, his daughter, or his family is a crime in Iran, and a blasphemer would be found guilty of apostasy as well by default.