Logo von Find Oep

Find Oep

Community
dariushoule
find-oep

Smart trace-based OEP finder for packed/protected PE executables. Traces through packer stubs using intelligent stepping, anti-debug evasion, and heuristic OEP detection, then captures a state snapshot at the original entry point.

Übersicht

Herausgeberdariushoule
Repositoryx64dbg-skills
Skill-Namefind-oep
Sterne
210
Forks
18
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von dariushoule auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Find Oep in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/dariushoule/x64dbg-skills/tree/main/skills/find-oep
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dariushoule/x64dbg-skills.git /tmp/x64dbg-skills
mkdir -p .claude/skills
cp -r /tmp/x64dbg-skills/skills/find-oep .claude/skills/find-oep
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Find Oep in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Find Oep automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Find Oep nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

find-oep

Smart trace-based OEP finder for packed/protected PE executables. Walks through unpacking stages using intelligent stepping, anti-debug evasion, and heuristic OEP detection. Once the OEP is found, captures a state snapshot for downstream use (PE reconstruction, analysis, etc.).

Instructions

1. Gather input and assess target

Ask the user (via AskUserQuestion) for any information not already provided:

  • Target path — absolute path to the packed PE on disk
  • x64dbg path — absolute path to x64dbg/x32dbg (if not already known)
  • Bitness — 64-bit or 32-bit (default: 64)

Determine the CIP register name: rip for 64-bit, eip for 32-bit. Determine the stack pointer register: rsp for 64-bit, esp for 32-bit. Determine the debugger variant: x64dbg.exe for 64-bit, x32dbg.exe for 32-bit.

2. Launch the debugger and load the target

Use mcp__x64dbg__start_session with:

  • executable_path: the packed PE path
  • x64dbg_path: the appropriate debugger binary

Always start a new session for a clean environment. Wait for the debugger to settle — call mcp__x64dbg__get_debugger_status and confirm the debuggee is paused at the entry point. If running, call mcp__x64dbg__pause.

Record the session PID and x64dbg path for later reconnection.

3. Initial reconnaissance

Gather information about the packed binary to inform the unpacking strategy:

  1. Capture entry state: Call mcp__x64dbg__get_all_registers to record the initial register state (especially the stack pointer — packers often restore it before jumping to OEP).
  2. Memory map: Call mcp__x64dbg__get_memory_map to identify the module's sections, their protections, and any suspicious characteristics (e.g., sections with write+execute, sections with zero raw size but large virtual size, non-standard section names).
  3. Entry point disassembly: Disassemble 50–100 instructions from the entry point using mcp__x64dbg__disassemble to identify the packer stub pattern.
  4. YARA scan: Invoke /yara-sigs via Skill("yara-sigs") to identify the packer and obvious crypto/anti-debug signatures.
    • You may rerun this YARA scan if the packer contains self-decrypting code that hides signatures until unpacked.

Summarize findings to the user:

  • Identified packer (if recognized)
  • Section layout and anomalies
  • Entry stub characteristics
  • Recommended unpacking strategy

4. Heuristic OEP discovery (core loop)

This is the main unpacking loop. The goal is to trace through the packer stub and identify when execution transfers to the original, unpacked code.

OEP Heuristics

The OEP is likely reached when several of these conditions align:

HeuristicDescription
Section transitionCIP moves from a packer section (e.g., .rsrc, .aspack, last section) into the original code section (usually .text or the first section)
Stack restorationESP/RSP returns to (or near) its initial value from step 3
Common OEP patternsDisassembly shows typical compiler entry sequences: push ebp; mov ebp, esp, sub rsp, N, call __security_init_cookie, MSVC/GCC/Delphi/Borland CRT init patterns
Large code regionAfter writes settle, a large contiguous region of valid-looking code exists in the original code section
IAT populatedThe import table region contains valid pointers to API functions
Stepping strategy
  1. Start at the packed entry point. Disassemble the current location.

  2. Identify the current phase:

    • Decode loop: Repetitive instruction patterns (xor, mov byte, loop/dec+jnz). Set a breakpoint after the loop (on the first instruction following the loop exit) and go. If you cannot determine the loop exit, use mcp__x64dbg__trace_over with a break_condition that detects leaving the loop (e.g., a CIP range check).
    • API resolution: Calls to GetProcAddress, LoadLibrary*, hash-based API resolution. Step over these — they are building the IAT.
    • Anti-debug check: See step 6 for detection and evasion.
    • Inter-module call: Calls into system DLLs. Step over unless they appear suspicious.
    • Tail jump / OEP transfer: A jmp or push+ret that lands in a different section — potential OEP. Verify with the heuristics above.
    • Multi-stage transition: Decoded stub that itself decodes another layer. Repeat the process.
  3. When in a repetitive region (same addresses appearing repeatedly):

    • Use mcp__x64dbg__trace_over with a break_condition like cip < <loop_start> || cip > <loop_end> to escape the loop efficiently.
    • Alternatively, identify the loop counter and set a conditional breakpoint: mcp__x64dbg__set_breakpoint with an appropriate condition.
  4. At each significant transition, disassemble 20–30 instructions at the new location, check the memory section it belongs to, and evaluate the OEP heuristics.

  5. Label and comment key addresses as you go: decode loop entries, API resolution routines, anti-debug checks, stage transitions, and the final OEP. Use mcp__x64dbg__set_comment and mcp__x64dbg__set_label.

