Function at 0x140079c98
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 - 0x1f8]
sub rsp, 0x2d0
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r13, rdx
mov dword [rsp + 0x58], 0x44
mov r12, rcx
mov dword [rsp + 0x50], 1
lea rbx, [0x1400c8f30]
xor esi, esi
xor edx, edx
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x40], rsi
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov dword [rsp + 0x54], 0x104
mov edi, esi
test r12, r12
je 0x140079fbb
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [r12 + rax*2], si
jne 0x140079d23
cmp rax, 0x21b
jae 0x140079fbb
lea rcx, [rsp + 0x48]
call fcn.14008202c
test eax, eax
jns 0x140079d58
movzx edi, ax
test edi, edi
je 0x140079d58
mov rbx, qword [rsp + 0x48]
jmp 0x140079fec
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov rdx, rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rbp - 0x50]
xor ecx, ecx
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 0x140079db9
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079e01
test byte [rcx + 0x44], 0x80
je 0x140079e01
mov edx, 0xb
jmp 0x140079df1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
nop dword [rax + rax]
test eax, eax
jne 0x140079e11
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079e01
test byte [rcx + 0x44], 0x80
je 0x140079e01
mov edx, 0xc
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab20]
call fcn.14001c1cc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079e44
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079e4c
test byte [rcx + 0x44], 0x80
je 0x140079e4c
mov r9, qword [rsp + 0x40]
lea r8, [0x1400aab20]
mov rcx, qword [rcx + 0x38]
mov edx, 0xd
call fcn.14003249c
test edi, edi
jne 0x140079fec
mov rax, qword [rsp + 0x40]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], si
jne 0x140079e54
add edi, 0x294
lea ecx, [rdi + rdi]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r14, rax
test rax, rax
je 0x140079fab
lea rcx, [rdi - 1]
mov esi, edi
cmp rcx, 0x7ffffffe
ja 0x140079f89
mov ecx, esi
xor r11d, r11d
cmp word [rax], r11w
je 0x140079e9f
add rax, 2
sub rcx, 1
jne 0x140079e8f
mov rax, rcx
neg rax
sbb eax, eax
not eax
and eax, 0x80070057
test rcx, rcx
je 0x140079ebb
mov r8, rsi
sub r8, rcx
jmp 0x140079ebe
mov r8, r11
test rcx, rcx
je 0x140079ed9
mov rdx, rsi
lea rcx, [r14 + r8*2]
sub rdx, r8
lea r9, str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintProvidersClient_Side_Rendering_Print_Provider_
call fcn.1400109d0
test eax, eax
js 0x140079f8e
mov r8, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r14
call fcn.14001a808
xor r11d, r11d
test eax, eax
js 0x140079f8e
lea r8, [rsp + 0x48]
mov rdx, rsi
mov rcx, r14
call fcn.140010a90
test eax, eax
js 0x140079f8e
mov rax, qword [rsp + 0x48]
lea r9, str.PrintersConnections_
sub rsi, rax
mov rdx, rsi
lea rcx, [r14 + rax*2]
call fcn.1400109d0
test eax, eax
js 0x140079f8e
mov rcx, qword [rsp + 0x40]
mov rax, r15
inc rax
cmp word [rcx + rax*2], r11w
jne 0x140079f37
sub edi, eax
inc r15
cmp word [rcx + r15*2], r11w
jne 0x140079f43
lea rdx, [r15 + 0x78]
mov rcx, r12
lea rdx, [r14 + rdx*2]
lea r8d, [rdi - 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]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079f91
mov eax, 0x80070057
movzx edi, ax
mov rcx, qword [0x1400c9130]
mov r8, r14
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140079fec
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140079fec
mov edi, 0x57
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x140079fec
test byte [rcx + 0x44], 0x80
je 0x140079fec
mov rcx, qword [rcx + 0x38]
lea edx, [rdi - 0x4d]
lea r8, [0x1400aab20]
call fcn.14001c1cc
mov rdx, rbx
call fcn.14004388c
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x2d0]
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