# CVE-2026-42903 — ksecpkg.sys patch diff

`ksecpkg.sys` 10.0.26100.8457 -> 10.0.26100.8655 (ghidriff).

## `SslUnsealMessage`  (modified)

```diff
--- SslUnsealMessage
+++ SslUnsealMessage
@@ -1,27 +1,45 @@
+

+/* WARNING: Function: _guard_dispatch_icall replaced with injection: guard_dispatch_icall */

 

 long SslUnsealMessage(CSslUserContext *param_1,_SecBufferDesc *param_2)

 

 {

-  char *pcVar1;

-  longlong in_RAX;

-  undefined8 *unaff_RBP;

-  undefined8 uVar2;

-  CSslUserContext *unaff_RDI;

+  int iVar1;

+  ulong uVar2;

+  long lVar3;

+  ulonglong uVar4;

   

-  pcVar1 = (char *)(in_RAX + -0x7b);

-  *pcVar1 = *pcVar1 + (char)param_1;

-  uVar2 = *unaff_RBP;

-  if (*pcVar1 != '\0') {

-    *unaff_RBP = 0x1400313de;

-    ZwClose();

-    *(undefined8 *)(unaff_RDI + 0x118) = 0;

+  GetExternalSchannelAlgorithmsDeferred();

+  GetExternalSchannelAlgorithmsDeferred();

+  uVar2 = (**(code **)(SslLsaKernelFunctions + 0x20))(param_1 + 0x140,0x434c5353,0);

+  if (-1 < (int)uVar2) {

+    if ((((*(int *)(param_1 + 0xc) != 0) && (iVar1 = *(int *)(param_1 + 8), iVar1 != 4)) &&

+        (iVar1 != 0x4f)) && (iVar1 != 0x38)) {

+      uVar4 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+      if ((int)uVar4 == 0) {

+        return -0x7ff6fce9;

+      }

+      uVar2 = 0x80090317;

+      SslDerefContext(param_1);

+      goto LAB_0;

+    }

+    if ((*(uint *)(param_1 + 0x10) >> 0xc & 1) == 0) {

+      uVar2 = SslUnsealMessageStream(param_1,param_2);

+    }

+    else {

+      uVar2 = SslUnsealMessageConnection(param_1,param_2);

+    }

+    SslDerefContext(param_1);

+    if (uVar2 == 0x80090330) {

+      SslUnsealHideDecryptErrorDelay();

+      goto LAB_0;

+    }

   }

-  if (*(longlong *)(unaff_RDI + 0x128) != 0) {

-    *unaff_RBP = 0x1400313fa;

-    ObfDereferenceObject();

+  if (uVar2 == 0) {

+    return 0;

   }

-  *unaff_RBP = 0x140031272;

-  DeleteUserContext(unaff_RDI);

-  return (long)uVar2;

+LAB_0:

+  lVar3 = TranslateToSecurityStatus(uVar2);

+  return lVar3;

 }
```

## `SslSealMessage`  (modified)

```diff
--- SslSealMessage
+++ SslSealMessage
@@ -1,144 +1,77 @@
 

 /* WARNING: Function: _guard_dispatch_icall replaced with injection: guard_dispatch_icall */

 

-long SslSealMessage(CSslUserContext *param_1,ulong param_2,_SecBufferDesc *param_3)

+ulong SslSealMessage(CSslUserContext *param_1,ulong param_2,_SecBufferDesc *param_3)

 

 {

-  int iVar1;

-  void *_Dst;

-  ulong in_R9D;

-  char local_res18 [16];

+  bool bVar1;

+  bool bVar2;

+  ulong uVar3;

+  uint uVar4;

+  ulong uVar5;

+  ulonglong uVar6;

+  CSslUserContext *pCVar7;

   

+  bVar2 = false;

   GetExternalSchannelAlgorithmsDeferred();

-  if (param_3 != (_SecBufferDesc *)0x0) {

-    GetExternalSchannelAlgorithmsDeferred();

-    iVar1 = (**(code **)(SslLsaKernelFunctions + 0x20))(param_1 + 0x140,0x434c5353,0);

-    if (-1 < iVar1) {

-      if (param_2 == 0x1a) {

-        iVar1 = SpQueryEndpointBindings

-                          ((CSslUserContext *)param_1,(_SecPkgContext_Bindings *)param_3);

-      }

-      else if (param_2 == 0x24) {

-        iVar1 = SpQueryNegotiatedTlsExtensions

-                          ((CSslUserContext *)param_1,

-                           (_SecPkgContext_NegotiatedTlsExtensions *)param_3);

-      }

-      else if (param_2 == 0x6d) {

-        iVar1 = SpQueryTokenBinding((CSslUserContext *)param_1,

-                                    (_SecPkgContext_TokenBinding *)param_3);

-      }

-      else if (param_2 == 0x23) {

-        iVar1 = SpQueryApplicationProtocol

-                          ((CSslUserContext *)param_1,(_SecPkgContext_ApplicationProtocol *)param_3)

-        ;

-      }

-      else if (param_2 == 0x5d) {

-        iVar1 = SpQuerySessionInfo((CSslUserContext *)param_1,(_SecPkgContext_SessionInfo *)param_3)

-        ;

+  GetExternalSchannelAlgorithmsDeferred();

+  uVar3 = (**(code **)(SslLsaKernelFunctions + 0x20))(param_1 + 0x140,0x434c5353,0);

+  pCVar7 = (CSslUserContext *)0x0;

+  bVar1 = false;

+  if (-1 < (int)uVar3) {

+    bVar2 = true;

+    uVar3 = CSslUserContext::SetEncryptMessageActive(param_1);

+    pCVar7 = param_1;

+    if (uVar3 == 0) {

+      bVar1 = true;

+      if ((*(int *)(param_1 + 8) == 4) ||

+         ((uVar4 = *(int *)(param_1 + 8) - 0x33, uVar4 < 0x1c &&

+          ((0xa000001U >> (uVar4 & 0x1f) & 1) != 0)))) {

+        if ((*(uint *)(param_1 + 0x10) >> 0xc & 1) == 0) {

+          uVar3 = SslSealMessageStream(param_1,param_2,param_3);

+        }

+        else {

+          uVar3 = SslSealMessageConnection(param_1,param_2,param_3);

+        }

+        uVar6 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+        if ((int)uVar6 == 0) {

+          uVar5 = CSslUserContext::SetEncryptMessageComplete(param_1);

+          if (uVar3 == 0) {

+            uVar3 = uVar5;

+          }

+          SslDerefContext(param_1);

+        }

       }

       else {

-        switch(param_2) {

-        case 0:

-          iVar1 = SpQuerySizes((CSslUserContext *)param_1,(_SecPkgContext_Sizes *)param_3);

-          break;

-        default:

-          iVar1 = -0x3fffff45;

-          break;

-        case 4:

-          iVar1 = SpQueryStreamSizes((CSslUserContext *)param_1,

-                                     (_SecPkgContext_StreamSizes *)param_3);

-          break;

-        case 9:

-          iVar1 = SpQuerySessionKey((CSslUserContext *)param_1,(_SecPkgContext_SessionKey *)param_3)

-          ;

-          break;

-        case 0x19:

-          iVar1 = SpQueryUniqueBindings

-                            ((CSslUserContext *)param_1,(_SecPkgContext_Bindings *)param_3);

-          break;

-        case 0x5a:

-          iVar1 = SpQueryConnectionInfo

-                            ((CSslUserContext *)param_1,(_SecPkgContext_ConnectionInfo *)param_3);

-          break;

-        case 0x5f:

-          if (*(int *)(param_1 + 0xc) == 0) {

-            iVar1 = SPCountCertificates(*(uchar **)(param_1 + 0x98),*(ulong *)(param_1 + 0xa0),

-                                        (ulong *)param_3);

-            if (iVar1 == 0) {

-              _Dst = (void *)ExAllocatePool2(SslPoolType,*(undefined4 *)(param_1 + 0xa0),0x436c7353)

-              ;

-              *(void **)(param_3 + 8) = _Dst;

-              if (_Dst == (void *)0x0) {

-                iVar1 = -0x3fffffe9;

-              }

-              else {

-                memmove(_Dst,*(void **)(param_1 + 0x98),(ulonglong)*(uint *)(param_1 + 0xa0));

-                *(undefined4 *)(param_3 + 4) = *(undefined4 *)(param_1 + 0xa0);

-              }

-            }

-          }

-          else {

-            iVar1 = KernelThunkedQueryContextAttributes((__uint64)param_1,0x40000000,param_3,in_R9D)

-            ;

-          }

-          break;

-        case 0x61:

-          *(undefined4 *)param_3 = *(undefined4 *)(param_1 + 0x1a0);

-          break;

-        case 99:

-          iVar1 = SpQueryCertificateInfo

-                            ((CSslUserContext *)param_1,(_SecPkgContext_CertInfo *)param_3,param_2);

-          break;

-        case 100:

-          iVar1 = SpQueryCipherInfo((CSslUserContext *)param_1,(_SecPkgContext_CipherInfo *)param_3)

-          ;

-          break;

-        case 0x6c:

-          iVar1 = SpQuerySrtpParameters

-                            ((CSslUserContext *)param_1,(_SecPkgContext_SrtpParameters *)param_3);

-          break;

-        case 0x6e:

-          iVar1 = SpQueryConnectionInfoEx

-                            ((CSslUserContext *)param_1,(_SecPkgContext_ConnectionInfoEx *)param_3);

-          break;

-        case 0x6f:

-          iVar1 = SpQueryTokenBindingEKM

-                            ((CSslUserContext *)param_1,(_SecPkgContext_KeyingMaterial *)param_3);

-          break;

-        case 0x70:

-          iVar1 = SpQueryKeyingMaterial

-                            ((CSslUserContext *)param_1,

-                             (_SecPkgContext_KeyingMaterial_Inproc *)param_3);

-          break;

-        case 0x72:

-          iVar1 = SpQueryCertificateValidationResult

-                            (*(__uint64 *)(param_1 + 0x10),*(ulong *)(param_1 + 0x1a4),

-                             *(long *)(param_1 + 0x1a0),

-                             (_SecPkgContext_CertificateValidationResult *)param_3);

-          break;

-        case 0x74:

-          iVar1 = SpQueryRemoteCertificateStore

-                            ((CSslUserContext *)param_1,(_CRYPTOAPI_BLOB *)param_3);

+        uVar6 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+        if ((int)uVar6 == 0) {

+          CSslUserContext::SetEncryptMessageComplete(param_1);

+          return 0x80090317;

         }

-      }

-      if (param_1 != (CSslUserContext *)0x0) {

-        local_res18[0] = '\0';

-        GetExternalSchannelAlgorithmsDeferred();

-        (**(code **)(SslLsaKernelFunctions + 0x28))(param_1 + 0x140,local_res18);

-        if (local_res18[0] != '\0') {

-          if (*(longlong *)(param_1 + 0x118) != 0) {

-            ZwClose();

-            *(undefined8 *)(param_1 + 0x118) = 0;

-          }

-          if (*(longlong *)(param_1 + 0x128) != 0) {

-            ObfDereferenceObject();

-          }

-          DeleteUserContext((CSslUserContext *)param_1);

-        }

+        uVar3 = 0x80090317;

+        bVar1 = true;

       }

     }

-    return iVar1;

+    else {

+      uVar6 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+      if ((int)uVar6 == 0) {

+        return uVar3;

+      }

+    }

   }

-  return 0;

+  uVar6 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

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

+    if ((bVar1) && (uVar5 = CSslUserContext::SetEncryptMessageComplete(pCVar7), uVar3 == 0)) {

+      uVar3 = uVar5;

+    }

+    if (bVar2) {

+      SslDerefContext(pCVar7);

+    }

+  }

+  uVar5 = 0;

+  if (uVar3 != 0) {

+    uVar5 = TranslateToSecurityStatus(uVar3);

+  }

+  return uVar5;

 }
```

