> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/windows-vulnerabilities/binary-analysis/userinfo-exe-binary-analysis.md).

# Binäranalyse von UserInfo.exe

Diese Notiz zeigt ein einfaches Windows `.NET` Workflow zur Binäranalyse: kontrollierte Ausführung, Verhaltensbeobachtung und dnSpy-Inspektion, um sensible Informationen wiederherzustellen.

## Vorbereitung

Bereiten Sie die Laborumgebung vor, übertragen Sie das Archiv und konfigurieren Sie bei Bedarf die Namensauflösung.

<figure><img src="/files/e598a24df774c7d410dc66f087fd37908413d56c" alt="UserInfo.exe lab preparation"><figcaption></figcaption></figure>

<figure><img src="/files/9f6503a963dc1d62513c6c06d3abec3c7f203a27" alt="UserInfo.exe archive transferred"><figcaption></figcaption></figure>

## Kontrollierte Ausführung

```powershell
./UserInfo.exe find -first * -last *
```

<figure><img src="/files/f6c7a8e15797d4187505174e3307de56336022d3" alt="UserInfo.exe controlled execution"><figcaption></figcaption></figure>

## Mit dnSpy analysieren

{% embed url="<https://github.com/dnSpy/dnSpy>" %}

<figure><img src="/files/058c5a3c5c069451af17f4b7236ca6d1421665ac" alt="UserInfo.exe opened in dnSpy"><figcaption></figcaption></figure>

Suchen Sie nach Zeichenketten, Authentifizierungsfunktionen, Endpunkten und fest codierten Geheimnissen.

<figure><img src="/files/4633693ba382d362fb0077af62916b190a0d1d6b" alt="Searching UserInfo.exe code in dnSpy"><figcaption></figcaption></figure>

Setzen Sie einen Haltepunkt in der Nähe des Codepfads, an dem das Geheimnis lesbar wird.

<figure><img src="/files/cfbb59b5c6fb1f5661de629592d04797039271ff" alt="Breakpoint set in dnSpy"><figcaption></figcaption></figure>

<figure><img src="/files/2da4f0a4ae51b7ceb81e4eec185a627ab8752dcd" alt="Recovered runtime secret in dnSpy"><figcaption></figcaption></figure>

## Wichtige Punkte

* `.NET` Binärdateien lassen sich oft leicht dekompilieren.
* Fest codierte Geheimnisse sollten als kompromittiert betrachtet werden.
* Statische Analyse sollte mit kontrollierter Ausführung in einem Labor kombiniert werden.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/windows-vulnerabilities/binary-analysis/userinfo-exe-binary-analysis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
