News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Beginner...Masm64 new install Richard-001.asm

Started by Richard, December 27, 2020, 12:29:45 PM

Previous topic - Next topic

Richard

Subject changelog

Beginner...Masm64 new install Richard-001.asm
Beginner...Masm64 new install VIRUS ???? (not a virus)...Richard-001.asm
Beginner...Masm64 new install VIRUS ???? (RESOLVED - not a virus)
Masm64 new install VIRUS ???? (RESOLVED - not a virus)
Masm64 new install VIRUS ????



Some advice please re info as per attachment below...


hutch--

You can be certain there are no viral code in the zip file. I had a look at the PNG file and it is squarking at any EXE file and this is a setting that is designed for non technical users. Change your settings in the default AV scanner. Once you have it unzipped, check the source code, build the examples and run them through JOTTI.

There is not much I can do about false positives from AV scanners, to construct programming material of this type, you must have executable files to do it.

Richard

@hutch--

Thanks for reply.

The Anti Virus software is WINDOWS 10 x64 Defender and I have no clue how to disable it.  However I "cheated" and used an old MAC with High Seira installed and downloaded the zip (no problems there) and on the MAC I also had 7ZIP EQUIVALENT installed and unzipped on the MAC (no problems there) and then copied the files onto an exFAT USB stick (initially a problem, did the copy again and no problems there).

The usb stick was plugged into the PC and files copied to the Downloads folder - WINDOWS prevented ONE file from being copied (Error 0x800700E1 ... because the file contains a virus or potentially unwanted software) namely

jpg_image.exe 21,504 bytes

all the other files copied OK.

I am new to using both MASM64 and MASM32 (I am trying to get away from using Masm5.1 on DOSbox for 16 bit code - now concentrating and learning to use somewhat "newer" assembly) - initially MASM64 will be used only for trying out all the examples provided (while MASM32 would be my programing environment for simple stuff with the target being x64 Windows computer).

So far MASM32 is somewhat working OK for me - but I am not sure what to do with all the MASM64 files (all the files from install64.zip without jpg_image.exe  + all the files from m64upd2.zip which unzipped OK).

At present I have

C:\masm32\

should I make a C:\masm64\ folder or put everthing masm64 into the 32 folder and use the 32 IDE to compile 64 stuff?

Until I resolve the jpg_image.exe - I plan to have a "dummy file" of the same name (just to keep the compiler etc quite from error reporting) - and will avoid any example asm code etc that make reference to this file.


EDIT: WINDOWS automatically deleted jpg_image.exe from the usb stick (as well as the install64.zip file)!

jj2007

Hi Richard,

You are obviously not a script kiddie, so you did the right things. They is also a dedicated subforum for AV issues.

Using makeit.bat, \Masm32\examples64\jpg_image\jpg_image.exe builds just fine, and there is no chance that something malicious could hide in 60 lines of code. We are all used to such issues - this is the price to pay if you work so close to the machine. Not a problem if you program as a hobby, but if you want to sell your stuff, you need a strategy.

Welcome to the Forum :thup:

Richard

@jj2007

Thanks for the welcome

Now that I think I am beginning to understand that the 64 stuff is "merged" into the masm32 folder (rather than a separate masm64 folder) - I tried merging the 64 stuff BUT I think I did something wrong and so I was not able to assemble jpg_image.asm (too many errors).

Would you be able to supply a directory listing of all the folders/files (with file sizes in bytes) for the masm32 folder with the masm64 additions? I suspect that with the different sized files I replaced with the wrong one and I may still not have correctly set up the folders right.

I will manually (or better still write a BASIC program) to check all the thousands of files to your reference list to see that the files are in the right place AND the right size.

hutch--

If you look at the expanded form of the zip file, you copy the 64 bit stiff directly into the masm32 installation so you have,

bin64
examples64
help64
include64
lib64
m64lib
macros64
script64
test64
tools64

If you get all of the 64 bit stuff into the right place, it will work correctly.

Make sure you put the Microsoft binaries in the "bin64" directory and it should run OK.

There is some stuffup in what the AV scanners are doing with the one file and it is probably an accidental byte combination that it is squawking about as the source is clear and there is absolutely no problem with it.

Just put the "jpg_image.exe" aside for the moment and make sure you get the whole build environment up and working correctly.

Vortex

Hi Richard,

Welcome to the forum.

QuoteThe Anti Virus software is WINDOWS 10 x64 Defender and I have no clue how to disable it.

https://support.microsoft.com/en-us/windows/turn-off-antivirus-protection-in-windows-security-99e6004f-c54c-8509-773c-a4d776b77960

Richard

@Vortex

Thanks for welcome. Thanks for link re Windows Defender.

@hutch--

Still problems...

