Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   from IDA to C (https://forum.exetools.com/showthread.php?t=3381)

loman 02-08-2004 22:23

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

volodya 02-09-2004 00:03

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 :confused:

alephz 02-09-2004 19:03

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.


All times are GMT +8. The time now is 15:16.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX