Three tiers. Exact PE fingerprints, then fuzzy byte similarity, then function-level code similarity.
Which tier answers which question
| Question | Tier | Methods | Cost |
|---|---|---|---|
| Were these files built with the same toolchain, importing the same APIs, or are they the same file re-signed? | 1 · Fast fingerprints | Rich hash, imphash, Authentihash | Seconds, exact match |
| Do these files share large parts of their bytes? | 2 · Fuzzy similarity | ssdeep, TLSH | Seconds, similarity score |
| Do these samples share functions, across a whole collection? | 3 · Code similarity | MCRIT | Disassembly and an index |
| What exactly changed between these two builds? | 3 · Code similarity | BinDiff | Disassembly of both, then graph matching |
Tier 1 — Fast fingerprints
Each fingerprint hashes one structure of the PE file.
Tier 2 — Fuzzy similarity
Fuzzy hashes give a score. Two files that differ by a few bytes still score close.
Tier 3 — Advanced code similarity
Code similarity works on disassembled functions. It survives recompilation and small code changes that break every byte-level hash.
References
- ssdeep project: https://ssdeep-project.github.io/ssdeep/
- TLSH, Trend Micro: https://github.com/trendmicro/tlsh
- MCRIT, Daniel Plohmann: https://github.com/danielplohmann/mcrit
- BinDiff: https://github.com/google/bindiff
- Microsoft, "PE Format": https://learn.microsoft.com/en-us/windows/win32/debug/pe-format


