# Day 21

#### Task 27 — Reverse engineering Day 21: HELP ME…I'm REVERSE ENGINEERING! <a href="#id-8d94" id="id-8d94"></a>

**1. What is the function name that downloads and executes files in the WarevilleApp.exe?**

1. Start the Machine and Open the ILSpy App on the Desktop.
2. Drag and drop `WarevilleApp` into ILSpy.
3. Click on WarevilleApp Package and navigate to `→ FancyApp → Form1`

```makefile
CopyAns: DownloadAndExecuteFile
```

**2. Once you execute the WarevilleApp.exe, it downloads another binary to the Downloads folder. What is the name of the binary?**

Observe the Code

```makefile
CopyAns: explorer.exe
```

**3. What domain name is the one from where the file is downloaded after running WarevilleApp.exe?**

Observe the Code

```makefile
CopyAns: mayorc2.thm
```

**4. The stage 2 binary is executed automatically and creates a zip file comprising the victim's computer data; what is the name of the zip file?**

1. Open a browser on the machine and navigate to [`http://mayorc2.thm:8080/dw/explorer.exe`](http://mayorc2.thm:8080/dw/explorer.exe) to download the stage 2 binary.
2. Drag and drop the file into ILSpy.
3. Expand the explorer package and navigate to `→ FileCollector → Program`

```makefile
CopyAns: CollectedFiles.zip
```

**5. What is the name of the C2 server where the stage 2 binary tries to upload files?**

Observe the

```makefile
CopyAns: anonymousc2.thm
```


---

# Agent Instructions: 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:

```
GET https://foothold.gitbook.io/blog/advent-of-cyber-2024/day-21.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
