Function at 0x140177478
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 [0x14049e510]
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]
xor esi, esi
test eax, eax
jne 0x1401775a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x59], eax
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14017751b
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, [0x1403d97e3]
call fcn.140001158
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.140099064
mov rdx, qword [rbp - 0x19]
mov eax, dword [rbp - 1]
mov dword [rbx + 0x180], eax
test rdx, rdx
je 0x14017759b
mov rax, qword [rbp - 9]
mov ebx, 0x1000
sub rax, rdx
mov rcx, rdx
cmp rax, rbx
jb 0x140177593
test cl, 0x1f
jne 0x14017758c
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x14017758c
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x140177593
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.1402e0278
xor al, al
jmp 0x1401776cf
movdqa xmm0, xmmword [0x14038ac40]
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
mov word [rbp - 0x39], si
movdqu xmmword [rbp - 0x29], xmm0
call fcn.14004d5c4
mov r8d, 1
lea rdx, [0x14035beac]
lea rcx, [rbp - 0x39]
call fcn.14005e1e8
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.14020885c
lea rdx, [rbp - 0x51]
mov edi, eax
lea rcx, [rbp - 0x19]
call fcn.140064ef0
lea rdx, [rbp - 0x19]
mov dword [rbp - 1], edi
lea rcx, [rbx + 0x168]
call fcn.140099064
mov rdx, qword [rbp - 0x19]
mov ecx, dword [rbp - 1]
mov dword [rbx + 0x180], ecx
mov ebx, 0x1000
test rdx, rdx
je 0x14017766f
mov rax, qword [rbp - 9]
mov rcx, rdx
sub rax, rdx
cmp rax, rbx
jb 0x140177667
test cl, 0x1f
jne 0x140177660
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x140177660
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x140177667
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.1402e0278
mov rdx, qword [rbp - 0x51]
test edi, edi
setns dil
test rdx, rdx
je 0x1401776c3
mov rax, qword [rbp - 0x41]
mov rcx, rdx
sub rax, rdx
cmp rax, rbx
jb 0x1401776af
test cl, 0x1f
jne 0x1401776a8
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1401776a8
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1401776af
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.1402e0278
xorps xmm0, xmm0
mov qword [rbp - 0x41], rsi
movdqu xmmword [rbp - 0x51], xmm0
lea rcx, [rbp - 0x39]
call fcn.14004e0f0
mov al, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1402dfdb0
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