Function at 0x1402ec168
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov dword [rbp - 0x55], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rbp + 0x27]
lea rdx, [rbp - 0x55]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1402ec2a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x1402ec217
lea rax, str.Failed_to_read_machine_sid___couldnt_retrieve_computer_name
mov qword [rbp + 0xf], 0x7a
mov qword [rbp + 7], rax
lea edx, [rsi + 4]
lea rax, [rbp - 0x59]
mov qword [rbp + 0x1f], rdx
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x140484e9e]
call fcn.140001208
mov eax, dword [rbp - 0x59]
lea rdx, [rbp - 0x19]
movzx ecx, ax
xorps xmm0, xmm0
or ecx, 0x80070000
mov qword [rbp - 9], rsi
test eax, eax
movdqu xmmword [rbp - 0x19], xmm0
cmovle ecx, eax
mov dword [rbp - 1], ecx
lea rcx, [rbx + 0x168]
call fcn.1400a86c4
mov rcx, qword [rbp - 0x19]
mov eax, dword [rbp - 1]
mov dword [rbx + 0x180], eax
test rcx, rcx
je 0x1402ec294
mov rdx, qword [rbp - 9]
mov ebx, 0x1000
sub rdx, rcx
mov rax, rcx
cmp rdx, rbx
jb 0x1402ec28f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402ec28f
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140356b5c
lea rdx, [rbp - 0x59]
call fcn.1402ecd98
xor al, al
jmp 0x1402ec3ce
movdqa xmm0, xmmword [0x140420310]
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
mov word [rbp - 0x39], si
movdqu xmmword [rbp - 0x29], xmm0
call fcn.140055574
mov r8d, 1
lea rdx, [0x140410918]
lea rcx, [rbp - 0x39]
call fcn.140068814
cmp qword [rbp - 0x21], 8
lea rdx, [rbp - 0x39]
lea r8, [rbp - 0x51]
mov qword [rbp - 0x51], rsi
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp + 0x27]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x41], rsi
call fcn.140242ff8
lea rdx, [rbp - 0x51]
mov dword [rbp - 0x59], eax
lea rcx, [rbp - 0x19]
mov edi, eax
call fcn.14006fe04
lea rdx, [rbp - 0x19]
mov dword [rbp - 1], edi
lea rcx, [rbx + 0x168]
call fcn.1400a86c4
mov ecx, dword [rbp - 1]
mov dword [rbx + 0x180], ecx
mov ebx, 0x1000
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1402ec364
mov rdx, qword [rbp - 9]
mov rax, rcx
sub rdx, rcx
cmp rdx, rbx
jb 0x1402ec35f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1402ec3a4
call fcn.140356b5c
test edi, edi
jns 0x1402ec373
lea rdx, [rbp - 0x59]
call fcn.1402ecd98
test edi, edi
mov rcx, qword [rbp - 0x51]
setns dil
test rcx, rcx
je 0x1402ec3c2
mov rdx, qword [rbp - 0x41]
mov rax, rcx
sub rdx, rcx
cmp rdx, rbx
jb 0x1402ec3b1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1402ec3b1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140356b5c
xorps xmm0, xmm0
mov qword [rbp - 0x41], rsi
movdqu xmmword [rbp - 0x51], xmm0
lea rcx, [rbp - 0x39]
call fcn.140055f70
mov al, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret