The document presents a method for detecting ransomware on Windows OS using statistical analysis of API function calls, achieving approximately 95% detection accuracy. Various malware samples were analyzed, highlighting the critical role of encrypt/decrypt API calls in identifying ransomware. The study employed statistical methods such as chi-square tests and paired sample t-tests to establish relationships between ransomware and benign applications based on their API usage.