There is no way to block apps right now. You should know that Ransomware can get into your PC from almost anywhere. The website, email, and even your favorite app if you are not careful.
Open Windows Firewall settings and create an outbound rule to block the outgoing traffic. Read next: Windows Security Unable to block this app.