In practice, it is very hard to get away with the ransom due to the public nature of blockchain-based transaction.
For example, the author of the wannacry failed at layering and exchanging his Bitcoins into fiat.
Source: https://www.fatf-gafi.org/publications/virtualassets/documen...