| File name: | d4.exe |
| Full analysis: | https://app.any.run/tasks/13a8c7df-dcb8-4024-9d26-ef65e2f6ea8d |
| Verdict: | Malicious activity |
| Analysis date: | November 26, 2021, 13:56:05 |
| OS: | Windows 7 Professional Service Pack 1 (build: 7601, 32 bit) |
| Tags: | |
| Indicators: | |
| MIME: | application/x-dosexec |
| File info: | PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows |
| MD5: | 1D368D5B842EBF13854B951A72ECF7DD |
| SHA1: | 9AECF5F83A446D660C72A2D7790888D7C5EBDEA4 |
| SHA256: | D41295C513C151FA5A6A0AFD777B1F6CD7D8B7C94AF994E22D76F6C7B402F796 |
| SSDEEP: | 384:gA6V/KaqKsWMCaeSCzhihc51rcj5Us6vCIXYQPhYVDrgHa/Dw1Im7HPxGZ7XSj9h:gTHzM1Qhihc51f2Kwk1IGpG89yW4y |
| .exe | | | Generic CIL Executable (.NET, Mono, etc.) (63.1) |
|---|---|---|
| .exe | | | Win64 Executable (generic) (23.8) |
| .dll | | | Win32 Dynamic Link Library (generic) (5.6) |
| .exe | | | Win32 Executable (generic) (3.8) |
| .exe | | | Generic Win/DOS Executable (1.7) |
| MachineType: | Intel 386 or later, and compatibles |
|---|---|
| TimeStamp: | 2076:10:29 00:57:48+01:00 |
| PEType: | PE32 |
| LinkerVersion: | 48 |
| CodeSize: | 18432 |
| InitializedDataSize: | 30720 |
| UninitializedDataSize: | - |
| EntryPoint: | 0x6772 |
| OSVersion: | 4 |
| ImageVersion: | - |
| SubsystemVersion: | 6 |
| Subsystem: | Windows GUI |
| FileVersionNumber: | 3.0.0.0 |
| ProductVersionNumber: | 3.0.0.0 |
| FileFlagsMask: | 0x003f |
| FileFlags: | (none) |
| FileOS: | Win32 |
| ObjectFileType: | Executable application |
| FileSubtype: | - |
| LanguageCode: | Neutral |
| CharacterSet: | Unicode |
| Comments: | - |
| CompanyName: | - |
| FileDescription: | ruby |
| FileVersion: | 3.0.0.0 |
| InternalName: | ruby.exe |
| LegalCopyright: | - |
| LegalTrademarks: | - |
| OriginalFileName: | ruby.exe |
| ProductName: | ruby |
| ProductVersion: | 3.0.0.0 |
| AssemblyVersion: | 3.0.0.0 |
| Architecture: | IMAGE_FILE_MACHINE_I386 |
|---|---|
| Subsystem: | IMAGE_SUBSYSTEM_WINDOWS_GUI |
| Compilation Date: | 22-Sep-1940 17:29:32 |
| Debug artifacts: |
|
| Comments: | - |
| CompanyName: | - |
| FileDescription: | ruby |
| FileVersion: | 3.0.0.0 |
| InternalName: | ruby.exe |
| LegalCopyright: | - |
| LegalTrademarks: | - |
| OriginalFilename: | ruby.exe |
| ProductName: | ruby |
| ProductVersion: | 3.0.0.0 |
| Assembly Version: | 3.0.0.0 |
| Magic number: | MZ |
|---|---|
| Bytes on last page of file: | 0x0090 |
| Pages in file: | 0x0003 |
| Relocations: | 0x0000 |
| Size of header: | 0x0004 |
| Min extra paragraphs: | 0x0000 |
| Max extra paragraphs: | 0xFFFF |
| Initial SS value: | 0x0000 |
| Initial SP value: | 0x00B8 |
| Checksum: | 0x0000 |
| Initial IP value: | 0x0000 |
| Initial CS value: | 0x0000 |
| Overlay number: | 0x0000 |
| OEM identifier: | 0x0000 |
| OEM information: | 0x0000 |
| Address of NE header: | 0x00000080 |
| Signature: | PE |
|---|---|
| Machine: | IMAGE_FILE_MACHINE_I386 |
| Number of sections: | 3 |
| Time date stamp: | 22-Sep-1940 17:29:32 |
| Pointer to Symbol Table: | 0x00000000 |
| Number of symbols: | 0 |
| Size of Optional Header: | 0x00E0 |
| Characteristics: |
|
Name | Virtual Address | Virtual Size | Raw Size | Charateristics | Entropy |
|---|---|---|---|---|---|
.text | 0x00002000 | 0x00004778 | 0x00004800 | IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ | 4.86927 |
.rsrc | 0x00008000 | 0x00007410 | 0x00007600 | IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ | 1.72167 |
.reloc | 0x00010000 | 0x0000000C | 0x00000200 | IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ | 0.0815394 |
Title | Entropy | Size | Codepage | Language | Type |
|---|---|---|---|---|---|
1 | 5.00112 | 490 | UNKNOWN | UNKNOWN | RT_MANIFEST |
2 | 1.72826 | 2440 | UNKNOWN | UNKNOWN | RT_ICON |
3 | 1.67967 | 4264 | UNKNOWN | UNKNOWN | RT_ICON |
4 | 1.47171 | 9640 | UNKNOWN | UNKNOWN | RT_ICON |
5 | 1.11029 | 10440 | UNKNOWN | UNKNOWN | RT_ICON |
32512 | 2.79808 | 76 | UNKNOWN | UNKNOWN | RT_GROUP_ICON |
mscoree.dll |
PID | CMD | Path | Indicators | Parent process | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 688 | whoami.exe | C:\Windows\system32\whoami.exe | — | cmd.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: whoami - displays logged on user information Exit code: 0 Version: 6.1.7600.16385 (win7_rtm.090713-1255) Modules
| |||||||||||||||
| 1240 | netstat.exe | C:\Windows\system32\NETSTAT.EXE | — | cmd.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: TCP/IP Netstat Command Exit code: 0 Version: 6.1.7600.16385 (win7_rtm.090713-1255) Modules
| |||||||||||||||
| 1252 | "C:\Users\admin\AppData\Local\Temp\d4.exe" | C:\Users\admin\AppData\Local\Temp\d4.exe | — | Explorer.EXE | |||||||||||
User: admin Integrity Level: MEDIUM Description: ruby Exit code: 0 Version: 3.0.0.0 Modules
| |||||||||||||||
| 1424 | systeminfo.exe | C:\Windows\system32\systeminfo.exe | — | cmd.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Displays system information Exit code: 0 Version: 6.1.7600.16385 (win7_rtm.090713-1255) Modules
| |||||||||||||||
| 1564 | "powershell.exe" -executionpolicy bypass -command .\remotec.ps1 | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | — | d4.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Windows PowerShell Exit code: 0 Version: 10.0.14409.1005 (rs1_srvoob.161208-1155) Modules
| |||||||||||||||
| 2096 | "cmd.exe" /c copy c:\windows\system32\cmd.exe tor.exe | C:\Windows\system32\cmd.exe | d4.exe | ||||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Windows Command Processor Exit code: 0 Version: 6.1.7601.17514 (win7sp1_rtm.101119-1850) Modules
| |||||||||||||||
| 2104 | ipconfig.exe | C:\Windows\system32\ipconfig.exe | — | cmd.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: IP Configuration Utility Exit code: 0 Version: 6.1.7600.16385 (win7_rtm.090713-1255) Modules
| |||||||||||||||
| 2148 | "powershell.exe" -executionpolicy bypass -command .\remotec.ps1 | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | — | d4.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Windows PowerShell Exit code: 0 Version: 10.0.14409.1005 (rs1_srvoob.161208-1155) Modules
| |||||||||||||||
| 2164 | "C:\Windows\system32\cmd.exe" /c "whoami.exe && systeminfo.exe && ipconfig.exe && netstat.exe" | C:\Windows\system32\cmd.exe | — | powershell.exe | |||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Windows Command Processor Exit code: 0 Version: 6.1.7601.17514 (win7sp1_rtm.101119-1850) Modules
| |||||||||||||||
| 2168 | "powershell.exe" -executionpolicy bypass -command .\racoon.ps1 | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | d4.exe | ||||||||||||
User: admin Company: Microsoft Corporation Integrity Level: MEDIUM Description: Windows PowerShell Exit code: 0 Version: 10.0.14409.1005 (rs1_srvoob.161208-1155) Modules
| |||||||||||||||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | LanguageList |
Value: en-US | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\dhcpqec.dll,-100 |
Value: DHCP Quarantine Enforcement Client | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\dhcpqec.dll,-101 |
Value: Provides DHCP based enforcement for NAP | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\dhcpqec.dll,-103 |
Value: 1.0 | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\dhcpqec.dll,-102 |
Value: Microsoft Corporation | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\napipsec.dll,-1 |
Value: IPsec Relying Party | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\napipsec.dll,-2 |
Value: Provides IPsec based enforcement for Network Access Protection | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\napipsec.dll,-4 |
Value: 1.0 | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\napipsec.dll,-3 |
Value: Microsoft Corporation | |||
| (PID) Process: | (3748) netsh.exe | Key: | HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E |
| Operation: | write | Name: | @%SystemRoot%\system32\tsgqec.dll,-100 |
Value: RD Gateway Quarantine Enforcement Client | |||
PID | Process | Filename | Type | |
|---|---|---|---|---|
| 1252 | d4.exe | C:\Users\admin\AppData\Local\Temp\ruby.log | text | |
MD5:— | SHA256:— | |||
| 1252 | d4.exe | C:\Users\admin\AppData\Local\Temp\racoon.ps1 | text | |
MD5:— | SHA256:— | |||
| 2168 | powershell.exe | C:\Users\admin\AppData\Local\Temp\0vsi0kr1.mug.ps1 | binary | |
MD5:C4CA4238A0B923820DCC509A6F75849B | SHA256:— | |||
| 2168 | powershell.exe | C:\Users\admin\AppData\Local\Temp\ni5dxzrf.yus.psm1 | binary | |
MD5:C4CA4238A0B923820DCC509A6F75849B | SHA256:— | |||
| 2168 | powershell.exe | C:\temp\data\sysinfo.txt | text | |
MD5:— | SHA256:— | |||
| 2168 | powershell.exe | C:\Users\admin\AppData\Local\Temp\sysinfo.txt | text | |
MD5:— | SHA256:— | |||
| 2168 | powershell.exe | C:\Users\admin\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache | binary | |
MD5:— | SHA256:— | |||
| 2168 | powershell.exe | C:\temp\staged.zip | compressed | |
MD5:— | SHA256:— | |||
| 2096 | cmd.exe | C:\Users\admin\AppData\Local\Temp\tor.exe | executable | |
MD5:AD7B9C14083B52BC532FBA5948342B98 | SHA256:17F746D82695FA9B35493B41859D39D786D32B23A9D2E00F4011DEC7A02402AE | |||
| 1252 | d4.exe | C:\Users\admin\AppData\Local\Temp\remotec.ps1 | text | |
MD5:EF46A0A8876F0087D7B911EA37BAD630 | SHA256:03B99330ADAE893D39ABF90AD08FE812F6469E6159A76AD430F8DDE926282EE5 | |||
PID | Process | Method | HTTP Code | IP | URL | CN | Type | Size | Reputation |
|---|---|---|---|---|---|---|---|---|---|
2168 | powershell.exe | POST | 200 | 3.239.215.107:9001 | http://ec2-3-239-215-107.compute-1.amazonaws.com:9001/web/upload.php | US | — | — | malicious |
2168 | powershell.exe | POST | 200 | 3.134.39.220:80 | http://mafube45655731.ngrok.io/web/upload.php | US | — | — | malicious |
PID | Process | IP | Domain | ASN | CN | Reputation |
|---|---|---|---|---|---|---|
2168 | powershell.exe | 3.134.39.220:80 | mafube45655731.ngrok.io | — | US | shared |
2168 | powershell.exe | 3.239.215.107:9001 | ec2-3-239-215-107.compute-1.amazonaws.com | — | US | malicious |
Domain | IP | Reputation |
|---|---|---|
2.100.168.192.in-addr.arpa |
| whitelisted |
mafube45655731.ngrok.io |
| malicious |
ec2-3-239-215-107.compute-1.amazonaws.com |
| malicious |
8.8.8.8.in-addr.arpa |
| unknown |
dns.google |
| whitelisted |
PID | Process | Class | Message |
|---|---|---|---|
— | — | Potential Corporate Privacy Violation | ET POLICY DNS Query to a *.ngrok domain (ngrok.io) |
2168 | powershell.exe | Not Suspicious Traffic | ET INFO Windows Powershell User-Agent Usage |
2168 | powershell.exe | Not Suspicious Traffic | ET INFO Windows Powershell User-Agent Usage |