Gravar-mail: Mechanisms for analysis and detection of ransomware in desktop operating systems