Update the code
This commit is contained in:
parent
2174011a35
commit
2f58cea471
|
@ -179,24 +179,24 @@ namespace de4dot {
|
|||
var peImage = new PeImage(Utils.readFile(Filename));
|
||||
|
||||
foreach (var deob in deobfuscators) {
|
||||
byte[] unpackedData;
|
||||
byte[] unpackedData = null;
|
||||
try {
|
||||
unpackedData = deob.unpackNativeFile(peImage);
|
||||
if (unpackedData == null)
|
||||
continue;
|
||||
}
|
||||
catch {
|
||||
continue;
|
||||
}
|
||||
if (unpackedData == null)
|
||||
continue;
|
||||
|
||||
try {
|
||||
module = assemblyModule.load(unpackedData);
|
||||
this.deob = deob;
|
||||
return true;
|
||||
}
|
||||
catch {
|
||||
Log.w("Could not load unpacked data. Obfuscator: {0}", deob.TypeLong);
|
||||
Log.w("Could not load unpacked data. Deobfuscator: {0}", deob.TypeLong);
|
||||
continue;
|
||||
}
|
||||
this.deob = deob;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user