# CVE-2026-96093 — wininet.dll patch diff

`wininet.dll` 11.00.26100.9711 -> 11.00.26100.9974 (ghidriff).

## `CCacheServer::StrongReferenceGlobalCacheServer`  (modified)

```diff
--- CCacheServer::StrongReferenceGlobalCacheServer
+++ CCacheServer::StrongReferenceGlobalCacheServer
@@ -1,2 +1,104 @@
-Failed to decompile wininet.dll - .ProgramDB CCacheServer::StrongReferenceGlobalCacheServer : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static long __cdecl CCacheServer::StrongReferenceGlobalCacheServer(class CCacheServer *

+   __ptr64 * __ptr64) */

+

+long __cdecl CCacheServer::StrongReferenceGlobalCacheServer(CCacheServer **param_1)

+

+{

+  long lVar1;

+  int iVar2;

+  LPCRITICAL_SECTION lpCriticalSection;

+  uint uVar3;

+  WxCriticalSection *in_RDX;

+  LPCRITICAL_SECTION this;

+  undefined *in_R8;

+  undefined1 auStack_48 [36];

+  undefined4 local_24;

+  WxCriticalSection *local_20;

+  undefined8 local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_48;

+  this = (LPCRITICAL_SECTION)0x0;

+  local_24 = 0;

+  local_18 = 0;

+  local_20 = &g_csServer;

+  if ((DAT_0 & 0x10) != 0) {

+    in_RDX = (WxCriticalSection *)0xa;

+    in_R8 = &WPP_c668d6c5669e38073919c1a3fdc36c66_Traceguids;

+    WPP_SF_i(0x40c,10,&WPP_c668d6c5669e38073919c1a3fdc36c66_Traceguids,param_1);

+  }

+  *param_1 = (CCacheServer *)0x0;

+  AutoCritSec::Lock((AutoCritSec *)&local_20);

+  do {

+    if (g_eState == 1) {

+LAB_1:

+      iVar2 = Feature_3431463225__private_IsEnabledDeviceUsageNoInline();

+      if ((iVar2 == 0) || (g_ullStrongReferences != 0xffffffffffffffff)) {

+        g_ullStrongReferences = g_ullStrongReferences + 1;

+        *param_1 = g_pServer;

+        lVar1 = 0;

+      }

+      else {

+        local_24 = 0x88;

+        lVar1 = -0x7ff8fdea;

+      }

+      goto LAB_2;

+    }

+    uVar3 = (uint)in_RDX;

+    if (g_eState == 0) {

+      g_eState = 2;

+      AutoCritSec::Unlock((AutoCritSec *)&local_20);

+      lpCriticalSection = operator_new(0xb8);

+      if (lpCriticalSection == (LPCRITICAL_SECTION)0x0) {

+        local_24 = 0x6b;

+        lVar1 = -0x7ff8fff2;

+      }

+      else {

+        memset(lpCriticalSection,0,0xb8);

+        InitializeCriticalSection(lpCriticalSection);

+        lpCriticalSection[1].LockCount = 0;

+        lpCriticalSection[1].RecursionCount = 0;

+        lpCriticalSection[4].DebugInfo = (PRTL_CRITICAL_SECTION_DEBUG)&DAT_3;

+        lpCriticalSection[3].LockSemaphore = (HANDLE)0x0;

+        *(undefined4 *)&lpCriticalSection[3].SpinCount = 0;

+        lpCriticalSection[4].LockCount = 0;

+        lpCriticalSection[4].RecursionCount = 0;

+        lpCriticalSection[4].OwningThread = (HANDLE)0x0;

+        InitializeConditionVariable((PCONDITION_VARIABLE)(lpCriticalSection + 1));

+        uVar3 = 0;

+        memset(&lpCriticalSection[1].OwningThread,0,0x58);

+        lVar1 = Initialize((CCacheServer *)lpCriticalSection);

+        if (-1 < lVar1) {

+          AutoCritSec::Lock((AutoCritSec *)&local_20);

+          g_eState = 1;

+          g_pServer = (CCacheServer *)lpCriticalSection;

+          WakeAllConditionVariable(&g_cvState);

+          goto LAB_1;

+        }

+        local_24 = 0x6c;

+        this = lpCriticalSection;

+      }

+      AutoCritSec::Lock((AutoCritSec *)&local_20);

+      g_eState = 0;

+      WakeAllConditionVariable(&g_cvState);

+      if (this != (LPCRITICAL_SECTION)0x0) {

+        _scalar_deleting_destructor_((CCacheServer *)this,uVar3);

+      }

+      goto LAB_2;

+    }

+    in_RDX = &g_csServer;

+    lVar1 = WxSleepConditionVariable(&g_cvState,(_RTL_CRITICAL_SECTION *)&g_csServer,(ulong)in_R8);

+  } while (-1 < lVar1);

+  local_24 = 0x52;

+LAB_2:

+  if ((DAT_0 & 0x10) != 0) {

+    WPP_SF_D(0x40c,0xb,&WPP_c668d6c5669e38073919c1a3fdc36c66_Traceguids,lVar1);

+  }

+  if ((int)local_18 != 0) {

+    AutoCritSec::Unlock((AutoCritSec *)&local_20);

+  }

+  return lVar1;

+}

+
```

## `CCacheServer::StrongReleaseGlobalCacheServer`  (modified)

```diff
--- CCacheServer::StrongReleaseGlobalCacheServer
+++ CCacheServer::StrongReleaseGlobalCacheServer
@@ -1,2 +1,54 @@
-Failed to decompile wininet.dll - .ProgramDB CCacheServer::StrongReleaseGlobalCacheServer : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: static void __cdecl CCacheServer::StrongReleaseGlobalCacheServer(class CCacheServer *

+   __ptr64) */

+

+void __cdecl CCacheServer::StrongReleaseGlobalCacheServer(CCacheServer *param_1)

+

+{

+  uint in_EDX;

+  int iVar1;

+  LPCRITICAL_SECTION lpCriticalSection;

+  undefined1 auStack_48 [32];

+  LPCRITICAL_SECTION local_28;

+  int local_20;

+  undefined4 local_1c;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  local_1c = 0;

+  local_28 = (LPCRITICAL_SECTION)&g_csServer;

+  if ((DAT_0 & 0x10) != 0) {

+    in_EDX = 0xe;

+    WPP_SF_i(0x40c,0xe,&WPP_c668d6c5669e38073919c1a3fdc36c66_Traceguids,param_1);

+  }

+  lpCriticalSection = (LPCRITICAL_SECTION)&g_csServer;

+  iVar1 = 0;

+  if (param_1 != (CCacheServer *)0x0) {

+    EnterCriticalSection((LPCRITICAL_SECTION)&g_csServer);

+    iVar1 = 1;

+    local_20 = 1;

+    if ((((g_eState == 1) && (g_pServer != (CCacheServer *)0x0)) && (g_ullStrongReferences != 0)) &&

+       ((g_pServer == param_1 &&

+        (g_ullStrongReferences = g_ullStrongReferences - 1, g_ullStrongReferences == 0)))) {

+      g_eState = 3;

+      AutoCritSec::Unlock((AutoCritSec *)&local_28);

+      _scalar_deleting_destructor_(param_1,in_EDX);

+      AutoCritSec::Lock((AutoCritSec *)&local_28);

+      g_eState = 0;

+      g_pServer = (CCacheServer *)0x0;

+      AutoCritSec::Unlock((AutoCritSec *)&local_28);

+      WakeAllConditionVariable(&g_cvState);

+      lpCriticalSection = local_28;

+      iVar1 = local_20;

+    }

+  }

+  if ((DAT_0 & 0x10) != 0) {

+    WPP_SF_(0x40c,0xf,&WPP_c668d6c5669e38073919c1a3fdc36c66_Traceguids);

+  }

+  if ((iVar1 != 0) && (lpCriticalSection != (LPCRITICAL_SECTION)0x0)) {

+    LeaveCriticalSection(lpCriticalSection);

+  }

+  return;

+}

+
```

## `API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc`  (modified)

```diff
--- API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc calling
+++ API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc calling
@@ -57 +56,0 @@
-CCacheServer::StrongReferenceGlobalCacheServer
```

## `API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError`  (modified)

```diff
--- API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError calling
+++ API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL::GetLastError calling
@@ -3 +2,0 @@
-CCacheServer::WeakReferenceGlobalCacheServer
```

## `API-MS-WIN-CORE-SYNCH-L1-2-0.DLL::SleepConditionVariableCS`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-2-0.DLL::SleepConditionVariableCS calling
+++ API-MS-WIN-CORE-SYNCH-L1-2-0.DLL::SleepConditionVariableCS calling
@@ -1 +0,0 @@
-CCacheServer::WeakReferenceGlobalCacheServer
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection calling
@@ -64 +63,0 @@
-CCacheServer::StrongReferenceGlobalCacheServer
@@ -66 +64,0 @@
-CCacheServer::WeakReferenceGlobalCacheServer
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection calling
@@ -67 +66,0 @@
-CCacheServer::StrongReferenceGlobalCacheServer
@@ -69 +67,0 @@
-CCacheServer::WeakReferenceGlobalCacheServer
```
