title: PE Format - IAT Questions
body: <p>I'm trying to write an exe packer for windows. I've got some of the basics worked out so far. The part I'm up to though is reading the "BOUND IMPORT Directory Table" (or .idata section?), basically the section of the PE file that contains the list of DLLs that the loader needs to import.</p>
  
  <p>I'm wondering what the best way to either:</p>
  
  <p>[A] find out where the IAT is (because running PEView against a few different .exe's seems to show that this list can be contained in multiple different places) and then read the list</p>
  
  <p>OR </p>
  
  <p>[B] Just find a way to directly read the list of DLLs that an exe needs to import.</p>
  
  <p>Is there a way of doing this? Is there any further reading people can recommend on where the IAT should be and how does one read it? </p>