Function at 0x140067dbc
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r13, rdx
mov dword [rsp + 0x58], 0x67727473
mov r15, rcx
mov dword [rsp + 0x50], 0x44
lea r12, [0x1400af054]
mov dword [rsp + 0x48], 1
xor ebp, ebp
mov qword [rsp + 0x60], r12
xor edx, edx
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov dword [rsp + 0x4c], 0x104
test r15, r15
je 0x1400680e7
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp word [r15 + rax*2], bp
jne 0x140067e4c
cmp rax, 0x21b
jae 0x1400680e7
lea rcx, [rsp + 0x58]
call fcn.14006c8c8
test eax, eax
jns 0x140067e81
movzx ebx, ax
test ebx, ebx
je 0x140067e81
mov r12, qword [rsp + 0x60]
jmp 0x140068118
mov r12, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov rdx, r12
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0xc0]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
jne 0x140067ee0
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140067f22
test byte [rcx + 0x1c], 0x80
je 0x140067f22
mov edx, 0xb
jmp 0x140067f12
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140067f34
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140067f22
test byte [rcx + 0x1c], 0x80
je 0x140067f22
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140093840]
call fcn.14002ef94
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140068118
jmp 0x140067f67
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140067f67
test byte [rcx + 0x1c], 0x80
je 0x140067f67
mov r9, qword [rsp + 0x40]
lea r8, [0x140093840]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140040874
mov rax, qword [rsp + 0x40]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], bp
jne 0x140067f6f
add ebx, 0x294
lea ecx, [rbx + rbx]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r14, rax
test rax, rax
je 0x1400680dd
lea rcx, [rbx - 1]
mov qword [rsp + 0x310], rsi
cmp rcx, 0x7ffffffe
mov esi, ebx
mov edx, ebp
mov r8d, 0x80070057
cmova edx, r8d
test edx, edx
js 0x1400680be
mov ecx, esi
test ebx, ebx
je 0x140067fd0
cmp word [rax], bp
je 0x140067fd0
add rax, 2
sub rcx, 1
jne 0x140067fc1
test rcx, rcx
mov edx, r8d
mov rax, rsi
cmovne edx, ebp
sub rax, rcx
test rcx, rcx
cmovne rbp, rax
test edx, edx
js 0x1400680be
mov rdx, rsi
lea rcx, [r14 + rbp*2]
sub rdx, rbp
lea r9, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersClient_Side_Rendering_Print_Provider_
call fcn.140037ee8
mov edx, eax
test eax, eax
js 0x1400680be
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r14
call fcn.140012498
mov edx, eax
test eax, eax
js 0x1400680be
lea r8, [rsp + 0x58]
mov rdx, rsi
mov rcx, r14
call fcn.14001da90
mov edx, eax
test eax, eax
js 0x14006805b
mov rax, qword [rsp + 0x58]
lea r9, str.PrintersConnections_
sub rsi, rax
mov rdx, rsi
lea rcx, [r14 + rax*2]
call fcn.140037ee8
mov edx, eax
test edx, edx
js 0x1400680be
mov rcx, qword [rsp + 0x40]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14006806c
sub ebx, eax
nop dword [rax]
cmp word [rcx + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x14006807c
lea rdx, [rdi + 0x78]
mov rcx, r15
lea rdx, [r14 + rdx*2]
lea r8d, [rbx - 0x78]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov r9d, 0x20019
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
jmp 0x1400680c1
movzx ebx, dx
mov rcx, qword [0x1400af198]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rsi, qword [rsp + 0x310]
jmp 0x140068118
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x140068118
mov ebx, 0x57
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x140068118
test byte [rcx + 0x1c], 0x80
je 0x140068118
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 0x4d]
lea r8, [0x140093840]
call fcn.14002ef94
mov rdx, r12
call fcn.140011f88
mov eax, ebx
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14001aad0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret