Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2004, 22:23
loman
 
Posts: n/a
from IDA to C

hi, it's possible to take a function from a disassembled program with ida and to use it in a C written program using the

__asm
{
...
}

?

or can simple asm do it? (I've never coded in asm)

If it's not possible I think I'll never be able to convert that piece of code from asm -> C

thanks

loman
Reply With Quote
  #2  
Old 02-09-2004, 00:03
volodya
 
Posts: n/a
IDA produces compiler-understandable results. Of course, it is possible. Copy and paste it from IDA screen and use it in your program.

P.S. Strange that you are asking these questions instead of simply trying it
Reply With Quote
  #3  
Old 02-09-2004, 19:03
alephz alephz is offline
VIP
 
Join Date: May 2002
Location: Israel
Posts: 390
Rept. Given: 126
Rept. Rcvd 291 Times in 93 Posts
Thanks Given: 180
Thanks Rcvd at 69 Times in 23 Posts
alephz Reputation: 200-299 alephz Reputation: 200-299 alephz Reputation: 200-299
Quote:
Originally posted by volodya
IDA produces compiler-understandable results. Of course, it is possible. Copy and paste it from IDA screen and use it in your program.
Also need to be care about call conventions (ex: __fastcall and so on). In MSVC 6.0 you can try __declspec(naked) to prevent compiler from additional prolog/epilog creation.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 01:28.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )