I'm doing some work with idapython and I was hoping someone could help me out. Basically I'm modifying the code segment of a pe file (.text section) but I want to leave the rest of the pe file untouched. This involves being able to take the .data, .rdata, .bss, .idata sections and basically printing them out to a file in a way so that masm can reassemble them. Can anyone give me advice on how to do that? Obviously it must be possible since all the segments are there in idapro when you run the disassembly. Thanks in advance.
-Richard







