Don't quote me ...
Depends on where you are in the world.
If in the European region then you need the key to go along with the ECU
The ECU is paired with the key.
Don't know about the VIN.
If in the US then you could probably do it.
However, you will need the Hyundai scan tool to program the VIN correctly