[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDSYG6RTFRK8E5Z82K9EQ6":3,"skill-same:01M7EDSYG6RTFRK8E5Z82K9EQ6":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7EDSYG6RTFRK8E5Z82K9EQ6","x64dbg-mcp-server",null,"lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fx64dbg-mcp-server\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# x64dbg Reverse Engineering — MCP Workflow Guide\n\nYou are controlling x64dbg through MCP tools.\n\n**Transport matters:**\n- **SSE clients** receive push notifications for debugger events (breakpoints, exceptions, state changes) in real time.\n- **HTTP clients** must poll — call `WaitForEvent` to long-poll for events, or read the `[state]` and `[event:*]` lines included in every tool response.\n\nTreat every assumption about debugger state as stale until verified by a tool response.\n\n---\n\n## Rule 1: Always Know Your State\n\n**Before every action**, call `GetDebugState`. No exceptions.\n\n- `NO_TARGET` — nothing loaded. Use `LoadBinary` or `AttachProcess` first.\n- `PAUSED` — target is stopped. You can read memory, disassemble, inspect registers.\n- `RUNNING` — target is executing. You CANNOT read memory, disassemble, or inspect anything. Call `WaitForPause` or `PauseDebug` first.\n\nEvery tool response includes a `[state]` line at the end showing the current debugger status — PAUSED with address\u002Fmodule\u002Finstruction, RUNNING, or NO_TARGET. Always read it. This is your primary state awareness mechanism.\n\nEvery tool response may also include `[event:*]` lines — queued debugger events (breakpoints hit, exceptions, DLL loads) that occurred since your last call. Always read these too.\n\nIf the user says \"paused\", \"hit breakpoint\", \"stopped\", or \"debugger is paused\" — immediately call `GetDebugState` to see where you are. Do not guess.\n\n---\n\n## Rule 2: Never Assume State Between Calls\n\nMCP is request\u002Fresponse. Between your tool calls, anything can happen — breakpoints can hit, exceptions can fire, the user can interact with the debugger. Every time you are about to act, verify first.\n\nBad:\n```\nSetBreakpoint → run → Disassemble  (wrong: run blocks but verify anyway)\n```\n\nGood:\n```\nGetDebugState → SetBreakpoint → run → GetDebugState → Disassemble\n```\n\n---\n\n## Rule 3: Core Workflows\n\n### Load and analyze a binary\n```\nGetDebugState\nLoadBinary (path)\nWaitForPause            — target pauses at system breakpoint\nGetDebugState           — confirm PAUSED, note the address\nGetAllRegisters         — see initial state\nListModules             — see what's loaded\nDisassemble             — look at current code\n```\n\n### Set breakpoint and run to it\n```\nGetDebugState           — must be PAUSED\nSetBreakpoint (target)  — set the BP\nrun                     — blocks until target pauses (5-min timeout)\nGetDebugState           — confirm PAUSED, check address\nDisassemble             — see where we landed\nGetAllRegisters         — inspect state\n```\n\n### Step through code\n```\nGetDebugState           — must be PAUSED\nStepOver                — response includes new address + disassembly\n                        — read the response carefully before next step\nStepOver                — keep stepping, reading each response\nGetAllRegisters         — check registers when needed\nGetCallStack            — check call context when needed\n```\n\n### Find and hook an API call\n```\nSearchSymbols (pattern) — find the API across all modules\nSetBreakpoint (address) — break on it\nrun                     — blocks until BP hits\nGetDebugState\nGetArguments            — read function arguments\nGetCallStack            — see who called it\n```\n\n### Trace execution\n```\nGetDebugState           — must be PAUSED\nTraceInto (count)       — step N instructions, get address + disasm log\nGetDebugState           — see where we ended up\n```\n\n### Unpack a binary\n```\nLoadBinary → WaitForPause → GetDebugState\nAnalyzeModule           — check sections, EP, image size\nDetectOEP               — look for packing indicators (RWX sections, zero raw sizes)\nSetHardwareBreakpoint   — on suspected OEP or after unpacking stub\nrun → GetDebugState     — run blocks until pause\nDumpModule              — dump the unpacked module\n```\n\n### Patch memory\n```\nGetDebugState           — must be PAUSED\nDisassemble (address)   — see current bytes\nWriteMemToAddress       — patch with new bytes\nDisassemble (address)   — verify the patch\nGetPatches              — see all active patches\n```\n\n### Monitor while user interacts with GUI (HTTP only)\n```\nWaitForEvent (timeoutMs: 120000)  — long-poll up to 2 minutes\n                                  — returns any events that fired\nGetDebugState                     — check where we are now\nWaitForEvent (timeoutMs: 120000)  — keep watching\n```\n\n---\n\n## Rule 4: All 84 Tools Reference\n\nEvery tool response includes a `[state]` line showing current debugger status and any `[event:*]` lines with queued events. You always know where you are.\n\n### State & Control (always available)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `GetDebugState` | — | Current state (NO_TARGET\u002FRUNNING\u002FPAUSED), PID, address, module |\n| `LoadBinary` | `filePath` | Load an executable into the debugger |\n| `AttachProcess` | `pid` | Attach to a running process by PID |\n| `run` | `timeoutMs?` (default 300000) | Resume execution (F9). Blocks until target pauses or timeout |\n| `PauseDebug` | — | Pause the target (F12) |\n| `WaitForPause` | `timeout?` (ms, default 10000) | Block until target pauses (breakpoint\u002Fexception) |\n| `StopDebug` | — | Terminate debug session |\n| `RestartDebug` | — | Restart debug session |\n| `ExecuteDebuggerCommand` | `command` | Run any x64dbg command string. Blocks if target becomes RUNNING |\n| `EvalExpression` | `expression` | Evaluate expression (address, register, symbol, arithmetic) |\n| `Echo` | `message` | Echo input back (connectivity test) |\n| `ListCommandsByCategory` | `category?` | List available MCP tools |\n| `SearchForStrings` | `searchText` | Search process memory for text |\n| `GetEventLog` | `count?` (default 20) | Last N debugger events |\n| `ClearEventLog` | — | Clear the event log |\n| `WaitForEvent` | `timeoutMs?` (default 30000) | Long-poll for debugger events. For HTTP clients to watch state changes |\n\n### Stepping (requires PAUSED)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `StepInto` | — | Single-step into calls (F7). Returns new address + disassembly |\n| `StepOver` | — | Step over calls (F8). Returns new address + disassembly |\n| `StepOut` | — | Run until return (Ctrl+F9). Returns new address + disassembly |\n| `RunToAddress` | `address` | Run until hitting a specific address |\n| `TraceInto` | `count` | Step N instructions recording address + disassembly for each |\n| `TraceOver` | `count` | Trace N instructions stepping OVER calls |\n\n### Breakpoints (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `SetBreakpoint` | `target` (address or symbol) | Set INT3 breakpoint |\n| `SetHardwareBreakpoint` | `address`, `type` (r\u002Fw\u002Fx), `size?` | Set hardware BP (DR0-DR3) |\n| `SetConditionalBreakpoint` | `address`, `condition`, `log?` | Set BP with condition expression |\n| `SetMemoryBreakpoint` | `address`, `type` (r\u002Fw\u002Fx), `singleshoot?` | Set memory breakpoint |\n| `SetExceptionBreakpoint` | `exceptionCode`, `chance` (1\u002F2\u002F3), `action` | Configure exception BP (break\u002Fignore) |\n| `DeleteExceptionBreakpoint` | `exceptionCode` | Delete an exception breakpoint |\n| `EnableBreakpoint` | `address` | Enable a breakpoint |\n| `DisableBreakpoint` | `address` | Disable without deleting |\n| `ToggleBreakpoint` | `address` | Toggle enabled\u002Fdisabled |\n| `DeleteBreakpoint` | `target` | Remove a breakpoint |\n| `DeleteAllBreakpoints` | — | Remove all BPs (normal, hardware, memory) |\n| `ResetHitCount` | `address` | Reset a BP's hit counter to zero |\n| `ListBreakpoints` | — | List all active breakpoints |\n| `SetBreakpointCommand` | `address`, `command` | Run x64dbg command on BP hit |\n| `SetBreakpointFastResume` | `address`, `enable` | Auto-resume on BP hit |\n\n### Disassembly & Code (requires PAUSED)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `Disassemble` | `address?`, `count?` (default 16) | Disassemble N instructions |\n| `DisassembleFunction` | `address?` | Disassemble entire function (needs analysis first) |\n| `GetCurrentAddress` | — | Current EIP\u002FRIP with label and comment |\n| `GetFunctions` | `module?` | List analyzed functions with addresses |\n| `GetReferences` | `address` | Find CALL\u002FJMP xrefs to target address |\n| `Assemble` | `address`, `instruction` | Assemble an instruction at address |\n\n### Registers & Stack (requires PAUSED)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `GetAllRegisters` | — | Dump all general-purpose registers |\n| `SetRegister` | `register`, `value` | Set a CPU register value |\n| `GetCallStack` | — | Current thread call stack |\n| `GetArguments` | `count?` | Read function arguments from stack\u002Fregisters |\n| `WatchExpressions` | `expressions` (array) | Evaluate multiple expressions in one call |\n| `FollowPointer` | `address`, `depth?` | Dereference pointer chain N levels deep |\n\n### Memory (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `ReadMemory` | `address`, `size?` (default 64) | Hex dump of process memory |\n| `WriteMemToAddress` | `address`, `bytes` (hex) | Patch memory with hex bytes |\n| `AllocateMemory` | `size` | Allocate memory in target process |\n| `FreeMemory` | `address` | Free allocated memory |\n| `GetMemoryMap` | — | Memory regions with addresses, sizes, protection |\n| `GetDumpableRegions` | — | List committed, readable memory regions |\n| `FindPattern` | `pattern`, `module?` | Scan for byte pattern with ?? wildcards |\n| `GetPatches` | — | List all memory patches |\n| `RestorePatches` | — | Restore all patches to original bytes |\n| `DumpMemory` | `address`, `size`, `filePath` | Save memory region to file |\n\n### Modules & Symbols (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `ListModules` | — | List loaded modules with base addresses and sizes |\n| `GetImports` | `module?` | Show module import table |\n| `GetExports` | `module?` | Show module export table |\n| `SearchSymbols` | `pattern` | Search for symbols matching pattern across all modules |\n| `ListSymbols` | `module` | List exported symbols of a specific module |\n| `GetStrings` | `module?` | Extract ASCII strings from module memory |\n\n### Analysis (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `AnalyzeModule` | `module?` | PE structure: sections, EP, image size, characteristics |\n| `AnalyzeCode` | `address?`, `type` (function\u002Fmodule\u002Fcontrolflow) | Run code analysis |\n| `DetectOEP` | `module?` | Detect Original Entry Point for packed executables |\n| `DumpModule` | `module`, `filePath` | Dump entire module to file |\n| `GetPEB` | — | Read Process Environment Block fields |\n| `GetSEHChain` | — | Walk Structured Exception Handler chain (x32) |\n| `SaveDatabase` | — | Save the x64dbg database (.dd64\u002F.dd32) |\n\n### Bookmarks & Comments (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `CommentOrLabelAtAddress` | `address`, `text`, `type` (comment\u002Flabel) | Add comment\u002Flabel in disassembly |\n| `SetBookmark` | `address` | Set a bookmark |\n| `DeleteBookmark` | `address` | Delete a bookmark |\n| `ListBookmarks` | — | List all bookmarks |\n\n### Threads (requires debug session)\n| Tool | Parameters | Description |\n|------|-----------|-------------|\n| `GetThreads` | — | List all threads with IDs and instruction pointers |\n| `SwitchThread` | `threadId` | Switch active thread context |\n| `SuspendThread` | `threadId` | Suspend a thread |\n| `ResumeThread` | `threadId` | Resume a suspended thread |\n\n---\n\n## Rule 5: Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Disassemble while target is RUNNING | `WaitForPause` or `PauseDebug` first |\n| Assume breakpoint was hit after `run` | `run` blocks now, but still `GetDebugState` after |\n| Forget to check state after user says \"paused\" | Immediately `GetDebugState` |\n| Read memory at wrong address | `EvalExpression` to resolve symbols first |\n| Use `DisassembleFunction` without analysis | `AnalyzeCode` with type=function first, or `ExecuteDebuggerCommand` with `analr \u003Caddress>` |\n| Set breakpoint on symbol without resolving | `SearchSymbols` or `EvalExpression` to get actual address |\n| Lose track of which binary is loaded | `GetDebugState` tells you, `ListModules` for full list |\n| Pass MCP tool name to `ExecuteDebuggerCommand` | Call the tool directly — `ExecuteDebuggerCommand` rejects MCP tool names |\n| Use `erun` to blindly pass all exceptions | Use `SetExceptionBreakpoint` for selective exception handling |\n| Go idle while user interacts with GUI | Call `WaitForEvent` with longer timeout (60-120s) to watch for events |\n\n---\n\n## Rule 6: Expression Evaluation\n\nUse `EvalExpression` to resolve anything:\n- Symbols: `kernel32:CreateFileA`, `ntdll:NtAllocateVirtualMemory`\n- Registers: `cip`, `rax`, `esp+4`, `[rsp+0x28]`\n- Arithmetic: `rax+0x10`, `modulebase+0x1000`\n- Labels: any label set with `CommentOrLabelAtAddress`\n\n---\n\n## Rule 7: Explain What You See\n\nWhen analyzing code, always tell the user:\n- What address and module you're looking at\n- What the instructions do in plain language\n- What the registers\u002Fstack suggest about arguments and state\n- What the call stack context means\n\nReference concrete addresses and module names — never say \"the current function\" without saying which one.\n\n---\n\n## Rule 8: Debugging GUI \u002F Message Loop Apps\n\nWhen the target is RUNNING in a message loop (waiting for user input, showing a dialog, sitting at a UI screen), `run` will time out because no breakpoint is being hit. Do NOT fall back to static file analysis — use the debugger properly.\n\nStrategies:\n- **PauseDebug** — pause the target at any time, inspect state, then resume. The app freezes briefly but you get full debugger access.\n- **Set API breakpoints before resuming** — breakpoint on APIs the app will call when the user interacts (e.g. `GetMessageA`, `SendMessageA`, `CreateFileA`, `ReadFile`, button handlers). The target pauses when the user triggers that code path.\n- **WaitForEvent with long timeout** — if the user is about to interact with the GUI, call `WaitForEvent(timeoutMs: 120000)` to watch for breakpoint hits or exceptions while they click around.\n- **SetBreakpointFastResume + SetBreakpointCommand** — for logging without pausing: set a BP with a log command and fast resume. The target keeps running while you collect data.\n- **Hardware breakpoints on data** — if you know which memory the app reads\u002Fwrites when the user acts, set a hardware BP on it. The target pauses when that memory is accessed.\n\nNever give up and read the binary file from disk. The debugger can always pause, inspect, and resume.\n",{},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Fx64dbg-mcp-server",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill x64dbg-mcp-server",{"tool":36,"command":37},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill x64dbg-mcp-server",{"tool":39,"command":40},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill x64dbg-mcp-server","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fx64dbg-mcp-server\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"README.md","REFERENCE","参考文档",13335,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fx64dbg-mcp-server\u002FREADME.md",[51,59,64,71,78,85],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":58},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":60,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":58},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":58},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":58},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":58},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":58},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]