> 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/pt-br/windows-vulnerabilities/binary-analysis/userinfo-exe-binary-analysis.md).

# Análise Binária do UserInfo.exe

Esta nota mostra um simples Windows `.NET` fluxo de trabalho de análise binária: execução controlada, observação do comportamento e inspeção com dnSpy para recuperar informações sensíveis.

## Preparação

Prepare o ambiente de laboratório, transfira o arquivo e configure a resolução de nomes, se necessário.

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

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

## Execução Controlada

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

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

## Analise com dnSpy

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

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

Procure por strings, funções de autenticação, endpoints e segredos codificados no binário.

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

Defina um breakpoint perto do caminho de código em que o segredo se torna legível.

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

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

## Pontos-chave

* `.NET` binários geralmente são fáceis de descompilar.
* Segredos codificados no binário devem ser tratados como comprometidos.
* A análise estática deve ser combinada com a execução controlada em um laboratório.


---

# 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/pt-br/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.
