Function at 0x14008c690
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x80]
call fcn.140013350
cmp word [rsp + 0x80], 2
jne 0x14008c77c
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], r15
mov byte [rsp + 0x100], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xf8], rax
mov dil, 0x3a
mov rbx, r15
jmp 0x14008c719
cmp rbx, r15
ja 0x14008c7cf
mov cl, 0x3a
mov rdx, r14
mov r8, rbx
call fcn.1400146e0
cmp rax, 1
jne 0x14008c7cf
mov rbx, rdx
cmp rdx, r15
jae 0x14008c710
cmp byte [r14 + rbx], dil
jne 0x14008c710
lea r12, [rbx + 1]
lea rdi, str.invalid_port_value
sub r15, r12
je 0x14008c7d6
lea r8, [r14 + rbx]
inc r8
cmp r15, 1
jne 0x14008c7f5
movzx eax, byte [r8]
cmp eax, 0x2b
je 0x14008c7d6
mov r15d, 1
cmp eax, 0x2d
je 0x14008c7d6
jmp 0x14008c844
movzx eax, byte [0x1401bb111]
mov edx, 0x20
xor ecx, ecx
call fcn.140089d40
test rax, rax
je 0x14008cd13
movdqu xmm0, xmmword [rsp + 0x80]
movdqu xmm1, xmmword [rsp + 0x90]
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 0x14008c7e1
lea rdi, str.invalid_socket_address
mov qword [rsi + 8], rdi
mov qword [rsi], 0
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r8], 0x2b
jne 0x14008c83e
inc r8
lea rax, [r15 - 1]
cmp r15, 6
mov r15, rax
jb 0x14008c844
xor r9d, r9d
mov r10w, 0xa
xor eax, eax
mul r10w
jo 0x14008c7d6
mov ecx, eax
movzx eax, byte [r8 + r9]
add eax, 0xffffffd0
cmp eax, 9
ja 0x14008c7d6
mov edx, ecx
add dx, ax
jb 0x14008c7d6
cwde
add eax, ecx
inc r9
cmp r15, r9
jne 0x14008c815
jmp 0x14008c870
cmp r15, 5
jae 0x14008c80b
xor ecx, ecx
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [r8 + rcx]
add edx, 0xffffffd0
cmp edx, 9
ja 0x14008c7d6
add eax, eax
lea eax, [rax + rax*4]
add eax, edx
inc rcx
cmp r15, rcx
jne 0x14008c850
mov word [rsp + 0x2e], ax
mov rax, qword [0x1401bb0d0]
cmp rax, 3
jne 0x14008ccd3
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x78], rax
cmp rbx, 0x17f
ja 0x14008ccef
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0xd8], 0
cmp rbx, 0xe
ja 0x14008c8de
xor ecx, ecx
cmp byte [rsp + rcx + 0xd8], 0
je 0x14008c987
inc rcx
cmp r12, rcx
jne 0x14008c8c3
jmp 0x14008c9f0
lea rax, [rsp + 0xdf]
and rax, 0xfffffffffffffff8
sub rax, rdi
jne 0x14008c93a
lea rcx, [rbx - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x140127bc0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xd8]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x14008c95e
add rax, 0x10
cmp rax, rcx
jbe 0x14008c907
jmp 0x14008c95e
cmp rax, r12
cmovae rax, r12
xor ecx, ecx
cmp byte [rsp + rcx + 0xd8], 0
je 0x14008c987
inc rcx
cmp rax, rcx
jne 0x14008c943
lea rcx, [rbx - 0xf]
cmp rax, rcx
jbe 0x14008c8f5
sub r12, rax
je 0x14008c9f0
lea rdx, [rsp + rax]
add rdx, 0xd8
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x14008c984
inc rcx
cmp r12, rcx
jne 0x14008c974
jmp 0x14008c9f0
add rcx, rax
cmp rcx, rbx
jne 0x14008c9f0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0xa8], 1
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xd8]
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x48]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14008ca52
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x14008c9fc
lea rdi, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x60], rdi
mov eax, 1
test rax, rax
jne 0x14008c7d6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008ca3c
movzx r8d, word [rsp + 0x70]
mov dword [rsp + 0x3c], r8d
mov rax, qword [rcx + 0x20]
mov r15, qword [rcx + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x14008ca95
cmp edx, 2
je 0x14008ca6a
mov rcx, r15
test r15, r15
jne 0x14008ca1f
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov ecx, 4
xor eax, eax
xor edx, edx
jmp 0x14008ccb8
mov rdi, qword [rsp + 0x48]
movzx eax, word [rsp + 0x2e]
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x70], ax
xor eax, eax
jmp 0x14008ca01
cmp qword [rcx + 0x10], 0xf
jbe 0x14008cd13
movzx ebx, word [rax + 2]
rol bx, 8
mov r13d, dword [rax + 4]
mov r14b, 1
lea rax, str.invalid_argument
mov qword [rsp + 0x40], rax
xor r12d, r12d
jmp 0x14008cadb
cmp qword [rcx + 0x10], 0x1b
jbe 0x14008cd13
mov ebx, dword [rax + 8]
mov rcx, qword [rax + 0xc]
mov qword [rsp + 0x40], rcx
movzx ebp, word [rax + 2]
rol bp, 8
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x34], ecx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x30], eax
mov r13d, ebx
shl r13d, 0x10
shr ebx, 0x10
mov r12w, 1
xor r14d, r14d
movzx eax, byte [0x1401bb111]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.140089d40
test rax, rax
je 0x14008cd13
test r14b, r14b
mov ecx, dword [rsp + 0x3c]
cmove ebp, ecx
cmovne ebx, ecx
mov word [rax], r12w
mov dword [rax + 2], r13d
mov word [rax + 6], bx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x18], ecx
mov word [rax + 0x1c], bp
mov qword [rsp + 0xd8], 4
mov qword [rsp + 0xe0], rax
mov ebx, 1
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0xe8], rbx
test r15, r15
je 0x14008cc98
mov rdx, r15
mov r10, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r10]
cmp r8d, 0x17
je 0x14008cbbb
cmp r8d, 2
je 0x14008cb8c
mov rdx, r15
test r15, r15
jne 0x14008cb67
jmp 0x14008cc98
cmp qword [rdx + 0x10], 0xf
jbe 0x14008cd13
mov ebp, dword [r10 + 4]
xor r13d, r13d
mov r14d, dword [rsp + 0x3c]
lea rdx, str.invalid_argument
movzx r12d, word [rsp + 0x38]
mov r8d, r11d
mov r10d, r9d
mov r9, rdx
jmp 0x14008cc02
cmp qword [rdx + 0x10], 0x1b
jbe 0x14008cd13
mov r14d, dword [r10 + 8]
mov r9, qword [r10 + 0xc]
movzx edx, word [r10 + 2]
rol dx, 8
mov word [rsp + 0x38], dx
mov r8d, dword [r10 + 0x14]
mov edx, dword [r10 + 4]
mov dword [rsp + 0x40], edx
mov r10d, dword [r10 + 0x18]
mov ebp, r14d
shl ebp, 0x10
shr r14d, 0x10
mov r13w, 1
mov edx, dword [rsp + 0x3c]
mov r12d, edx
cmp rbx, qword [rsp + 0xd8]
je 0x14008cc5d
mov rdx, rbx
shl rdx, 5
mov word [rax + rdx], r13w
mov dword [rax + rdx + 2], ebp
mov word [rax + rdx + 6], r14w
mov qword [rax + rdx + 8], r9
mov r11d, r8d
mov dword [rax + rdx + 0x10], r8d
mov r8d, dword [rsp + 0x40]
mov dword [rax + rdx + 0x14], r8d
mov r9d, r10d
mov dword [rax + rdx + 0x18], r10d
mov word [rax + rdx + 0x1c], r12w
inc rbx
mov qword [rsp + 0xe8], rbx
test r15, r15
jne 0x14008cb64
jmp 0x14008cc98
mov rdx, rbx
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x50], r9
call fcn.140080210
mov r9, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
jmp 0x14008cc0c
mov rcx, rdi
call sub.ws2_32.dll_freeaddrinfo
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe8]
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 0x14008c7e1
call fcn.140085350
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x78], rax
cmp rbx, 0x17f
jbe 0x14008c89d
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x78]
mov rdx, r14
mov r8, rbx
call fcn.140080f60
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
jmp 0x14008ca01
ud2