Getuidx64 Require Administrator Privileges Better ((link)) File
Use GetTokenInformation to retrieve the SID and determine if the user belongs to the Administrators group. Conclusion
.root: ; Logic for root user mov rax, 1 ; Syscall: write mov rdi, 1 ; File descriptor: stdout mov rsi, msg_granted mov rdx, len_granted syscall getuidx64 require administrator privileges better