This repository was archived by the owner on Dec 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
de4dot.code/deobfuscators/Eazfuscator_NET Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class StringDecrypter : IDisposable {
47
47
EfConstantsReader stringMethodConsts ;
48
48
bool isV32OrLater ;
49
49
bool isV50OrLater ;
50
+ bool isV51OrLater ;
50
51
int ? validStringDecrypterValue ;
51
52
DynamicDynocodeIterator dynocode ;
52
53
MethodDef realMethod ;
@@ -429,11 +430,7 @@ static Local GetFlagsLocal(MethodDef method, int index) {
429
430
return null ;
430
431
if ( instrs [ index ++ ] . OpCode . Code != Code . Ldc_I4_0 )
431
432
return null ;
432
- if ( instrs [ index ++ ] . OpCode . Code != Code . Ceq )
433
- return null ;
434
- if ( instrs [ index ++ ] . OpCode . Code != Code . Ldc_I4_0 )
435
- return null ;
436
- if ( instrs [ index ++ ] . OpCode . Code != Code . Ceq )
433
+ if ( instrs [ index ++ ] . OpCode . Code != Code . Cgt_Un )
437
434
return null ;
438
435
var stloc = instrs [ index ++ ] ;
439
436
if ( ! stloc . IsStloc ( ) )
@@ -720,8 +717,8 @@ bool EmulateDynocode(InstructionEmulator emu, ref int index) {
720
717
721
718
if ( index + 4 >= instrs . Count )
722
719
return false ;
723
- var ldloc = instrs [ index + 3 ] ;
724
- var stfld = instrs [ index + 4 ] ;
720
+ var ldloc = instrs [ index + 2 ] ;
721
+ var stfld = instrs [ index + 3 ] ;
725
722
if ( ! ldloc . IsLdloc ( ) || stfld . OpCode . Code != Code . Stfld )
726
723
return false ;
727
724
var enumerableField = stfld . Operand as FieldDef ;
You can’t perform that action at this time.
0 commit comments