Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: x86 disasse...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 9 Topic 4611 of 4729
Post > Topic >>

Re: x86 disassembly + reassembly

by "Alexei A. Frounze" <spamtrap@[EMAIL PROTECTED] > May 3, 2008 at 11:49 AM

On May 3, 2:45 am, Terje Mathisen  <spamt...@[EMAIL PROTECTED]
> wrote:
....
> This is of course correct, but I'd like to step back to what I believe
> was the original problem:
>
> The OP needed to make a small modification to an existing binary, right?
>
> This is a well-known issue with old IBM mainframe application, many of
> them has no longer any source code available, but they have still been
> maintained and modified for decades.
>
> The tools used to solve this is a disassembler (to figure out where the
> patch needs to hook in), a compiler/assembler to generate the patch
> code, which can even be in the form of a separate program, loaded at a
> known address, and then finally, the patcher which works similar to a
> linker, modifying the binary image on the fly and inserting a jump
> opcode to branch to the new function.
>
> For an x86 program I would do the same, making a separate patch program
> which loads the original binary (but in halted modus, or with an
> inserted breakpoint) and then patch the function(s) to be modified.

Right. I've done that too. The only possible problem like I said
before is the need to change the existing data structures (in size or
layout) which in turn may require to change some other code elsewhere
that you don't really want to touch. That becomes complicated. But if
only the code needs to be patched, it may be really easy (although, if
the problematic code is scattered due to function inlining, then not).

Alex
 




 9 Posts in Topic:
x86 disassembly + reassembly
ljp <spamtrap@[EMAIL   2008-04-10 11:21:44 
Re: x86 disassembly + reassembly
Belal <spamtrap@[EMAI  2008-04-30 23:08:40 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-01 02:43:29 
Re: x86 disassembly + reassembly
ArarghMail805NOSPAM <s  2008-05-01 20:55:32 
Re: x86 disassembly + reassembly
Frank Kotler <spamtra  2008-05-03 02:37:40 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-03 00:00:34 
Re: x86 disassembly + reassembly
Terje Mathisen <spamt  2008-05-03 11:45:51 
Re: x86 disassembly + reassembly
"Alexei A. Frounze&q  2008-05-03 11:49:38 
Re: x86 disassembly + reassembly
"Rod Pemberton"  2008-05-04 00:28:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:17:12 CDT 2008.