Function at 0x140092660
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 r14, r8
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x70]
call fcn.140016130
cmp word [rsp + 0x70], 2
jne 0x14009279e
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], r14
mov byte [rsp + 0xe8], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xe0], rax
mov bpl, 0x3a
mov rdi, r14
jmp 0x1400926f9
cmp rdi, r14
ja 0x1400927ee
mov cl, 0x3a
mov rdx, rbx
mov r8, rdi
call fcn.140010050
cmp rax, 1
jne 0x1400927ee
mov rdi, rdx
cmp rdx, r14
jae 0x1400926f0
cmp byte [rbx + rdi], bpl
jne 0x1400926f0
lea r15, [rdi + 1]
lea rcx, str.invalid_port_value
sub r14, r15
je 0x1400927f5
lea r8, [rbx + rdi]
inc r8
movzx eax, byte [r8]
cmp eax, 0x2b
je 0x14009281c
cmp eax, 0x2d
jne 0x140092755
cmp r14, 1
je 0x1400927f5
cmp r14, 4
jbe 0x14009282e
xor r9d, r9d
mov r10w, 0xa
xor eax, eax
nop dword [rax]
cmp r14, r9
je 0x14009285f
movzx r11d, byte [r8 + r9]
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400927f5
test dl, dl
jne 0x1400927f5
inc r9
add ax, r11w
jae 0x140092770
jmp 0x1400927f5
movzx eax, byte [0x140254141]
mov edx, 0x20
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x140092cfc
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 0x140092800
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
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
dec r14
je 0x1400927f5
inc r8
cmp r14, 5
jae 0x14009275f
xor edx, edx
xor eax, eax
nop word cs:[rax + rax]
movzx r9d, byte [r8 + rdx]
add r9d, 0xffffffd0
cmp r9d, 9
ja 0x1400927f5
add eax, eax
lea eax, [rax + rax*4]
add eax, r9d
inc rdx
cmp r14, rdx
jne 0x140092840
mov word [rsp + 0x26], ax
mov rax, qword [0x1402540e0]
cmp rax, 3
jne 0x140092cc1
lea rax, [rsp + 0x26]
mov qword [rsp + 0x68], rax
cmp rdi, 0x17f
ja 0x140092cdd
lea r14, [rsp + 0xc0]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0xc0], 0
cmp rdi, 0xe
ja 0x1400928cd
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x140092976
inc rcx
cmp r15, rcx
jne 0x1400928b2
jmp 0x1400929dd
lea rax, [rsp + 0xc7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x140092929
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1401b5730]
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 0x14009294d
add rax, 0x10
cmp rax, rcx
jbe 0x1400928f6
jmp 0x14009294d
cmp rax, r15
cmovae rax, r15
xor ecx, ecx
cmp byte [rsp + rcx + 0xc0], 0
je 0x140092976
inc rcx
cmp rax, rcx
jne 0x140092932
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x1400928e4
sub r15, rax
je 0x1400929dd
lea rdx, [rsp + rax]
add rdx, 0xc0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x140092973
inc rcx
cmp r15, rcx
jne 0x140092963
jmp 0x1400929dd
add rcx, rax
cmp rcx, rdi
jne 0x1400929dd
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 + 0x40], 0
lea rcx, [rsp + 0xc0]
lea r8, [rsp + 0x90]
lea r9, [rsp + 0x40]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140092a42
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400929e4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x50], rax
mov eax, 1
test rax, rax
je 0x1400929fd
mov rcx, qword [rsp + 0x50]
jmp 0x1400927f5
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x140092a2f
movzx r9d, word [rsp + 0x60]
mov rax, qword [r8 + 0x20]
mov r15, qword [r8 + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x140092a90
cmp edx, 2
je 0x140092a5f
mov r8, r15
test r15, r15
jne 0x140092a12
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ebx, ebx
xor ecx, ecx
jmp 0x140092ca6
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x26]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x60], cx
xor eax, eax
jmp 0x1400929ee
mov dword [rsp + 0x28], r9d
cmp qword [r8 + 0x10], 0xf
jbe 0x140092cfc
mov qword [rsp + 0x38], rcx
movzx r14d, word [rax + 2]
rol r14w, 8
mov r12d, dword [rax + 4]
mov bpl, 1
lea r13, [0x1401d6328]
xor edi, edi
jmp 0x140092ae4
mov dword [rsp + 0x28], r9d
cmp qword [r8 + 0x10], 0x1b
jbe 0x140092cfc
mov qword [rsp + 0x38], rcx
movzx ebx, word [rax + 2]
rol bx, 8
mov ecx, dword [rax + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rax + 0x18]
mov dword [rsp + 0x2c], ecx
movdqu xmm0, xmmword [rax + 8]
mov r14d, dword [rax + 8]
mov r12d, r14d
shl r12d, 0x10
pshufd xmm1, xmm0, 0xe9
movq r13, xmm1
pshufd xmm6, xmm0, 0xff
shr r14d, 0x10
mov di, 1
xor ebp, ebp
movzx eax, byte [0x140254141]
mov edx, pe_nt_image_headers64
xor ecx, ecx
call fcn.14008bd10
test rax, rax
je 0x140092cfc
test bpl, bpl
mov r9d, dword [rsp + 0x28]
cmove ebx, r9d
cmovne r14d, r9d
mov word [rax], di
mov dword [rax + 2], r12d
mov word [rax + 6], r14w
mov qword [rax + 8], r13
movd dword [rax + 0x10], xmm6
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x2c]
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 0x140092c8c
mov rdx, r15
mov r10, qword [rdx + 0x20]
mov r15, qword [rdx + 0x28]
movzx r8d, word [r10]
cmp r8d, 0x17
je 0x140092bb8
cmp r8d, 2
je 0x140092b91
mov rdx, r15
test r15, r15
jne 0x140092b6c
jmp 0x140092c8c
cmp qword [rdx + 0x10], 0xf
jbe 0x140092cfc
mov edi, dword [r10 + 4]
xor r12d, r12d
mov ebp, r9d
lea r14, [0x1401d6328]
movzx r13d, word [rsp + 0x2c]
mov r8d, r11d
jmp 0x140092c06
cmp qword [rdx + 0x10], 0x1b
jbe 0x140092cfc
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 edi, ebp
shl edi, 0x10
pshufd xmm1, xmm0, 0xe9
movq r14, xmm1
pshufd xmm6, xmm0, 0xff
shr ebp, 0x10
mov r12w, 1
mov r13d, r9d
cmp rbx, qword [rsp + 0xc0]
je 0x140092c5e
mov rdx, rbx
shl rdx, 5
mov word [rax + rdx], r12w
mov dword [rax + rdx + 2], edi
mov word [rax + rdx + 6], bp
mov qword [rax + rdx + 8], r14
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], r13w
inc rbx
mov qword [rsp + 0xd0], rbx
test r15, r15
jne 0x140092b69
jmp 0x140092c8c
mov rdx, rbx
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x34], r8d
call fcn.1400867c0
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0xc0]
mov r9d, dword [rsp + 0x28]
mov rax, qword [rsp + 0xc8]
jmp 0x140092c10
mov rcx, qword [rsp + 0x38]
call sub.ws2_32.dll_freeaddrinfo
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc8]
shl rbx, 5
add rbx, rax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rbx
jmp 0x140092800
call fcn.14008ac30
lea rax, [rsp + 0x26]
mov qword [rsp + 0x68], rax
cmp rdi, 0x17f
jbe 0x14009288c
lea rcx, [rsp + 0x48]
lea r9, [rsp + 0x68]
mov rdx, rbx
mov r8, rdi
call fcn.14008a8e0
mov rax, qword [rsp + 0x48]
jmp 0x1400929ee
ud2