You can use pre-compiled version (64-bit) of it from HERE
Copy it to %TEMP% and initiate a repair of RealVNC Server from add or remove programs.
It will write the output of whoami
command in %TEMP%\output.txt
If you want to change the executed command, change line 191 of dllmain.cpp and recompile it