Function at 0x14002b750
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r13
xor r13d, r13d
mov qword [r11 - 0x20], r14
mov esi, r13d
mov qword [r11 - 0x28], r15
mov r15, rcx
mov qword [rbp - 9], r13
mov r12d, r13d
mov dword [rbp - 0x15], r13d
mov edi, r13d
mov r14d, r13d
test rcx, rcx
je 0x14002b8df
xor eax, eax
mov dword [rbp - 0x19], r13d
mov qword [rbp + 9], rax
mov ebx, r13d
mov qword [rbp + 0x11], rax
mov qword [rbp + 0x19], rax
mov dword [rbp + 0x21], eax
mov word [rbp + 0x25], ax
mov word [rbp + 7], r13w
mov dword [rbp - 0x11], shutdown
call fcn.140033fd0
mov r14, rax
test rax, rax
je 0x14002b9d6
lea rax, [rbp - 1]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x19]
lea rax, [rbp - 0x11]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [rbp - 0x19]
test eax, eax
jne 0x14002b85f
lea rdx, str.administrators
mov rcx, r15
call fcn.14007fa40
test eax, eax
jne 0x14002b83d
lea r9, [rbp - 0x19]
xor r8d, r8d
xor edx, edx
lea ecx, [rax + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
lea ebx, [r13 + 1]
mov eax, dword [rbp - 0x19]
test eax, eax
jne 0x14002b85f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
jmp 0x14002b9d6
mov ecx, eax
call fcn.140088334
mov rdi, rax
test rax, rax
jne 0x14002b87e
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14002b9d6
lea r9, [rbp - 0x19]
mov r8, rdi
test ebx, ebx
je 0x14002b896
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
jmp 0x14002b8bc
lea rax, [rbp - 1]
mov rdx, r14
mov qword [rsp + 0x30], rax
xor ecx, ecx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14002b9c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
jmp 0x14002b9d6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 9]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002b9cb
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x15]
mov ebx, 1
mov qword [rsp + 0x20], rax
mov edx, ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
je 0x14002b9cb
mov ecx, dword [rbp - 0x15]
call fcn.140088334
mov rsi, rax
test rax, rax
jne 0x14002b947
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14002b9d6
mov r9d, dword [rbp - 0x15]
lea rax, [rbp - 0x15]
mov rcx, qword [rbp - 9]
mov r8, rsi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14002b97f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034510
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
jmp 0x14002b9d6
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
call fcn.140088334
mov rdi, rax
test rax, rax
jne 0x14002b9a4
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14002b9d6
mov rbx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov r8, rbx
mov rdx, rdi
mov ecx, eax
call qword [sym.imp.ADVAPI32.dll_CopySid]
jmp 0x14002b8bc
mov r12, rdi
mov rdi, r13
jmp 0x14002b9d6
call fcn.140084fc0
mov dword [rax], 0x83
mov rcx, qword [rbp - 9]
mov r15, qword [rsp + 0x90]
mov r13, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14002b9fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x14002ba0a
mov rcx, r14
call fcn.14007a8b4
mov r14, qword [rsp + 0x98]
test rdi, rdi
je 0x14002ba1f
mov rcx, rdi
call fcn.14007a8b4
mov rdi, qword [rsp + 0xd0]
test rsi, rsi
je 0x14002ba34
mov rcx, rsi
call fcn.14007a8b4
mov rax, r12
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140078840
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret