Function at 0x14005cad0
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 [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r13, rdx
mov dword [rsp + 0x58], 0x67727473
mov r12, rcx
mov dword [rsp + 0x50], 0x44
lea r15, [0x1400a6be8]
mov dword [rsp + 0x48], 1
xor edi, edi
mov qword [rsp + 0x60], r15
xor edx, edx
mov qword [rsp + 0x40], rdi
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov dword [rsp + 0x4c], 0x104
mov ebx, edi
test r12, r12
je 0x14005ce84
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [r12 + rax*2], di
jne 0x14005cb63
cmp rax, 0x21b
jae 0x14005ce84
lea rcx, [rsp + 0x58]
call fcn.1400632c4
test eax, eax
jns 0x14005cb98
movzx ebx, ax
test ebx, ebx
je 0x14005cb98
mov r15, qword [rsp + 0x60]
jmp 0x14005ceb5
mov r15, qword [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x4c]
mov rdx, r15
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
lea rax, [rbp - 0x40]
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 0x14005cbf3
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005cc35
test byte [rcx + 0x1c], 0x80
je 0x14005cc35
mov edx, 0xb
jmp 0x14005cc25
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 0x14005cc3f
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005cc35
test byte [rcx + 0x1c], 0x80
je 0x14005cc35
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008bd70]
call fcn.1400248e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14005cc72
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005cc7a
test byte [rcx + 0x1c], 0x80
je 0x14005cc7a
mov r9, qword [rsp + 0x40]
lea r8, [0x14008bd70]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.14003317c
test ebx, ebx
jne 0x14005ceb5
mov rax, qword [rsp + 0x40]
mov rbx, r14
inc rbx
cmp word [rax + rbx*2], di
jne 0x14005cc82
add ebx, 0x294
lea ecx, [rbx + rbx]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
test rax, rax
je 0x14005ce7a
xor r11d, r11d
mov edi, ebx
lea rcx, [rbx - 1]
mov edx, r11d
cmp rcx, 0x7ffffffe
mov eax, 0x80070057
cmova edx, eax
test edx, edx
js 0x14005ccdc
lea r8, [rsp + 0x58]
mov edx, edi
mov rcx, rsi
call fcn.14000b764
mov r8, qword [rsp + 0x58]
mov edx, eax
jmp 0x14005ccdf
mov r8, r11
test edx, edx
js 0x14005ce63
mov rcx, rdi
lea rdx, [rsi + r8*2]
sub rcx, r8
je 0x14005cd2c
lea r9, [r8 + 0x7ffffffe]
mov rax, rcx
sub rax, rdi
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersClient_Side_Rendering_Print_Provider_
add r9, rax
sub r8, rdx
test r9, r9
je 0x14005cd2c
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14005cd2c
mov word [rdx], ax
dec r9
add rdx, 2
sub rcx, 1
jne 0x14005cd0d
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
neg rcx
sbb edx, edx
not edx
and edx, 0x8007007a
mov word [rax], r11w
test edx, edx
js 0x14005ce63
mov r8, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14000b69c
xor r11d, r11d
mov edx, eax
test eax, eax
js 0x14005ce63
lea rax, [rbx - 1]
mov edx, r11d
cmp rax, 0x7ffffffe
mov eax, 0x80070057
cmova edx, eax
test edx, edx
js 0x14005cd9f
lea r8, [rsp + 0x58]
mov rdx, rdi
mov rcx, rsi
call fcn.14000b764
mov r8, qword [rsp + 0x58]
mov edx, eax
jmp 0x14005cda2
mov r8, r11
test edx, edx
js 0x14005ce63
mov rcx, rdi
lea rdx, [rsi + r8*2]
sub rcx, r8
je 0x14005cdef
lea r9, [r8 + 0x7ffffffe]
mov rax, rcx
sub rax, rdi
lea r8, str.PrintersConnections_
add r9, rax
sub r8, rdx
test r9, r9
je 0x14005cdef
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14005cdef
mov word [rdx], ax
dec r9
add rdx, 2
sub rcx, 1
jne 0x14005cdd0
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
neg rcx
sbb edx, edx
not edx
and edx, 0x8007007a
mov word [rax], r11w
test edx, edx
js 0x14005ce63
mov rcx, qword [rsp + 0x40]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r11w
jne 0x14005ce17
sub ebx, eax
inc r14
cmp word [rcx + r14*2], r11w
jne 0x14005ce23
lea rdx, [r14 + 0x78]
mov rcx, r12
lea rdx, [rsi + rdx*2]
lea r8d, [rbx - 0x78]
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov r9d, 0x20019
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
jmp 0x14005ce66
movzx ebx, dx
mov rcx, qword [0x1400a6ef0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14005ceb5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14005ceb5
mov ebx, 0x57
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x14005ceb5
test byte [rcx + 0x1c], 0x80
je 0x14005ceb5
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 0x4d]
lea r8, [0x14008bd70]
call fcn.1400248e4
mov rdx, r15
call fcn.14000d544
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400106e0
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