## `SchannelLookupKernelContextFromLsa`  (modified)

```diff
--- SchannelLookupKernelContextFromLsa
+++ SchannelLookupKernelContextFromLsa
@@ -1,10 +1,49 @@
 

-/* WARNING: Control flow encountered bad instruction data */

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

 

 undefined8 SchannelLookupKernelContextFromLsa(ulonglong param_1)

 

 {

-                    /* WARNING: Bad instruction - Truncating control flow here */

-  halt_baddata();

+  undefined4 uVar1;

+  ulonglong uVar2;

+  undefined8 uVar3;

+  longlong lVar4;

+  ulonglong uVar5;

+  undefined8 uVar6;

+  longlong lVar7;

+  undefined1 auStack_58 [32];

+  ulonglong local_38;

+  ulonglong local_30 [2];

+  undefined8 uStack_20;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_58;

+  local_38 = param_1 >> 4;

+  local_30[1] = 0;

+  uStack_20 = 0;

+  uVar5 = (((((((((local_38 & 0xff) + 0xb15dcb) * 0x25 + (param_1 >> 0xc & 0xff)) * 0x25 +

+               (param_1 >> 0x14 & 0xff)) * 0x25 + (param_1 >> 0x1c & 0xff)) * 0x25 +

+             (param_1 >> 0x24 & 0xff)) * 0x25 + (param_1 >> 0x2c & 0xff)) * 0x25 +

+           (param_1 >> 0x34 & 0xff)) * 0x25 + (param_1 >> 0x3c)) %

+          (ulonglong)g_NumContextTableBuckets;

+  local_30[0] = param_1;

+  uVar2 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+  uVar6 = 0;

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

+    uVar3 = PsGetCurrentServerSilo();

+    uVar1 = PsGetSiloIdentifier(uVar3);

+    uStack_20 = CONCAT44(uStack_20._4_4_,uVar1);

+  }

+  KeEnterCriticalRegion();

+  lVar7 = uVar5 * 0x38;

+  ExAcquireFastMutexUnsafe(g_SchannelKernToLsaContextTableLockArray + lVar7);

+  lVar4 = RtlLookupElementGenericTableAvl

+                    (g_SchannelKernToLsaContextTableArray + uVar5 * 0x68,local_30);

+  ExReleaseFastMutexUnsafe(g_SchannelKernToLsaContextTableLockArray + lVar7);

+  KeLeaveCriticalRegion();

+  if (lVar4 != 0) {

+    uVar6 = *(undefined8 *)(lVar4 + 8);

+  }

+  return uVar6;

 }
```

