Probably not a big deal, but they're reinventing the wheel a bit... Windows has RtlEncryptMemory/CryptProtectMemory for this.
https://docs.microsoft.com/en-us/windows/win32/api/dpapi/nf-...
https://docs.microsoft.com/en-us/windows/win32/api/dpapi/nf-...