Function at 0x14002fb80
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x200], xmm6
mov qword [rbp + 0x1f8], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov qword [rbp + 0x1e8], rcx
lea rcx, [rbp + 0x1a0]
mov qword [rcx], rdx
mov qword [rcx + 8], r8
call fcn.140006230
mov r15, rax
test r15b, 1
je 0x14002fc63
mov rsi, qword [rbp + 0x1a8]
test rsi, rsi
je 0x14002fc31
mov rax, qword [rbp + 0x1a0]
lea rcx, [rsi - 1]
mov dl, byte [rax]
inc rax
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rcx
cmp dl, 0x3a
jne 0x14002fc31
lea rdx, [rbp - 0x50]
mov dword [rdx + 0x10], 0xa
and qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rbp + 0x1a0]
call fcn.1400069d0
cmp ax, 1
jne 0x14002fc33
jmp 0x14002fc3f
xor eax, eax
mov qword [rbp + 0x1a8], rsi
test ax, ax
je 0x14002fc63
movabs rax, 0xffffffff00
and r15, rax
shr r15, 8
push 1
pop rax
movzx ecx, dx
shl rcx, 0x30
shl r15, 0x10
or r15, rcx
jmp 0x14002fc68
xor r15d, r15d
xor eax, eax
or rax, r15
cmp ax, 1
je 0x14002fd78
movzx ecx, ax
mov rax, rbx
test ecx, ecx
jne 0x14002fd7f
test rbx, rbx
je 0x1400301a5
lea rax, [rbx - 1]
lea rcx, [rdi + 1]
mov dl, byte [rdi]
mov qword [rbp + 0x1a0], rcx
mov qword [rbp + 0x1a8], rax
cmp dl, 0x5b
jne 0x1400301a5
pxor xmm0, xmm0
lea rdx, [rbp - 0x50]
movdqa xmmword [rdx], xmm0
lea rcx, [rbp + 0x1a0]
push 8
pop r14
mov r8, r14
call fcn.140006790
cmp rax, 8
jne 0x140030024
movdqa xmm6, xmmword [rbp - 0x50]
movdqa xmm0, xmm6
psrlw xmm0, 8
psllw xmm6, 8
por xmm6, xmm0
mov rcx, qword [rbp + 0x1a0]
mov r8, qword [rbp + 0x1a8]
xor r13d, r13d
test r8, r8
je 0x1400300e0
cmp byte [rcx], 0x25
jne 0x14003010c
lea r11, [r8 - 1]
lea r10, [rcx + 1]
xor r14d, r14d
push 0xa
pop r15
mov qword [rbp + 0x1e0], r11
mov rsi, r10
xor r12d, r12d
xor r13d, r13d
mov eax, 0
test r11, r11
je 0x14002fd52
movzx r9d, byte [rsi]
add r9d, 0xffffffd0
xor eax, eax
cmp r9d, 0xa
setb al
jae 0x14002fd52
dec r11
inc rsi
cmp eax, 1
jne 0x1400300e2
mov eax, r14d
mul r15d
jo 0x1400300fa
mov r14d, eax
add r14d, r9d
jb 0x1400300fa
inc r12
jmp 0x14002fd2f
mov rax, qword [rbp + 0x1a8]
test rax, rax
jne 0x1400301b3
mov esi, r15d
shr esi, 0x10
shr r15, 0x18
xor edi, edi
mov al, byte [0x14005cc68]
push 0x20
pop rcx
push 4
pop rdx
call fcn.140009cd0
test rax, rax
je 0x140030760
mov rbx, rax
mov word [rax], di
mov rax, r15
shl rax, 8
movzx ecx, sil
or rcx, rax
shr r15, 0x18
mov word [rbx + 6], r15w
mov dword [rbx + 2], ecx
movq qword [rbx + 8], xmm6
pshufd xmm0, xmm6, 0xee
movd dword [rbx + 0x10], xmm0
and dword [rbx + 0x14], 0
mov dword [rbx + 0x18], r14d
mov word [rbx + 0x1c], r12w
mov r15, rbx
add r15, 0x20
push 1
pop r11
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r11
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], r15
xor r13d, r13d
mov qword [rbp + 0x178], r15
cmp rbx, r15
je 0x14002ffe1
mov rax, rbx
lea rdx, [rbx + 0x20]
mov qword [rbp - 0x40], rdx
movzx edi, word [rbx]
movzx ecx, word [rbx + 0x12]
mov word [rbp + 0x160], cx
movups xmm0, xmmword [rbx + 2]
movaps xmmword [rbp + 0x150], xmm0
cmp di, 2
je 0x14002ffe1
mov qword [rbp + 0x1d8], r13
mov qword [rbp + 0x1e0], rdx
mov ebx, dword [rax + 0x14]
mov r14d, dword [rax + 0x18]
movzx esi, word [rax + 0x1c]
movzx eax, word [rbp + 0x160]
mov word [rbp + 0x190], ax
movdqa xmm0, xmmword [rbp + 0x150]
movdqa xmmword [rbp + 0x180], xmm0
mov rax, qword [0x14005cbd0]
cmp rax, 3
jne 0x14002ffd7
push 2
pop r12
test di, di
push 1
pop rdx
je 0x14002fe9e
push 0x17
pop r12
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, r12d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14002fed8
test di, di
je 0x14002ff3e
mov ax, 0x17
movdqu xmm0, xmmword [rbp + 0x182]
push 0x1c
jmp 0x14002ff55
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14002fef3
mov r13d, eax
cmp eax, 0x2726
jne 0x14002ffa5
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, r12d
push 1
pop r12
mov edx, r12d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002ffcc
mov r15, rax
mov rcx, rax
mov edx, r12d
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14002fec3
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x14002ff99
movzx esi, word [rbp + 0x184]
mov ebx, dword [rbp + 0x180]
mov ax, 2
pxor xmm0, xmm0
push 0x10
pop r8
rol si, 8
mov word [rbp + 0x1a0], ax
mov word [rbp + 0x1a2], si
mov dword [rbp + 0x1a4], ebx
movdqu xmmword [rbp + 0x1a8], xmm0
mov dword [rbp + 0x1b8], r14d
mov rcx, r15
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14002fffd
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r13d, eax
mov rcx, r15
call qword [sym.imp.ws2_32.dll_closesocket]
shl r13, 0x20
or r13, 2
mov rcx, qword [rbp + 0x1d8]
call fcn.14002bf8b
mov rbx, qword [rbp + 0x1e0]
mov r15, qword [rbp + 0x178]
jmp 0x14002fe0f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r13d, eax
jmp 0x14002ffa5
call fcn.140042110
jmp 0x14002fe8e
lea rcx, [rbp - 0x50]
call fcn.14002bf70
test r13, r13
lea r11, str.could_not_resolve_to_any_addresses
cmovne r11, r13
jmp 0x140030209
lea rcx, [rbp - 0x50]
call fcn.14002bf70
mov rcx, qword [rbp + 0x1d8]
call fcn.14002bf8b
mov rcx, qword [rbp + 0x1e8]
mov qword [rcx + 8], r15
push 0xa
jmp 0x140030216
test dl, 1
jne 0x1400301a5
mov rcx, qword [rbp + 0x1a8]
test rcx, rcx
je 0x1400301a5
mov rdx, qword [rbp + 0x1a0]
cmp byte [rdx], 0x3a
jne 0x1400301a5
cmp rcx, 1
je 0x1400301a5
add rcx, 0xfffffffffffffffe
mov r8b, byte [rdx + 1]
add rdx, 2
mov qword [rbp + 0x1a0], rdx
mov qword [rbp + 0x1a8], rcx
cmp r8b, 0x3a
jne 0x1400301a5
and qword [rbp + 0x186], 0
and qword [rbp + 0x180], 0
push 7
pop r8
sub r8, rax
jb 0x14003079e
lea rcx, [rbp + 0x1a0]
lea rdx, [rbp + 0x180]
call fcn.140006790
sub r14, rax
jb 0x1400307b3
cmp rax, 8
je 0x1400307c5
lea rcx, [r14*2 - 0x50]
add rcx, rbp
add rax, rax
lea rdx, [rbp + 0x180]
mov r8, rax
call fcn.1400405e0
jmp 0x14002fcd6
jmp 0x14003010c
test r12, r12
je 0x1400300f7
push 1
pop r13
mov qword [rbp + 0x1e0], r11
mov r10, rsi
jmp 0x1400300fa
xor r13d, r13d
cmp r13d, 1
jne 0x14003010c
mov rcx, r10
mov r8, qword [rbp + 0x1e0]
jmp 0x140030113
test r13d, r13d
cmove r14d, r13d
test r8, r8
je 0x1400301a5
cmp byte [rcx], 0x5d
jne 0x1400301a5
mov rsi, r8
dec rsi
je 0x140030174
add r8, 0xfffffffffffffffe
mov al, byte [rcx + 1]
add rcx, 2
mov qword [rbp + 0x1a0], rcx
mov qword [rbp + 0x1a8], r8
cmp al, 0x3a
jne 0x140030174
lea rdx, [rbp - 0x50]
mov dword [rdx + 0x10], 0xa
and qword [rdx], 0
mov byte [rdx + 0x14], 1
lea rcx, [rbp + 0x1a0]
call fcn.1400069d0
mov r12d, edx
cmp ax, 1
jne 0x140030176
jmp 0x140030182
xor eax, eax
mov qword [rbp + 0x1a8], rsi
test ax, ax
je 0x1400301a5
cmp qword [rbp + 0x1a8], 0
jne 0x1400301b3
movd r15d, xmm6
pshufd xmm6, xmm6, 0xf9
shl r15, 8
mov di, 1
xor esi, esi
jmp 0x14002fd94
mov qword [rbp + 0x1a0], rdi
mov qword [rbp + 0x1a8], rbx
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
and qword [rbp - 0x40], 0
mov qword [rbp - 0x30], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x28], rax
mov sil, 0x3a
mov r14, rbx
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call fcn.140008ef0
cmp rax, 1
jne 0x140030202
mov r14, rdx
cmp rdx, rbx
jae 0x1400301fd
cmp byte [rdi + r14], sil
je 0x140030235
cmp r14, rbx
jbe 0x1400301dc
lea r11, str.invalid_socket_address
mov rcx, qword [rbp + 0x1e8]
mov qword [rcx + 8], r11
push 1
pop rax
mov qword [rcx], rax
movaps xmm6, xmmword [rbp + 0x200]
add rsp, 0x298
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rsi, [r14 + 1]
lea r11, str.invalid_port_value
sub rbx, rsi
je 0x140030209
lea rcx, [rdi + r14]
inc rcx
movzx eax, byte [rcx]
cmp eax, 0x2d
je 0x140030263
cmp eax, 0x2b
jne 0x140030269
dec rbx
je 0x140030209
inc rcx
jmp 0x140030269
cmp rbx, 1
je 0x140030209
cmp rbx, 5
jae 0x1400302e5
xor eax, eax
xor r15d, r15d
movzx edx, byte [rcx + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x140030209
imul r15d, r15d, 0xa
add r15d, edx
inc rax
cmp rbx, rax
jne 0x140030274
mov rax, qword [0x14005cbd0]
cmp rax, 3
jne 0x140030736
cmp r14, 0x17f
ja 0x140030740
lea rbx, [rbp - 0x50]
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.1400405e0
mov byte [rbp + r14 - 0x50], 0
cmp r14, 0xe
ja 0x14003032b
xor ecx, ecx
cmp byte [rbp + rcx - 0x50], 0
je 0x1400303be
inc rcx
cmp rsi, rcx
jne 0x1400302cd
jmp 0x140030416
xor r8d, r8d
mov r9w, 0xa
xor r15d, r15d
cmp rbx, r8
je 0x14003028f
movzx r10d, byte [rcx + r8]
mov eax, r15d
mul r9w
seto dl
add r10d, 0xffffffd0
cmp r10d, 9
ja 0x140030209
test dl, dl
jne 0x140030209
mov r15d, eax
inc r8
add r15w, r10w
jae 0x1400302f0
jmp 0x140030209
lea rax, [rbp - 0x49]
and rax, 0xfffffffffffffff8
sub rax, rbx
je 0x140030356
je 0x140030356
xor ecx, ecx
cmp byte [rbp + rcx - 0x50], 0
je 0x1400303be
inc rcx
cmp rax, rcx
jne 0x14003033c
lea rcx, [r14 - 0xf]
cmp rax, rcx
jbe 0x14003035c
jmp 0x14003039c
lea rcx, [r14 - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1400436f0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rbp + rax - 0x50]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x14003039c
add rax, 0x10
cmp rax, rcx
jbe 0x14003036e
sub rsi, rax
je 0x140030416
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffb0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x1400303bb
inc rcx
cmp rsi, rcx
jne 0x1400303ab
jmp 0x140030416
add rcx, rax
cmp rcx, r14
jne 0x140030416
pxor xmm0, xmm0
lea r8, [rbp + 0x1a0]
movdqa xmmword [r8], xmm0
movdqa xmmword [r8 + 0x20], xmm0
movdqa xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rbp + 0x150]
and qword [r9], 0
lea rcx, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140030712
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14003041d
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x188], rax
push 1
pop rax
mov rcx, qword [rbp + 0x1e8]
test rax, rax
je 0x14003043f
mov r11, qword [rbp + 0x188]
jmp 0x140030210
lea rdx, [rbp + 0x188]
movdqu xmm0, xmmword [rdx]
movzx eax, word [rdx + 0x10]
mov ecx, dword [rdx + 0x12]
mov dword [rbp + 0x148], ecx
movzx r8d, word [rdx + 0x16]
mov word [rbp + 0x14c], r8w
lea r9, [rbp + 0x176]
mov word [r9], ax
movdqu xmmword [rdx], xmm0
mov word [rdx + 0x10], ax
mov dword [rdx + 0x12], ecx
mov word [rdx + 0x16], r8w
mov qword [rdx - 8], r9
mov byte [rbp + 0x1f7], 1
lea rcx, [rbp - 0x50]
call fcn.14001ada0
movzx esi, word [rbp - 0x50]
cmp si, 2
jne 0x1400304b8
push 4
pop rbx
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
xor r11d, r11d
mov r15, rbx
jmp 0x14002fdf5
mov edi, dword [rbp - 0x4e]
movzx ebx, word [rbp - 0x4a]
mov eax, dword [rbp - 0x38]
mov dword [rbp + 0x1b0], eax
movdqu xmm0, xmmword [rbp - 0x48]
movdqa xmmword [rbp + 0x1a0], xmm0
movzx r15d, word [rbp - 0x34]
movzx r14d, word [rbp - 0x32]
mov rax, qword [rbp + 0x180]
movzx r12d, word [rax]
mov al, byte [0x14005cc68]
push 4
pop r13
mov ecx, 0x80
mov rdx, r13
call fcn.140009cd0
test rax, rax
je 0x140030788
test si, si
cmovne r15d, r12d
cmove ebx, r12d
lea rdx, [rbp + 0x1a8]
mov ecx, dword [rdx + 8]
mov dword [rax + 0x18], ecx
movaps xmm0, xmmword [rdx - 8]
movups xmmword [rax + 8], xmm0
mov word [rax], si
mov dword [rax + 2], edi
mov word [rax + 6], bx
mov word [rax + 0x1c], r15w
mov word [rax + 0x1e], r14w
movdqu xmm0, xmmword [rbp + 0x180]
movdqu xmm1, xmmword [rbp + 0x190]
movdqa xmmword [rdx + 8], xmm1
movdqa xmmword [rdx - 8], xmm0
push 1
pop r15
mov qword [rbp + 0x1d8], r13
mov qword [rbp + 0x1e0], rax
mov r12, rax
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x1a8]
call fcn.14001ada0
movzx esi, word [rbp - 0x50]
cmp si, 2
je 0x1400306e2
mov edx, dword [rbp - 0x4e]
movzx ebx, word [rbp - 0x4a]
lea rcx, [rbp - 0x48]
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x140], eax
movups xmm0, xmmword [rcx]
movaps xmmword [rbp + 0x130], xmm0
mov rax, qword [rbp + 0x1a0]
movzx edi, word [rax]
test si, si
mov r13, qword [rbp + 0x1d8]
jne 0x1400305c5
mov ebx, edi
movzx edi, word [rbp - 0x34]
movzx r14d, word [rbp - 0x32]
cmp r15, r13
jne 0x140030696
mov rax, r13
inc r13
je 0x140030770
mov dword [rbp + 0x178], edx
add rax, rax
cmp rax, r13
cmova r13, rax
cmp r13, 5
push 4
pop r9
jae 0x1400305fc
mov r13, r9
xor edx, edx
mov rax, r13
shr rax, 0x3a
sete al
mov rcx, qword [rbp + 0x1d8]
test rcx, rcx
je 0x14003062c
shl rcx, 5
mov r8, qword [rbp + 0x1e0]
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x40], rcx
mov rcx, r9
jmp 0x14003062e
xor ecx, ecx
mov r8, r13
shl r8, 5
mov dl, al
shl rdx, 2
mov qword [rbp - 0x48], rcx
lea rcx, [rbp + 0x150]
lea r9, [rbp - 0x50]
call fcn.140012760
cmp qword [rbp + 0x150], 0
mov r12, qword [rbp + 0x158]
je 0x140030689
movabs rax, 0x8000000000000001
cmp r12, rax
mov edx, dword [rbp + 0x178]
jne 0x14003076b
mov r13, qword [rbp + 0x1d8]
mov r12, qword [rbp + 0x1e0]
jmp 0x140030696
mov qword [rbp + 0x1e0], r12
mov edx, dword [rbp + 0x178]
mov rax, r15
shl rax, 5
mov word [r12 + rax], si
mov dword [r12 + rax + 2], edx
mov word [r12 + rax + 6], bx
movdqa xmm0, xmmword [rbp + 0x130]
movdqu xmmword [r12 + rax + 8], xmm0
mov ecx, dword [rbp + 0x140]
mov dword [r12 + rax + 0x18], ecx
mov word [r12 + rax + 0x1c], di
mov word [r12 + rax + 0x1e], r14w
inc r15
mov qword [rbp + 0x1d8], r13
jmp 0x14003056d
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rbx, qword [rbp + 0x1e0]
test rbx, rbx
mov r11, qword [rbp + 0x1d8]
je 0x140030209
shl r15, 5
add r15, rbx
jmp 0x14002fdf5
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x190], rax
mov word [rbp + 0x198], r15w
xor eax, eax
jmp 0x140030427
call fcn.140042110
jmp 0x1400302a0
lea rbx, [rbp + 0x180]
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call fcn.140042170
mov rax, qword [rbx]
jmp 0x140030427
push 4
pop rcx
push 0x20
pop rdx
call fcn.140041100
test r12, r12
jne 0x140030777
call fcn.140002950
jmp 0x14003079c
mov rdx, qword [rbp + 0x160]
mov rcx, r12
call fcn.140041100
jmp 0x14003079c
mov byte [rbp + 0x1f7], 1
push 4
pop rcx
mov edx, 0x80
call fcn.140041100
ud2
lea rax, str.librarycore_src_netparser.rs
push 7
pop rdx
mov rcx, r8
mov r8, rax
call fcn.140041310
lea r8, str.librarycore_src_netparser.rs
push 8
pop rdx
mov rcx, r14
call fcn.140041590
lea r8, str.librarycore_src_netparser.rs
push 8
pop rcx
push 7
pop rdx
call fcn.140041310
int3