Function at 0x140097560
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], r14b
lea rcx, str.wtsapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
lea rbx, [r14 - 1]
test rax, rax
je 0x14009765f
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14009765f
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_WTSGetActiveConsoleSessionId]
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r14 + 5]
mov rax, rsi
call qword [0x1400fac68]
cmp eax, 1
jne 0x14009765f
mov rdx, qword [rsp + 0x50]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140097640
lea rcx, [rsp + 0x68]
call fcn.140028190
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [rsp + 0x60], 0x100
mov dword [rsp + 0x5c], 0x100
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_ansi_l2_1_0.dll_LookupAccountNameA]
test eax, eax
je 0x140097729
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140097729
lea rdx, str.ConvertSidToStringSidA
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x14009771f
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [0x1400fac68]
test eax, eax
je 0x14009771f
mov rdx, qword [rsp + 0x50]
nop word [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140097700
mov r8, rbx
mov rcx, rdi
call fcn.140028190
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140097761
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009775c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009778b
call fcn.1400c2470
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400c8b64
int3