Function at 0x1400aa080
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov qword [rcx], 0xffffffffffffffff
mov r12, rdx
mov qword [rdx], 0xffffffffffffffff
mov r14, rcx
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x40], eax
mov edx, 1
mov eax, dword [0x140176010]
mov ebx, 2
mov dword [rsp + 0x44], eax
mov ecx, ebx
inc eax
lea r8d, [rdx + 5]
mov dword [0x140176010], eax
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400aa139
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400aa126
xor esi, esi
mov eax, esi
jmp 0x1400aa3c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea esi, [rax + 0xafc80]
mov eax, esi
jmp 0x1400aa3c7
lea rcx, str.127.0.0.1
mov qword [rsp + 0x2f0], rdi
mov dword [rsp + 0x58], ebx
xor esi, esi
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8d, [rsi + 0x10]
mov rcx, r15
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400aa36c
lea r8, [rsp + 0x34]
mov rcx, r15
lea rdx, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400aa36c
lea edx, [rsi + 1]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400aa36c
lea edx, [rsi + 1]
mov ecx, ebx
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
je 0x1400aa36c
lea r8d, [rsi + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400aa36c
mov rcx, qword [r12]
lea r8d, [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 8
je 0x1400aa21f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1400aa215
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
add ebx, 0xafc80
jne 0x1400aa386
mov ebx, reloc.WS2_32.dll_shutdown
jmp 0x1400aa386
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400aa36c
nop dword [rax + rax]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x68], r15
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x70], 1
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x48], 1
xor ecx, ecx
mov edi, esi
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400aa282
lea ecx, [rax + 0x65]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400aa240
test eax, eax
je 0x1400aa240
lea r8, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x1400aa36c
mov eax, edi
inc edi
test eax, eax
je 0x1400aa2b9
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [r14]
lea rdx, [rsp + 0x50]
xor r9d, r9d
lea r8d, [r9 + 8]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400aa324
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1400aa376
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [rax + 0xafc80]
cmp ebx, 0xb
je 0x1400aa2a6
cmp ebx, 0xafd68
je 0x1400aa2a6
cmp ebx, 0xafcd9
je 0x1400aa2a6
cmp ebx, 0xafd57
je 0x1400aa2a6
cmp ebx, 0xafd24
je 0x1400aa2a6
cmp ebx, 0xafca1
je 0x1400aa2a6
cmp ebx, 0xb23b3
je 0x1400aa2a6
jmp 0x1400aa386
cmp eax, 8
jne 0x1400aa335
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x50]
je 0x1400aa343
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400aa240
mov rcx, qword [r14]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], esi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400aa36c
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400aa3bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400aa37a
mov ebx, esi
jmp 0x1400aa386
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [rax + 0xafc80]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x1400aa395
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x1400aa3a5
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r14], 0xffffffffffffffff
mov rcx, r15
mov qword [r12], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
mov rdi, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140027790
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret