Exemplo n.º 1
0
 public override void VisitNTSpecificFieldsHeader(PEOptionalHeader.NTSpecificFieldsHeader header)
 {
     WriteIntOrLong(header.ImageBase);
     m_binaryWriter.Write(header.SectionAlignment);
     m_binaryWriter.Write(header.FileAlignment);
     m_binaryWriter.Write(header.OSMajor);
     m_binaryWriter.Write(header.OSMinor);
     m_binaryWriter.Write(header.UserMajor);
     m_binaryWriter.Write(header.UserMinor);
     m_binaryWriter.Write(header.SubSysMajor);
     m_binaryWriter.Write(header.SubSysMinor);
     m_binaryWriter.Write(header.Reserved);
     m_binaryWriter.Write(header.ImageSize);
     m_binaryWriter.Write(header.HeaderSize);
     m_binaryWriter.Write(header.FileChecksum);
     m_binaryWriter.Write((ushort)header.SubSystem);
     m_binaryWriter.Write(header.DLLFlags);
     WriteIntOrLong(header.StackReserveSize);
     WriteIntOrLong(header.StackCommitSize);
     WriteIntOrLong(header.HeapReserveSize);
     WriteIntOrLong(header.HeapCommitSize);
     m_binaryWriter.Write(header.LoaderFlags);
     m_binaryWriter.Write(header.NumberOfDataDir);
 }
Exemplo n.º 2
0
 public override void VisitNTSpecificFieldsHeader(PEOptionalHeader.NTSpecificFieldsHeader header)
 {
     header.ImageBase        = ReadIntOrLong();
     header.SectionAlignment = m_binaryReader.ReadUInt32();
     header.FileAlignment    = m_binaryReader.ReadUInt32();
     header.OSMajor          = m_binaryReader.ReadUInt16();
     header.OSMinor          = m_binaryReader.ReadUInt16();
     header.UserMajor        = m_binaryReader.ReadUInt16();
     header.UserMinor        = m_binaryReader.ReadUInt16();
     header.SubSysMajor      = m_binaryReader.ReadUInt16();
     header.SubSysMinor      = m_binaryReader.ReadUInt16();
     header.Reserved         = m_binaryReader.ReadUInt32();
     header.ImageSize        = m_binaryReader.ReadUInt32();
     header.HeaderSize       = m_binaryReader.ReadUInt32();
     header.FileChecksum     = m_binaryReader.ReadUInt32();
     header.SubSystem        = (SubSystem)m_binaryReader.ReadUInt16();
     header.DLLFlags         = m_binaryReader.ReadUInt16();
     header.StackReserveSize = ReadIntOrLong();
     header.StackCommitSize  = ReadIntOrLong();
     header.HeapReserveSize  = ReadIntOrLong();
     header.HeapCommitSize   = ReadIntOrLong();
     header.LoaderFlags      = m_binaryReader.ReadUInt32();
     header.NumberOfDataDir  = m_binaryReader.ReadUInt32();
 }
Exemplo n.º 3
0
 public override void VisitNTSpecificFieldsHeader(PEOptionalHeader.NTSpecificFieldsHeader header)
 {
     header.SetDefaultValues();
 }