Function at 0x1800640dc
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
mov rbx, rcx
mov r14d, r12d
mov esi, r12d
test rcx, rcx
je 0x180064277
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], r12w
jne 0x180064120
cmp word [rcx], r12w
je 0x180064277
mov esi, 0x5c
cmp word [rcx], si
jne 0x18006415a
cmp word [rcx + 2], si
jne 0x180064150
mov rsi, rbx
add rbx, 4
add edi, 0xfffffffe
jne 0x18006419c
mov ebx, 0xc0000122
jmp 0x1800643a4
lea edx, [rdi + 3]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x180064180
mov ebx, 0xc0000017
jmp 0x1800643a4
lea r8d, [rdi + 1]
mov dword [rax], 0x5c005c
add r8, r8
lea rcx, [rax + 4]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rsi, r14
test rbx, rbx
je 0x180064277
cmp edi, 0xf
ja 0x1800641ee
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1800641ee
cmp edi, dword [rsp + 0x30]
jne 0x1800641ee
mov r8d, edi
lea rcx, [rsp + 0x40]
mov rdx, rbx
call sub.msvcrt.dll__wcsnicmp
test eax, eax
jne 0x1800641ee
mov rbx, r12
mov rsi, r12
test rbx, rbx
je 0x180064277
lea ebp, [rdi - 1]
mov edx, 0x20a
cmp word [rbx + rbp*2], 0x2e
cmovne ebp, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x180064227
mov ebx, 0xc0000017
jmp 0x180064390
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0x105
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x180064268
cmp ebp, dword [rsp + 0x30]
jne 0x180064268
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll__wcsnicmp
neg eax
sbb rcx, rcx
and rsi, rcx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov ebx, 0x1c
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x18006421d
lea r8, str.PIPE_
mov rcx, rax
sub r8, rax
lea edx, [rbx - 0xe]
lea rax, [rdx + 0x7ffffff0]
test rax, rax
je 0x1800642c7
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1800642c7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1800642a4
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov rcx, rdi
mov word [rax], r12w
jne 0x1800642f1
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov ebx, 0xc000000d
jmp 0x180064390
mov rdx, rbx
call fcn.1800643d4
test eax, eax
jns 0x180064302
mov rcx, rdi
jmp 0x1800642db
lea rax, [rsp + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, str.ncacn_np
mov r8, rsi
mov qword [rsp + 0x20], r12
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test ebx, ebx
jne 0x18006421d
mov rcx, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
test ebx, ebx
je 0x18006438d
lea eax, [rbx - 0x6aa]
mov qword [r15], r12
mov ebx, 0xc0000017
cmp eax, 1
mov ecx, 0xc0000122
cmova ecx, ebx
mov ebx, ecx
jmp 0x180064390
mov ebx, r12d
test r14, r14
je 0x1800643a4
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180002a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret