NefMoto

Technical => Reverse Engineering => Topic started by: mbwiejska12 on January 14, 2016, 01:02:58 AM



Title: Assembling file after IDA disassemble
Post by: mbwiejska12 on January 14, 2016, 01:02:58 AM
Hi.

Is it any chance to return assembling file directly in IDA if I've done some changes in code?
Or we must doing it by any c166 assembler?
What I look, assemblers don't have simmilar entertainment to IDA like word_xxxxxx byte_xxxxxx. Code must be definied other way.


Title: Re: Assembling file after IDA disassemble
Post by: roman_tyk on January 14, 2016, 02:41:46 AM
If you incject some code into ori software of course you can dissasembly again and check your work.


Title: Re: Assembling file after IDA disassemble
Post by: mbwiejska12 on January 14, 2016, 11:00:49 AM
But I mean if I could disasembly by IDA --> incject some changes to code also in IDA and assemble also by Ida. Is it executable?


Title: Re: Assembling file after IDA disassemble
Post by: fknbrkn on January 14, 2016, 11:59:03 AM
nope
im using keil -> hex output -> import hex in hex redactor

you should use asm syntax to define variables
and dont forget about segments or pages

Code:
mov r4, 0F043h ; 0xF043

or

Code:
pussy EQU 0F043h
...
mov r4, pussy ; 0xF043

or

Code:
exts #38h, #1
mov r4, 0433h  ; 0x380433

etc


Title: Re: Assembling file after IDA disassemble
Post by: mbwiejska12 on January 15, 2016, 09:03:36 AM
Thank you a lot for giving a tips. Now it is clear for me :)