Function at 0x140066949
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1400f5ae8]
cmp rax, 3
jne 0x140066a60
cmp rbx, 0x17f
ja 0x140066a6a
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.14009d5c0
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x1400669b8
xor eax, eax
xor edx, edx
cmp byte [rsp + rdx + 0x68], 0
je 0x1400669c6
inc rdx
cmp r8, rdx
jne 0x1400669a4
mov rdx, r8
jmp 0x1400669cb
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.14002206c
jmp 0x1400669cb
mov eax, 1
test rax, rax
je 0x140066a29
cmp rdx, rbx
jne 0x140066a29
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rcx, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140066a3d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140066a50
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140066a53
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400aa3e8
jmp 0x140066974
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400aa435
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rcx, r8
inc rcx
je 0x1400aa587
mov edi, r9d
mov rbx, r8
mov r14, rdx
xor edx, edx
call fcn.1400210cb
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], 0
lea r8, [r14 + rbx]
mov rdx, r14
call fcn.140020e6d
xor ecx, ecx
mov rdx, r14
mov r8, rbx
call fcn.14002206c
test rax, rax
je 0x1400aa4d2
mov r8, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
test r8, r8
je 0x1400aa4f5
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x1400aa57c
mov rcx, qword [0x1400f5ae0]
xor edx, edx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rcx], xmm0
call fcn.1400211b9
mov rbx, rax
mov r14, rdx
jmp 0x1400aa4fa
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
lea r8, [rsp + 0x40]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov rcx, rbx
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400aa54c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400aa55f
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
mov byte [rbx], 0
test r14, r14
je 0x1400aa57c
mov rcx, qword [0x1400f5ae0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2