Function at 0x180002e64
Capabilities:
Get hostname
Get networking parameters
Initialize winsock library
Reference google public dns server
Resolve dns
Send icmp echo request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
lea r14, [rcx + 0x10]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_inet_addr]
inc eax
test eax, 0xfffffffe
jne 0x180003172
lea rcx, [rbp - 0x10]
mov edx, 0x100
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x180003172
movsx r8, word [rax + 0x12]
lea rcx, [rbp + 0x2c8]
call fcn.18001cfc0
mov ecx, dword [rbp + 0x2c8]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r13d, 0x14
mov rcx, r14
mov rdx, rax
mov r8d, r13d
call fcn.18001cfc0
mov rdx, r14
call fcn.180002de4
test eax, eax
jne 0x180003172
and dword [rbp + 0x2c0], eax
lea esi, [rax + 0x40]
xorps xmm0, xmm0
mov edi, 0x258
mov ecx, esi
mov edx, edi
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rdx, [rbp + 0x2c0]
mov dword [rbp + 0x2c0], edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
cmp eax, 0x6f
jne 0x180002f62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [rbp + 0x2c0]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
lea rdx, [rbp + 0x2c0]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
xor edx, edx
test eax, eax
setne dl
test edx, edx
je 0x180002f90
lea rcx, str.0x02__GetNetworkParams_failed:_08x
call fcn.180002148
mov ebx, 0x10
jmp 0x180002fc5
lea r8, [rbx + 0x118]
mov ebx, 0x10
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.18001d58c
lea rcx, [rsp + 0x40]
call fcn.18001d680
test rax, rax
je 0x180002fc5
lea rdx, [rsp + 0x40]
call fcn.180002de4
test eax, eax
jne 0x180002fd9
lea r8, str.8.8.8.8
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.18001d58c
lea rdx, [rsp + 0x40]
lea rcx, str.0x02__DNS:_s
call fcn.180002148
lea rdx, [rbp + 0xf0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180003011
lea rcx, str.0x02__WSAStartup_failed.
call fcn.180002148
jmp 0x180003172
lea rcx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180003052
lea rcx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x180003049
lea rdx, [rsp + 0x40]
lea rcx, str.0x02__Invalid_IP_or_domain_name:__s
call fcn.180002148
jmp 0x180003172
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov edi, dword [rcx]
call qword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000306a
lea rcx, str.0x02__Unable_to_open_ICMP_file.
jmp 0x180003007
lea rcx, [rsp + 0x68]
mov r8, rbx
xor edx, edx
call fcn.18001cca0
mov edx, gethostbyname
lea rcx, [rsp + 0x78]
lea r8d, [rdx - 0x10]
mov byte [rsp + 0x68], 1
call fcn.18001cca0
mov ebx, 0xa
lea r15d, [rbx - 9]
mov eax, ebx
dec ebx
test eax, eax
je 0x180003163
mov dword [rsp + 0x38], 0xbb8
lea rax, [rbp - 0x60]
mov dword [rsp + 0x30], 0x48
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x78]
mov r9d, 0x20
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
test eax, eax
je 0x180003156
mov ecx, dword [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
movzx edx, byte [rsp + 0x68]
lea rcx, str.0x02___d:_s
mov r8, rax
call fcn.180002148
mov ecx, dword [rbp - 0x60]
xor eax, eax
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x50]
mov r8, r13
mov rdx, rax
call fcn.18001cfc0
lea rdx, [rsp + 0x50]
call fcn.180002de4
cmp eax, 1
je 0x18000318e
cmp dword [rbp - 0x60], edi
jne 0x180003156
lea rcx, str.Trace_complete.
call fcn.180002148
xor r15d, r15d
inc byte [rsp + 0x68]
test r15d, r15d
jne 0x18000309a
mov rcx, rsi
call qword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov r8, r13
mov rcx, r14
call fcn.18001cfc0
jmp 0x180003172