a quick example of recursion function in fasm assembly windows
test it with fasm (https://flatassembler.net/download.php). You just have to move the file in INCLUDE directory and open the binary "FASMW", then open the file and run it. You can also export the path of fasm and run it into a shell.