A C# port of https://gist.github.com/adamsvoboda/8f29e09d74b73e1dec3f9049c4358e80
Please see their tweet here https://x.com/adamsvoboda/status/1726015701389922643?s=46&t=tb0pCGohFddL7H8wAFoGhQ
The dump can be loaded in WinDbg along with mimilib.dll for credential extraction:
https://danielsauder.com/2016/02/06/memdumps-volatility-mimikatz-vms-part-3-windbg-mimikatz-extension/