So lets say someone makes a virus which locks your computer if you don't enter the key. He uses that virus to prank people and then gives them the key. But someone used that virus to scam money. Would the creator of virus get punished ? If yes what would be the approximate fine or years in prison ?