Function at 0x1400a6b60
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movdqa xmmword [rsp + 0x230], xmm7
movdqa xmmword [rsp + 0x220], xmm6
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0xa0]
call fcn.140009080
cmp word [rsp + 0xa0], 2
jne 0x1400a6c60
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xc0], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xc8], rax
mov bl, 0x3a
mov rdi, r15
jmp 0x1400a6bf9
cmp rdi, r15
ja 0x1400a6cd8
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14000be60
cmp rax, 1
jne 0x1400a6cd8
mov rdi, rdx
cmp rdx, r15
jae 0x1400a6bf0
cmp byte [r14 + rdi], bl
jne 0x1400a6bf0
lea r12, [rdi + 1]
lea rcx, str.invalid_port_value
sub r15, r12
je 0x1400a6cdf
lea r8, [r14 + rdi]
inc r8
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x1400a6d0e
cmp eax, 0x2b
jne 0x1400a6d14
dec r15
je 0x1400a6cdf
inc r8
jmp 0x1400a6d14
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400a6c8b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400a71d2
mov rcx, rax
mov qword [0x1401d2138], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400a71d2
movdqu xmm0, xmmword [rsp + 0xa0]
movdqu xmm1, xmmword [rsp + 0xb0]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
jmp 0x1400a6cea
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x220]
movaps xmm7, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r15, 1
je 0x1400a6cdf
cmp r15, 5
jae 0x1400a6dab
xor eax, eax
xor ebx, ebx
nop word cs:[rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x1400a6cdf
add ebx, ebx
lea ebx, [rbx + rbx*4]
add ebx, edx
inc rax
cmp r15, rax
jne 0x1400a6d30
mov rax, qword [0x1401d2140]
cmp rax, 3
jne 0x1400a71a3
cmp rdi, 0x17f
ja 0x1400a71b5
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0xa0], 0
cmp rdi, 0xe
ja 0x1400a6df9
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x1400a6e9d
inc rcx
cmp r12, rcx
jne 0x1400a6d90
jmp 0x1400a6efb
xor r9d, r9d
mov r10w, 0xa
xor ebx, ebx
nop word cs:[rax + rax]
cmp r15, r9
je 0x1400a6d4c
movzx r11d, byte [r8 + r9]
mov eax, ebx
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400a6cdf
test dl, dl
jne 0x1400a6cdf
mov ebx, eax
inc r9
add bx, r11w
jae 0x1400a6dc0
jmp 0x1400a6cdf
lea rax, [rsp + 0xa7]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1400a6e2f
je 0x1400a6e2f
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x1400a6e9d
inc rcx
cmp rax, rcx
jne 0x1400a6e0e
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x1400a6e35
jmp 0x1400a6e78
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x140135cb0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xa0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1400a6e78
add rax, 0x10
cmp rax, rcx
jbe 0x1400a6e47
sub r12, rax
je 0x1400a6efb
lea rdx, [rsp + rax]
add rdx, 0xa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x1400a6e9a
inc rcx
cmp r12, rcx
jne 0x1400a6e8a
jmp 0x1400a6efb
add rcx, rax
cmp rcx, rdi
jne 0x1400a6efb
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x48]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400a6f61
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400a6f02
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x58], rax
mov eax, 1
test rax, rax
je 0x1400a6f1b
mov rcx, qword [rsp + 0x58]
jmp 0x1400a6cdf
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400a6f4d
movzx ebp, word [rsp + 0x68]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x1400a6f9b
cmp edx, 2
je 0x1400a6f79
mov rax, r15
test r15, r15
jne 0x1400a6f2f
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor r14d, r14d
xor ecx, ecx
jmp 0x1400a7188
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], bx
xor eax, eax
jmp 0x1400a6f0c
cmp qword [rax + 0x10], 0xf
jbe 0x1400a7229
mov r12d, dword [r8 + 4]
mov eax, r12d
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, ebp, 1
xor edi, edi
jmp 0x1400a6fbd
cmp qword [rax + 0x10], 0x1b
jbe 0x1400a7243
movdqu xmm6, xmmword [r8 + 8]
mov r13d, dword [r8 + 4]
mov r14d, dword [r8 + 0x18]
pshufd xmm7, xmm6, 0xf9
mov di, 1
mov qword [rsp + 0x28], rcx
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400a6fed
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400a71e3
mov rcx, rax
mov qword [0x1401d2138], rax
mov r8d, pe_nt_image_headers64
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400a71e3
mov rbx, rax
mov word [rax], di
mov word [rax + 2], r12w
movd dword [rax + 4], xmm6
movq qword [rax + 8], xmm7
pshufd xmm0, xmm7, 0xee
movd dword [rax + 0x10], xmm0
mov dword [rax + 0x14], r13d
mov dword [rax + 0x18], r14d
mov word [rax + 0x1c], bp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 4
mov qword [rsp + 0xb0], 1
mov r14d, 1
test r15, r15
je 0x1400a716e
lea rcx, [rsp + 0xa0]
lea rax, [0x14015a478]
mov qword [rsp + 0x40], rax
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov qword [rsp + 0x38], rax
jmp 0x1400a70e2
mov rbx, qword [rsp + 0xa0]
mov rcx, r13
pshufd xmm0, xmm6, 0xf9
mov rax, r14
shl rax, 5
mov word [rbx + rax], bp
mov word [rbx + rax + 2], r12w
movd dword [rbx + rax + 4], xmm7
pshufd xmm1, xmm0, 0xee
movd dword [rbx + rax + 0x10], xmm1
movq qword [rbx + rax + 8], xmm0
mov edx, dword [rsp + 0x30]
mov dword [rbx + rax + 0x14], edx
mov edx, dword [rsp + 0x34]
mov dword [rbx + rax + 0x18], edx
mov ebp, edi
mov word [rbx + rax + 0x1c], bp
inc r14
mov qword [rsp + 0xb0], r14
test r15, r15
je 0x1400a716e
mov r8, r15
mov rax, qword [r8 + 0x20]
mov r15, qword [r8 + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x1400a7128
cmp edx, 2
je 0x1400a7104
mov r8, r15
test r15, r15
jne 0x1400a70e5
jmp 0x1400a716e
cmp qword [r8 + 0x10], 0xf
jbe 0x1400a71f4
mov r12d, dword [rax + 4]
mov eax, r12d
shr eax, 0x10
movd xmm7, eax
mov edi, ebp
pinsrw xmm7, ebp, 1
xor ebp, ebp
jmp 0x1400a7150
cmp qword [r8 + 0x10], 0x1b
jbe 0x1400a71fb
mov edi, ebp
movdqu xmm6, xmmword [rax + 8]
mov edx, dword [rax + 4]
mov dword [rsp + 0x30], edx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
mov bp, 1
movdqa xmm7, xmm6
cmp r14, qword [rsp + 0xa8]
jne 0x1400a708a
mov r13, rcx
mov rdx, r14
call fcn.1400a6660
jmp 0x1400a707f
mov rcx, qword [rsp + 0x28]
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
shl r14, 5
add r14, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
jmp 0x1400a6cea
call fcn.1400a6720
cmp rdi, 0x17f
jbe 0x1400a6d6a
lea rcx, [rsp + 0x50]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.1400a6790
mov rax, qword [rsp + 0x50]
jmp 0x1400a6f0c
mov ecx, 4
mov edx, 0x20
call fcn.1400034d0
ud2
mov ecx, 4
mov edx, pe_nt_image_headers64
call fcn.1400034d0
jmp 0x1400a7260
mov edx, 0x42
jmp 0x1400a7218
mov edx, 0x43
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
mov qword [rsp + 0x38], rax
lea rax, [0x14015a4d8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.140006a00
jmp 0x1400a7260
mov qword [rsp + 0x28], rcx
lea r8, [0x14015a478]
mov edx, 0x42
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
jmp 0x1400a725b
mov qword [rsp + 0x28], rcx
lea r8, [0x14015a4d8]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
call fcn.140006a00
ud2