The issue arises from the failure of Api SetSecureParam to sanitize incoming pointers, implicitly trusting the pointer passed by the user as safe to read from. This allows SetRegValue to read an arbitrary address, potentially a kernel pointer, into a HKLM Security SBIE registry value, which can later be retrieved by API GET SECURE PARAM.