Function at 0x140004f70
Capabilities:
Get user security identifier
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
xorps xmm0, xmm0
lea r9, [rbp - 0x21]
mov r15, rcx
lea rdx, [rbp - 1]
xor ecx, ecx
mov r8d, 0xf0fff
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x140004fe0
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
mov r8d, ebx
lea rcx, str.LsaOpenPolicy_failed_rc_Rrc___x__n
mov edx, eax
mov edi, eax
call fcn.140003230
mov eax, edi
add rsp, 0xa8
pop r15
pop rdi
pop rbx
pop rbp
ret
mov rbx, qword [r15 + 0x10]
mov rcx, r15
mov qword [rsp + 0xd0], rsi
xor esi, esi
mov dword [rbp + 0x6f], esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rsi
mov dword [rbp + 0x7f], 1
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
lea rcx, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxFrontendsVBoxAutostartVBoxAutostart_win.cpp
xor r9d, r9d
mov qword [rsp + 0x28], rcx
lea r8, [rbp - 0x29]
lea rcx, [rbp - 0x19]
mov rdx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTStrToUtf16ExTag]
mov edi, eax
test eax, eax
js 0x14000520e
mov rdx, qword [rbp - 0x29]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x77], esi
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14000521c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
jne 0x1400051f1
mov ecx, dword [rbp + 0x77]
lea rdx, [0x14000a810]
call qword [sym.imp.VBoxRT.dll_RTMemAllocZTag]
mov rsi, rax
test rax, rax
je 0x1400051e1
mov ecx, dword [rbp + 0x6f]
lea rdx, [0x14000a810]
add rcx, rcx
mov qword [rsp + 0xa0], r14
call qword [sym.imp.VBoxRT.dll_RTMemAllocZTag]
mov r14, rax
test rax, rax
je 0x1400051bb
mov rdx, qword [rbp - 0x29]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov r8, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14000518d
cmp dword [rbp + 0x7f], 1
je 0x140005125
mov rcx, r15
lea edi, [rbx - 0x7c]
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, str.The_name__s_is_not_the_user_n
call fcn.140003230
mov rcx, r14
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400051ce
lea rcx, str.SeServiceLogonRight
mov rax, 0xffffffffffffffff
mov qword [rbp - 9], rcx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140005140
mov rcx, qword [rbp - 0x21]
lea r8, [rbp - 0x11]
add ax, ax
mov r9d, 1
mov word [rbp - 0x11], ax
mov rdx, rsi
add ax, 2
mov word [rbp - 0xf], ax
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x1400051b0
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
lea rcx, str.LsaAddAccountRights_failed_rc_Rrc___x__n
jmp 0x1400051a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
lea rcx, str.LookupAccountName_failed_rc_Rrc___x__n
mov r8d, ebx
mov edx, eax
mov edi, eax
call fcn.140003230
mov rcx, r14
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400051ce
mov edi, 0xfffffff8
lea rcx, str.autostartUpdatePolicy_failed_rc_Rrc_n
mov edx, edi
call fcn.140003230
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
mov r14, qword [rsp + 0xa0]
jmp 0x14000521c
mov edi, 0xfffffff8
lea rcx, str.autostartUpdatePolicy_failed_rc_Rrc_n
mov edx, edi
jmp 0x140005217
mov ecx, ebx
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
mov r8d, ebx
lea rcx, str.LookupAccountName_failed_rc_Rrc___x__n
mov edx, eax
mov edi, eax
call fcn.140003230
jmp 0x14000521c
mov edx, eax
lea rcx, str.Failed_to_convert_user_name_rc_Rrc_n
call fcn.140003230
mov rcx, qword [rbp - 0x29]
mov rsi, qword [rsp + 0xd0]
test rcx, rcx
je 0x140005233
call qword [sym.imp.VBoxRT.dll_RTUtf16Free]
mov rcx, qword [rbp - 0x21]
call sub.ADVAPI32.dll_LsaClose
mov eax, edi
add rsp, 0xa8
pop r15
pop rdi
pop rbx
pop rbp
ret