Function at 0x14006d06c
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x50], 0x44
mov qword [rsp + 0x60], rax
mov r12, rdx
xor eax, eax
mov dword [rsp + 0x48], 1
mov r15, rcx
mov dword [rsp + 0x68], eax
xor r13d, r13d
lea rcx, [rbp - 0x40]
xor edx, edx
mov qword [rsp + 0x40], r13
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov dword [rsp + 0x4c], 0x104
mov ebx, r13d
test r15, r15
je 0x14006d395
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [r15 + rax*2], r13w
jne 0x14006d0fd
cmp rax, 0x21b
jae 0x14006d395
lea rcx, [rsp + 0x60]
call fcn.140073e9c
test eax, eax
jns 0x14006d12c
movzx ebx, ax
test ebx, ebx
jne 0x14006d3c6
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x4c]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006d18a
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006d1d2
test byte [rcx + 0x44], 0x80
je 0x14006d1d2
mov edx, 0xb
jmp 0x14006d1c2
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x14006d1e2
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006d1d2
test byte [rcx + 0x44], 0x80
je 0x14006d1d2
mov edx, 0xc
mov rcx, qword [rcx + 0x38]
lea r8, [0x14009cc68]
call fcn.1400305cc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006d215
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006d21d
test byte [rcx + 0x44], 0x80
je 0x14006d21d
mov r9, qword [rsp + 0x40]
lea r8, [0x14009cc68]
mov rcx, qword [rcx + 0x38]
mov edx, 0xd
call fcn.140040cf0
test ebx, ebx
jne 0x14006d3c6
mov rax, qword [rsp + 0x40]
mov rbx, r14
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x14006d225
add ebx, 0x294
lea ecx, [rbx + rbx]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
test rax, rax
je 0x14006d385
lea rcx, [rbx - 1]
mov edi, ebx
cmp rcx, 0x7ffffffe
mov eax, r13d
mov r8d, 0x80070057
cmova eax, r8d
test eax, eax
js 0x14006d29a
mov edx, edi
mov rax, rsi
test ebx, ebx
je 0x14006d280
cmp word [rax], r13w
je 0x14006d280
add rax, 2
sub rdx, 1
jne 0x14006d270
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, r8d
test rdx, rdx
je 0x14006d29a
mov rcx, rdi
sub rcx, rdx
jmp 0x14006d29d
mov rcx, r13
test eax, eax
js 0x14006d368
mov rdx, rdi
lea r9, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersClient_Side_Rendering_Print_Provider_
sub rdx, rcx
lea rcx, [rsi + rcx*2]
call fcn.1400168e8
test eax, eax
js 0x14006d368
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14000ef20
test eax, eax
js 0x14006d368
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, rsi
call fcn.1400169a8
test eax, eax
js 0x14006d368
mov rax, qword [rsp + 0x58]
lea r9, str.PrintersConnections_
sub rdi, rax
mov rdx, rdi
lea rcx, [rsi + rax*2]
call fcn.1400168e8
test eax, eax
js 0x14006d368
mov rcx, qword [rsp + 0x40]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r13w
jne 0x14006d316
sub ebx, eax
inc r14
cmp word [rcx + r14*2], r13w
jne 0x14006d322
lea rdx, [r14 + 0x78]
mov rcx, r15
lea rdx, [rsi + rdx*2]
lea r8d, [rbx - 0x78]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov r9d, 0x20019
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006d36b
movzx ebx, ax
mov rcx, qword [0x1400b9518]
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14006d3c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14006d3c6
mov ebx, 0x57
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14006d3c6
test byte [rcx + 0x44], 0x80
je 0x14006d3c6
mov rcx, qword [rcx + 0x38]
lea edx, [rbx - 0x4d]
lea r8, [0x14009cc68]
call fcn.1400305cc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140010c30
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400133c0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret