Beispiel #1
0
 PEState CreatePEState()
 {
     try {
         ulong addr = Address;
         if (addr == 0)
         {
             return(PEState.Null);
         }
         var data = new byte[0x1000];
         debugger.Read(Address, data, 0, data.Length);
         using (var peImage = new PEImage(data, IsFileLayout ? ImageLayout.File : ImageLayout.Memory, true))
             return(new PEState(peImage.ImageSectionHeaders.ToArray()));
     }
     catch {
         Debug.Fail("Couldn't read section headers");
         return(PEState.Null);
     }
 }
Beispiel #2
0
 public byte[] ReadCode() => debugger.Read(Address, Size);
Beispiel #3
0
 public byte[] ReadCode()
 {
     return(debugger.Read(Address, Size));
 }