示例#1
0
文件: McKey.cs 项目: Joelone/de4dot
 public McKey(PeImage peImage, PeHeader peHeader)
 {
     this.peHeader = peHeader;
     try {
         this.data = peImage.readBytes(peHeader.getMcKeyRva(), 0x2000);
     }
     catch (IOException) {
         this.data = peImage.readBytes(peHeader.getMcKeyRva(), 0x1000);
     }
 }
示例#2
0
        // CS 1.x
        byte[] unpackNativeFile2(PeImage peImage)
        {
            var dir = peImage.Resources.getRoot();
            if ((dir = dir.getDirectory("ASSEMBLY")) == null)
                return null;
            if ((dir = dir.getDirectory(101)) == null)
                return null;
            var data = dir.getData(0);
            if (data == null)
                return null;

            return ModuleBytes = peImage.readBytes(data.RVA, (int)data.Size);
        }
示例#3
0
 public McKey(PeImage peImage, PeHeader peHeader)
 {
     this.peHeader = peHeader;
     this.data = peImage.readBytes(peHeader.getMcKeyRva(), 0x2000);
 }