Official Vanguard Anti-Cheat source code.
For ease, an unprotected compiled version of Vanguard is available.
The full source code to this marvelous driver is provided for your viewing pleasure. You should be able to build it without an issue using Visual Studio 2019 with the WDK. The exact instructions are left as an exercise to the reader.