while reading the answers to Can I statically link (not import) the Windows system DLLs? I came up with another question. So: Is there a way to write a program that has no dependencies (nothing is statically compiled too - it has only my code) and everything is resolved during run-time assuming that kernel32.dll will be loaded/mapped into the process no matter what?Is my assumption about kernel32.dll correct?During run-time, I mean using the PEB structure.
Program with no dependencies
windows;malware;development;winapi
If you're asking about PE files, and by no dependencies you mean no statically imported DLLs, then yes.See \yoda\NoImports.exe in https://corkami.googlecode.com/files/BinaryCorpus_v2.zip as an example.