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));
|
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);
|
||||||
if (unpackedData == null)
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
if (unpackedData == null)
|
||||||
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user