Class CodeAnalyzerUtil

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.CodeAnalyzerUtil

public class CodeAnalyzerUtil extends Object
Utility methods for the generic code analyzer.
  • Constructor Details

    • CodeAnalyzerUtil

      public CodeAnalyzerUtil()
  • Method Details

    • checkBinaryPattern

      public static IBinaryPattern checkBinaryPattern(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax)
    • checkBinaryPattern

      public static IBinaryPattern checkBinaryPattern(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax, int patternSize, int processorMode)
      Convenience method to check if a given binary pattern verifier matches at the start of the given memory range.
      Parameters:
      analyzer -
      verifier -
      address -
      addressMax -
      patternSize - IBinaryPattern binary size restriction
      processorMode - processor mode restriction
      Returns:
      pattern if there is a match, null otherwise