Re: Have to love governments.
To be fair, such seemingly useless laws do give a "fallback" law in cases where a perpetrator has been caught, but there is insufficient evidence to prove that they actually carried out the ransomware attack. A bit like convicting a burglar for "going equipped" because you cannot prove beyond reasonable doubt that he had actually broken into any houses.
Unfortunately such "fallback" laws tend to get mis-used by police as a primary law in order to convict people who are entirely innocent of any malicious intent. Like using the knife law to convict an entirely innocent van driver who had a knife in the van to use as a tool. Or twisting loosely-worded anti-terrorist legislation to convict a cyclist for taking a short-cut over DoD owned land (which would otherwise be simple trespass which is not a criminal offence).