Function at 0x140001be0
Capabilities:
Resolve dns
Send icmp echo request
Terminate process

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x170
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140003a20]
xor r15d, r15d
movsd xmm0, qword [str.Data_Buffer]
mov r12, rdx
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], r15
xorps xmm1, xmm1
mov dword [rsp + 0xc8], eax
lea r8d, [r15 + 0xc]
xor eax, eax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0xdc], eax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov esi, r15d
movsd qword [rsp + 0xc0], xmm0
xorps xmm0, xmm0
mov qword [rsp + 0x20], rdx
xor edx, edx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r15
movups xmmword [rsp + 0xcc], xmm0
mov qword [rsp + 0x70], r15
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x90], xmm1
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r15
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 6
call qword [sym.imp.WS2_32.dll_GetAddrInfoExW]
test eax, eax
je 0x140001cda
mov edx, eax
lea rcx, str.GetAddrInfoEx_failed_with_error:__d_n
call fcn.140001010
lea eax, [r15 + 1]
mov dword [r12 + 0x10], 1
jmp 0x140001f0c
mov qword [rsp + 0x1a0], rbx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x160], rdi
test rbx, rbx
je 0x140001f46
cmp dword [rbx + 4], 2
jne 0x140001d40
lea rcx, str.AF_INET__IPv4__n
call fcn.140001010
mov rdi, qword [rbx + 0x20]
lea r8, [rsp + 0xe0]
mov r9d, 0x2e
lea rdx, [rdi + 4]
lea ecx, [r9 - 0x2c]
call qword [sym.imp.WS2_32.dll_InetNtopW]
mov rdx, rax
lea rcx, str._tIPv4_address__ws_n
call fcn.140001010
test rsi, rsi
cmove rsi, rdi
mov rbx, qword [rbx + 0x40]
test rbx, rbx
jne 0x140001cf8
test rsi, rsi
je 0x140001f46
call qword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov qword [rsp + 0x50], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IcmpCreatefile_returned_error:__ld_n
call fcn.140001010
lea eax, [rbx + 2]
jmp 0x140001efc
mov qword [rsp + 0x168], rbp
mov ebp, r15d
mov qword [rsp + 0x150], r14
mov r14, r15
mov qword [rsp + 0x158], r13
mov dword [rsp + 0x68], r15d
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001f29
mov edx, dword [rsi + 4]
lea r8, [rsp + 0xc0]
mov dword [rsp + 0x38], 0x3e8
mov r9d, 0x20
mov dword [rsp + 0x30], 0x48
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
mov r13d, eax
test eax, eax
je 0x140001e6a
mov rdx, qword [rsp + 0x58]
lea rcx, str._tSent_icmp_message_to__ws_n
mov ebx, dword [rdi]
call fcn.140001010
mov edx, r13d
lea rcx, str._tReceived__ld_icmp_message_response._n
call fcn.140001010
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str._t__Received_from__s_n
call fcn.140001070
mov edx, dword [rdi + 4]
lea rcx, str._t__Status___ld_n
call fcn.140001010
cmp dword [rdi + 4], r15d
je 0x140001e4c
mov rbx, qword [rsp + 0x50]
jmp 0x140001e8a
mov edx, dword [rdi + 8]
lea rcx, str._t__Roundtrip_time___ld_milliseconds_n
call fcn.140001010
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x50]
mov dword [rsp + r14*4 + 0x68], eax
jmp 0x140001e8c
lea rcx, str._tCall_to_IcmpSendEcho_failed._n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._tIcmpSendEcho_returned_error:__ld_n
call fcn.140001010
inc ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc r14
cmp r14, 1
jl 0x140001da5
mov eax, dword [rsi + 4]
mov dword [r12], eax
test ebp, ebp
jle 0x140001eb4
mov dword [r12 + 0x10], ebp
jmp 0x140001ed7
mov eax, dword [rsp + 0x68]
mov ecx, 0x7fffffff
cmp eax, ecx
mov dword [r12 + 0xc], eax
cmovb ecx, eax
test eax, eax
mov dword [r12 + 8], ecx
cmovne r15d, eax
mov dword [r12 + 4], r15d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoExW]
mov r13, qword [rsp + 0x158]
xor eax, eax
mov rbp, qword [rsp + 0x168]
mov r14, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001f80
add rsp, 0x170
pop r15
pop r12
pop rsi
ret
lea rdx, str._ERROR__MALLOC_failed.
mov ecx, 1
call fcn.1400010d0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.Failed_to_resolve_host__no_valid_ipv4_address_found_
call fcn.140001010
mov eax, 3
mov dword [r12 + 0x10], 1
jmp 0x140001efc