Vigual
November 14th, 2009, 02:28
The structure of the Section table is
I'm trying to get the value for VirtualSize but I don't know how to write this in assembly because of the Union Structure. I currently have
but masm says that it does not recognize the VirtualSize field. How do I get it's value
Code:
typedef struct _IMAGE_SECTION_HEADER {
BYTE Name[IMAGE_SIZEOF_SHORT_NAME];
union {
DWORD PhysicalAddress;
DWORD VirtualSize;
} Misc;
DWORD VirtualAddress;
DWORD SizeOfRawData;
DWORD PointerToRawData;
DWORD PointerToRelocations;
DWORD PointerToLinenumbers;
WORD NumberOfRelocations;
WORD NumberOfLinenumbers;
DWORD Characteristics;
}IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER;
I'm trying to get the value for VirtualSize but I don't know how to write this in assembly because of the Union Structure. I currently have
Code:
add ecx, [eax.IMAGE_SECTION_HEADER.VirtualSize]
but masm says that it does not recognize the VirtualSize field. How do I get it's value