Inline method
This commit is contained in:
parent
a3b052d15c
commit
48c7d40fb6
|
@ -497,30 +497,26 @@ namespace de4dot.code.deobfuscators.Eazfuscator_NET {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3.2 (Silverlight)
|
// 3.2+ (Silverlight)
|
||||||
if (findIntsSilverlight(method, ref initializedAll))
|
index = DeobUtils.indexOfLdci4Instruction(method, 268435314);
|
||||||
|
if (index >= 0) {
|
||||||
|
index--;
|
||||||
|
index = EfUtils.indexOfPreviousLdci4Instruction(method, index);
|
||||||
|
if (index < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
i1 = 0;
|
||||||
|
if (!EfUtils.getNextInt32(method, ref index, out i2))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// 3.2: true, 3.3+: false
|
||||||
|
initializedAll = method.Body.Instructions[index].OpCode.Code == Code.Stsfld;
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool findIntsSilverlight(MethodDefinition method, ref bool initializedAll) {
|
|
||||||
int index = DeobUtils.indexOfLdci4Instruction(method, 268435314);
|
|
||||||
if (index < 0)
|
|
||||||
return false;
|
|
||||||
index--;
|
|
||||||
index = EfUtils.indexOfPreviousLdci4Instruction(method, index);
|
|
||||||
if (index < 0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
i1 = 0;
|
|
||||||
if (!EfUtils.getNextInt32(method, ref index, out i2))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
initializedAll = method.Body.Instructions[index].OpCode.Code == Code.Stsfld;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool findIntsCctor(MethodDefinition cctor) {
|
bool findIntsCctor(MethodDefinition cctor) {
|
||||||
int index = 0;
|
int index = 0;
|
||||||
if (!findCallGetFrame(cctor, ref index))
|
if (!findCallGetFrame(cctor, ref index))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user