This BOF can be used to elevate the current beacon to SYSTEM and obtain the TrustedInstaller group privilege. The impersonation is done through the SetThreadToken
API.
gcc elevate_x64.c -c -o elevate_x64.o
inline-execute C:\elevate_x64.o
Mr.Un1k0d3r RingZer0 Team