Function at 0x140013ff0
Capabilities:
Compare security identifiers

Disassembly:
push rbx
push r12
push r15
sub rsp, 0x880
mov rax, qword [0x1400a0f20]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov qword [rsp + 0x48], r9
mov r12, r9
mov r15d, r8d
mov rbx, rdx
test rcx, rcx
jne 0x140014052
lea rdx, str.Session_became_invalid_while_enumerating__n
mov ecx, 1
call fcn.140002470
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001250
add rsp, 0x880
pop r15
pop r12
pop rbx
ret
mov rax, qword [0x1400a4b00]
test rax, rax
je 0x140014033
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [case.0x14004be35.0]
test eax, eax
je 0x140014086
mov edx, eax
lea rcx, str.Could_not_get_logon_session_data__rcNt_x_n
call fcn.140001d30
jmp 0x140014033
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1400140ce
mov rdx, qword [rsp + 0x30]
lea rcx, str.User_SID_p_is_not_valid_n
mov rdx, qword [rdx + 0x48]
call fcn.140001d30
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140014033
mov rax, qword [0x1400a4b10]
call qword [case.0x14004be35.0]
jmp 0x140014033
mov qword [rsp + 0x8b0], rbp
xor ebp, ebp
mov qword [rsp + 0x860], r14
xor r14d, r14d
test r15d, r15d
je 0x14001433f
mov qword [rsp + 0x870], rdi
movabs r12, 0x60000000000000
mov qword [rsp + 0x868], r13
movabs rdi, 0xffff800000000000
mov r13d, 0x1000
mov qword [rsp + 0x878], rsi
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140014313
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140014313
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rbx + 8]
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140014313
cmp dword [0x1400a1fd0], 0
je 0x140014301
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
cmp rax, r13
jb 0x1400142ab
lea rax, [rsp + 0x38]
test rdi, rax
jne 0x1400142ab
cmp rbx, r13
jb 0x1400142ab
test rdi, rbx
jne 0x1400142ab
cmp qword [0x1400a4b30], 0
jne 0x1400141b8
cmp qword [0x1400a4b38], 0
jne 0x1400141b8
mov edi, 0xffffffdb
jmp 0x1400142b0
call fcn.14001a4b0
mov r8d, dword [rbx]
cmp rax, r12
mov ecx, 0x410
cmovae ecx, r13d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14001420b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400a1fd0], esi
mov edi, eax
je 0x1400141fd
mov edx, dword [rbx]
lea rcx, str.Unable_to_open_process_with_PID_u__error_u_n
mov r8d, eax
call fcn.140001d30
mov ecx, edi
call fcn.14001ee80
mov edi, eax
jmp 0x1400142b0
mov rax, qword [0x1400a4b38]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], 0x400
mov rcx, rsi
test rax, rax
je 0x140014236
lea r9, [rsp + 0x40]
xor edx, edx
call qword [case.0x14004be35.0]
jmp 0x14001424b
mov rax, qword [0x1400a4b30]
mov r9d, 0x400
xor edx, edx
call qword [case.0x14004be35.0]
test eax, eax
je 0x140014275
lea r9, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxAdditionscommonVBoxServiceVBoxServiceVMInfo_win.cpp
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140035a10
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400142b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400a1fd0], 3
mov edi, eax
jbe 0x140014297
mov edx, dword [rbx]
lea rcx, str.Unable_to_retrieve_process_name_for_PID_u__LastError_Rwc_n
mov r8d, eax
call fcn.140001d30
mov ecx, edi
call fcn.14001ee80
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400142b0
mov edi, 0xfffffffa
movzx eax, byte [rbx + 0x18]
lea rcx, str._Unknown_
mov r9d, dword [rbx]
lea rdx, str.Session__RU32:_PID_u__fInt_RTbool_:__ls_n
test edi, edi
cmovns rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov ecx, 4
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x44]
call fcn.140002470
test edi, edi
js 0x1400142f7
mov rcx, qword [rsp + 0x38]
call fcn.140017710
movabs rdi, 0xffff800000000000
cmp byte [rbx + 0x18], 0
je 0x140014313
inc r14d
cmp dword [0x1400a1fd0], 0
je 0x140014322
inc ebp
add rbx, 0x20
cmp ebp, r15d
jb 0x140014120
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x868]
mov rdi, qword [rsp + 0x870]
mov rsi, qword [rsp + 0x878]
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x8b0]
test r12, r12
je 0x140014358
mov edx, dword [rcx + 0x44]
mov dword [r12], edx
mov rax, qword [0x1400a4b10]
call qword [case.0x14004be35.0]
mov eax, r14d
mov r14, qword [rsp + 0x860]
jmp 0x140014035