Function at 0x140004f60
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 0x140004fd0
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.140003220
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.B:_bAntidetect_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 0x1400051fe
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 0x14000520c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
jne 0x1400051e1
mov ecx, dword [rbp + 0x77]
lea rdx, [0x14000a810]
call qword [sym.imp.VBoxRT.dll_RTMemAllocZTag]
mov rsi, rax
test rax, rax
je 0x1400051d1
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 0x1400051ab
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 0x14000517d
cmp dword [rbp + 0x7f], 1
je 0x140005115
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.140003220
mov rcx, r14
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400051be
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 0x140005130
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 0x1400051a0
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 0x140005194
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.140003220
mov rcx, r14
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400051be
mov edi, 0xfffffff8
lea rcx, str.autostartUpdatePolicy_failed_rc_Rrc_n
mov edx, edi
call fcn.140003220
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
mov r14, qword [rsp + 0xa0]
jmp 0x14000520c
mov edi, 0xfffffff8
lea rcx, str.autostartUpdatePolicy_failed_rc_Rrc_n
mov edx, edi
jmp 0x140005207
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.140003220
jmp 0x14000520c
mov edx, eax
lea rcx, str.Failed_to_convert_user_name_rc_Rrc_n
call fcn.140003220
mov rcx, qword [rbp - 0x29]
mov rsi, qword [rsp + 0xd0]
test rcx, rcx
je 0x140005223
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