Function at 0x140002ad0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov esi, 0x10
mov dword [rbp - 0x41], esi
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x39]
lea ecx, [rsi - 0xc]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140002b4d
lea rdx, [0x140008840]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004190
mov rcx, rax
lea rdx, [rbp - 0x39]
call fcn.140004190
lea rdx, [0x140004370]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov dword [rbp - 0x69], esi
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x19]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140002b96
lea rdx, [0x1400088c0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004190
mov rcx, rax
lea rdx, [rbp - 0x19]
call fcn.140004190
lea rdx, [0x140004370]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea r9, [rbp + 0x31]
nop dword [rax]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140002bb0
lea r8, [rbp + 0x31]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140005160
nop
mov r8, qword [rbp - 0x79]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
sub rax, r8
cmp rax, 8
jb 0x140002c99
lea rax, [r8 + 8]
mov qword [rbp - 0x79], rax
lea rdi, [rsp + 0x30]
cmp rcx, 7
cmova rdi, qword [rsp + 0x30]
lea rax, [0x140008950]
lea r15, str.Computer
cmp rax, rdi
jbe 0x140002c52
lea rax, [rdi + r8*2]
cmp r15, rax
ja 0x140002c52
cmp rdi, r15
ja 0x140002c47
mov rbx, r14
jmp 0x140002c57
mov rbx, rdi
sub rbx, r15
sar rbx, 1
jmp 0x140002c57
mov ebx, 8
lea rcx, [rdi + 0x10]
lea r8, [r8*2 + 2]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub rsi, rbx
lea rdx, [r15 + 0x10]
add rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x140002caf
mov ebx, 8
mov qword [rsp + 0x28], rbx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140005480
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x61], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x51], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp - 0x71]
cmp rdx, 7
jbe 0x140002d21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005fbc
movdqa xmm0, xmmword [0x140008fc0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_SetComputerNameExW]
test eax, eax
je 0x140002d8e
lea rdx, str.__ComputerNamePhysicalNetBIOS__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004190
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x51]
mov rcx, rax
call fcn.1400052b0
lea rdx, [0x140004370]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetComputerNameExW]
test eax, eax
je 0x140002de9
lea rdx, str.__ComputerNamePhysicalDnsHostname__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004190
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova rdx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x51]
mov rcx, rax
call fcn.1400052b0
lea rdx, [0x140004370]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 7
jbe 0x140002e2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005fbc
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140005f60
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret