0

Is it possible to add a new assembler code lines in IDA to a opened, disassembled pe file? For e.g. having such disassembled code in IDA:

    global  _main
    extern  _printf

    section .text
_main:
    push  offset  message
    call    _printf
    add     esp, 4
    ret
section .data
    message db  'Hello, World', 10, 0

I'd like to add, say:

 push  offset  message2
    call    _printf
    add     esp, 4
...
message2 db  'I'm there', 10, 0

to get:

    global  _main
    extern  _printf

    section .text
_main:
    push  offset  message
    call    _printf
    add     esp, 4
    push  offset  message2
    call    _printf
    add     esp, 4
    ret
section .data
    message db  'Hello, World2', 10, 0
    message2 db  'I'm there', 10, 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.