MCPcopy Index your code
hub / github.com/WerWolv/ImHex-Patterns

github.com/WerWolv/ImHex-Patterns @ImHex-v1.38.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release ImHex-v1.38.1 ↗ · + Follow
16 symbols 46 edges 8 files 0 documented · 0% updated 13d agoImHex-v1.38.1 · 2025-12-21★ 97936 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ImHex Database

This repository serves as a database for files to use with the ImHex Hex Editor. It currently contains

  • Patterns - Binary Format definitions for the Pattern Language
  • Pattern Libraries - Libraries that make using the Pattern Language easier
  • Magic Files - Custom magic file definitions for the use with libmagic
  • Encodings - Custom encodings in the .tbl format
  • Data Processor Nodes - Custom nodes made for ImHex's Data Processor
  • Themes - Custom themes for ImHex
  • Constants - Constants definition files
  • Scripts - Various scripts to generate code or automate some tasks
  • Yara - Custom Yara rules

Submissions

Most files in this repository have been submitted by the community. Please feel free to open a PR on your own and add files to it! Everything will immediately show up in ImHex's Content Store and gets bundled with the next release of ImHex.

Table of Contents

Hex Patterns

Name MIME Path Description
3DS patterns/3ds.hexpat Autodesk 3DS Max Model file
7Z patterns/7z.hexpat 7z File Format
ADTFDAT patterns/adtfdat.hexpat ADTFDAT files
ADTS audio/x-hx-aac-adts patterns/adts.hexpat ADTS/AAC audio files
AFE2 patterns/afe2.hexpat Nintendo Switch Atmosphère CFW Fatal Error log
ANI application/x-navi-animation patterns/ani.hexpat Windows Animated Cursor file
APFS patterns/fs/apfs.hexpat Apple File Ssytem (APFS)
AppleSingle application/applefile patterns/apple_single_double.hexpat AppleSingle Dual Fork file
AppleDouble multipart/appledouble patterns/apple_single_double.hexpat AppleDouble Resource Fork/Finder Metadata file
AR application/x-archive patterns/ar.hexpat Static library archive files
ARC patterns/arc.hexpat Minecraft Legacy Console Edition ARC files
ARIA2 patterns/aria2.hexpat ARIA2 Download Manager Control files
ARM VTOR patterns/arm_cm_vtor.hexpat ARM Cortex M Vector Table Layout
Assassin's Creed: Unity patterns/AC Unity Assassin's Creed: Unity archive files -- .forge & .data (compressed and decompressed) --
Bastion patterns/bastion/* Various Bastion files
BeyondCompare BCSS patterns/bcss.hexpat BeyondCompare Snapshot (BCSS) file
Bencode application/x-bittorrent patterns/bencode.hexpat Bencode encoding, used by Torrent files
Prusa BGCODE patterns/bgcode.hexpat PrusaSlicer Binary G-Code files
BLEND patterns/blend.hexpat Blender Project file
BLF patterns/blf.hexpat Vector BLF Frame Logging Files
BMP image/bmp patterns/bmp.hexpat OS2/Windows Bitmap files
BIN patterns/selinux.hexpat SE Linux modules
BINKA patterns/binka.hexpat RAD Game Tools Bink Audio (BINKA) files
BSON application/bson patterns/bson.hexpat BSON (Binary JSON) format
bplist application/x-bplist patterns/bplist.hexpat Apple's binary property list format (bplist)
BSP patterns/bsp_goldsrc.hexpat GoldSrc engine maps format (used in Half-Life 1)
BZIP3 patterns/bzip3.hexpat Parses BZip3 compression (file format) by Kamila Szewczyk
CAB patterns/cab.hexpat Microsoft Cabinet (CAB) Files
CCHVA patterns/cchva.hexpat Command and Conquer Voxel Animation
CCVXL patterns/ccvxl.hexpat Command and Conquer Voxel Model
CCPAL patterns/ccpal.hexpat Command and Conquer Voxel Palette
CDA patterns/cda.hexpat Compact Disc Audio track
CHD patterns/chd.hexpat MAME Compressed Hunks of Data file
CHM application/vnd.ms-htmlhelp patterns/chm.hexpat Windows HtmlHelp Data (ITSF / CHM)
COFF application/x-coff patterns/coff.hexpat Common Object File Format (COFF) executable
CPIO application/x-cpio patterns/cpio.hexpat Old Binary CPIO Format
CrashLvl patterns/Crashlvl.hexpat Crash Bandicoot - Back in Time (fan game) User created level format
CREDHIST patterns/credhist.hexpat CREDHIST Format
DDS image/vnd-ms.dds patterns/dds.hexpat DirectDraw Surface
DEX patterns/dex.hexpat Dalvik EXecutable Format
Devil May Cry HD Collection patterns/Devil May Cry HD Collection 3D Model files used in Devil May Cry 3 HD Collection
DICOM application/dicom patterns/dicom.hexpat DICOM image format
DISK_PARSER (DFIR) application/x-ima patterns/DFIR/DISK_PARSER.hexpat Recursive Disk/Volume/Filesystem parsing
DMG patterns/dmg.hexpat Apple Disk Image Trailer (DMG)
DMP patterns/dmp64.hexpat Windows Kernel Dump(DMP64)
DOS application/x-dosexec patterns/dos.hexpat 16-bit real mode DOS EXE files
DOTNET_BinaryFormatter patterns/dotnet_binaryformatter.hexpat .NET BinaryFormatter
DPAPI_Blob patterns/dpapblob.hexpat Data protection API Blob File Format
DPAPI_MasterKey patterns/dpapimasterkey.hexpat Data protection API MasterKey
DS_Store patterns/dsstore.hexpat .DS_Store file format
DTA patterns/max_v104.hexpat Mechanized Assault and Exploration v1.04 (strategy game) save file format
DTED patterns/dted.hexpat Digital Terrain Elevation Data (DTED)
ELF application/x-executable patterns/elf.hexpat ELF header in elf binaries
ESP32 Image patterns/esp32_image.hexpat Firmware image format for the ESP32 chip family
EVTX application/x-ms-evtx patterns/evtx.hexpat MS Windows Vista Event Log
EXFAT patterns/fs/exfat.hexpat Extensible File Allocation Table (exFAT)
EXFAT (DFIR) patterns/DFIR/exFAT.hexpat Imported by DISK_PARSER.hexpat
EXT4 patterns/fs/ext4.hexpat Ext4 File System
FAS patterns/fas_oskasoftware.hexpat patterns/fas_oskasoftware_old.hexpat (Old versions of Oska DeskMate) Oska Software DeskMates FAS (Frames and Sequences) file
FAT32 patterns/fs/fat32.hexpat FAT32 File System
FAT32 (DFIR) patterns/DFIR/FAT32.hexpat Imported by DISK_PARSER.hexpat
FBX patterns/fbx.hexpat Kaydara FBX Binary
FDT patterns/fdt.hexpat Flat Linux Device Tree blob
FFX patterns/ffx/* Various Final Fantasy X files
File System application/x-ima patterns/fs/pattern.hexpat Drive File System
FLAC audio/flac patterns/flac.hexpat Free Lossless Audio Codec, FLAC Audio Format
FLC/FLIC patterns/flc.hexpat FLC/FLIC animation file
FLV patterns/flv.hexpat FLv animation file
Flipper Zero Settings patterns/flipper_settings.hexpat Flipper Zero Settings Files
GB application/x-gameboy-rom patterns/gb.hexpat Game Boy ROM
GBA application/x-gameboy-advance-rom patterns/gba.hexpat Game Boy Advance ROM header
GGUF patterns/gguf.hexpat GGML Inference Models
GIF image/gif patterns/gif.hexpat GIF image files
GLTF model/gltf-binary patterns/gltf.hexpat GL Transmission Format binary 3D model file
GZIP application/gzip patterns/gzip.hexpat GZip compressed data format
Halo Tag patterns/hinf_tag.hexpat Halo Infinite Tag Files
Halo Module patterns/hinf_module.hexpat Halo Infinite Module Archive Files
Halo HavokScript patterns/hinf_luas.hexpat Halo Infinite HavokScript 5.1 Bytecode
HPROF patterns/hprof.hexpat Java HPROF Profiler Data Format
HSDT patterns/hsdt.hexpat HiSilicon device-tree table images
ICO patterns/ico.hexpat Icon (.ico) or Cursor (.cur) files
ID3 audio/mpeg patterns/id3.hexpat ID3 tags in MP3 files
IM*H patterns/imah.hexpat DJI Signed Firmware (IM*H)
Intel HEX patterns/intel_hex.hexpat Intel hexadecimal object file format definition
IP patterns/ip.hexpat Ethernet II Frames (IP Packets)
IPS patterns/ips.hexpat IPS (International Patching System) files
ISO application/x-iso9660-image patterns/iso.hexpat ISO 9660 file system
Java Class application/x-java-applet patterns/java_class.hexpat Java Class files
JPEG image/jpeg patterns/jpeg.hexpat JPEG Image Format
Kindle Update patterns/kindle_update.hexpat Kindle Update Package
KTX image/ktx patterns/ktx.hexpat Khronos TeXture 1.0
LOC patterns/loc.hexpat Minecraft Legacy Console Edition Language file
Lua 4.0 patterns/lua40.hexpat Lua 4.0 bytecode
LUC patterns/popcap_luc.hexpat PopCap's proprietary Lua bytecode
Lua 5.1 patterns/lua51.hexpat Lua 5.1 bytecode
Lua 5.2 patterns/lua52.hexpat Lua 5.2 bytecode
Lua 5.3 patterns/lua53.hexpat Lua 5.3 bytecode
Lua 5.4 patterns/lua54.hexpat Lua 5.4 bytecode
LCE Savefile patterns/lcesave.hexpat Minecraft Legacy Console Edition save file
LZNT1 patterns/lznt1.hexpat LZNT1 compressed data format
Mach-O application/x-mach-binary patterns/macho.hexpat Mach-O executable
MIDI audio/midi patterns/midi.hexpat MIDI header, event fields provided
MiniDump application/x-dmp patterns/minidump.hexpat Windows MiniDump files
MO patterns/mo.hexpat GNU Machine Object (MO) files containing translations for gettext
mp4 video/mp4 patterns/mp4.hexpat MPEG-4 Part 14 digital multimedia container format
msgpack application/x-msgpack patterns/msgpack.hexpat MessagePack binary serialization format
MSSCMP patterns/msscmp.hexpat Miles Sound System Compressed Archive
NACP patterns/nacp.hexpat Nintendo Switch NACP files
NBT patterns/nbt.hexpat Minecraft NBT format
NDS application/x-nintendo-ds-rom patterns/nds.hexpat DS Cartridge Header
NE application/x-ms-ne-executable patterns/ne.hexpat NE header and Standard NE fields
nes patterns/nes.hexpat Nintendo Entertainment System ROM
NSF patterns/nsf.hexpat NES Sound Format
NSFe patterns/nsfe.hexpat NES Sound Format extended
NotepadCache patterns/notepad-cache.hexpat Windows Notepad Cache
NotepadStateFile patterns/notepad-state.hexpat Windows Notepad .bin State files
NotepadWindowState patterns/notepadwindowstate.hexpat Windows 11 Notepad

Core symbols most depended-on inside this repo

add_line
called by 8
scripts/ksy2pat.py
fixTypeName
called by 5
scripts/ksy2pat.py
extractData
called by 2
scripts/extract_legacy_hexproj.py
handle_types
called by 2
scripts/ksy2pat.py
validatePatternValues
called by 2
tests/patterns/source/main.cpp
main
called by 1
scripts/extract_legacy_hexproj.py
sortchildrenby
called by 1
scripts/svd2pat.py
handle_meta_xref
called by 1
scripts/ksy2pat.py

Shape

Function 16

Languages

Python75%
C++25%

Modules by API surface

scripts/ksy2pat.py9 symbols
tests/patterns/source/main.cpp2 symbols
scripts/extract_legacy_hexproj.py2 symbols
tests/magic/source/main.cpp1 symbols
tests/includes/source/main.cpp1 symbols
scripts/svd2pat.py1 symbols

For agents

$ claude mcp add ImHex-Patterns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page