Function at 0x1400a3f00
Capabilities:
Act as tcp client
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140391620]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 1], rcx
mov dword [rsp + 0x28], 1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea edx, [rbx + 1]
lea r8d, [rbx + 6]
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
mov r12, 0xffffffffffffffff
cmp rax, r12
je 0x1400a3f7f
mov dword [rbp - 0x29], ebx
mov byte [rbp - 0x25], bl
lea rdi, [0x140339bc0]
mov qword [rbp - 0x21], rdi
jmp 0x1400a3fa5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
lea rdi, [0x140339bc0]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rsi, r12
mov qword [rbp + 7], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400a3fbf
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a469f
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400a4008
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0x17], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], bx
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea r13d, [rsi + 0x11]
jmp 0x1400a40a0
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400a4048
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0x17], r15w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov r13d, 0x10
mov word [rbp + 0x19], bx
mov dword [rbp + 0x1b], eax
mov r8d, r13d
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test eax, eax
je 0x1400a40d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x1400a40d0
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a469f
cmp rsi, 0xffffffffffffffff
jne 0x1400a40d0
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a4118
mov dword [rbp - 9], 0x10
lea r8, [rbp - 9]
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r13, dword [rbp - 9]
test eax, eax
jne 0x1400a40f7
mov rbx, rdi
jmp 0x1400a412c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x1400a4128
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a469f
mov rbx, qword [rbp - 0x21]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x1400a4147
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
cmp rsi, 0xffffffffffffffff
jne 0x1400a4167
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a41d0
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
mov r14d, eax
test eax, eax
jne 0x1400a41ab
mov rax, qword [rbx + 8]
movabs r14, 0x8fafd21e25c5e09b
cmp rax, r14
je 0x1400a41ed
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a41ed
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a41ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rbx, rdi
cmp r14d, 0xffffffff
jne 0x1400a41e3
mov rbx, rdi
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a469f
movabs r14, 0x8fafd21e25c5e09b
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400a4259
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r14
je 0x1400a424e
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a424e
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
jmp 0x1400a427b
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
jmp 0x1400a427b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov r15, r12
mov rbx, rdi
mov qword [rbp - 9], r15
cmp r15, 0xffffffffffffffff
jne 0x1400a42af
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a467d
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x1400a431a
mov r8d, r13d
lea rdx, [rbp + 0x17]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
test eax, eax
jne 0x1400a42f5
mov rax, qword [rbx + 8]
movabs r13, 0x8fafd21e25c5e09b
cmp rax, r13
je 0x1400a4337
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a4337
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a4337
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rbx, rdi
cmp r14d, 0xffffffff
jne 0x1400a432d
mov rbx, rdi
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a467d
movabs r13, 0x8fafd21e25c5e09b
cmp rsi, 0xffffffffffffffff
jne 0x1400a434d
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a43dd
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400a43ce
mov rdx, qword [rbx + 8]
mov rcx, rdx
movabs rax, 0xb2ab117a257edf0d
cmp rdx, r13
je 0x1400a4398
cmp rdx, rax
je 0x1400a4398
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rbx + 8]
movabs rax, 0xb2ab117a257edf0d
mov dword [rbp - 0x29], 0
cmp rcx, r13
je 0x1400a43c0
cmp rcx, rax
je 0x1400a43c0
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
mov r12, r14
jmp 0x1400a43ed
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
mov r12, r14
jmp 0x1400a43ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0xf], r12
cmp r12, 0xffffffffffffffff
jne 0x1400a4401
cmp byte [rbp - 0x25], 0
jne 0x1400a468e
mov dword [rbp - 0x11], 1
cmp r15, 0xffffffffffffffff
jne 0x1400a441b
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a4480
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14d, eax
test eax, eax
js 0x1400a4471
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x1400a4461
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a4461
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
jmp 0x1400a4463
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
test r14d, r14d
je 0x1400a44a0
jmp 0x1400a4490
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a468e
mov dword [rbp - 0x15], 1
cmp r15, 0xffffffffffffffff
jne 0x1400a44ba
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a4510
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400a4501
mov rax, qword [rbx + 8]
cmp rax, r13
je 0x1400a4520
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a4520
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a4520
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x11], 1
cmp r12, 0xffffffffffffffff
jne 0x1400a453a
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
jmp 0x1400a459f
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14d, eax
test eax, eax
js 0x1400a4590
mov dword [rbp - 0x29], 0
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x1400a4580
movabs rax, 0xb2ab117a257edf0d
cmp rcx, rax
je 0x1400a4580
mov r8, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [r8 + 0x30]
jmp 0x1400a4582
xor al, al
mov byte [rbp - 0x25], al
mov qword [rbp - 0x21], rbx
test r14d, r14d
je 0x1400a45bf
jmp 0x1400a45af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], rdi
movaps xmm0, xmmword [rbp - 0x29]
mov rbx, rdi
movdqa xmmword [rbp - 0x29], xmm0
mov rax, qword [rbp - 0x29]
shr rax, 0x20
test al, al
jne 0x1400a468e
mov dword [rbp - 0x15], 1
cmp r12, 0xffffffffffffffff
je 0x1400a4619
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400a4613
mov rax, qword [rbx + 8]
cmp rax, r13
je 0x1400a4619
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400a4619
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400a4619
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rax, qword [rbp - 1]
mov qword [rax], r12
mov qword [rax + 8], r15
cmp rsi, 0xffffffffffffffff
je 0x1400a4650
mov dword [rbp - 0x29], 0
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], rdi
mov byte [rbp - 0x19], 0
lea r9, [rbp - 0x29]
mov r8b, 1
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.1400a33c0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140255050
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400353b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400353b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400353b0
int3