News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Embed an executable

Started by Magnum, December 04, 2011, 06:40:14 PM

Previous topic - Next topic

Magnum

Can an exe be embedded and written out as a file?

Have a great day,
                         Andy


Magnum

Have a great day,
                         Andy

hfheatherfox07

Quote from: Vortex on December 04, 2011, 06:44:05 PM
Hi Magnum,

Here are some examples :

http://www.masm32.com/board/index.php?topic=3816.0

http://www.masm32.com/board/index.php?topic=576.0



Hi Vortex .... I get a virus error from the attachment you posted here......

http://www.masm32.com/board/index.php?topic=3816.0

here is the error: 

Is it a false positive?

Vortex

Hi,

You should check the source code of the attachment before making such statements. That's a false-positive :

Jotti's report

Get a decent AV program.

sinsi

>Get a decent AV program
Hmm, that's the first false positive I have ever had with Security Essentials.
Light travels faster than sound, that's why some people seem bright until you hear them.

dedndave

i can see how an AV program might be worried about an EXE that creates another EXE   :P

sinsi

Well, a lot of sysinternals' programs start 32-bit then unpack a 64-bit exe to run.
Maybe it is the type of compression used, possibly combined with the second exe...who knows?

I told MSE to ignore it and then it downloaded OK, ran OK.
Light travels faster than sound, that's why some people seem bright until you hear them.

dedndave

if you want to test it...
assemble the project and see if the EXE Erol provided is the same as the one you create   :P
i trust Erol - of course, that does not mean the EXE is safe - it means the source code is

hutch--

Andy,

With the MASM32 installation I write an executable file to disk then run it to install the base files for MASM32. I use the utility FDA.EXE to convert the EXE to an object module then link it into the installer. Note that some AV scanners will squark at any EXE that writes another EXE, take Erol's advice if you have that problem, get a decent AV scanner.  :bg
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Magnum

I don't use an AV scanner or a malware scanner.

Have a great day,
                         Andy

zemtex

Magnum: It doesn't cost much to get an AV scanner. If it weren't for the tremendous intolerable level of false detections I would recommend Avira but I can't recommend it. After a year or two of usage I went tired, I am not overestimating it when I say that at least 50% of everything you see are false detections (I'm tempted to say 70%). After I switched to MSE I had zero false detections.
I have been puzzling with lego bricks all my life. I know how to do this. When Peter, at age 6 is competing with me, I find it extremely neccessary to show him that I can puzzle bricks better than him, because he is so damn talented that all that is called rational has gone haywire.

Vortex

Some typical false positives are appearing when large portions of data is placed in the .data section. A workaround is to move the data block to the .code section.