It's called copyright, or author's rights, depending on the country. That's what prevents people from doing what you said. You don't need an EULA, the law protects you anyway. And software piracy is called piracy because it's illegal. Hope this helps.