Sites para consulta: http://asm.sourceforge.net/articles/startup.html Descrição de como funcionam variáveis de ambiente em nasm
https://code.woboq.org/userspace/glibc/stdlib/getenv.c.html # Implementação do getenv.c
https://stackoverflow.com/questions/17676026/converting-c-to-nasm-assembly Tutorial de como converter código C para NASM. Pode ser bom para engenharia