A simple program that causes a Blue Screen of Death.
This program is made purely for fun, with no unethical intentions and strictly for educational purposes.
It's written in assembly because it compiles to the smallest possible version (it can likely be made even smaller, but this version is already very small) compared to C/C++ or any other language. Occasionally, antivirus software may start blocking it. In such cases, you can use the invoke keyword on another function instead of pushing arguments onto the stack.
This won't bypass all antivirus programs, but it should allow the program to run on window machines with Windows Defender. If you want to take it to the next level, you can implement static analysis evasion.
To compile, you need the MASM assembler. I have tested it with the 32-bit version:
ml /coff /c BSOD_Assembly.asm
link /SUBSYSTEM:WINDOWS /OUT:BSOD_Assembly.exe BSOD_Assembly.obj