Function at 0x140008ae0
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, 0xb8
movapd xmmword [rsp + 0xa0], xmm7
movapd xmmword [rsp + 0x90], xmm6
mov rsi, rcx
lea rdx, str.127.0.0.1:0
lea rcx, [rsp + 0x50]
mov r8d, 0xb
call fcn.14000c4c0
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140008dc0
mov rcx, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x88], rdx
cmp r13, rdx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rcx
je 0x140008dd2
xor ebx, ebx
xorpd xmm6, xmm6
jmp 0x140008bad
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
dec rbx
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop dword [rax + rax]
shl r15, 0x20
or r15, 2
add r13, 0x20
mov rbx, r15
cmp r13, qword [rsp + 0x88]
je 0x140008dd5
movzx esi, word [r13]
cmp si, 2
je 0x140008e33
mov r14d, dword [r13 + 0x14]
mov r15d, dword [r13 + 0x18]
movzx edi, word [r13 + 0x1c]
movzx eax, word [r13 + 0x12]
mov word [rsp + 0x80], ax
movups xmm0, xmmword [r13 + 2]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [0x140026100]
cmp rax, 3
jne 0x140008dab
test si, si
mov ebp, 0x17
mov eax, 2
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140008c60
test si, si
je 0x140008ce0
rol di, 8
movupd xmm7, xmmword [rsp + 0x72]
mov r8d, 0x1c
mov ax, 0x17
mov esi, r15d
jmp 0x140008d00
mov dword [rsp + 0x30], r15d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x140008c80
mov r15d, eax
cmp eax, 0x2726
jne 0x140008d46
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140008d98
mov r12, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x140008db5
mov r15d, dword [rsp + 0x30]
test si, si
jne 0x140008c36
nop word [rax + rax]
movzx edi, word [rsp + 0x74]
rol di, 8
mov r14d, dword [rsp + 0x70]
movsd xmm7, xmm6
mov r8d, 0x10
mov ax, 2
mov esi, dword [rsp + 0x34]
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], di
mov dword [rsp + 0x54], r14d
movupd xmmword [rsp + 0x58], xmm7
mov dword [rsp + 0x68], esi
mov rcx, r12
lea rdx, [rsp + 0x50]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140008e40
mov dword [rsp + 0x34], esi
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r15d, eax
mov rcx, r12
call qword [sym.imp.ws2_32.dll_closesocket]
test rbx, rbx
je 0x140008b90
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140008b90
test rax, rax
je 0x140008b90
mov r12, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rcx, r12
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x140008b76
cmp qword [rsi + 0x10], 0x11
jb 0x140008b64
mov r12, qword [r12 - 8]
jmp 0x140008b64
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r15d, eax
test rbx, rbx
jne 0x140008d4f
jmp 0x140008b90
call fcn.14001f0a0
jmp 0x140008bf1
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x140008d3a
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140008e0f
xor r15d, r15d
cmp qword [rsp + 0x40], 0
je 0x140008df1
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, qword [rsp + 0x38]
call qword [sym.imp.kernel32.dll_HeapFree]
test r15, r15
lea rax, str.could_not_resolve_to_any_addresses
cmovne rax, r15
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov qword [rcx], 1
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, rbx
cmp qword [rsp + 0x40], 0
jne 0x140008ddd
jmp 0x140008df1
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], r12
mov qword [rax], 0
cmp qword [rsp + 0x40], 0
je 0x140008e6c
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, qword [rsp + 0x38]
call qword [sym.imp.kernel32.dll_HeapFree]
test rbx, rbx
je 0x140008e0f
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140008e0f
test rax, rax
je 0x140008e0f
lea rsi, [rbx - 1]
mov rdi, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140008eba
cmp qword [rbx + 0x10], 0x11
jb 0x140008ea8
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140026178]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140008e0f