Function at 0x140071400
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov rbx, r8
mov r14, rdx
mov r13, rcx
lea rcx, [rbp - 0x60]
call fcn.14000c600
cmp word [rbp - 0x60], 2
jne 0x140071538
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x38], rax
mov sil, 0x3a
mov rdi, rbx
jmp 0x140071489
cmp rdi, rbx
ja 0x140071587
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14000f200
cmp rax, 1
jne 0x140071587
mov rdi, rdx
cmp rdx, rbx
jae 0x140071480
cmp byte [r14 + rdi], sil
jne 0x140071480
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.1400105d0
mov ebx, eax
test bl, 1
jne 0x1400715ae
shr ebx, 0x10
mov rax, qword [0x140532290]
cmp rax, 3
jne 0x140071993
cmp rdi, 0x17f
ja 0x1400719a5
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x1400715b7
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x140071654
inc rcx
cmp r12, rcx
jne 0x140071520
jmp 0x1400716bc
movzx eax, byte [0x140532321]
mov ecx, 0x20
mov edx, 4
call fcn.140008450
test rax, rax
je 0x1400719c6
movdqu xmm0, xmmword [rbp - 0x60]
movdqu xmm1, xmmword [rbp - 0x50]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [r13], rax
mov qword [r13 + 8], 1
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rcx
jmp 0x14007159a
lea rax, str.invalid_socket_address
mov qword [r13 + 8], rax
mov qword [r13], 0
lea rax, str.invalid_port_value
jmp 0x14007158e
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1400715e6
je 0x1400715e6
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x140071654
inc rcx
cmp rax, rcx
jne 0x1400715c8
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x1400715ec
jmp 0x14007162e
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1400de040]
movabs rdx, 0x8080808080808080
nop
movdqu xmm1, xmmword [rbp + rax - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x14007162e
add rax, 0x10
cmp rax, rcx
jbe 0x140071600
sub r12, rax
je 0x1400716bc
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x140071651
inc rcx
cmp r12, rcx
jne 0x140071641
jmp 0x1400716bc
add rcx, rax
cmp rcx, rdi
jne 0x1400716bc
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x160], xmm0
movdqa xmmword [rbp + 0x150], xmm0
mov dword [rbp + 0x148], 1
mov qword [rbp + 0x180], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x140]
lea r9, [rbp + 0x180]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140071970
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400716c3
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x1a0], rax
mov eax, 1
test rax, rax
je 0x1400716e0
mov rax, qword [rbp + 0x1a0]
jmp 0x14007158e
movdqu xmm0, xmmword [rbp + 0x1a0]
movzx eax, word [rbp + 0x1b0]
mov ecx, dword [rbp + 0x1b2]
mov dword [rbp + 0x174], ecx
movzx r8d, word [rbp + 0x1b6]
mov word [rbp + 0x178], r8w
mov word [rbp + 0x1bc], ax
lea rdx, [rbp + 0x1a0]
movdqu xmmword [rbp + 0x1a0], xmm0
mov word [rbp + 0x1b0], ax
mov dword [rbp + 0x1b2], ecx
mov word [rbp + 0x1b6], r8w
lea rax, [rbp + 0x1bc]
mov qword [rbp + 0x198], rax
mov byte [rbp + 0x1bf], 1
lea rcx, [rbp - 0x60]
call fcn.1400711f0
movzx edi, word [rbp - 0x60]
cmp di, 2
jne 0x140071779
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x140071954
mov qword [rbp + 0x138], r13
mov esi, dword [rbp - 0x5e]
movzx r14d, word [rbp - 0x5a]
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x150], eax
movdqu xmm0, xmmword [rbp - 0x58]
movdqa xmmword [rbp + 0x140], xmm0
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
mov rax, qword [rbp + 0x198]
movzx r13d, word [rax]
movzx eax, byte [0x140532321]
mov ecx, 0x80
mov edx, 4
call fcn.140008450
test rax, rax
je 0x1400719d5
mov rbx, rax
test di, di
cmovne r12d, r13d
cmove r14d, r13d
mov eax, dword [rbp + 0x150]
mov dword [rbx + 0x18], eax
movaps xmm0, xmmword [rbp + 0x140]
movups xmmword [rbx + 8], xmm0
mov word [rbx], di
mov dword [rbx + 2], esi
mov word [rbx + 6], r14w
jae 0x140071805
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
mov word [rbp + 0x1b0], bx
xor eax, eax
jmp 0x1400716cf
call fcn.1400dac20
cmp rdi, 0x17f
jbe 0x1400714f0
lea rcx, [rbp + 0x198]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.1400dac80
mov rax, qword [rbp + 0x198]
jmp 0x1400716cf
mov ecx, 4
mov edx, 0x20
call fcn.1400d8e40
mov byte [rbp + 0x1bf], 1
mov ecx, 4
mov edx, 0x80
call fcn.1400d8e40
ud2