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

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
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402ba410]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r14 + 1]
lea r8d, [r14 + 6]
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
lea r13, [0x140275440]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rdi, 0xffffffffffffffff
cmp rsi, rdi
jne 0x1400670ba
mov rsi, rdi
jmp 0x1400670cf
mov dword [rbp - 0x50], r14d
mov byte [rbp - 0x4c], r14b
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x30], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400670e3
cmp dword [rbp - 0x50], 0
jne 0x1400675af
mov dword [rbp - 0x40], 1
cmp rsi, 0xffffffffffffffff
jne 0x14006712c
mov qword [rbp - 0x18], r14
mov word [rbp - 0x20], bx
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r14w
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r15d, [rsi + 0x11]
jmp 0x1400671b8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x18], r14
mov word [rbp - 0x20], bx
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r14w
xor ecx, ecx
lea r15d, [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
je 0x1400671e2
cmp ebx, 0xffffffff
jne 0x1400671e2
cmp dword [rbp - 0x50], 0
jne 0x1400675af
cmp rsi, 0xffffffffffffffff
jne 0x1400671e2
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140067243
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
jne 0x14006723e
mov dword [rbp - 0x50], r14d
mov byte [rbp - 0x4c], bl
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006724d
cmp ebx, 0xffffffff
jne 0x14006724d
cmp dword [rbp - 0x50], 0
jne 0x1400675af
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x140067268
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
lea r8, [rbp - 0x50]
mov edx, 0x7fffffff
mov rcx, rsi
call fcn.1400665a0
cmp eax, 0xffffffff
jne 0x140067288
cmp dword [rbp - 0x50], 0
jne 0x1400675af
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r14, 0xffffffffffffffff
jne 0x1400672db
mov r14, rdi
jmp 0x1400672f3
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], r14
cmp r14, 0xffffffffffffffff
jne 0x140067321
cmp dword [rbp - 0x50], 0
jne 0x1400675c0
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006735c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp ebx, 0xffffffff
jne 0x140067366
cmp dword [rbp - 0x50], 0
jne 0x1400675c0
cmp rsi, 0xffffffffffffffff
jne 0x140067379
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
jmp 0x1400673c2
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp rbx, 0xffffffffffffffff
je 0x1400673cf
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov rdi, rbx
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x28], rdi
cmp rdi, 0xffffffffffffffff
jne 0x1400673e3
cmp dword [rbp - 0x50], 0
jne 0x14006759e
mov dword [rbp - 0x3c], 1
cmp r14, 0xffffffffffffffff
jne 0x14006740a
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140067460
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
js 0x14006745e
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
je 0x14006746a
cmp dword [rbp - 0x50], 0
jne 0x14006759e
mov dword [rbp - 0x40], 1
cmp r14, 0xffffffffffffffff
je 0x1400674a3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x3c], 1
cmp rdi, 0xffffffffffffffff
jne 0x1400674ca
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x140067520
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
js 0x14006751e
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
je 0x140067526
cmp dword [rbp - 0x50], 0
jne 0x14006759e
mov dword [rbp - 0x40], 1
cmp rdi, 0xffffffffffffffff
je 0x14006755f
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r12], rdi
mov qword [r12 + 8], r14
lea rcx, [rbp - 0x30]
call fcn.140066fa0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401ebfb0
lea r11, [rsp + 0x80]
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 - 0x50]
call fcn.140021e50
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.140021e50
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.140021e50
int3