Function at 0x140076d80
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rbx, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0xc8]
call fcn.14000c690
cmp word [rsp + 0xc8], 2
jne 0x140076ebb
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xf0], rax
mov bpl, 0x3a
mov rdi, rbx
jmp 0x140076e09
cmp rdi, rbx
ja 0x140076f11
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14000f5d0
cmp rax, 1
jne 0x140076f11
mov rdi, rdx
cmp rdx, rbx
jae 0x140076e00
cmp byte [r14 + rdi], bpl
jne 0x140076e00
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.140010aa0
mov ebx, eax
test bl, 1
jne 0x140076f37
shr ebx, 0x10
mov rax, qword [0x14016e170]
cmp rax, 3
jne 0x1400772fc
cmp rdi, 0x17f
ja 0x14007730e
lea r15, [rsp + 0xc8]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0xc8], 0
cmp rdi, 0xe
ja 0x140076f40
xor ecx, ecx
nop word [rax + rax]
cmp byte [rsp + rcx + 0xc8], 0
je 0x140076fea
inc rcx
cmp r12, rcx
jne 0x140076ea0
jmp 0x14007704c
movzx eax, byte [0x14016e1e9]
mov ecx, 0x20
mov edx, 4
call fcn.140007c00
test rax, rax
je 0x14007732b
movdqu xmm0, xmmword [rsp + 0xc8]
movdqu xmm1, xmmword [rsp + 0xd8]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
jmp 0x140076f23
lea rax, str.invalid_socket_address
mov qword [rsi + 8], rax
mov qword [rsi], 0
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.invalid_port_value
jmp 0x140076f18
lea rax, [rsp + 0xcf]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x140076f76
je 0x140076f76
xor ecx, ecx
cmp byte [rsp + rcx + 0xc8], 0
je 0x140076fea
inc rcx
cmp rax, rcx
jne 0x140076f55
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x140076f7c
jmp 0x140076fc1
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1400cf970]
movabs rdx, 0x8080808080808080
nop
movdqu xmm1, xmmword [rsp + rax + 0xc8]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x140076fc1
add rax, 0x10
cmp rax, rcx
jbe 0x140076f90
sub r12, rax
je 0x14007704c
lea rdx, [rsp + rax]
add rdx, 0xc8
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x140076fe7
inc rcx
cmp r12, rcx
jne 0x140076fd7
jmp 0x14007704c
add rcx, rax
cmp rcx, rdi
jne 0x14007704c
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0xc8]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x50]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1400772e1
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x140077053
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x38], rax
mov eax, 1
test rax, rax
je 0x14007706c
mov rax, qword [rsp + 0x38]
jmp 0x140076f18
movdqu xmm0, xmmword [rsp + 0x38]
movzx eax, word [rsp + 0x48]
mov ecx, dword [rsp + 0x4a]
mov dword [rsp + 0x68], ecx
movzx r8d, word [rsp + 0x4e]
mov word [rsp + 0x6c], r8w
mov word [rsp + 0x2e], ax
lea rdx, [rsp + 0x38]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x48], ax
mov dword [rsp + 0x4a], ecx
mov word [rsp + 0x4e], r8w
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0xc8]
call fcn.1400768c0
movzx edi, word [rsp + 0xc8]
cmp di, 2
jne 0x1400770e7
mov rcx, qword [rsp + 0x38]
call sub.WS2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x1400772c6
mov qword [rsp + 0xa8], rsi
mov ebp, dword [rsp + 0xca]
movzx r14d, word [rsp + 0xce]
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x80], eax
movdqu xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0x70], xmm0
movzx r12d, word [rsp + 0xe4]
movzx r15d, word [rsp + 0xe6]
mov rax, qword [rsp + 0x30]
movzx esi, word [rax]
movzx eax, byte [0x14016e1e9]
mov ecx, pe_nt_image_headers64
mov edx, 4
call fcn.140007c00
test rax, rax
je 0x14007733c
mov rbx, rax
test di, di
cmovne r12d, esi
cmove r14d, esi
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x18], eax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 8], xmm0
mov word [rbx], di
mov dword [rbx + 2], ebp
mov word [rbx + 6], r14w
mov word [rbx + 0x1c], r12w
mov word [rbx + 0x1e], r15w
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 4
mov qword [rsp + 0x60], 1
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm1
movdqa xmmword [rsp + 0x70], xmm0
mov edi, 1
mov r13d, 0x20
jmp 0x140077214
mov word [rbx + r13], r12w
mov dword [rbx + r13 + 2], r14d
mov word [rbx + r13 + 6], bp
movdqa xmm0, xmmword [rsp + 0xb0]
movdqu xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rsp + 0xc0]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r15w
mov word [rbx + r13 + 0x1e], si
inc rdi
mov qword [rsp + 0x60], rdi
add r13, 0x20
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0x78]
call fcn.1400768c0
movzx r12d, word [rsp + 0xc8]
cmp r12w, 2
je 0x1400772aa
mov r14d, dword [rsp + 0xca]
movzx ebp, word [rsp + 0xce]
lea rcx, [rsp + 0xd0]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0xc0], eax
movdqu xmm0, xmmword [rcx]
movdqa xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsp + 0x70]
movzx r15d, word [rax]
test r12w, r12w
jne 0x140077280
mov ebp, r15d
movzx r15d, word [rsp + 0xe4]
movzx esi, word [rsp + 0xe6]
cmp rdi, qword [rsp + 0x58]
jne 0x1400771d0
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.140076a30
mov rbx, qword [rsp + 0x50]
jmp 0x1400771d0
mov rcx, qword [rsp + 0x78]
call sub.WS2_32.dll_freeaddrinfo
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0xa8]
shl rdi, 5
add rdi, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x140076f23
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], bx
xor eax, eax
jmp 0x14007705d
call fcn.140076af0
cmp rdi, 0x17f
jbe 0x140076e70
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.140076b50
mov rax, qword [rsp + 0x30]
jmp 0x14007705d
mov ecx, 4
mov edx, 0x20
call fcn.140008130
ud2
mov ecx, 4
mov edx, pe_nt_image_headers64
call fcn.140008130
ud2