5. Anti-debug detection and evasion

Packers frequently employ anti-debug techniques. When you encounter them, work around them to simulate non-debugged execution:

TechniqueDetectionEvasion
IsDebuggerPresentCall to kernel32.IsDebuggerPresent or direct PEB.BeingDebugged readStep to the call, then set eax/rax to 0 after it returns (mcp__x64dbg__set_register)
NtQueryInformationProcess (DebugPort)Call with class 0x7Step over the call, then zero the output buffer (mcp__x64dbg__write_memory)
PEB.BeingDebuggedDirect memory read of fs:[30]+2 (x86) or gs:[60]+2 (x64)Write 0x00 to the BeingDebugged byte in the PEB (mcp__x64dbg__write_memory). Find PEB address via mcp__x64dbg__eval_expression with peb().
PEB.NtGlobalFlagRead of PEB+0x68 (x86) or PEB+0xBC (x64)Write 0x00000000 to clear debug flags
Heap flagsPEB.ProcessHeap flags checkPatch the heap flags to remove debug indicators
Timing checksrdtsc, GetTickCount, QueryPerformanceCounterStep over the first call, note the result, step over the second, then patch the result to show minimal elapsed time
Hardware breakpoint detectionGetThreadContext / direct DR register readsClear debug registers before the check or patch the return values
INT 2D / INT 3 tricksException-based anti-debugSet the appropriate exception handler breakpoint and ensure execution continues as if no debugger is present
Self-checksumCRC/hash of code regions (detects software breakpoints)Use hardware breakpoints instead of software breakpoints in checksummed regions

This list is not exhaustive. Always analyze the disassembly to understand the anti-debug technique being used and apply the appropriate evasion.

When you detect anti-debug behavior:

  1. Inform the user what technique was found
  2. Apply the evasion
  3. Verify execution continues normally
  4. Add a comment at the anti-debug location

Proactive anti-debug setup: At the start of unpacking, consider preemptively patching common PEB fields:

  • Write 0x00 to PEB.BeingDebugged
  • Write 0x00000000 to PEB.NtGlobalFlag This can be done via mcp__x64dbg__eval_expression to find peb(), then mcp__x64dbg__write_memory.

6. Confirm OEP

When you believe you've reached the OEP:

  1. Disassemble 50+ instructions and verify the code looks like a real program entry (not packer stub code).
  2. Check section: Confirm CIP is in the expected code section (.text or first section).
  3. Check stack: Compare ESP/RSP to the initial value from step 3.
  4. Check IAT: Read a few pointers from the import section — they should point to valid API functions in loaded DLLs. Use mcp__x64dbg__get_symbol to verify.
  5. Inform the user with:
    • The OEP address
    • The section it's in
    • A disassembly listing of the first ~30 instructions
    • Confidence level and reasoning

Ask the user via AskUserQuestion: "OEP found at <address>. Take a state snapshot?"

If the user says no or wants to adjust, continue stepping as directed.

7. Capture state snapshot

Invoke /state-snapshot via Skill("state-snapshot") to dump the full debuggee memory state at the OEP. Note the snapshot output directory.

Report the final results to the user:

  • OEP address and section
  • Packer identified
  • Anti-debug techniques encountered and evaded
  • Snapshot output directory
  • The debugger session remains open — the user can continue analysis or chain with other skills

8. Refresh GUI

Always call mcp__x64dbg__refresh_gui as the final step.

Häufig gestellte Fragen

Was macht der KI-Skill Find Oep?

Smart trace-based OEP finder for packed/protected PE executables. Traces through packer stubs using intelligent stepping, anti-debug evasion, and heuristic OEP detection, then captures a state snapshot at the original entry point.

Warum Find Oep in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Find Oep besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Find Oep in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/dariushoule/x64dbg-skills/tree/main/skills/find-oep ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Find Oep nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Find Oep verwenden?

So viele Sie möchten. In TypingMind können Sie Find Oep mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Find Oep kostenlos?

Ja. Der Skill wird von dariushoule auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