This is a PoC of a ransomware using assembly and C++ can be easily modified with any other encryption/decryption algorithm.
It uses C++ for file management and manipulation, a makefile to make editing and modifying easier. It works mainly on Linux OS, but it can be easily modified to work on Windows.
Crypto encrypts a directory and its contents using XOR. In Linux using “/” as the targeted directory makes the code work on everything. Permissions are the only limitation, and I didn’t want to change that. If it had all the privileges, it would also encrypt system files, potentially ruining the OS completely, which would defeat the goal of a ransomware.