Selling Bundled Simcity. Is it legal?

I just bought an AMD A8 6600K which came with Simcity serial code. But since I plan to install Linux on my rig, and have no plan to run it under "Wine", so I would like to sell it.

But is selling a bundled software actually legal? Also if it is legal, then where can I find someone to sell it to? I would probably buy a game or two that works on Linux with that money.