I think i need some code that would work like
that
AddImportsForModule("KERNEL32.DLL", "ExitProcess", "GetModuleHandleA", "GetProcAddress");
AddImportsForModule("msvcrt.dll", "fopen", "free", "printf", "exit", "fclose", "fread");
well maybe it would be more like
char* import_names[] = {"fopen", "free", "printf", "exit", "fclose", "fread");
AddImportsForModule("msvcrt.dll", import_names);
but this is detail
the code just need to build binary block of .idata section that i can flush to exe file
when flushing exe to disk in my assembler
im howewer a bit confused how weirdly this .idata binary is build, so maybe some hints on that?
btw some best info i found on this topic is here
https://github.com/macton/x64-fasm-examples/blob/master/Windows/00_BasicOS/00_pe_return_03.asm
or around here, so if someone would like to focus on this and give me some hints may use it
tnx