Skip to content

Commit

Permalink
CryptoObfuscator: Improvements for ResourceDecrypter and AntiDebugger
Browse files Browse the repository at this point in the history
  • Loading branch information
etmatrix committed Feb 2, 2019
1 parent 8c5d2b0 commit ef59696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions de4dot.code/deobfuscators/CryptoObfuscator/AntiDebugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ bool Find(MethodDef methodToCheck) {
!ContainsString(method, "run with") &&
!ContainsString(method, "started under") &&
!ContainsString(method, "{0} detected") &&
!ContainsString(method, "{0} was found - this software cannot be executed") &&
!ContainsString(method, "{0} found"))
continue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ static IEnumerable<MethodDef> GetDecrypterMethods(TypeDef type) {
yield return method;
else if (DotNetUtils.IsMethod(method, "System.Byte[]", "(System.Char,System.IO.Stream)"))
yield return method;
else if (DotNetUtils.IsMethod(method, "System.Byte[]", "(System.Int64,System.Object)"))
yield return method;
}
}

Expand Down

0 comments on commit ef59696

Please sign in to comment.