Function at 0x1400832d0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movdqa xmmword [rsp + 0x240], xmm6
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x70]
call fcn.140015100
cmp word [rsp + 0x70], 2
jne 0x1400833cb
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], r15
mov byte [rsp + 0xe8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xe0], rax
mov dil, 0x3a
mov rbx, r15
jmp 0x140083369
cmp rbx, r15
ja 0x14008341b
mov cl, 0x3a
mov rdx, r14
mov r8, rbx
call fcn.140018530
cmp rax, 1
jne 0x14008341b
mov rbx, rdx
cmp rdx, r15
jae 0x140083360
cmp byte [r14 + rbx], dil
jne 0x140083360
lea r12, [rbx + 1]
lea rdi, str.invalid_port_value
sub r15, r12
je 0x140083422
lea rcx, [r14 + rbx]
inc rcx
cmp r15, 1
jne 0x140083449
movzx eax, byte [rcx]
cmp eax, 0x2b
je 0x140083422
mov r15d, 1
cmp eax, 0x2d
je 0x140083422
jmp 0x140083490
movzx eax, byte [0x14024d119]
mov edx, 0x20
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140083972
movdqu xmm0, xmmword [rsp + 0x70]
movdqu xmm1, xmmword [rsp + 0x80]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 1
mov qword [rsi + 0x18], rcx
jmp 0x14008342d
lea rdi, str.invalid_socket_address
mov qword [rsi + 8], rdi
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rcx], 0x2b
jne 0x14008348a
inc rcx
lea rax, [r15 - 1]
cmp r15, 6
mov r15, rax
jb 0x140083490
xor r8d, r8d
mov r9w, 0xa
xor eax, eax
mul r9w
jo 0x140083422
movzx edx, byte [rcx + r8]
add edx, 0xffffffd0
cmp edx, 9
ja 0x140083422
add ax, dx
jb 0x140083422
inc r8
cmp r15, r8
jne 0x140083468
jmp 0x1400834c3
cmp r15, 5
jae 0x14008345e
xor edx, edx
xor eax, eax
nop word cs:[rax + rax]
movzx r8d, byte [rcx + rdx]
add r8d, 0xffffffd0
cmp r8d, 9
ja 0x140083422
add eax, eax
lea eax, [rax + rax*4]
add eax, r8d
inc rdx
cmp r15, rdx
jne 0x1400834a0
mov word [rsp + 0x22], ax
mov rax, qword [0x14024d0e0]
cmp rax, 3
jne 0x140083932
lea rax, [rsp + 0x22]
mov qword [rsp + 0x68], rax
cmp rbx, 0x17f
ja 0x14008394e
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0xc0], 0
cmp rbx, 0xe
ja 0x140083531
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x1400835da
inc rcx
cmp r12, rcx
jne 0x140083516
jmp 0x140083643
lea rax, [rsp + 0xc7]
and rax, 0xfffffffffffffff8
sub rax, rdi
jne 0x14008358d
lea rcx, [rbx - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1401ae110]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xc0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1400835b1
add rax, 0x10
cmp rax, rcx
jbe 0x14008355a
jmp 0x1400835b1
cmp rax, r12
cmovae rax, r12
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x1400835da
inc rcx
cmp rax, rcx
jne 0x140083596
lea rcx, [rbx - 0xf]
cmp rax, rcx
jbe 0x140083548
sub r12, rax
je 0x140083643
lea rdx, [rsp + rax]
add rdx, 0xc0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x1400835d7
inc rcx
cmp r12, rcx
jne 0x1400835c7
jmp 0x140083643
add rcx, rax
cmp rcx, rbx
jne 0x140083643
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x98], 1
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0xc0]
lea r8, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400836a0
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x14008364f
lea rdi, [0x1401cf6c8]
mov qword [rsp + 0x50], rdi
mov eax, 1
test rax, rax
jne 0x140083422
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14008368a
movzx r8d, word [rsp + 0x60]
mov rax, qword [rcx + 0x20]
mov r15, qword [rcx + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x1400836e9
cmp edx, 2
je 0x1400836b8
mov rcx, r15
test r15, r15
jne 0x14008366d
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov ecx, 4
xor eax, eax
xor edx, edx
jmp 0x140083917
mov rdi, qword [rsp + 0x38]
movzx eax, word [rsp + 0x22]
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x60], ax
xor eax, eax
jmp 0x140083654
mov dword [rsp + 0x24], r8d
cmp qword [rcx + 0x10], 0xf
jbe 0x140083972
movzx r14d, word [rax + 2]
rol r14w, 8
mov r12d, dword [rax + 4]
mov r13b, 1
lea rax, str.invalid_argument
mov qword [rsp + 0x30], rax
xor ebp, ebp
jmp 0x14008373a
mov dword [rsp + 0x24], r8d
cmp qword [rcx + 0x10], 0x1b
jbe 0x140083972
movzx ebx, word [rax + 2]
rol bx, 8
mov ecx, dword [rax + 4]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x28], ecx
movdqu xmm0, xmmword [rax + 8]
mov r14d, dword [rax + 8]
mov r12d, r14d
shl r12d, 0x10
pshufd xmm1, xmm0, 0xe9
movq qword [rsp + 0x30], xmm1
pshufd xmm6, xmm0, 0xff
shr r14d, 0x10
mov bp, 1
xor r13d, r13d
movzx eax, byte [0x14024d119]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.140082900
test rax, rax
je 0x140083972
test r13b, r13b
mov r9d, dword [rsp + 0x24]
cmove ebx, r9d
cmovne r14d, r9d
mov word [rax], bp
mov dword [rax + 2], r12d
mov word [rax + 6], r14w
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
movd dword [rax + 0x10], xmm6
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov word [rax + 0x1c], bx
mov qword [rsp + 0xc0], 4
mov qword [rsp + 0xc8], rax
mov ebx, 1
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xd0], rbx
test r15, r15
je 0x1400838f7
mov rdx, r15
mov r10, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r10]
cmp r8d, 0x17
je 0x140083813
cmp r8d, 2
je 0x1400837ec
mov rdx, r15
test r15, r15
jne 0x1400837c7
jmp 0x1400838f7
cmp qword [rdx + 0x10], 0xf
jbe 0x140083972
mov r14d, dword [r10 + 4]
xor r13d, r13d
mov ebp, r9d
lea r10, str.invalid_argument
movzx r12d, word [rsp + 0x2c]
mov r8d, r11d
jmp 0x140083863
cmp qword [rdx + 0x10], 0x1b
jbe 0x140083972
movzx edx, word [r10 + 2]
rol dx, 8
mov word [rsp + 0x2c], dx
mov r8d, dword [r10 + 4]
mov edx, dword [r10 + 0x18]
mov dword [rsp + 0x30], edx
movdqu xmm0, xmmword [r10 + 8]
mov ebp, dword [r10 + 8]
mov r14d, ebp
shl r14d, 0x10
pshufd xmm1, xmm0, 0xe9
movq r10, xmm1
pshufd xmm6, xmm0, 0xff
shr ebp, 0x10
mov r13w, 1
mov r12d, r9d
cmp rbx, qword [rsp + 0xc0]
je 0x1400838bc
mov rdx, rbx
shl rdx, 5
mov word [rax + rdx], r13w
mov dword [rax + rdx + 2], r14d
mov word [rax + rdx + 6], bp
mov qword [rax + rdx + 8], r10
movd dword [rax + rdx + 0x10], xmm6
mov r11d, r8d
mov dword [rax + rdx + 0x14], r8d
mov r8d, dword [rsp + 0x30]
mov dword [rax + rdx + 0x18], r8d
mov word [rax + rdx + 0x1c], r12w
inc rbx
mov qword [rsp + 0xd0], rbx
test r15, r15
jne 0x1400837c4
jmp 0x1400838f7
mov rdx, rbx
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x40], r10
call fcn.14008e5d0
mov r10, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x28]
lea rcx, [rsp + 0xc0]
mov r9d, dword [rsp + 0x24]
mov rax, qword [rsp + 0xc8]
jmp 0x14008386d
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
shl rax, 5
add rax, rcx
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
jmp 0x14008342d
call fcn.14008fc90
lea rax, [rsp + 0x22]
mov qword [rsp + 0x68], rax
cmp rbx, 0x17f
jbe 0x1400834f0
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.14008e880
mov rax, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
jmp 0x140083654
ud2