I'm working with IDA Python to do some automated disassembly and modifications and I am having trouble figuring out a few things.
My current problem is that I'd like to be able to add segments, functions and instructions or data to the disassembled file. I've been looking through the documentation of the IDA Python API and the only thing I can find about this is the MakeCode instruction, but all it takes as a parameter is the address you want the instruction at, not the opcode or size or anything of the instruction. If anyone can help with this that would be great. I also need to be able to add segments and modify header information if anyone knows any details or can point me to a tutorial about that.






