Function at 0x1400113b0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14004f678]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x50], r15
call fcn.140011d50
mov ebx, eax
cmp eax, 0xffffffff
je 0x140011985
mov r10, qword [0x1400516a8]
test r10, r10
jne 0x140011432
lea rdx, str.WTSQuerySessionInformationW
lea rcx, str.Wtsapi32.dll
call fcn.140011b20
xchg qword [0x1400516a8], rax
mov r10, qword [0x1400516a8]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8d, 5
mov edx, ebx
xor ecx, ecx
call r10
nop
test eax, eax
je 0x140011985
lea rax, [0x1400121e0]
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x50]
mov qword [rbp - 0x78], rbx
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
mov byte [rbp - 0x68], 1
mov ecx, 0x20
call fcn.140015184
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400114bd
mov rax, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 8], 1
mov dword [rdi + 0xc], 1
lea rcx, vtable.std::_Ref_count_resource_wchar_t____ptr64__void____cdecl___void____ptr64__.0
mov qword [rdi], rcx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
jmp 0x1400114c0
mov rdi, r15
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x58], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140011513
mov rsi, r15
jmp 0x14001194f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rcx, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__void____ptr64_.0
mov qword [rbp + 0x40], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 0x48], rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rbp + 0x50], cl
mov dword [rbp + 0x54], r15d
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x78], rax
mov ebx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov qword [rbp + 0x138], r15
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1400115bc
lea rax, [rbp + 0x40]
cmp rcx, rax
jne 0x1400115ae
mov r8, qword [rcx]
lea rdx, [rbp + 0x100]
call qword [r8 + 8]
mov qword [rbp + 0x138], rax
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1400115bc
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x1400115b5
mov qword [rbp + 0x138], rcx
mov rcx, r15
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x140], rbx
test rcx, rcx
je 0x1400115d8
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r12, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__wchar_t____ptr64_.0
mov qword [rbp + 0x80], r12
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 0x88], rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rbp + 0x90], cl
mov dword [rbp + 0x94], r15d
mov qword [rbp + 0x98], rax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb8], rax
mov ebx, dword [rsp + 0x44]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov rcx, r15
mov qword [rbp + 0x28], rcx
mov r9, qword [rbp + 0xb8]
test r9, r9
je 0x1400116ac
lea rax, [rbp + 0x80]
mov rcx, r9
cmp r9, rax
jne 0x14001169e
mov r8, qword [r9]
lea rdx, [rbp - 0x10]
call qword [r8 + 8]
mov rcx, rax
mov qword [rbp + 0x28], rax
mov r9, qword [rbp + 0xb8]
test r9, r9
je 0x1400116ac
mov rax, qword [r9]
lea rcx, [rbp + 0x80]
cmp r9, rcx
setne dl
mov rcx, r9
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x28]
jmp 0x1400116a2
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0xb8], r15
mov r9, r15
mov qword [rbp + 0x30], rbx
test r9, r9
je 0x1400116cf
mov rax, qword [r9]
lea rcx, [rbp + 0x80]
cmp r9, rcx
setne dl
mov rcx, r9
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x1400118bd
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1400118bd
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
mov r8, rax
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1400118b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0xc0], r12
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 0xc8], rcx
movzx ecx, byte [rsp + 0x40]
mov byte [rbp + 0xd0], cl
mov dword [rbp + 0xd4], r15d
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0xc0]
mov qword [rbp + 0xf8], rax
mov qword [rbp - 0x28], r15
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xc0]
call qword [method.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__wchar_t____ptr64_.virtual_0]
mov rcx, rax
mov qword [rbp - 0x28], rax
mov r8, qword [rbp + 0xf8]
test r8, r8
je 0x1400117b0
mov rax, qword [r8]
lea rcx, [rbp + 0xc0]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r8, r15
mov qword [rbp + 0xf8], r15
mov rcx, qword [rbp - 0x28]
mov r9, r15
mov qword [rbp - 0x20], r15
test r8, r8
je 0x1400117da
mov rax, qword [r8]
lea rcx, [rbp + 0xc0]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov r9, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
test r14, r14
je 0x14001185a
mov ebx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x20], r9
test rax, rax
je 0x140011828
mov qword [rsp + 0x68], rax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400119b8
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x10]
mov r9, qword [rbp - 0x20]
test r9, r9
jne 0x140011836
mov rsi, r15
mov rcx, qword [rbp - 0x28]
jmp 0x140011878
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x50]
mov rcx, r9
call fcn.140016dc0
mov rax, qword [rbp - 0x20]
mov r9, r15
mov qword [rbp - 0x20], r15
mov qword [r14], rax
mov rcx, qword [rbp - 0x28]
test rsi, rsi
je 0x14001186a
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x30], r15
mov qword [rsi], rax
mov rsi, qword [rbp + 0x140]
mov qword [rbp + 0x140], r15
test r9, r9
je 0x14001189a
mov qword [rsp + 0x70], r9
test rcx, rcx
je 0x1400119be
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400118b3
mov rax, qword [rcx]
lea rdx, [rbp - 0x60]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x28], r15
mov rcx, qword [rbp + 0x28]
jmp 0x1400118c0
mov rcx, qword [rbp + 0x28]
mov rsi, r15
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x1400118e6
mov qword [rsp + 0x78], rdx
test rcx, rcx
je 0x1400119c4
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400118ff
mov rax, qword [rcx]
lea rdx, [rbp - 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x28], r15
mov rax, qword [rbp + 0x140]
test rax, rax
je 0x140011929
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x1400119b2
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x14001194f
mov rax, qword [rcx]
lea rdx, [rbp + 0x100]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x138], r15
test rdi, rdi
je 0x140011980
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140011980
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140011980
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov rax, rsi
jmp 0x140011987
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400153e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140014ea8
nop
call fcn.140014ea8
nop
call fcn.140014ea8
nop
call fcn.140014ea8
int3