Skip to content

Commit

Permalink
Fix merge. Code used a much older dnlib version
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Oct 29, 2015
1 parent 7cde561 commit eefa799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions de4dot.code/deobfuscators/Confuser/JitMethodsDecrypter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ bool Decrypt_v17_r73404(MyPEImage peImage, byte[] fileData, ref DumpedMethods du
DumpedMethods Decrypt_v17_r73404(MyPEImage peImage, byte[] fileData) {
var dumpedMethods = new DumpedMethods();

var methodDef = peImage.DotNetFile.MetaData.TablesStream.MethodTable;
var methodDef = peImage.MetaData.TablesStream.MethodTable;
for (uint rid = 1; rid <= methodDef.Rows; rid++) {
var dm = new DumpedMethod();
peImage.ReadMethodTableRowTo(dm, rid);
Expand Down Expand Up @@ -604,7 +604,7 @@ public override void Decrypt(byte[] fileData, int offset, uint k1, int size, out
DumpedMethods Decrypt(MyPEImage peImage, byte[] fileData, DecryptMethodData decrypter) {
var dumpedMethods = new DumpedMethods();

var methodDef = peImage.DotNetFile.MetaData.TablesStream.MethodTable;
var methodDef = peImage.MetaData.TablesStream.MethodTable;
for (uint rid = 1; rid <= methodDef.Rows; rid++) {
var dm = new DumpedMethod();
peImage.ReadMethodTableRowTo(dm, rid);
Expand Down
2 changes: 1 addition & 1 deletion de4dot.code/deobfuscators/Confuser/MethodsDecrypterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static byte[] GetStreamsBuffer(MyPEImage peImage) {
var memStream = new MemoryStream();
var writer = new BinaryWriter(memStream);
var reader = peImage.Reader;
foreach (var mdStream in peImage.DotNetFile.MetaData.AllStreams) {
foreach (var mdStream in peImage.MetaData.AllStreams) {
reader.Position = (long)mdStream.StartOffset;
writer.Write(reader.ReadBytes((int)(mdStream.EndOffset - mdStream.StartOffset)));
}
Expand Down

0 comments on commit eefa799

Please sign in to comment.