Function at 0x1400b3760
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movdqa xmmword [rsp + 0x230], xmm7
movdqa xmmword [rsp + 0x220], xmm6
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0xa0]
call fcn.140007550
cmp word [rsp + 0xa0], 2
jne 0x1400b3860
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xc0], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xc8], rax
mov bl, 0x3a
mov rdi, r15
jmp 0x1400b37f9
cmp rdi, r15
ja 0x1400b38d8
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14000a330
cmp rax, 1
jne 0x1400b38d8
mov rdi, rdx
cmp rdx, r15
jae 0x1400b37f0
cmp byte [r14 + rdi], bl
jne 0x1400b37f0
lea r12, [rdi + 1]
lea rcx, str.invalid_port_value
sub r15, r12
je 0x1400b38df
lea r8, [r14 + rdi]
inc r8
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x1400b390e
cmp eax, 0x2b
jne 0x1400b3914
dec r15
je 0x1400b38df
inc r8
jmp 0x1400b3914
movzx eax, byte [0x1401e61e9]
mov rcx, qword [0x1401e6138]
test rcx, rcx
jne 0x1400b388b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400b3dd2
mov rcx, rax
mov qword [0x1401e6138], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400b3dd2
movdqu xmm0, xmmword [rsp + 0xa0]
movdqu xmm1, xmmword [rsp + 0xb0]
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 0x1400b38ea
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x220]
movaps xmm7, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r15, 1
je 0x1400b38df
cmp r15, 5
jae 0x1400b39ab
xor eax, eax
xor ebx, ebx
nop word cs:[rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x1400b38df
add ebx, ebx
lea ebx, [rbx + rbx*4]
add ebx, edx
inc rax
cmp r15, rax
jne 0x1400b3930
mov rax, qword [0x1401e6140]
cmp rax, 3
jne 0x1400b3da3
cmp rdi, 0x17f
ja 0x1400b3db5
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0xa0], 0
cmp rdi, 0xe
ja 0x1400b39f9
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x1400b3a9d
inc rcx
cmp r12, rcx
jne 0x1400b3990
jmp 0x1400b3afb
xor r9d, r9d
mov r10w, 0xa
xor ebx, ebx
nop word cs:[rax + rax]
cmp r15, r9
je 0x1400b394c
movzx r11d, byte [r8 + r9]
mov eax, ebx
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400b38df
test dl, dl
jne 0x1400b38df
mov ebx, eax
inc r9
add bx, r11w
jae 0x1400b39c0
jmp 0x1400b38df
lea rax, [rsp + 0xa7]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1400b3a2f
je 0x1400b3a2f
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x1400b3a9d
inc rcx
cmp rax, rcx
jne 0x1400b3a0e
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x1400b3a35
jmp 0x1400b3a78
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x140145ca0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xa0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1400b3a78
add rax, 0x10
cmp rax, rcx
jbe 0x1400b3a47
sub r12, rax
je 0x1400b3afb
lea rdx, [rsp + rax]
add rdx, 0xa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x1400b3a9a
inc rcx
cmp r12, rcx
jne 0x1400b3a8a
jmp 0x1400b3afb
add rcx, rax
cmp rcx, rdi
jne 0x1400b3afb
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 + 0x48], 0
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x48]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400b3b61
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400b3b02
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x58], rax
mov eax, 1
test rax, rax
je 0x1400b3b1b
mov rcx, qword [rsp + 0x58]
jmp 0x1400b38df
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400b3b4d
movzx ebp, word [rsp + 0x68]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x1400b3b9b
cmp edx, 2
je 0x1400b3b79
mov rax, r15
test r15, r15
jne 0x1400b3b2f
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor r14d, r14d
xor ecx, ecx
jmp 0x1400b3d88
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], bx
xor eax, eax
jmp 0x1400b3b0c
cmp qword [rax + 0x10], 0xf
jbe 0x1400b3e29
mov r12d, dword [r8 + 4]
mov eax, r12d
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, ebp, 1
xor edi, edi
jmp 0x1400b3bbd
cmp qword [rax + 0x10], 0x1b
jbe 0x1400b3e43
movdqu xmm6, xmmword [r8 + 8]
mov r13d, dword [r8 + 4]
mov r14d, dword [r8 + 0x18]
pshufd xmm7, xmm6, 0xf9
mov di, 1
mov qword [rsp + 0x28], rcx
movzx eax, byte [0x1401e61e9]
mov rcx, qword [0x1401e6138]
test rcx, rcx
jne 0x1400b3bed
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400b3de3
mov rcx, rax
mov qword [0x1401e6138], rax
mov r8d, pe_nt_image_headers64
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400b3de3
mov rbx, rax
mov word [rax], di
mov word [rax + 2], r12w
movd dword [rax + 4], xmm6
movq qword [rax + 8], xmm7
pshufd xmm0, xmm7, 0xee
movd dword [rax + 0x10], xmm0
mov dword [rax + 0x14], r13d
mov dword [rax + 0x18], r14d
mov word [rax + 0x1c], bp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 4
mov qword [rsp + 0xb0], 1
mov r14d, 1
test r15, r15
je 0x1400b3d6e
lea rcx, [rsp + 0xa0]
lea rax, [0x14016cca0]
mov qword [rsp + 0x40], rax
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov qword [rsp + 0x38], rax
jmp 0x1400b3ce2
mov rbx, qword [rsp + 0xa0]
mov rcx, r13
pshufd xmm0, xmm6, 0xf9
mov rax, r14
shl rax, 5
mov word [rbx + rax], bp
mov word [rbx + rax + 2], r12w
movd dword [rbx + rax + 4], xmm7
pshufd xmm1, xmm0, 0xee
movd dword [rbx + rax + 0x10], xmm1
movq qword [rbx + rax + 8], xmm0
mov edx, dword [rsp + 0x30]
mov dword [rbx + rax + 0x14], edx
mov edx, dword [rsp + 0x34]
mov dword [rbx + rax + 0x18], edx
mov ebp, edi
mov word [rbx + rax + 0x1c], bp
inc r14
mov qword [rsp + 0xb0], r14
test r15, r15
je 0x1400b3d6e
mov r8, r15
mov rax, qword [r8 + 0x20]
mov r15, qword [r8 + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x1400b3d28
cmp edx, 2
je 0x1400b3d04
mov r8, r15
test r15, r15
jne 0x1400b3ce5
jmp 0x1400b3d6e
cmp qword [r8 + 0x10], 0xf
jbe 0x1400b3df4
mov r12d, dword [rax + 4]
mov eax, r12d
shr eax, 0x10
movd xmm7, eax
mov edi, ebp
pinsrw xmm7, ebp, 1
xor ebp, ebp
jmp 0x1400b3d50
cmp qword [r8 + 0x10], 0x1b
jbe 0x1400b3dfb
mov edi, ebp
movdqu xmm6, xmmword [rax + 8]
mov edx, dword [rax + 4]
mov dword [rsp + 0x30], edx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
mov bp, 1
movdqa xmm7, xmm6
cmp r14, qword [rsp + 0xa8]
jne 0x1400b3c8a
mov r13, rcx
mov rdx, r14
call fcn.1400b3260
jmp 0x1400b3c7f
mov rcx, qword [rsp + 0x28]
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
shl r14, 5
add r14, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
jmp 0x1400b38ea
call fcn.1400b3320
cmp rdi, 0x17f
jbe 0x1400b396a
lea rcx, [rsp + 0x50]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.1400b3390
mov rax, qword [rsp + 0x50]
jmp 0x1400b3b0c
mov ecx, 4
mov edx, 0x20
call fcn.140002ac0
ud2
mov ecx, 4
mov edx, pe_nt_image_headers64
call fcn.140002ac0
jmp 0x1400b3e60
mov edx, 0x42
jmp 0x1400b3e18
mov edx, 0x43
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
mov qword [rsp + 0x38], rax
lea rax, [0x14016cd00]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.140004ed0
jmp 0x1400b3e60
mov qword [rsp + 0x28], rcx
lea r8, [0x14016cca0]
mov edx, 0x42
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
jmp 0x1400b3e5b
mov qword [rsp + 0x28], rcx
lea r8, [0x14016cd00]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
call fcn.140004ed0
ud2