Windows Local Privilege Escalation - How to compile exploits?

I am trying to learn this without using meterpreter, but i want to use this same exploit for gaining local privilege escalation with System access.

On standard Kali, the path is - /usr/share/exploitdb/exploits/windows_x86/local/33213.rb

how do i compile this into a exe that can be run on the remote box. I do have a limited shell. It’s an x86 machine. Can we use msfvenom for this?

Thanks in advance!

you can find a precompiled exe here:

i couldn’t find source code other than the metasploit module.

make your own?