Function at 0x14005d4a0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0xe0], 0
je 0x14005d6c1
mov dword [rsp + 0x40], 0
movzx eax, word [0x1400e79f0]
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e
rep stosb byte [rdi], al
mov dword [rsp + 0x6c], shutdown
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0xe0]
call fcn.14005f500
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14005d560
jmp 0x14005d81c
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
cmp dword [rsp + 0x40], 0
jne 0x14005d5d5
lea rdx, str.administrators
mov rcx, qword [rsp + 0xe0]
call fcn.14007805c
test eax, eax
jne 0x14005d5d5
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov ecx, 0x1a
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
mov dword [rsp + 0x68], 1
cmp dword [rsp + 0x40], 0
jne 0x14005d603
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x80], eax
call fcn.1400826c8
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
jmp 0x14005d81c
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.140078014
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14005d62b
call fcn.1400826c8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d81c
cmp dword [rsp + 0x68], 0
je 0x14005d64f
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1a
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
mov dword [rsp + 0x70], eax
jmp 0x14005d68e
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x14005d6bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x88], eax
call fcn.1400826c8
mov ecx, dword [rsp + 0x88]
mov dword [rax], ecx
jmp 0x14005d81c
jmp 0x14005d806
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x78]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14005d703
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
cmp eax, 1
jne 0x14005d713
call fcn.1400826c8
mov dword [rax], 0x83
jmp 0x14005d81c
mov eax, dword [rsp + 0x50]
mov ecx, eax
call fcn.140078014
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14005d73b
call fcn.1400826c8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d81c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x14005d78a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x8c], eax
call fcn.1400826c8
mov ecx, dword [rsp + 0x8c]
mov dword [rax], ecx
jmp 0x14005d81c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov eax, eax
mov ecx, eax
call fcn.140078014
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14005d7bb
call fcn.1400826c8
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d81c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CopySid]
test eax, eax
jne 0x14005d806
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b550
mov dword [rsp + 0x90], eax
call fcn.1400826c8
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
jmp 0x14005d81c
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x78], 0
je 0x14005d82f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rsp + 0x60], 0
je 0x14005d841
mov rcx, qword [rsp + 0x60]
call fcn.140078000
cmp qword [rsp + 0x48], 0
je 0x14005d853
mov rcx, qword [rsp + 0x48]
call fcn.140078000
cmp qword [rsp + 0x58], 0
je 0x14005d865
mov rcx, qword [rsp + 0x58]
call fcn.140078000
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0xd0
pop rdi
ret