## `SslInitKernelContext`  (modified)

```diff
--- SslInitKernelContext
+++ SslInitKernelContext
@@ -1,12 +1,73 @@
 

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

+/* WARNING: Function: _guard_dispatch_icall replaced with injection: guard_dispatch_icall */

 

 long SslInitKernelContext(ulonglong param_1,uint *param_2,undefined8 *param_3)

 

 {

-  long unaff_EDI;

+  uchar *puVar1;

+  CSslUserContext *pCVar2;

+  CSslUserContext *pCVar3;

+  long lVar4;

+  undefined8 uVar5;

+  ulonglong uVar6;

+  uchar *puVar7;

+  CSslUserContext *local_res10;

+  CSslUserContext *local_res18 [2];

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 local_40;

   

-  EtwSetInformation();

-  return unaff_EDI;

+  local_res10 = (CSslUserContext *)0x0;

+  local_58 = 0;

+  uStack_50 = 0;

+  local_48 = 0;

+  local_40 = 0;

+  local_res18[0] = (CSslUserContext *)0x0;

+  GetExternalSchannelAlgorithmsDeferred();

+  *param_3 = 0;

+  puVar1 = *(uchar **)(param_2 + 2);

+  uVar6 = (ulonglong)*param_2;

+  lVar4 = CSslSerializeHelper::DeserializeContext

+                    ((CSslSerializeHelper *)&local_58,puVar1,*param_2,&local_res10);

+  pCVar2 = local_res10;

+  if (-1 < lVar4) {

+    *(undefined8 *)(local_res10 + 0x148) = 0;

+    *(undefined8 *)(local_res10 + 0x140) = 0;

+    *(undefined4 *)(local_res10 + 0x150) = 1;

+    *(undefined4 *)(local_res10 + 0x154) = 0x434c5353;

+    *(undefined8 *)(local_res10 + 0x158) = 0;

+    *(undefined8 *)(local_res10 + 0x160) = 0;

+    *(ulonglong *)(local_res10 + 0x130) = param_1;

+    uVar5 = SchannelMapLsaToKernelContext(param_1,local_res10,local_res18);

+    pCVar3 = local_res18[0];

+    lVar4 = (long)uVar5;

+    if (-1 < lVar4) {

+      if (local_res18[0] != (CSslUserContext *)0x0) {

+        lVar4 = SslReferenceContext((longlong)local_res18[0],1);

+        if (lVar4 < 0) {

+          lVar4 = 0;

+        }

+        else {

+          SslDerefContext(pCVar3);

+        }

+      }

+      (**(code **)(SslLsaKernelFunctions + 0x18))(SslActiveList,pCVar2 + 0x140);

+      SslDerefContext(pCVar2);

+      *param_3 = pCVar2;

+    }

+  }

+  puVar7 = puVar1;

+  if (puVar1 != (uchar *)0x0) {

+    for (; uVar6 != 0; uVar6 = uVar6 - 1) {

+      *puVar7 = '\0';

+      puVar7 = puVar7 + 1;

+    }

+    (**(code **)(SslLsaKernelFunctions + 8))(puVar1);

+    param_2[2] = 0;

+    param_2[3] = 0;

+    *param_2 = 0;

+  }

+  return lVar4;

 }
```

## `SchannelUnMapLsaToKernelContext`  (modified)

```diff
--- SchannelUnMapLsaToKernelContext
+++ SchannelUnMapLsaToKernelContext
@@ -1,11 +1,42 @@
 

-/* WARNING: Function: _guard_dispatch_icall replaced with injection: guard_dispatch_icall */

-/* public: long __cdecl CSslUserContext::SetEncryptMessageActive(void) __ptr64 */

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

+/* void __cdecl SchannelUnMapLsaToKernelContext(unsigned __int64,unsigned __int64) */

 

 void __cdecl SchannelUnMapLsaToKernelContext(__uint64 param_1,__uint64 param_2)

 

 {

-  (**(code **)(*(longlong *)(param_1 + 0x200) + 0x18))();

+  undefined4 uVar1;

+  ulonglong uVar2;

+  undefined8 uVar3;

+  ulonglong uVar4;

+  longlong lVar5;

+  undefined1 auStack_48 [32];

+  __uint64 local_28;

+  __uint64 local_20;

+  undefined8 local_18;

+  ulonglong local_10;

+  

+  local_10 = __security_cookie ^ (ulonglong)auStack_48;

+  local_18 = 0;

+  uVar4 = (((((((((param_1 >> 4 & 0xff) + 0xb15dcb) * 0x25 + (param_1 >> 0xc & 0xff)) * 0x25 +

+               (param_1 >> 0x14 & 0xff)) * 0x25 + (param_1 >> 0x1c & 0xff)) * 0x25 +

+             (param_1 >> 0x24 & 0xff)) * 0x25 + (param_1 >> 0x2c & 0xff)) * 0x25 +

+           (param_1 >> 0x34 & 0xff)) * 0x25 + (param_1 >> 0x3c)) %

+          (ulonglong)g_NumContextTableBuckets;

+  local_28 = param_1;

+  local_20 = param_2;

+  uVar2 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

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

+    uVar3 = PsGetCurrentServerSilo();

+    uVar1 = PsGetSiloIdentifier(uVar3);

+    local_18 = CONCAT44(local_18._4_4_,uVar1);

+  }

+  KeEnterCriticalRegion();

+  lVar5 = uVar4 * 0x38;

+  ExAcquireFastMutexUnsafe(g_SchannelKernToLsaContextTableLockArray + lVar5);

+  RtlDeleteElementGenericTableAvl(g_SchannelKernToLsaContextTableArray + uVar4 * 0x68,&local_28);

+  ExReleaseFastMutexUnsafe(g_SchannelKernToLsaContextTableLockArray + lVar5);

+  KeLeaveCriticalRegion();

   return;

 }
```

## `SslInitKernelContext`  (modified)

```diff
--- SslInitKernelContext
+++ SchannelAvlCompareLsaContexts
@@ -1,73 +1,21 @@
 

-/* WARNING: Function: _guard_dispatch_icall replaced with injection: guard_dispatch_icall */

-

-long SslInitKernelContext(ulonglong param_1,uint *param_2,undefined8 *param_3)

+int SchannelAvlCompareLsaContexts(undefined8 param_1,ulonglong *param_2,ulonglong *param_3)

 

 {

-  uchar *puVar1;

-  CSslUserContext *pCVar2;

-  CSslUserContext *pCVar3;

-  long lVar4;

-  undefined8 uVar5;

-  ulonglong uVar6;

-  uchar *puVar7;

-  CSslUserContext *local_res10;

-  CSslUserContext *local_res18 [2];

-  undefined8 local_58;

-  undefined8 uStack_50;

-  undefined8 local_48;

-  undefined8 local_40;

+  ulonglong uVar1;

   

-  local_res10 = (CSslUserContext *)0x0;

-  local_58 = 0;

-  uStack_50 = 0;

-  local_48 = 0;

-  local_40 = 0;

-  local_res18[0] = (CSslUserContext *)0x0;

-  GetExternalSchannelAlgorithmsDeferred();

-  *param_3 = 0;

-  puVar1 = *(uchar **)(param_2 + 2);

-  uVar6 = (ulonglong)*param_2;

-  lVar4 = CSslSerializeHelper::DeserializeContext

-                    ((CSslSerializeHelper *)&local_58,puVar1,*param_2,&local_res10);

-  pCVar2 = local_res10;

-  if (-1 < lVar4) {

-    *(undefined8 *)(local_res10 + 0x148) = 0;

-    *(undefined8 *)(local_res10 + 0x140) = 0;

-    *(undefined4 *)(local_res10 + 0x150) = 1;

-    *(undefined4 *)(local_res10 + 0x154) = 0x434c5353;

-    *(undefined8 *)(local_res10 + 0x158) = 0;

-    *(undefined8 *)(local_res10 + 0x160) = 0;

-    *(ulonglong *)(local_res10 + 0x130) = param_1;

-    uVar5 = SchannelMapLsaToKernelContext(param_1,local_res10,local_res18);

-    pCVar3 = local_res18[0];

-    lVar4 = (long)uVar5;

-    if (-1 < lVar4) {

-      if (local_res18[0] != (CSslUserContext *)0x0) {

-        lVar4 = SslReferenceContext((longlong)local_res18[0],1);

-        if (lVar4 < 0) {

-          lVar4 = 0;

-        }

-        else {

-          SslDerefContext(pCVar3);

-        }

-      }

-      (**(code **)(SslLsaKernelFunctions + 0x18))(SslActiveList,pCVar2 + 0x140);

-      SslDerefContext(pCVar2);

-      *param_3 = pCVar2;

+  if (*param_3 <= *param_2) {

+    if (*param_2 != *param_3) {

+      return 1;

+    }

+    uVar1 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline();

+    if ((int)uVar1 == 0) {

+      return 2;

+    }

+    if ((uint)param_3[2] <= (uint)param_2[2]) {

+      return 2 - (uint)((uint)param_3[2] < (uint)param_2[2]);

     }

   }

-  puVar7 = puVar1;

-  if (puVar1 != (uchar *)0x0) {

-    for (; uVar6 != 0; uVar6 = uVar6 - 1) {

-      *puVar7 = '\0';

-      puVar7 = puVar7 + 1;

-    }

-    (**(code **)(SslLsaKernelFunctions + 8))(puVar1);

-    param_2[2] = 0;

-    param_2[3] = 0;

-    *param_2 = 0;

-  }

-  return lVar4;

+  return 0;

 }
```

## `CSslUserContext::SetEncryptMessageComplete`  (modified)

```diff
--- CSslUserContext::SetEncryptMessageComplete
+++ DeleteUserContext
@@ -1,2 +1,29 @@
-Failed to decompile ksecpkg.sys - .ProgramDB CSslUserContext::SetEncryptMessageComplete : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void __cdecl DeleteUserContext(CSslUserContext *param_1)

+

+{

+  code *pcVar1;

+  _NPAGED_LOOKASIDE_LIST *in_RAX;

+  int unaff_ESI;

+  bool in_CF;

+  

+  if (!in_CF) {

+    pcVar1 = (code *)swi(3);

+    (*pcVar1)();

+    return;

+  }

+  g_pSchannelNonPagedSlist = in_RAX;

+  ExInitializeNPagedLookasideList();

+  if (unaff_ESI != 0x200) {

+    if (unaff_ESI == 1) {

+      ExFreeToPagedLookasideList(g_pSchannelPagedSlist);

+    }

+    else {

+      ExFreePoolWithTag();

+    }

+    return;

+  }

+  ExFreeToNPagedLookasideList(g_pSchannelNonPagedSlist);

+  return;

+}

+
```

## `CSslUserContext::SetEncryptMessageActive`  (modified)

```diff
--- CSslUserContext::SetEncryptMessageActive
+++ Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline
@@ -1,2 +1,17 @@
-Failed to decompile ksecpkg.sys - .ProgramDB CSslUserContext::SetEncryptMessageActive : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+ulonglong Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledDeviceUsageNoInline(void)

+

+{

+  ulonglong uVar1;

+  undefined8 local_res8;

+  

+  local_res8 = (ulonglong)Feature_Servicing_KsecpkgArgonSiloFix__private_featureState;

+  if ((Feature_Servicing_KsecpkgArgonSiloFix__private_featureState & 0x10) == 0) {

+    uVar1 = Feature_Servicing_KsecpkgArgonSiloFix__private_IsEnabledFallback(local_res8,3);

+  }

+  else {

+    uVar1 = (ulonglong)(Feature_Servicing_KsecpkgArgonSiloFix__private_featureState & 1);

+  }

+  return uVar1;

+}

+
```

## `NTOSKRNL.EXE::ObfDereferenceObject`  (modified)

```diff
--- NTOSKRNL.EXE::ObfDereferenceObject calling
+++ NTOSKRNL.EXE::ObfDereferenceObject calling
@@ -7,2 +6,0 @@
-SslSealMessage
-SslUnsealMessage
```

## `NTOSKRNL.EXE::ExReleaseFastMutexUnsafe`  (modified)

```diff
--- NTOSKRNL.EXE::ExReleaseFastMutexUnsafe calling
+++ NTOSKRNL.EXE::ExReleaseFastMutexUnsafe calling
@@ -6,0 +7 @@
+SchannelMapLsaToKernelContext
@@ -8 +8,0 @@
-SslInitKernelContext
```

## `NTOSKRNL.EXE::KeLeaveCriticalRegion`  (modified)

```diff
--- NTOSKRNL.EXE::KeLeaveCriticalRegion calling
+++ NTOSKRNL.EXE::KeLeaveCriticalRegion calling
@@ -8,0 +9 @@
+SchannelMapLsaToKernelContext
@@ -10 +10,0 @@
-SslInitKernelContext
```

## `NTOSKRNL.EXE::ZwClose`  (modified)

```diff
--- NTOSKRNL.EXE::ZwClose calling
+++ NTOSKRNL.EXE::ZwClose calling
@@ -9,2 +8,0 @@
-SslSealMessage
-SslUnsealMessage
```
