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:
opendir
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

ANY.RUN is an interactive service which provides full access to the guest system. Information in this report could be distorted by user actions and is provided for user acknowledgement as it is. ANY.RUN does not guarantee maliciousness or safety of the content.
  • MALICIOUS

    • Drops executable file immediately after starts

      • cmd.exe (PID: 2096)
    • Application was dropped or rewritten from another process

      • tor.exe (PID: 3028)
      • cmd.exe (PID: 2096)
      • cmd.exe (PID: 2164)
  • SUSPICIOUS

    • Checks supported languages

      • cmd.exe (PID: 2096)
      • d4.exe (PID: 1252)
      • tor.exe (PID: 3028)
      • powershell.exe (PID: 2168)
      • cmd.exe (PID: 2164)
      • powershell.exe (PID: 1564)
      • powershell.exe (PID: 3932)
      • powershell.exe (PID: 2148)
      • powershell.exe (PID: 2880)
    • Starts CMD.EXE for commands execution

      • d4.exe (PID: 1252)
      • powershell.exe (PID: 2168)
    • Reads the computer name

      • d4.exe (PID: 1252)
      • powershell.exe (PID: 2168)
      • powershell.exe (PID: 3932)
      • powershell.exe (PID: 2148)
      • powershell.exe (PID: 2880)
      • powershell.exe (PID: 1564)
    • Drops a file that was compiled in debug mode

      • cmd.exe (PID: 2096)
    • Uses NETSH.EXE for network configuration

      • d4.exe (PID: 1252)
    • Reads Environment values

      • netsh.exe (PID: 3748)
      • netsh.exe (PID: 3044)
      • netsh.exe (PID: 3244)
      • powershell.exe (PID: 2168)
    • Executable content was dropped or overwritten

      • cmd.exe (PID: 2096)
    • Executes PowerShell scripts

      • d4.exe (PID: 1252)
    • Uses SYSTEMINFO.EXE to read environment

      • cmd.exe (PID: 2164)
    • Uses WHOAMI.EXE to obtaining logged on user information

      • cmd.exe (PID: 2164)
    • Uses NETSTAT.EXE to discover network connections

      • cmd.exe (PID: 2164)
    • Uses IPCONFIG.EXE to discover IP address

      • cmd.exe (PID: 2164)
  • INFO

    • Reads the hosts file

      • d4.exe (PID: 1252)
    • Checks supported languages

      • netsh.exe (PID: 3748)
      • netsh.exe (PID: 3044)
      • netsh.exe (PID: 3244)
      • whoami.exe (PID: 688)
      • systeminfo.exe (PID: 1424)
      • ipconfig.exe (PID: 2104)
      • NETSTAT.EXE (PID: 1240)
    • Reads the computer name

      • netsh.exe (PID: 3748)
      • netsh.exe (PID: 3044)
      • netsh.exe (PID: 3244)
      • whoami.exe (PID: 688)
      • systeminfo.exe (PID: 1424)
      • ipconfig.exe (PID: 2104)
      • NETSTAT.EXE (PID: 1240)
    • Checks Windows Trust Settings

      • powershell.exe (PID: 2168)
      • powershell.exe (PID: 1564)
      • powershell.exe (PID: 3932)
      • powershell.exe (PID: 2148)
      • powershell.exe (PID: 2880)
Find more information about signature artifacts and mapping to MITRE ATT&CK™ MATRIX at the full report
No Malware configuration.

TRiD

.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)

EXIF

EXE

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

Summary

Architecture: IMAGE_FILE_MACHINE_I386
Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
Compilation Date: 22-Sep-1940 17:29:32
Debug artifacts:
  • C:\Users\leewei\Documents\Visual Studio 2019\Projects\ekati 3.0\ruby\obj\Debug\ruby.pdb
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

DOS Header

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

PE Headers

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:
  • IMAGE_FILE_EXECUTABLE_IMAGE
  • IMAGE_FILE_LARGE_ADDRESS_AWARE

Sections

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

Resources

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

Imports

mscoree.dll
No data.
screenshot
All screenshots are available in the full report
All screenshots are available in the full report
Total processes
63
Monitored processes
16
Malicious processes
2
Suspicious processes
6

Behavior graph

Click at the process to see the details
start d4.exe no specs cmd.exe tor.exe no specs netsh.exe no specs netsh.exe no specs netsh.exe no specs powershell.exe cmd.exe no specs whoami.exe no specs systeminfo.exe no specs ipconfig.exe no specs netstat.exe no specs powershell.exe no specs powershell.exe no specs powershell.exe no specs powershell.exe no specs

Process information

