Function at 0x14008c010
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.14002dc90
cmp word [rbp - 0x60], 2
jne 0x14008c148
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 0x14008c099
cmp rdi, rbx
ja 0x14008c197
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.1400305a0
cmp rax, 1
jne 0x14008c197
mov rdi, rdx
cmp rdx, rbx
jae 0x14008c090
cmp byte [r14 + rdi], sil
jne 0x14008c090
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.140031970
mov ebx, eax
test bl, 1
jne 0x14008c1be
shr ebx, 0x10
mov rax, qword [0x1401b2c38]
cmp rax, 3
jne 0x14008c592
cmp rdi, 0x17f
ja 0x14008c5a4
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.1400f0a00
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x14008c1c7
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x14008c264
inc rcx
cmp r12, rcx
jne 0x14008c130
jmp 0x14008c2ca
movzx eax, byte [0x1401b2ce0]
mov ecx, 0x20
mov edx, 4
call fcn.140024ff0
test rax, rax
je 0x14008c5c5
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 0x14008c1aa
lea rax, str.invalid_socket_address
mov qword [r13 + 8], rax
mov qword [r13], 0
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.invalid_port_value
jmp 0x14008c19e
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x14008c1f6
je 0x14008c1f6
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x14008c264
inc rcx
cmp rax, rcx
jne 0x14008c1d8
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x14008c1fc
jmp 0x14008c23e
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1401043a0]
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 0x14008c23e
add rax, 0x10
cmp rax, rcx
jbe 0x14008c210
sub r12, rax
je 0x14008c2ca
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x14008c261
inc rcx
cmp r12, rcx
jne 0x14008c251
jmp 0x14008c2ca
add rcx, rax
cmp rcx, rdi
jne 0x14008c2ca
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 sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14008c56f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14008c2d1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x1a0], rax
mov eax, 1
test rax, rax
je 0x14008c2ee
mov rax, qword [rbp + 0x1a0]
jmp 0x14008c19e
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.14008bdf0
movzx edi, word [rbp - 0x60]
cmp di, 2
jne 0x14008c386
mov rcx, qword [rbp + 0x1a0]
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x14008c553
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 [0x1401b2ce0]
mov ecx, 0x80
mov edx, 4
call fcn.140024ff0
test rax, rax
je 0x14008c5d6
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
mov word [rbx + 0x1c], r12w
mov word [rbx + 0x1e], r15w
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x188], 4
mov qword [rbp + 0x190], 1
movdqu xmm0, xmmword [rbp + 0x198]
movdqu xmm1, xmmword [rbp + 0x1a8]
movdqa xmmword [rbp + 0x150], xmm1
movdqa xmmword [rbp + 0x140], xmm0
mov edi, 1
mov r13d, 0x20
jmp 0x14008c4aa
mov word [rbx + r13], r14w
mov eax, dword [rbp + 0x17c]
mov dword [rbx + r13 + 2], eax
mov word [rbx + r13 + 6], si
movdqa xmm0, xmmword [rbp + 0x120]
movdqu xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rbp + 0x130]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r12w
mov word [rbx + r13 + 0x1e], r15w
inc rdi
mov qword [rbp + 0x190], rdi
add r13, 0x20
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x148]
call fcn.14008bdf0
movzx r14d, word [rbp - 0x60]
cmp r14w, 2
je 0x14008c532
mov eax, dword [rbp - 0x5e]
mov dword [rbp + 0x17c], eax
movzx esi, word [rbp - 0x5a]
lea rcx, [rbp - 0x58]
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x130], eax
movdqu xmm0, xmmword [rcx]
movdqa xmmword [rbp + 0x120], xmm0
mov rax, qword [rbp + 0x140]
movzx r12d, word [rax]
test r14w, r14w
jne 0x14008c505
mov esi, r12d
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
cmp rdi, qword [rbp + 0x188]
jne 0x14008c460
lea rcx, [rbp + 0x180]
mov rdx, rdi
call fcn.140101360
mov rbx, qword [rbp + 0x180]
jmp 0x14008c460
mov rcx, qword [rbp + 0x148]
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x188]
mov r13, qword [rbp + 0x138]
shl rdi, 5
add rdi, rax
mov qword [r13], rax
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rdi
jmp 0x14008c1aa
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
mov word [rbp + 0x1b0], bx
xor eax, eax
jmp 0x14008c2dd
call fcn.140101420
cmp rdi, 0x17f
jbe 0x14008c100
lea rcx, [rbp + 0x198]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.140101480
mov rax, qword [rbp + 0x198]
jmp 0x14008c2dd
mov ecx, 4
mov edx, 0x20
call fcn.1400fe7a0
ud2
mov byte [rbp + 0x1bf], 1
mov ecx, 4
mov edx, 0x80
call fcn.1400fe7a0
ud2