Exemplo n.º 1
0
 static void clearDllBit(byte[] peImageData)
 {
     var mainPeImage = new PeImage(peImageData);
     uint characteristicsOffset = mainPeImage.FileHeaderOffset + 18;
     ushort characteristics = mainPeImage.offsetReadUInt16(characteristicsOffset);
     characteristics &= 0xDFFF;
     characteristics |= 2;
     mainPeImage.offsetWriteUInt16(characteristicsOffset, characteristics);
 }