Iran has expressed its willingness to reestablish its ties with Morocco and Egypt, with whom relations have been frosty in the past number of years.