Is it illegal to distribute malware? I see security researchers doing it all the time for analysis purposes.
Some people would say that most drm software would act like malware/ransomware.
And tricking people to install such software is only matter of an ambiguously worded checkbox.