Ransomware Detection and Mitigation Based On Machine Learning