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

# تحليل الثنائي UserInfo.exe

توضح هذه الملاحظة سير عمل بسيط لتحليل Windows `.NET` الثنائيات: التنفيذ الخاضع للتحكم، ومراقبة السلوك، وفحص dnSpy لاستعادة المعلومات الحساسة.

## التحضير

أعدّ بيئة المختبر، وانقل الأرشيف، وتهيئة حلّ الأسماء إذا لزم الأمر.

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

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

## التنفيذ الخاضع للتحكم

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

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

## التحليل باستخدام dnSpy

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

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

ابحث عن السلاسل النصية، ووظائف المصادقة، ونقاط النهاية، والأسرار المضمّنة في الشيفرة.

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

اضبط نقطة توقف قرب مسار الشيفرة الذي يصبح فيه السر قابلاً للقراءة.

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

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

## النقاط الرئيسية

* `.NET` غالبًا ما تكون الثنائيات سهلة التفكيك.
* يجب اعتبار الأسرار المضمّنة في الشيفرة مخترقة.
* ينبغي إقران التحليل الساكن بالتنفيذ الخاضع للتحكم في مختبر.


---

# 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/ar/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.
