In his answer to your question Dr. Monzer Kahf, Scholar in Islamic Economics & Financial Expert, who stated,

When you go to the market and buy some software, it is not your business to check its originality. To that extent what you buy is permissible.

On the other hand, knowingly buying a stolen property is not permissible including intellectual properties.

May Allah guide all of us to what pleases Him!