Hello guys,
I still new to assembly in general
And I am having a bit of problem ,when I try to assemble the attached file I get the following error message
Assembling: win32.Fly.asm
***********
ASCII build
***********
win32.Fly.asm(64) : error A2163: non-benign structure redefinition: incorrect initializers : IMAGE_NT_HEADERS64
win32.Fly.asm(65) : error A2163: non-benign structure redefinition: incorrect initializers : IMAGE_NT_HEADERS64
win32.Fly.asm(66) : error A2164: non-benign structure redefinition: too few initializers : IMAGE_NT_HEADERS64
LINK : fatal error LNK1181: cannot open input file "win32.fly.obj"
And yes the code is a virus code,It's for my project in collage
I used the following command line
ML /nologo /c /coff /Gz /Cp /I"D:\Progs\For Windows\Programming\Assembly\masm32\include" win32.Fly.asm
LINK /nologo /SUBSYSTEM:WINDOWS /LIBPATH:"D:\Progs\For Windows\Programming\Assembly\lib" /SECTION:.text,REW win32.fly.obj
which came with the viral code
the problem is at this part of the code
IMAGE_OPTIONAL_HEADER64 STRUCT 1
Magic WORD ?
MajorLinkerVersion BYTE ?
MinorLinkerVersion BYTE ?
SizeOfCode DWORD ?
SizeOfInitializedData DWORD ?
SizeOfUninitializedData DWORD ?
AddressOfEntryPoint DWORD ?
BaseOfCode DWORD ?
ImageBase QWORD ?
SectionAlignment DWORD ?
FileAlignment DWORD ?
MajorOperatingSystemVersion WORD ?
MinorOperatingSystemVersion WORD ?
MajorImageVersion WORD ?
MinorImageVersion WORD ?
MajorSubsystemVersion WORD ?
MinorSubsystemVersion WORD ?
Win32VersionValue DWORD ?
SizeOfImage DWORD ?
SizeOfHeaders DWORD ?
CheckSum DWORD ?
Subsystem WORD ?
DllCharacteristics WORD ?
SizeOfStackReserve QWORD ?
SizeOfStackCommit QWORD ?
SizeOfHeapReserve QWORD ?
SizeOfHeapCommit QWORD ?
LoaderFlags DWORD ?
NumberOfRvaAndSizes DWORD ?
DataDirectory IMAGE_DATA_DIRECTORY IMAGE_NUMBEROF_DIRECTORY_ENTRIES dup(<>)
IMAGE_OPTIONAL_HEADER64 ENDS
IMAGE_NT_HEADERS64 STRUCT 1
Signature DWORD ?
FileHeader IMAGE_FILE_HEADER <>
OptionalHeader IMAGE_OPTIONAL_HEADER64 <>
IMAGE_NT_HEADERS64 ENDS
exactly at initializing FileHeader and OptionalHeader
I have read the sample codes and tried my own with same writing in the file ,no problem happened and the programs ran
can you help ?
thanks in advance
Edit, attachment removed since it contains virus code
The rules of those forums are clear: no virus code.
It does not matter for what "reason" you claim to need it.