A pair of ransomware attacks crippled parts of the country\u2014and rewrote the rules of cybercrime.