Warn if unpacked data could not be loaded
This commit is contained in:
parent
fde811d183
commit
20a10c92ee
|
@ -178,15 +178,22 @@ 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;
|
||||||
try {
|
try {
|
||||||
var unpackedData = deob.unpackNativeFile(peImage);
|
unpackedData = deob.unpackNativeFile(peImage);
|
||||||
if (unpackedData == null)
|
if (unpackedData == null)
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
try {
|
||||||
module = assemblyModule.load(unpackedData);
|
module = assemblyModule.load(unpackedData);
|
||||||
this.deob = deob;
|
this.deob = deob;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
Log.w("Could not load unpacked data. Obfuscator: {0}", deob.TypeLong);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user