Where to find Win32/EXE/PE information?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
~
Member
Member
Posts: 1228
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Where to find Win32/EXE/PE information?

Post by ~ »

I'm trying to understand the Portable Executable format to build a working knowledge on how to manipulate program files, and most important, being able to test different generic parts of code under Windows without having to reset, emulate, but just run a small 32-bit application with a snippet to debug.

Right now, I just have information from here about COFF format:

http://www.delorie.com/djgpp/doc/coff/


Also, I have a small "repository" and "documentation" of what I have found until now, here:

http://didactos.blogsyte.com/win32_exe/


It only contains an incipient table in HTML format about the header format (it's even unknown if it's fully correct).

There's also a ZIP with rather overcomplicated documentation and a handmade EXE file which doesn't run and makes the situation more confusing?


So the question is if somebody knows of a place or documents that show in detail the structure and byte, word, dword fields of each part of the EXE and at least an example of how to implement the headers, sections, etc.? Or will it be necessary to come up with a solution by hardly interpreting those references, as well as header files like WINNT.H which are part of VC++?

The intention here is to have a template NASM source file and set all fields and structure manually as needed, without using a linker.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I once found this site which holds a lot of useful information:

http://win32assembly.online.fr/tutorials.html (look for PE tutorials)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

User avatar
~
Member
Member
Posts: 1228
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Post by ~ »

Thanks people.
There were some other references in the wiki as well.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Here is some code that doc DexOS's PE loader, there alot of info that may help, the codes in fasm and VC++ .
http://www.osdev.org/phpBB2/viewtopic.p ... ight=dexos
User avatar
djnorthyy
Member
Member
Posts: 49
Joined: Mon Apr 09, 2007 10:50 am
Location: UK, Hants
Contact:

Post by djnorthyy »

Have you tried the documents section over a Bona Fide?
Reflect Desktop Operating System - ' You only remember the name of the OS when it crashes '
Post Reply