Function at 0x14005d490
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0xd0], 0
je 0x14005d630
mov dword [rsp + 0x48], 0
movzx eax, word [0x1400e79f0]
mov word [rsp + 0x90], ax
lea rax, [rsp + 0x92]
mov rdi, rax
xor eax, eax
mov ecx, 0x1e
rep stosb byte [rdi], al
mov dword [rsp + 0x60], setsockopt
mov rcx, qword [rsp + 0xd0]
call fcn.14005f460
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14005d548
jmp 0x14005d785
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
cmp dword [rsp + 0x48], 0
jne 0x14005d5a6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x70], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
jmp 0x14005d785
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.140077f84
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14005d5ce
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d785
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
jne 0x14005d62b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x78], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
jmp 0x14005d785
jmp 0x14005d76f
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14005d672
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
cmp eax, 1
jne 0x14005d682
call fcn.1400825b0
mov dword [rax], 0x83
jmp 0x14005d785
mov eax, dword [rsp + 0x4c]
mov ecx, eax
call fcn.140077f84
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14005d6aa
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d785
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x4c]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x14005d6f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x7c], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x7c]
mov dword [rax], ecx
jmp 0x14005d785
mov rax, qword [rsp + 0x50]
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.140077f84
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14005d724
call fcn.1400825b0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
jmp 0x14005d785
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CopySid]
test eax, eax
jne 0x14005d76f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14006b380
mov dword [rsp + 0x80], eax
call fcn.1400825b0
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
jmp 0x14005d785
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x68], 0
je 0x14005d798
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp qword [rsp + 0x58], 0
je 0x14005d7aa
mov rcx, qword [rsp + 0x58]
call fcn.140077f70
cmp qword [rsp + 0x40], 0
je 0x14005d7bc
mov rcx, qword [rsp + 0x40]
call fcn.140077f70
cmp qword [rsp + 0x50], 0
je 0x14005d7ce
mov rcx, qword [rsp + 0x50]
call fcn.140077f70
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140075860
add rsp, 0xc0
pop rdi
ret