Ok, this is quite hard to understand.
First thing to do is to get a sample of the famous ransomware( Any.Run will help you)
Prerequisites:
-IDA Pro(not the freeware)
-Python knowledge
-Patience to read the full article
Hidden content
This is really interesting, and will teach you some basics...