I am looking for a way to automatically represent the relation between the content of a PE file and how it would be loaded in memory - either an IDA plugin, a combination of pefile script+R/SVG...
Something that could look like this (hand drawn):
(Not necessarily something that already supports PE, but that could be extended freely to support PE)