All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
The view which we adopt here at Islamweb is that it is not permissible to infringe the rights of authors and owners of software programs, etc., by copying them or cracking them without the permission of their owners.
So it is not permissible for you to use the pirated copy that your friend gave you, whether you use it to spread the sciences of the Quran or to cooperate in Da‘wah (calling to Allah) and the propagation of Islam.
You can easily find another permissible means – Allah willing – to spread knowledge and to cooperate in Da‘wah and the propagation of Islam.
Allah knows best.