Error Message (when trying to construct jpg_image.asm  into .exe

Could not find c:\Masm32\examples64\jpg_image\jpg_image.exe
'\masm32\bin64\ml64.exe'  is snot recognized as a ...operable program ....     (ml64.exe DOES NOT EXIST ANYWHERE)


I notice that the bin64 \1033\ folder is EMPTY as well as the tools64 folder.

It would be nice to have a full directory listing so that I can determine what is missing for me...

jj2007

Quote from: Richard on December 28, 2020, 12:58:50 AMml64.exe DOES NOT EXIST ANYWHERE

Check
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\ml64.exe
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\ml64.exe

If you have another VS version, put "12.0" or whatever you have.

TouEnMasm

Richard is right saying than ml couldn't be find in the C:\install64 directory.
The forum had no license to do that.
First provider is Visual Studio C++ (ML64 and ml32) and other versions downloadable with a little search.
It is  also possible to use Uasm and Jwasm.
Fa is a musical note to play with CL

Richard

@TouEnMasm
@jj2007

No folders exactly as specified BUT over the last three nights, independent of the "MASM32/64 exercise" I have been downloading MS Visual Studio Community (and still going at 4 hours per night - ...

Searching for ML64.exe in Program Files (x86) results 4 (four) different sized files...

591,280   445,360   601,520   453,552  bytes

Which one do I use?

EDIT:- VISUAL STUDIO Community 2019

hutch--

Hi Richard,

**********************************************
Files that must be obtained from Microsoft
Usually this is from a Visual Studio download.
**********************************************

---------------
bin64 directory
---------------
cvtres.exe
dumpbin.exe
editbin.exe
lib.exe
link.exe
link.exe.config
ml64.exe
msobj140.dll
mspdb140.dll
mspdbcmf.exe
mspdbcore.dll
mspdbsrv.exe
mspdbst.dll
mspft140.dll
msvcdis140.dll
msvcp140.dll

-----------
In dir 1033
-----------
bscmakeui.dll
clui.dll
cvtresui.dll
linkui.dll
LocalESPCui.dll
mspdbcmfui.dll
mspft140ui.dll
pgort140ui.dll
pgoui.dll

This is the full listing on my own machine.

This is the directory listing on my own box.

K:\masm32\bin64>dir /s
Volume in drive K is disk3_k
Volume Serial Number is 68C7-4DBB

Directory of K:\masm32\bin64

12/05/2020  11:49 AM    <DIR>          .
12/05/2020  11:49 AM    <DIR>          ..
27/09/2018  04:43 AM    <DIR>          1033
29/08/2016  11:09 AM                66 assemble.bat
27/09/2018  04:56 AM    <DIR>          bak
12/01/2020  11:00 AM    <DIR>          copy
11/05/2020  12:09 PM            40,928 cvtres.exe
11/05/2020  12:09 PM            20,376 dumpbin.exe
11/05/2020  12:09 PM            20,584 editbin.exe
11/05/2020  12:09 PM            20,584 lib.exe
11/05/2020  12:09 PM         1,429,112 link.exe
12/01/2020  09:58 AM               409 link.exe.config
20/08/2017  12:47 PM               623 Microsoft_File_List.txt
11/05/2020  12:09 PM           449,664 ml64.exe
21/02/2017  01:36 PM           140,456 msobj140.dll
12/01/2020  09:58 AM           306,760 mspdb140.dll
21/02/2017  01:36 PM         1,313,960 mspdbcmf.exe
21/02/2017  01:36 PM           588,456 mspdbcore.dll
21/02/2017  01:36 PM           184,488 mspdbsrv.exe
21/02/2017  01:36 PM           567,968 mspdbst.dll
21/02/2017  01:36 PM         2,362,024 mspft140.dll
21/02/2017  01:36 PM         1,299,120 msvcdis140.dll
21/02/2017  01:36 PM           627,368 msvcp140.dll
12/01/2020  09:58 AM            99,760 nmake.exe
20/08/2018  06:32 AM           460,800 poasm.exe
22/03/2015  03:26 AM            79,360 polib.exe
22/03/2015  03:28 AM           152,576 polink.exe
22/03/2015  03:48 AM           176,128 porc64.dll
22/03/2015  03:48 AM            48,640 porc64.exe
18/03/2019  08:50 PM            70,088 RC.Exe
              27 File(s)     11,057,306 bytes

Directory of K:\masm32\bin64\1033

27/09/2018  04:43 AM    <DIR>          .
27/09/2018  04:43 AM    <DIR>          ..
11/05/2020  12:09 PM            34,176 atlprovui.dll
11/05/2020  12:09 PM            16,768 bscmakeui.dll
11/05/2020  12:09 PM           564,104 clui.dll
11/05/2020  12:09 PM            13,696 cvtresui.dll
11/05/2020  12:09 PM            88,960 linkui.dll
21/02/2017  01:36 PM            23,720 LocalESPCui.dll
05/10/2017  01:32 AM               164 lst.txt
11/05/2020  12:09 PM            15,240 mspdbcmfui.dll
11/05/2020  12:09 PM            84,560 mspft140ui.dll
11/05/2020  12:09 PM            21,376 nmakeui.dll
21/02/2017  01:36 PM            26,288 pgort140ui.dll
11/05/2020  12:09 PM            27,520 pgoui.dll
              12 File(s)        916,572 bytes



hutch--


This is the default VS installed directory on my box.
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\Hostx86\x64>

Use the binaries from this version, the x86 version is faster than the others.

You will find the 32 bit ML.EXE a bit lower in that directory tree.

The ML64.EXE version in this tree is 450984 bytes.

Richard

@hutch--

Thankyou for the information.

I took a gamble and used the largest ml64.exe file (601,520 bytes) and created the jpg_image.exe file. Seems the ml64.exe works. Refer attachment of screenshot - is this what running jpg_image exe supposed to do?

Interestingly MS Defender AV (still active as I have not switched it off) did not complain!!!

It is 2 am now - I am going home to bed - will investigate/follow up on the many "missing files" as per your directory listing later on after sleep.

Thanks everyone.

hutch--

Hi Richard,

Yes, its a simple display of a PNG image in a dialog window.