Unless your use qualifies as fair use
(I know some jurisdictions have basic exceptions like "if you own software you can do what's needed to run it", but modifications?)