It’s not illegal to pay hackers ransoms, although some think it should be, and for years it’s been enthusiastically discouraged by law enforcement agencies and cyber-security companies around the world, as it incentivises hackers to carry out further attacks.