PE Malware Detection Using P-Code Backward Slicing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current malware detection methods for portable executable (PE) files are inefficient, requiring manual analysis and deep technical expertise, and existing automated methods lack accuracy and resource efficiency.

Innovation Solution

A system and method for malware detection using backward program slicing with P-code emulation, involving decompiling PE files into P-code, extracting predetermined variables, tracking them backward to their sources, and determining malicious indicators through constant values and API calls, with database matching for pattern recognition.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manual analysis is used to verify PE files for malicious activities, then detection accuracy is improved, but time consumption and resource requirements increase significantly

Engineering Contradiction:
Improvedetection accuracyVSAvoidtime consumption
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent introduces an intermediary automated analysis system that acts as a mediator between manual analysis and simple signature matching. This system uses decompilation, data flow analysis, and variable tracking to automatically detect malicious activities with high accuracy, eliminating the need for time-consuming manual analysis while maintaining detection precision.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the mechanical manual analysis process with an automated computational system. The system uses computer-based decompilation, data flow analysis, and variable tracking to perform malware detection automatically, substituting human experts' manual work with automated mechanical processes that are both accurate and efficient.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Use of energy by moving object

If simple signature matching methods are used for malware detection, then resource consumption is reduced, but detection accuracy decreases

Engineering Contradiction:
Improveresource consumptionVSAvoiddetection accuracy
Core Design Contradiction:
Use of energy by moving objectVSMeasurement precision

Solution Approach 1:

The patent extracts only the critical and relevant variables from the decompiled PE file that are potentially malicious, rather than analyzing the entire file or using resource-intensive comprehensive analysis. This selective extraction of suspicious variables enables efficient resource usage while maintaining high detection accuracy through focused analysis of malicious indicators.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If sandbox analysis is used for malware detection, then detection capability is improved, but resource requirements and processing time increase

Engineering Contradiction:
Improvedetection capabilityVSAvoidresource requirements
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts and analyzes only the essential variables and data flow paths that indicate malicious behavior, rather than performing comprehensive sandbox analysis that requires extensive resources. This selective approach maintains detection capability by focusing on critical malicious indicators while significantly reducing resource requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

4Productivity

If automated analysis systems are implemented for PE files, then productivity increases, but system complexity increases

Engineering Contradiction:
Improveprocessing throughputVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the malware detection process into distinct modular stages: decompilation, data flow analysis, variable extraction, and malicious activity detection. Each stage handles a specific aspect of the analysis, which improves processing throughput through efficient pipeline execution while managing system complexity by organizing functions into separate, manageable modules.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12536281B1Systems and methods for malware detection in portable executable files
Publication Date: 2026.01.27 MORGAN STANLEY SERVICES GROUP INC
  • US12536281B1 patent drawing
  • US12536281B1 patent drawing
  • US12536281B1 patent drawing

AI summary

Systems and methods for detecting malware in portable executable (PE) files is provided. A PE file can be received by a server, the PE file can be decompiled into p-code, and one or more predetermined variables can be extracted from the p-code, where the one or more predetermined variables are potentially malicious. The one or more predetermined variables can be backward to its respective source and constant values found in the one or more predetermined variables can be extracted. The constant values can indicate the PE file as malware and preventing the PE file from being executed.