Ransomware typically spread like Trojans, penetrating into the system through, for example, mail attachment, downloaded file or a vulnerability in the operating system, so if you're "lucky"...
Otherwise you have to analyze any malware present in online malware analysis database.
My curiosity, can I know why you're looking for it ?