Function at 0x1400af4d9
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movapd xmmword [rsp + 0x130], xmm7
movapd xmmword [rsp + 0x120], xmm6
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400afb79
lea r15, str.127.0.0.1:34254__
lea rcx, [rsp + 0x30]
mov qword [rcx], r15
mov qword [rcx + 8], 0xf
call fcn.1400322a4
mov rsi, rax
test sil, 1
je 0x1400af567
lea rcx, [rsp + 0x30]
call fcn.140032968
test ax, ax
je 0x1400af567
movabs rax, 0xffffffff00
and rsi, rax
shr rsi, 8
movzx eax, dx
shl rax, 0x30
shl rsi, 0x10
or rsi, rax
mov eax, 1
jmp 0x1400af56b
xor esi, esi
xor eax, eax
movzx ecx, si
or rcx, rax
je 0x1400af814
cmp qword [rsp + 0x38], 0
jne 0x1400afa02
mov ebp, esi
shr ebp, 0x10
shr rsi, 0x18
xor r14d, r14d
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xb0], rax
mov ecx, 0x20
mov edx, 4
call fcn.1400b36a2
mov word [rax], r14w
mov rcx, rsi
shl rcx, 8
movzx edx, bpl
or rdx, rcx
shr rsi, 0x18
mov word [rax + 6], si
mov dword [rax + 2], edx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0xb8]
mov dword [rax + 0x10], ecx
and dword [rax + 0x14], 0
mov dword [rax + 0x18], edi
mov word [rax + 0x1c], bx
lea rcx, [rax + 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x90], rdx
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0xe0], rcx
xor r14d, r14d
xorpd xmm6, xmm6
cmp rax, qword [rsp + 0xe0]
je 0x1400af8f6
lea r13, [rax + 0x20]
movzx esi, word [rax]
cmp si, 2
je 0x1400af8f9
mov qword [rsp + 0x50], r14
mov r15d, dword [rax + 0x14]
mov edi, dword [rax + 0x18]
movzx r12d, word [rax + 0x1c]
movzx ecx, word [rax + 0x12]
mov word [rsp + 0x70], cx
movups xmm0, xmmword [rax + 2]
movaps xmmword [rsp + 0x60], xmm0
call fcn.1400b7783
test si, si
mov ebp, 0x17
mov eax, 2
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400af710
test si, si
je 0x1400af780
rol r12w, 8
movupd xmm7, xmmword [rsp + 0x62]
mov r8d, 0x1c
mov ax, 0x17
mov rsi, qword [rsp + 0x50]
jmp 0x1400af7a7
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400af72a
mov r14d, eax
cmp eax, 0x2726
jne 0x1400af7ed
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400af7f7
mov rbx, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x1400af6e8
call fcn.140070135
mov r14, rax
mov rcx, rbx
call fcn.140105968
jmp 0x1400af7ff
movzx r12d, word [rsp + 0x64]
rol r12w, 8
mov r15d, dword [rsp + 0x60]
movsd xmm7, xmm6
mov r8d, 0x10
mov ax, 2
mov rsi, qword [rsp + 0x50]
mov edi, dword [rsp + 0x5c]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], r12w
mov dword [rsp + 0x34], r15d
movupd xmmword [rsp + 0x38], xmm7
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x48], edi
mov rcx, rbx
lea rdx, [rsp + 0x30]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x1400af91d
call fcn.1400b791e
mov r14, rax
mov rcx, rbx
call fcn.140105968
jmp 0x1400af804
shl r14, 0x20
or r14, 2
jmp 0x1400af7ff
call fcn.1400b791e
mov r14, rax
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1400af458
mov rax, r13
jmp 0x1400af669
lea rcx, [rsp + 0x30]
mov qword [rcx], r15
mov qword [rcx + 8], 0xf
mov edx, 0x5b
call fcn.140032647
test al, al
je 0x1400af9f4
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140032425
cmp byte [rsi], 0
je 0x1400af9f4
mov esi, dword [rsp + 0x81]
mov rax, qword [rsp + 0x85]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x8d]
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0x30]
mov rbx, qword [rcx]
mov r14, qword [rcx + 8]
mov edx, 0x25
call fcn.140032647
test al, al
je 0x1400af961
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
xor edi, edi
mov r10d, 0xa
mov r9, rcx
mov r12, r8
xor r11d, r11d
mov eax, 0
test r12, r12
je 0x1400af8d3
movzx ebp, byte [r9]
add ebp, 0xffffffd0
xor eax, eax
cmp ebp, 0xa
setb al
jae 0x1400af8d3
dec r12
inc r9
cmp eax, 1
jne 0x1400af965
mov eax, edi
mul r10d
jo 0x1400af97b
mov edi, eax
add edi, ebp
jb 0x1400af97b
inc r11
jmp 0x1400af8b2
mov r13, rax
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], r13
call fcn.1400af43d
test r14, r14
lea rcx, str.could_not_resolve_to_any_addresses
cmovne rcx, r14
jmp 0x1400afac8
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], r13
call fcn.1400af43d
mov rcx, rsi
call fcn.1400af458
mov rcx, rbx
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140105968
xor eax, eax
jmp 0x1400af98b
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r9
test r11, r11
je 0x1400af97b
mov eax, 1
jmp 0x1400af987
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
xor eax, eax
test eax, eax
jne 0x1400af995
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
test eax, eax
cmove edi, eax
lea rcx, [rsp + 0x30]
mov edx, 0x5d
call fcn.140032647
test al, al
je 0x1400af9f4
lea rcx, [rsp + 0x30]
call fcn.140032968
test ax, ax
je 0x1400af9f4
mov eax, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xc0], rcx
mov dword [rsp + 0xc8], eax
cmp qword [rsp + 0x38], 0
jne 0x1400afa02
mov ebx, edx
shl rsi, 8
mov r14w, 1
xor ebp, ebp
jmp 0x1400af58f
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 0xf
lea rsi, [rsp + 0xa8]
mov qword [rsi - 0x28], r15
mov edi, 0xf
mov qword [rsi - 0x20], rdi
and qword [rsi - 0x18], 0
mov qword [rsi - 0x10], rdi
mov qword [rsi - 8], 1
movabs rax, 0x3a0000003a
mov qword [rsi], rax
mov r14d, 1
xor ebx, ebx
mov r8, rdi
sub r8, rbx
jb 0x1400afac1
cmp rdi, 0xf
ja 0x1400afac1
add rbx, r15
mov cl, byte [rsp + r14 + 0xa7]
mov rdx, rbx
call fcn.140033527
cmp rax, 1
jne 0x1400afac1
mov rdi, rdx
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
add rdi, rbx
lea rax, [r14 - 1]
mov r12, rdi
sub r12, rax
jb 0x1400afab4
mov r13, r12
add r13, r14
jb 0x1400afab4
cmp r13, 0xf
ja 0x1400afab4
cmp r14, 5
jae 0x1400afb79
lea rcx, [r15 + r12]
mov rdx, r14
mov r8, rsi
mov r9, r14
call fcn.1400b4ce3
test al, al
jne 0x1400afaf1
mov qword [rsp + 0x98], rdi
jmp 0x1400afa3d
lea rcx, str.invalid_socket_address
call fcn.1400af462
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r15 + r13]
mov edx, 0xf
sub rdx, r13
call fcn.140034483
test al, 1
jne 0x1400afb36
shr eax, 0x10
lea rdx, [rsp + 0x80]
mov qword [rdx], r15
mov qword [rdx + 8], r12
mov word [rdx + 0x10], ax
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400b758c
cmp qword [rsi], 0
je 0x1400afb3f
mov rcx, qword [rsp + 0x38]
jmp 0x1400afac8
lea rcx, str.invalid_port_value
jmp 0x1400afac8
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rsp + 0x40]
lea rdx, [rsp + 0xe8]
movups xmmword [rdx + 8], xmm0
mov qword [rdx], rax
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.1400b7637
cmp qword [rsi], 0
jne 0x1400af616
mov rcx, qword [rsp + 0x68]
jmp 0x1400afac8
ud2