Pattern16
The fastest x86-64 signature matching library.
Install / Use
/learn @Dasaav-dsv/Pattern16README
Pattern16
The fastest x86-64 signature matching library.
Features:
- Faster than the fastest existing scanners by ~50%, with reliable singlethreaded speeds up to 25 GB/s for consecutive scans
- Aids reverse engineering by targeting assembly bytecode
- Designed and optimized for x86-64, with 32-bit support planned
- Support for all new (and old) CPU features
- Uses AVX1, SSE4.1, SSE2, CMOVE in order of availability, BMI2 and BMI1 (with fill-in functions)
- Header only, written in modern C++
Usage:
Include Pattern16.h and provide the address of a memory region's start, its length and the signature to search for formatted as a string:
#include "Pattern16.h"
void* regionStart = (void*)0x140000000;
size_t regionSize = 0x4000000;
std::string signature = "00 11 ?? ?? ?? ?? 66 77 [?1?0??01] 99 AA BB C? ?D EE FF";
void* address = Pattern16::find(regionStart, regionSize, signature);
Pattern16 signature rules:
- All byte values are represented in base16/hexadecimal notation
- Space characters
are ignored completely even inside bit masks, so use them for formatting - Symbols other than
0123456789ABCDEFabcdef[]are wildcards and can stand in for any byte or bit - A sequence of symbols within sqare brackets
[]represents a bit field. Don't forget there are 8 bits in a byte! - Bits inside a bitfield can be masked with wildcard symbols
- A bitfield does not have to be limited to a single byte,
[01xx1100 xxx11xx0]is a legal 2-byte masked bitfield
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
