Update the code

This commit is contained in:
de4dot 2011-11-30 20:27:49 +01:00
parent 2174011a35
commit 2f58cea471

View File

@ -179,24 +179,24 @@ namespace de4dot {
var peImage = new PeImage(Utils.readFile(Filename)); var peImage = new PeImage(Utils.readFile(Filename));
foreach (var deob in deobfuscators) { foreach (var deob in deobfuscators) {
byte[] unpackedData; byte[] unpackedData = null;
try { try {
unpackedData = deob.unpackNativeFile(peImage); unpackedData = deob.unpackNativeFile(peImage);
}
catch {
}
if (unpackedData == null) if (unpackedData == null)
continue; continue;
}
catch {
continue;
}
try { try {
module = assemblyModule.load(unpackedData); module = assemblyModule.load(unpackedData);
this.deob = deob;
return true;
} }
catch { catch {
Log.w("Could not load unpacked data. Obfuscator: {0}", deob.TypeLong); Log.w("Could not load unpacked data. Deobfuscator: {0}", deob.TypeLong);
continue; continue;
} }
this.deob = deob;
return true;
} }
return false; return false;