Most paid software gives 14–30 days free. Some allow you to request extension for open-source contributions or beta testing.
Sometimes software is sold at $30 for a bundle of 5 tools. That is cheaper than malware cleanup.
For getting into your own password-protected files (ZIP, PDF, RAR, or system accounts) when you have forgotten the password:
Important: Using these on files you do not own is illegal.