Function at 0x14003b561
Capabilities:
Resolve dns

Disassembly:
push rbp
sub rsp, 0x3c0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1e8], rsi
mov qword [rbp + 0x1e0], rbx
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
mov qword [rbp + 0xb0], r8
mov qword [rbp + 0xb8], r9
mov qword [rbp + 0x3a0], rcx
mov qword [rbp + 0x3a8], rdx
mov qword [rbp + 0x3b0], r8
mov qword [rbp + 0x3b8], r9
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x388], rax
mov dword [rbp], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xd8], 0
mov dword [rbp + 4], 0
mov eax, 0x102
lea rdx, [rbp + 0x1f0]
mov rcx, qword [sym.imp.orauts.dll_WSAStartup]
mov qword [rbp + 0x160], rcx
mov ecx, eax
mov rax, qword [rbp + 0x160]
call rax
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
test eax, eax
je 0x14003b6cb
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0x3a0]
lea rdx, [0x1400c0e14]
mov ecx, dword [rbp + 0xc]
mov ebx, 0
lea rsi, str.sprvnc_Ping
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x168], ecx
mov rcx, rax
mov eax, dword [rbp + 0x168]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x14], eax
mov eax, 0
mov dword [rbp + 0x98], eax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x388], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x98]
mov rbx, qword [rbp + 0x1e0]
mov rsi, qword [rbp + 0x1e8]
lea rsp, [rbp + 0x390]
pop rbp
ret
mov dword [rbp], 1
mov rax, qword [rbp + 0x3a8]
mov edx, 0
mov ecx, 0
lea rbx, [rbp + 0xc0]
mov rsi, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov qword [rbp + 0x170], rcx
mov rcx, rax
mov rax, qword [rbp + 0x170]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
test eax, eax
je 0x14003b89b
mov qword [rbp + 0xe0], 0
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.140037fa8
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe0], rax
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0x3a0]
lea rdx, [0x1400c103c]
mov ecx, dword [rbp + 0x20]
mov rbx, qword [rbp + 0xe0]
lea rsi, str.sprvnc_Ping
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x178], ecx
mov rcx, rax
mov eax, dword [rbp + 0x178]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x24], eax
call fcn.14003d2c0
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x14003bd3c
call fcn.14003d1c7
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x120]
test rax, rax
je 0x14003bd3c
call fcn.14003d2d6
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x120]
lea rdx, str._s:_d:_s::
lea rcx, str.sprvncon.c
mov ebx, 0x460
mov rsi, qword [rbp + 0x128]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x180], rcx
mov rcx, rax
mov rax, qword [rbp + 0x180]
mov r8, rax
mov r9d, ebx
call fcn.140001088
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x120]
lea rdx, str.src_IP__s_can_not_be_resolved._errMsg:__s
mov rcx, qword [rbp + 0x3a8]
mov rbx, qword [rbp + 0xe0]
mov qword [rbp + 0x188], rcx
mov rcx, rax
mov rax, qword [rbp + 0x188]
mov r8, rax
mov r9, rbx
call fcn.140001088
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x120]
lea rdx, [0x1400b189c]
mov rcx, rax
call fcn.140001088
mov dword [rbp + 0x70], eax
mov rax, qword [rbp + 0x120]
mov rdx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rax
call rdx
mov dword [rbp + 0x78], eax
jmp 0x14003bd3c
call fcn.14003d2c0
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
test eax, eax
je 0x14003b989
call fcn.14003d1c7
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
test rax, rax
je 0x14003b989
call fcn.14003d2d6
mov qword [rbp + 0x100], rax
mov rax, qword [rbp + 0xf8]
lea rdx, str._s:_d:_s::
lea rcx, str.sprvncon.c
mov ebx, 0x464
mov rsi, qword [rbp + 0x100]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x190], rcx
mov rcx, rax
mov rax, qword [rbp + 0x190]
mov r8, rax
mov r9d, ebx
call fcn.140001088
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0xf8]
lea rdx, str.getaddrinfo_of_src__s_is_succes
mov rcx, qword [rbp + 0x3a8]
mov qword [rbp + 0x198], rcx
mov rcx, rax
mov rax, qword [rbp + 0x198]
mov r8, rax
call fcn.140001088
mov dword [rbp + 0x48], eax
mov rax, qword [rbp + 0xf8]
lea rdx, [0x1400b189c]
mov rcx, rax
call fcn.140001088
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0xf8]
mov rdx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rax
call rdx
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax + 4]
cmp eax, 2
jne 0x14003ba06
mov rax, qword [rbp + 0x3a8]
mov rdx, qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rax
call rdx
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x3b0]
mov rdx, qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rax
call rdx
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0x3a0]
mov edx, dword [rbp + 0x34]
mov ecx, dword [rbp + 0x38]
mov rbx, qword [rbp + 0x3b8]
mov dword [rbp + 0x1a0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1a0]
mov r8d, eax
mov r9, rbx
call fcn.1400389f4
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x40]
mov dword [rbp + 4], eax
jmp 0x14003bd3c
mov rax, qword [rbp + 0x3b0]
mov edx, 0
mov ecx, 0
lea rbx, [rbp + 0xc8]
mov rsi, qword [sym.imp.WS2_32.dll_getaddrinfo]
mov qword [rbp + 0x1a8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1a8]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
test eax, eax
je 0x14003bbdb
mov qword [rbp + 0x110], 0
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.140037fa8
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x110], rax
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x3a0]
lea rdx, [0x1400c103c]
mov ecx, dword [rbp + 0x4c]
mov rbx, qword [rbp + 0x110]
lea rsi, str.sprvnc_Ping
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], 0
mov dword [rbp + 0x1b0], ecx
mov rcx, rax
mov eax, dword [rbp + 0x1b0]
mov r8d, eax
mov r9, rbx
call fcn.14002cda8
mov dword [rbp + 0x54], eax
call fcn.14003d2c0
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x14003bd3c
call fcn.14003d1c7
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
test rax, rax
je 0x14003bd3c
call fcn.14003d2d6
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x150]
lea rdx, str._s:_d:_s::
lea rcx, str.sprvncon.c
mov ebx, 0x476
mov rsi, qword [rbp + 0x158]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x1b8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1b8]
mov r8, rax
mov r9d, ebx
call fcn.140001088
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x150]
lea rdx, str.dest_IP__s_can_not_be_resolved._errMsg:__s
mov rcx, qword [rbp + 0x3b0]
mov rbx, qword [rbp + 0x110]
mov qword [rbp + 0x1c0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c0]
mov r8, rax
mov r9, rbx
call fcn.140001088
mov dword [rbp + 0x8c], eax
mov rax, qword [rbp + 0x150]
lea rdx, [0x1400b189c]
mov rcx, rax
call fcn.140001088
mov dword [rbp + 0x90], eax
mov rax, qword [rbp + 0x150]
mov rdx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rax
call rdx
mov dword [rbp + 0x94], eax
jmp 0x14003bd3c
call fcn.14003d2c0
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
test eax, eax
je 0x14003bccf
call fcn.14003d1c7
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
test rax, rax
je 0x14003bccf
call fcn.14003d2d6
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 0x138]
lea rdx, str._s:_d:_s::
lea rcx, str.sprvncon.c
mov ebx, 0x479
mov rsi, qword [rbp + 0x140]
mov qword [rsp + 0x20], rsi
mov qword [rbp + 0x1c8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1c8]
mov r8, rax
mov r9d, ebx
call fcn.140001088
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x138]
lea rdx, str.getaddrinfo_of_dest__s_is_succes
mov rcx, qword [rbp + 0x3b0]
mov qword [rbp + 0x1d0], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d0]
mov r8, rax
call fcn.140001088
mov dword [rbp + 0x7c], eax
mov rax, qword [rbp + 0x138]
lea rdx, [0x1400b189c]
mov rcx, rax
call fcn.140001088
mov dword [rbp + 0x80], eax
mov rax, qword [rbp + 0x138]
mov rdx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rax
call rdx
mov dword [rbp + 0x88], eax
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x20]
lea rax, [rax + 8]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xc8]
mov rax, qword [rax + 0x20]
lea rax, [rax + 8]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x3a0]
mov rdx, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0xd8]
mov rbx, qword [rbp + 0x3b8]
mov qword [rbp + 0x1d8], rcx
mov rcx, rax
mov rax, qword [rbp + 0x1d8]
mov r8, rax
mov r9, rbx
call fcn.140039655
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0xc0]
test rax, rax
je 0x14003bd5b
mov rax, qword [rbp + 0xc0]
mov rdx, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0xc8]
test rax, rax
je 0x14003bd7a
mov rax, qword [rbp + 0xc8]
mov rdx, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rax
call rdx
mov eax, dword [rbp]
cmp eax, 1
jne 0x14003bd8e
mov rax, qword [sym.imp.orauts.dll_WSACleanup]
call rax
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 4]
mov dword [rbp + 0x9c], eax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x388], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x9c]
mov rbx, qword [rbp + 0x1e0]
mov rsi, qword [rbp + 0x1e8]
lea rsp, [rbp + 0x390]
pop rbp
ret