code optimization

From ema
Jump to navigation Jump to search
EMA ID: ema-1037
Description: Code optimized in various ways can be harder to statically analyze.


  • Call Optimization: Turn relative operands of jumps and calls into absolute (better compression). May confuse some basic block detection algorithms.
  • Minification: Per wikipedia, minification is 'the process of removing all unnecessary characters from source code without changing its functionality.' A simple example is when all the unecessary whitespace and comments are removed. This is distinguished from compression in that it neither adds to nor changes the code seen by the interpreter. Minification is often used for malware written in interpreted languages, such as JavaScript, PHP, or Python. Legitimate code that is transmitted many times a second, such as JavaScript on websites, often uses minification to simply reduce the number of bytes transmitted.

Associated Capabilities/Subcapabilities: Capability.png Anti-Static Analysis

Associated With code optimization
No results