Function at 0x1401b6a10
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, 0xa8
mov r14, rcx
lea rdi, str.127.0.0.1:34254could_not_resolve_to_any_addresses
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x30]
call fcn.14003d950
mov rbx, rax
test bl, 1
je 0x1401b6afa
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1401b6aee
mov rax, qword [rsp + 0x30]
lea rcx, [rsi - 1]
movzx edx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
cmp dl, 0x3a
jne 0x1401b6aee
mov dword [rsp + 0x68], 0xa
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x6c], 1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x58]
call fcn.14003d270
cmp ax, 1
je 0x1401b6ab2
mov qword [rsp + 0x38], rsi
test ax, ax
je 0x1401b6afa
movabs rax, 0xffffffff00
and rbx, rax
shr rbx, 8
movzx eax, dx
shl rax, 0x30
shl rbx, 0x10
or rbx, rax
mov eax, 1
or rax, rbx
test ax, ax
jne 0x1401b6b06
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
jmp 0x1401b6b1a
xor eax, eax
mov qword [rsp + 0x38], rsi
test ax, ax
jne 0x1401b6ab2
xor ebx, ebx
xor eax, eax
or rax, rbx
test ax, ax
je 0x1401b6ade
movzx eax, ax
cmp eax, 1
jne 0x1401b6b1a
cmp qword [rsp + 0x38], 0
je 0x1401b6c59
mov r8d, 0xf
lea rax, [0x1402a13f7]
and rax, 0xfffffffffffffff8
sub rax, rdi
movdqa xmm0, xmmword [str.::::::::::::::::]
movdqa xmm1, xmmword [0x1401fd920]
movabs rdx, 0x8080808080808080
lea rcx, [0x1402a19c0]
jmp 0x1401b6b6a
cmp r8, 0xf
ja 0x1401b6c3a
mov r9, r8
mov r10, r8
cmp r8, rax
jb 0x1401b6b8e
mov r11d, r8d
sub r11d, eax
and r11d, 0xf
mov r9, r8
mov r10, rax
sub r9, r11
jb 0x1401b719a
lea r11, [rdi + r8]
sub r11, rdi
sub r11, r9
lea rsi, [r8 + rdi]
dec rsi
nop
test r11, r11
je 0x1401b6bc0
dec r11
cmp byte [rsi], 0x3a
lea rsi, [rsi - 1]
jne 0x1401b6ba0
add r11, r9
mov r8, r11
jmp 0x1401b6c14
mov r11, r9
cmp r9, r10
jbe 0x1401b6bf6
lea r9, [r11 - 0x10]
movdqu xmm2, xmmword [r11 + rdi - 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm0
paddq xmm3, xmm1
pandn xmm2, xmm3
pshufd xmm3, xmm2, 0xee
por xmm3, xmm2
movq rsi, xmm3
test rsi, rdx
je 0x1401b6bc0
cmp r11, r8
ja 0x1401b719a
nop
test r11, r11
je 0x1401b6c3a
lea r8, [r11 - 1]
cmp byte [r11 + rdi - 1], 0x3a
mov r11, r8
jne 0x1401b6c00
cmp r8, 0xe
ja 0x1401b6b60
cmp byte [r8 + rdi], 0x3a
jne 0x1401b6b60
lea rcx, str.invalid_port_value
cmp r8, 0xe
jne 0x1401b7040
mov qword [r14 + 8], rcx
mov qword [r14], 1
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x90], rax
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401b6c9c
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401b719a
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401b719a
mov r13, rax
mov qword [rsp + 0x80], r14
mov word [rax], 0
mov rax, rbx
shr rax, 0x10
and rax, 0xffffffffffffff00
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
or rcx, rax
shr rbx, 0x30
mov word [r13 + 6], bx
mov dword [r13 + 2], ecx
mov rax, qword [rsp + 0x90]
mov qword [r13 + 8], rax
mov eax, dword [rsp + 0x98]
mov dword [r13 + 0x10], eax
mov dword [r13 + 0x14], 0
mov rcx, r13
add rcx, 0x20
mov eax, 1
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov qword [rsp + 0x88], r13
mov qword [rsp + 0xa0], rcx
jmp 0x1401b6d70
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapFree
dec rbx
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
shl r12, 0x20
mov rbx, r12
or rbx, 2
add r13, 0x20
mov rcx, qword [rsp + 0xa0]
cmp r13, rcx
je 0x1401b6f5e
movzx r14d, word [r13]
cmp r14w, 2
je 0x1401b6f5e
mov esi, dword [r13 + 0x14]
mov r12d, dword [r13 + 0x18]
movzx edi, word [r13 + 0x1c]
movzx eax, word [r13 + 0x12]
mov word [rsp + 0x40], ax
movdqu xmm0, xmmword [r13 + 2]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [0x1402d9120]
cmp rax, 3
jne 0x1401b6f4d
test r14w, r14w
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 sub.ws2_32.dll_WSASocketW
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1401b6e10
test r14w, r14w
je 0x1401b6e90
mov r8d, 0x1c
mov ax, 0x17
movdqu xmm0, xmmword [rsp + 0x32]
jmp 0x1401b6ea7
mov dword [rsp + 0x9c], r12d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1401b6e32
mov r12d, eax
cmp eax, 0x2726
jne 0x1401b6eea
mov dword [rsp + 0x28], 1
mov 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 0x1401b6f3b
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x1401b6f57
mov r12d, dword [rsp + 0x9c]
test r14w, r14w
jne 0x1401b6dfa
nop dword [rax + rax]
movzx edi, word [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov r8d, 0x10
mov ax, 2
pxor xmm0, xmm0
rol di, 8
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], di
mov dword [rsp + 0x5c], esi
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], r12d
mov rcx, r15
lea rdx, [rsp + 0x58]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x1401b6fa0
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
mov rcx, r15
call fcn.1401f2a3c
test rbx, rbx
je 0x1401b6d50
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1401b6d50
test rax, rax
je 0x1401b6d50
mov r15, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1401b6d3c
cmp qword [rsi + 0x10], 0x11
jb 0x1401b6d2b
mov r15, qword [r15 - 8]
jmp 0x1401b6d2b
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
test rbx, rbx
jne 0x1401b6ef3
jmp 0x1401b6d50
call fcn.1401b9710
jmp 0x1401b6db4
call sub.kernel32.dll_GetLastError
jmp 0x1401b6edf
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1401b6f89
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
test rbx, rbx
lea rax, [0x1402a1428]
cmovne rax, rbx
mov qword [r14 + 8], rax
jmp 0x1401b6c3e
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], r15
mov qword [rax], 0
cmp qword [rsp + 0x78], 0
je 0x1401b6fd1
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x88]
call sub.kernel32.dll_HeapFree
test rbx, rbx
je 0x1401b6c45
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1401b6c45
test rax, rax
je 0x1401b6c45
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 0x1401b702a
cmp qword [rbx + 0x10], 0x11
jb 0x1401b7019
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1401b6c45
lea r9, [r8 + rdi]
inc r9
movzx eax, byte [r9]
mov r10d, 0xe
cmp eax, 0x2d
je 0x1401b7070
cmp eax, 0x2b
jne 0x1401b707a
cmp r8, 0xd
je 0x1401b6c3a
inc r9
mov r10d, 0xd
jmp 0x1401b707a
cmp r8, 0xd
je 0x1401b6c3a
sub r10, r8
cmp r10, 5
jae 0x1401b70da
xor edx, edx
xor eax, eax
movzx r11d, byte [r9 + rdx]
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1401b6c3a
add eax, eax
lea eax, [rax + rax*4]
add eax, r11d
inc rdx
cmp r10, rdx
jne 0x1401b7087
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r8
mov word [rsp + 0x68], ax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x58]
call fcn.1401c0840
cmp qword [rsp + 0x30], 0
je 0x1401b7114
mov rcx, qword [rsp + 0x38]
jmp 0x1401b6c3a
xor r11d, r11d
mov si, 0xa
xor eax, eax
cmp r10, r11
je 0x1401b70aa
movzx ebx, byte [r9 + r11]
mul si
seto dl
add ebx, 0xffffffd0
cmp ebx, 9
ja 0x1401b6c3a
test dl, dl
jne 0x1401b6c3a
inc r11
add ax, bx
jae 0x1401b70e3
jmp 0x1401b6c3a
movzx eax, word [rsp + 0x48]
movzx ecx, word [rsp + 0x4e]
mov word [rsp + 0x76], cx
mov ecx, dword [rsp + 0x4a]
mov dword [rsp + 0x72], ecx
movdqu xmm0, xmmword [rsp + 0x38]
mov word [rsp + 0x90], ax
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x58]
call fcn.1401c6770
mov r13, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
shl rcx, 5
je 0x1401b718a
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r14
add rcx, r13
jmp 0x1401b6d17
xor ebx, ebx
test rax, rax
jne 0x1401b6f78
jmp 0x1401b6f89
ud2