Trojan. A program that appears to do one thing but actually does another (a.k.a. Trojan Horse).
Ransom. Disables the compromised computer or restricts access to certain data so that the victim can no longer use it. The victim is expected to send payment to the hijacker to restore access to the blocked data or re-enable the system.