Oracle would probably sue them for piracy or something. If you bought it, they would probably say you violated the agreement and no longer have a valid license.
Not saying it's right, but since it's commercial software, they can probably play some tricks. It's one of among many reasons to use commerical software where possible.