There are several arguments sometimes made why "piracy" as OP calls it may be sinful. The Bible itself does not directly address the issue.
Some say that it is stealing and therefore forbidden by the Ten Commandments. Stealing in the Bible refers to someone taking something which belongs to someone else. It means the stealer obtaining something he ought not to have, and at the same time depriving the victim of something he ought to have. In the case of piracy it is not clearly the case that it is stealing as meant in the Bible since it does not deprive the owner of that which is his.
Some say that it is important to obey the civil law and that if something is against the law of the country then doing it is sinful simply because it is disobedience to the civil authorities. Not all countries however have such laws and where they exist may apply only to certain other countries. For example, in the current circumstances, the civil and Islamic authorities in Iran may not forbid "piracy". In that case this particular argument fails.
Another argument against piracy is that it effectively deprives a workman of his wages. You are benefitting from his labour without paying for it. Here, the particular circumstances may also be a factor. Due to sanctions it may be illegal for the author, according to the laws of his country, to sell you the software etc. The author therefore has no legitimate right to any payment from you for using his software or reading his book, so you are not therefore depriving him of any entitlement by not paying for it.
A similar argument to render to everyone his due may help in some circumstances, but it does not help address the question of whether anything is due to the author of the "pirate" software. According to the law of his country, nothing is because it would be breaking sanctions, and according to the user's country his government may allow or encourage it anyway.
Islamic scholars have looked at the question of "piracy" in general and come to different conclusions.
In short, where there is no hard and defnite rule in the Bible, the circumstances are always relevant.
Then, too, would not usung "pirated" software have an adverse effect more generally? If so, one would need to be very sure before doing anything drastic.
In Romans Chapter 14 we read of moral dilemmas where different people had different ideas.
For one believeth that he may eat all things: another, who is weak, eateth herbs. Let not him that eateth despise him that eateth not; and let not him which eateth not judge him that eateth: for God hath received him
In this case there was contention in the church between vegetarians and non-vegetarians. Paul urged that in such matters everyone's conscience should be respected.