PID
CMD
Path
Indicators
Parent process
688whoami.exe C:\Windows\system32\whoami.execmd.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
Images
c:\windows\system32\whoami.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\user32.dll
c:\windows\system32\gdi32.dll
1240netstat.exeC:\Windows\system32\NETSTAT.EXEcmd.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
Images
c:\windows\system32\netstat.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\iphlpapi.dll
c:\windows\system32\dbghelp.dll
1252"C:\Users\admin\AppData\Local\Temp\d4.exe" C:\Users\admin\AppData\Local\Temp\d4.exeExplorer.EXE
User:
admin
Integrity Level:
MEDIUM
Description:
ruby
Exit code:
0
Version:
3.0.0.0
Modules
Images
c:\users\admin\appdata\local\temp\d4.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\mscoree.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\microsoft.net\framework\v4.0.30319\mscoreei.dll
1424systeminfo.exe C:\Windows\system32\systeminfo.execmd.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
Images
c:\windows\system32\systeminfo.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\lpk.dll
c:\windows\system32\user32.dll
1564"powershell.exe" -executionpolicy bypass -command .\remotec.ps1C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exed4.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
Images
c:\windows\system32\windowspowershell\v1.0\powershell.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\atl.dll
c:\windows\system32\user32.dll
2096"cmd.exe" /c copy c:\windows\system32\cmd.exe tor.exeC:\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
Images
c:\windows\system32\cmd.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\winbrand.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\user32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
2104ipconfig.exe C:\Windows\system32\ipconfig.execmd.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
Images
c:\windows\system32\ipconfig.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\ws2_32.dll
c:\windows\system32\nsi.dll
2148"powershell.exe" -executionpolicy bypass -command .\remotec.ps1C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exed4.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
Images
c:\windows\system32\windowspowershell\v1.0\powershell.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\sechost.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\atl.dll
c:\windows\system32\user32.dll
2164"C:\Windows\system32\cmd.exe" /c "whoami.exe && systeminfo.exe && ipconfig.exe && netstat.exe"C:\Windows\system32\cmd.exepowershell.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
Images
c:\windows\system32\cmd.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\winbrand.dll
c:\windows\system32\user32.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
2168"powershell.exe" -executionpolicy bypass -command .\racoon.ps1C:\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
Images
c:\windows\system32\windowspowershell\v1.0\powershell.exe
c:\windows\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\advapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\sechost.dll
c:\windows\system32\atl.dll
c:\windows\system32\user32.dll
Total events
6 237
Read events
6 068
Write events
169
Delete events
0

Modification events

(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:LanguageList
Value:
en-US
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\dhcpqec.dll,-100
Value:
DHCP Quarantine Enforcement Client
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\dhcpqec.dll,-101
Value:
Provides DHCP based enforcement for NAP
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\dhcpqec.dll,-103
Value:
1.0
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\dhcpqec.dll,-102
Value:
Microsoft Corporation
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\napipsec.dll,-1
Value:
IPsec Relying Party
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\napipsec.dll,-2
Value:
Provides IPsec based enforcement for Network Access Protection
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\napipsec.dll,-4
Value:
1.0
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\napipsec.dll,-3
Value:
Microsoft Corporation
(PID) Process:(3748) netsh.exeKey:HKEY_CLASSES_ROOT\Local Settings\MuiCache\16C\52C64B7E
Operation:writeName:@%SystemRoot%\system32\tsgqec.dll,-100
Value:
RD Gateway Quarantine Enforcement Client
Executable files
1
Suspicious files
12
Text files
5
Unknown types
1

Dropped files

PID
Process
Filename
Type
1252d4.exeC:\Users\admin\AppData\Local\Temp\ruby.logtext
MD5:
SHA256:
1252d4.exeC:\Users\admin\AppData\Local\Temp\racoon.ps1text
MD5:
SHA256:
2168powershell.exeC:\Users\admin\AppData\Local\Temp\0vsi0kr1.mug.ps1binary
MD5:C4CA4238A0B923820DCC509A6F75849B
SHA256:
2168powershell.exeC:\Users\admin\AppData\Local\Temp\ni5dxzrf.yus.psm1binary
MD5:C4CA4238A0B923820DCC509A6F75849B
SHA256:
2168powershell.exeC:\temp\data\sysinfo.txttext
MD5:
SHA256:
2168powershell.exeC:\Users\admin\AppData\Local\Temp\sysinfo.txttext
MD5:
SHA256:
2168powershell.exeC:\Users\admin\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCachebinary
MD5:
SHA256:
2168powershell.exeC:\temp\staged.zipcompressed
MD5:
SHA256:
2096cmd.exeC:\Users\admin\AppData\Local\Temp\tor.exeexecutable
MD5:AD7B9C14083B52BC532FBA5948342B98
SHA256:17F746D82695FA9B35493B41859D39D786D32B23A9D2E00F4011DEC7A02402AE
1252d4.exeC:\Users\admin\AppData\Local\Temp\remotec.ps1text
MD5:EF46A0A8876F0087D7B911EA37BAD630
SHA256:03B99330ADAE893D39ABF90AD08FE812F6469E6159A76AD430F8DDE926282EE5
Download PCAP, analyze network streams, HTTP content and a lot more at the full report
HTTP(S) requests
2
TCP/UDP connections
2
DNS requests
5
Threats
3

HTTP requests

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
Download PCAP, analyze network streams, HTTP content and a lot more at the full report

Connections

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

DNS requests

Domain
IP
Reputation
2.100.168.192.in-addr.arpa
whitelisted
mafube45655731.ngrok.io
  • 3.134.39.220
malicious
ec2-3-239-215-107.compute-1.amazonaws.com
  • 3.239.215.107
malicious
8.8.8.8.in-addr.arpa
unknown
dns.google
  • 8.8.8.8
  • 8.8.4.4
whitelisted

Threats

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
No debug info