Basically, WannaCry encryption creates a pair of keys public and private.
WannaCry erases the keys from the system, thus compelling the victim to pay $300 to the cybercriminals.
The WannaKey decryption tool is available for free and works on Windows XP operating system.
source: www.techworm.net