SESSION 000000 :: OPERATORSYS/--:--:-- UTC · LINK OK
AUTH :: OPERATORREAD ONLY · CTRL+K
blacknetBLACKNET//operator console LIVE// OPS
—
Decompilation

Ghidra pseudocode of every Xeno.dll export

Ghidra 12.1.46/6 decompiled

Run via analyzeHeadless.bat on the shipped Xeno.dll with a custom post-script (DumpExports.java) that resolves each named export, decompiles it with the full P-Code pipeline, and writes the C output + signature + body size. Pseudocode is Ghidra's synthesized C — not original source, and variable names are inferred.

Initialize180191c602568 bytes27 callees
undefined Initialize(void)
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
/* WARNING: Type propagation algorithm not settling */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined8 Initialize(undefined1 param_1)

{
  code *pcVar1;
  ulonglong uVar2;
  char cVar3;
  int iVar4;
  DWORD DVar5;
  HMODULE hModule;
  char *pcVar6;
  HRSRC hResInfo;
  HGLOBAL hResData;
  LPVOID pvVar7;
  undefined8 uVar8;
  undefined8 *puVar9;
  ulonglong uVar10;
  undefined8 *******pppppppuVar11;
  uint uVar12;
  undefined *puVar13;
  longlong lVar14;
  undefined8 *******pppppppuVar15;
  undefined1 *puVar16;
  char *pcVar17;
  undefined1 auStackY_e8 [8];
  undefined1 auStackY_e0 [24];
  undefined8 *******local_b8;
  undefined8 uStack_b0;
  ulonglong local_a8;
  ulonglong local_a0;
  char local_98 [8];
  longlong lStack_90;
  undefined8 *******local_78;
  ulonglong uStack_70;
  undefined8 local_68;
  ulonglong local_60;
  undefined8 *******local_58;
  ulonglong uStack_50;
  undefined8 *******local_48;
  ulonglong uStack_40;
  undefined8 *******local_38;
  ulonglong uStack_30;
  undefined8 *******local_28;
  ulonglong uStack_20;
  ulonglong local_18;
  
                    /* 0x191c60  4  Initialize */
  local_18 = DAT_180226440 ^ (ulonglong)auStackY_e8;
  DAT_180261ff8 = _time64((__time64_t *)0x0);
  cVar3 = FUN_18018e680(param_1);
  if (cVar3 == '\0') {
    return 0;
  }
  hModule = LoadLibraryA("ntdll.dll");
  if (hModule == (HMODULE)0x0) {
    pcVar6 = "Failed to load ntdll.dll";
    lStack_90 = 0;
    do {
      pcVar6 = pcVar6 + 1;
      lStack_90 = lStack_90 + 1;
    } while (*pcVar6 != '\0');
    pppppppuVar11 = (undefined8 *******)local_98;
    pppppppuVar15 = &local_78;
    local_98 = (char  [8])0x1801e6a88;
    local_78 = (undefined8 *******)0x0;
    uStack_70 = 0;
    local_68 = 0;
LAB_18019264f:
    FUN_1800f50a0(DAT_1802623f8,pppppppuVar15,5,pppppppuVar11);
    return 0;
  }
  DAT_180261fd0 = GetProcAddress(hModule,"NtUnlockVirtualMemory");
  DAT_180261fe0 = GetProcAddress(hModule,"NtLockVirtualMemory");
  DAT_180261fc0 = GetProcAddress(hModule,"NtSuspendProcess");
  DAT_180261fe8 = GetProcAddress(hModule,"NtResumeProcess");
  DAT_180261fd8 = GetProcAddress(hModule,"NtReadVirtualMemory");
  _DAT_180261fc8 = GetProcAddress(hModule,"NtWriteVirtualMemory");
  if ((((DAT_180261fd0 == (FARPROC)0x0) || (DAT_180261fe0 == (FARPROC)0x0)) ||
      (DAT_180261fc0 == (FARPROC)0x0)) ||
     (((DAT_180261fe8 == (FARPROC)0x0 || (DAT_180261fd8 == (FARPROC)0x0)) ||
      (_DAT_180261fc8 == (FARPROC)0x0)))) {
    uStack_70 = 0;
    pcVar6 = "A symbol was unable to be loaded from ntdll.dll";
    do {
      pcVar6 = pcVar6 + 1;
      uStack_70 = uStack_70 + 1;
    } while (*pcVar6 != '\0');
    lStack_90 = 0;
    pppppppuVar11 = &local_78;
    local_98 = (char  [8])0x0;
    pppppppuVar15 = &local_b8;
    local_78 = (undefined8 *******)0x1801e6ab8;
    local_b8 = (undefined8 *******)0x0;
    uStack_b0 = 0;
    local_a8 = 0;
    goto LAB_18019264f;
  }
  iVar4 = curl_global_init(3);
  if (iVar4 != 0) {
    return 0;
  }
  DAT_180262288 = curl_share_init();
  if (DAT_180262288 != 0) {
    curl_share_setopt(DAT_180262288,1,3);
    curl_share_setopt(DAT_180262288,1,4);
  }
  hResInfo = FindResourceW((HMODULE)&IMAGE_DOS_HEADER_180000000,(LPCWSTR)0x2000,(LPCWSTR)0x2002);
  lVar14 = 0;
  local_60 = 0xf;
  local_68 = 0;
  uStack_70 = 0;
  local_78 = (undefined8 *******)0x0;
  if (hResInfo != (HRSRC)0x0) {
    hResData = LoadResource((HMODULE)&IMAGE_DOS_HEADER_180000000,hResInfo);
    if (hResData == (HGLOBAL)0x0) {
      pcVar6 = "Could not load a Xeno client resource";
      lStack_90 = lVar14;
      do {
        pcVar6 = pcVar6 + 1;
        lStack_90 = lStack_90 + 1;
      } while (*pcVar6 != '\0');
      local_98 = (char  [8])0x1801ef320;
      local_78 = (undefined8 *******)0x0;
      uStack_70 = 0;
      local_68 = 0;
      FUN_1800f50a0(DAT_1802623f8,&local_78,5,local_98);
      puVar13 = &DAT_1801d2a7b;
      goto LAB_18019201b;
    }
    DVar5 = SizeofResource((HMODULE)&IMAGE_DOS_HEADER_180000000,hResInfo);
    pvVar7 = LockResource(hResData);
    if ((pvVar7 == (LPVOID)0x0) || (DVar5 == 0)) {
      pcVar6 = "A Xeno client resource is invalid";
      lStack_90 = lVar14;
      do {
        pcVar6 = pcVar6 + 1;
        lStack_90 = lStack_90 + 1;
      } while (*pcVar6 != '\0');
      local_98 = (char  [8])0x1801ef2f8;
      local_78 = (undefined8 *******)0x0;
      uStack_70 = 0;
      local_68 = 0;
      FUN_1800f50a0(DAT_1802623f8,&local_78,5,local_98);
      puVar13 = &DAT_1801d2a7d;
      goto LAB_18019201b;
    }
    FUN_18001f7e0(&local_78,pvVar7,DVar5);
    uVar8 = FUN_18001ecc0(local_98,&local_78);
    FUN_180195a00(&local_b8,uVar8);
    if (local_60 < 0x10) goto LAB_180192036;
    pppppppuVar11 = local_78;
    if ((local_60 + 1 < 0x1000) ||
       (pppppppuVar11 = (undefined8 *******)local_78[-1],
       (ulonglong)((longlong)local_78 + (-8 - (longlong)pppppppuVar11)) < 0x20)) {
      free(pppppppuVar11);
      goto LAB_180192036;
    }
LAB_18019255f:
    pcVar1 = (code *)swi(0x29);
    (*pcVar1)(5);
    puVar16 = auStackY_e0;
LAB_180192566:
                    /* WARNING: Subroutine does not return */
    *(undefined8 *)(puVar16 + -8) = 0x18019256c;
    terminate();
  }
  pcVar6 = "Could not find a Xeno client resource";
  lStack_90 = lVar14;
  do {
    pcVar6 = pcVar6 + 1;
    lStack_90 = lStack_90 + 1;
  } while (*pcVar6 != '\0');
  local_98 = (char  [8])0x1801ef260;
  local_78 = (undefined8 *******)0x0;
  uStack_70 = 0;
  local_68 = 0;
  FUN_1800f50a0(DAT_1802623f8,&local_78,5,local_98);
  puVar13 = &DAT_1801d2a7c;
LAB_18019201b:
  local_a8 = 0;
  local_a0 = 0;
  local_b8 = (undefined8 *******)0x0;
  uStack_b0 = 0;
  FUN_18001f6e0(&local_b8,puVar13,0);
LAB_180192036:
  FUN_18001f340(&DAT_180227c90,&local_b8);
  if (0xf < local_a0) {
    pppppppuVar11 = local_b8;
    if ((0xfff < local_a0 + 1) &&
       (pppppppuVar11 = (undefined8 *******)local_b8[-1],
       0x1f < (ulonglong)((longlong)local_b8 + (-8 - (longlong)pppppppuVar11)))) goto LAB_18019255f;
    free(pppppppuVar11);
  }
  local_98 = (char  [8])s_v1_3_60_180228130;
  lStack_90 = DAT_180228140;
  if (0xf < DAT_180228148) {
    local_98 = s_v1_3_60_180228130;
  }
  local_78 = (undefined8 *******)0x1801ed090;
  uStack_70 = 0xe;
  FUN_1801185f0(&DAT_180227c90,&local_78,local_98);
  uVar10 = 0xc26;
  pcVar6 = (char *)((longlong)&local_68 + 5);
  do {
    pcVar17 = pcVar6;
    pcVar6 = pcVar17 + -2;
    uVar2 = uVar10 / 100;
    uVar12 = (uint)uVar2;
    *(undefined2 *)pcVar6 = (&DAT_1801ef4d0)[(int)uVar10 + uVar12 * -100];
    uVar10 = uVar2;
  } while (9 < uVar12);
  if (uVar12 != 0) {
    pcVar6 = pcVar17 + -3;
    *pcVar6 = (char)uVar2 + '0';
  }
  FUN_18001f400(&local_b8,pcVar6,(longlong)&local_68 + 5);
  uStack_70 = local_a8;
  local_78 = &local_b8;
  if (0xf < local_a0) {
    local_78 = local_b8;
  }
  local_98 = (char  [8])0x1801ed0a0;
  lStack_90 = 0x12;
  FUN_1801185f0(&DAT_180227c90,local_98,&local_78);
  if (0xf < local_a0) {
    pppppppuVar11 = local_b8;
    if ((0xfff < local_a0 + 1) &&
       (pppppppuVar11 = (undefined8 *******)local_b8[-1],
       0x1f < (ulonglong)((longlong)local_b8 + (-8 - (longlong)pppppppuVar11)))) goto LAB_18019255f;
    free(pppppppuVar11);
  }
  FindResourceW((HMODULE)&IMAGE_DOS_HEADER_180000000,(LPCWSTR)0x2004,(LPCWSTR)0x2002);
  uVar8 = FUN_180196010(&local_b8);
  FUN_18001f340(&DAT_180227c50,uVar8);
  if (0xf < local_a0) {
    pppppppuVar11 = local_b8;
    if ((0xfff < local_a0 + 1) &&
       (pppppppuVar11 = (undefined8 *******)local_b8[-1],
       0x1f < (ulonglong)((longlong)local_b8 + (-8 - (longlong)pppppppuVar11)))) goto LAB_18019255f;
    free(pppppppuVar11);
  }
  if ((DAT_180227ca0 < 0x10) || (DAT_180227c60 < 0x10)) {
    pcVar6 = "A Xeno resource was unable to load, will abort immediately.";
    do {
      pcVar6 = pcVar6 + 1;
      lVar14 = lVar14 + 1;
    } while (*pcVar6 != '\0');
    local_78 = (undefined8 *******)0x1801ed030;
    lStack_90 = 0;
    local_98 = (char  [8])0x0;
    local_a8 = 0;
    local_b8 = (undefined8 *******)0x0;
    uStack_b0 = 0;
    uStack_70 = lVar14;
    FUN_1800f50a0(DAT_1802623f8,&local_b8,5,&local_78);
    return 0;
  }
  puVar9 = (undefined8 *)FUN_18019df40(8);
  *puVar9 = FUN_180191af0;
  local_28 = (undefined8 *******)
             _beginthreadex((void *)0x0,0,FUN_1800fb410,puVar9,0,(uint *)&uStack_20);
  if (local_28 == (undefined8 *******)0x0) {
    uStack_20 = uStack_20 & 0xffffffff00000000;
    std::_Throw_Cpp_error(6);
    pcVar1 = (code *)swi(3);
    uVar8 = (*pcVar1)();
    return uVar8;
  }
  if ((int)uStack_20 != 0) {
    uStack_70 = uStack_20;
    local_78 = local_28;
    iVar4 = _Thrd_detach(&local_78);
    if (iVar4 == 0) {
      local_98 = (char  [8])&local_28;
      local_28 = (undefined8 *******)0x0;
      uStack_20 = 0;
      local_78 = (undefined8 *******)0x1801ed070;
      uStack_70 = 0x1c;
      local_b8 = (undefined8 *******)0x0;
      uStack_b0 = 0;
      local_a8 = 0;
      FUN_180193bc0(DAT_1802623f8);
      puVar9 = (undefined8 *)FUN_18019df40(8);
      *puVar9 = FUN_1800f63d0;
      local_38 = (undefined8 *******)
                 _beginthreadex((void *)0x0,0,FUN_1800fb410,puVar9,0,(uint *)&uStack_30);
      if (local_38 == (undefined8 *******)0x0) {
        uStack_30 = uStack_30 & 0xffffffff00000000;
        std::_Throw_Cpp_error(6);
        pcVar1 = (code *)swi(3);
        uVar8 = (*pcVar1)();
        return uVar8;
      }
      if ((int)uStack_30 != 0) {
        uStack_70 = uStack_30;
        local_78 = local_38;
        iVar4 = _Thrd_detach(&local_78);
        if (iVar4 == 0) {
          local_98 = (char  [8])&local_38;
          local_38 = (undefined8 *******)0x0;
          uStack_30 = 0;
          local_78 = (undefined8 *******)0x1801ed0d8;
          uStack_70 = 0x1a;
          local_b8 = (undefined8 *******)0x0;
          uStack_b0 = 0;
          local_a8 = 0;
          FUN_180193bc0(DAT_1802623f8);
          puVar9 = (undefined8 *)FUN_18019df40(8);
          *puVar9 = FUN_1801951c0;
          local_48 = (undefined8 *******)
                     _beginthreadex((void *)0x0,0,FUN_1800fb410,puVar9,0,(uint *)&uStack_40);
          if (local_48 == (undefined8 *******)0x0) {
            uStack_40 = uStack_40 & 0xffffffff00000000;
            std::_Throw_Cpp_error(6);
            pcVar1 = (code *)swi(3);
            uVar8 = (*pcVar1)();
            return uVar8;
          }
          if ((int)uStack_40 != 0) {
            uStack_70 = uStack_40;
            local_78 = local_48;
            iVar4 = _Thrd_detach(&local_78);
            if (iVar4 == 0) {
              local_98 = (char  [8])&local_48;
              local_48 = (undefined8 *******)0x0;
              uStack_40 = 0;
              local_78 = (undefined8 *******)0x1801ed0f8;
              uStack_70 = 0x20;
              local_b8 = (undefined8 *******)0x0;
              uStack_b0 = 0;
              local_a8 = 0;
              FUN_180193bc0(DAT_1802623f8);
              puVar9 = (undefined8 *)FUN_18019df40(8);
              *puVar9 = FUN_180156810;
              local_58 = (undefined8 *******)
                         _beginthreadex((void *)0x0,0,FUN_1800fb410,puVar9,0,(uint *)&uStack_50);
              if (local_58 == (undefined8 *******)0x0) {
                uStack_50 = uStack_50 & 0xffffffff00000000;
                std::_Throw_Cpp_error(6);
                pcVar1 = (code *)swi(3);
                uVar8 = (*pcVar1)();
                return uVar8;
              }
              if ((int)uStack_50 != 0) {
                uStack_70 = uStack_50;
                local_78 = local_58;
                iVar4 = _Thrd_detach(&local_78);
                if (iVar4 == 0) {
                  local_98 = (char  [8])&local_58;
                  local_58 = (undefined8 *******)0x0;
                  uStack_50 = 0;
                  local_78 = (undefined8 *******)0x1801ed0b8;
                  uStack_70 = 0x19;
                  local_b8 = (undefined8 *******)0x0;
                  uStack_b0 = 0;
                  local_a8 = 0;
                  FUN_180193bc0(DAT_1802623f8,&local_b8);
                  puVar16 = auStackY_e8;
                  if (((((int)uStack_50 == 0) && (puVar16 = auStackY_e8, (int)uStack_40 == 0)) &&
                      (puVar16 = auStackY_e8, (int)uStack_30 == 0)) &&
                     (puVar16 = auStackY_e8, (int)uStack_20 == 0)) {
                    return 1;
                  }
                  goto LAB_180192566;
                }
              }
            }
          }
        }
      }
    }
  }
  std::_Throw_Cpp_error(1);
  pcVar1 = (code *)swi(3);
  uVar8 = (*pcVar1)();
  return uVar8;
}

—
Reference

What each export is expected to do

Initialize

Load Xeno.dll into Electron process. Spawn worker threads: XenoServer, Caching, BytecodePatchWatcher. Returns bool.

Attach

Enum RobloxPlayerBeta → OpenProcess → resolve offsets → walk DataModel → CoreGui → RobloxGui → Modules → hijack translation ModuleScript.

Execute

Luau-compile user script → cross-process write into attached RBXClient. Serves it via local HTTP server to in-game bootstrap.

GetClients

Return JSON of currently attached RBXClient entries (one per Roblox PID).

SetSetting

setSetting(type:int, val:int). type=0 AutoAttach, type=1 DiscordRPC.

Version

Return the Xeno.dll build version string.