Function at 0x1400b5e28
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rbx, qword [rbp + 0x7f0]
xor edi, edi
mov r12, r9
mov byte [rsp + 0x41], r8b
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rbx
test rcx, rcx
jne 0x1400b5e8f
lea edx, [rcx + 0x5d]
lea r8, [0x1400095a8]
lea rcx, [0x14000a7b0]
call fcn.1400a8be8
test rsi, rsi
jne 0x1400b5eaa
lea r8, [0x140009d68]
lea edx, [rsi + 0x5e]
lea rcx, [0x14000a7b0]
call fcn.1400a8be8
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x44], edi
mov r13, rdi
mov dword [rsp + 0x48], edi
mov byte [rsp + 0x40], dil
mov dword [rbx], edi
call fcn.1400a926c
mov r15, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
jns 0x1400b5f34
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1400b6298
test byte [rcx + 0x1c], 1
je 0x1400b6298
cmp byte [rcx + 0x19], 2
jb 0x1400b6298
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov edx, 0xa
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x1400b6298
lea rax, [rsp + 0x5c]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400b5fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400b5fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1400b6095
test byte [rcx + 0x1c], 1
je 0x1400b6095
cmp byte [rcx + 0x19], 2
jb 0x1400b6095
mov edx, reloc.ADVAPI32.dll_TraceMessage
jmp 0x1400b6079
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x1400b5ff4
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x44]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x1400b5ffe
mov ebx, 0x8007000e
jmp 0x1400b6298
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x5c]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov r8, r13
mov rdx, rsi
mov rcx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400b60a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1400b6095
test byte [rcx + 0x1c], 1
je 0x1400b6095
cmp byte [rcx + 0x19], 2
jb 0x1400b6095
mov edx, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov r9, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
call fcn.140028ec8
cmp ebx, 0x80070534
jne 0x1400b6298
jmp 0x1400b613c
mov rcx, qword [0x14017d3a8]
lea rdi, [0x14017d3a8]
cmp rcx, rdi
je 0x1400b60e2
test byte [rcx + 0x1c], 1
je 0x1400b60e2
cmp byte [rcx + 0x19], 4
jb 0x1400b60e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov edx, reloc.ADVAPI32.dll_GetTraceEnableLevel
mov r9, rsi
mov qword [rsp + 0x20], rbx
call fcn.14001ed50
xor r14d, r14d
cmp byte [rsp + 0x41], r14b
jne 0x1400b6146
lea r8, [rsp + 0x40]
mov rdx, r15
mov rcx, rsi
call fcn.1400b62f4
mov ebx, eax
test eax, eax
js 0x1400b6298
cmp byte [rsp + 0x40], r14b
je 0x1400b6146
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1400b613c
test byte [rcx + 0x1c], 1
je 0x1400b613c
cmp byte [rcx + 0x19], 2
jb 0x1400b613c
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0xe]
lea r8, [0x14000a8c0]
mov r9, rsi
call fcn.14001ec40
mov ebx, 0x8078008b
jmp 0x1400b6298
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x1400b619a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1400b6298
test byte [rcx + 0x1c], 1
je 0x1400b6298
cmp byte [rcx + 0x19], 2
jb 0x1400b6298
mov edx, reloc.ADVAPI32.dll_RegisterTraceGuidsW
jmp 0x1400b6261
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1400b61d9
test byte [rcx + 0x1c], 1
je 0x1400b61d9
cmp byte [rcx + 0x19], 4
jb 0x1400b61d9
mov rax, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov qword [rsp + 0x28], rax
mov edx, CoRevokeClassObject
mov r9, rsi
mov qword [rsp + 0x20], r15
call fcn.14001ee38
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x800
call sub.msvcrt.dll_memset
mov r9, qword [rsp + 0x50]
lea r8, [0x14000a7e0]
lea rcx, [rbp - 0x80]
mov edx, 0x400
mov qword [rsp + 0x20], r9
call fcn.1400284c0
mov ebx, eax
test eax, eax
js 0x1400b6298
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x60]
lea rcx, [rbp - 0x80]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1400b6276
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1400b6298
test byte [rcx + 0x1c], 1
je 0x1400b6298
cmp byte [rcx + 0x19], 2
jb 0x1400b6298
mov edx, reloc.ole32.dll_CoRevokeClassObject
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000a8c0]
mov r9d, ebx
call fcn.14001de24
jmp 0x1400b6298
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov dword [r12 + 0x10], r14d
mov qword [r12 + 8], rax
mov dword [r12], 0x18
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x890
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret