Function at 0x1400d8160
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.14001c920
mov rbx, rax
test bl, 1
je 0x1400d824a
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1400d823e
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 0x1400d823e
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.14001c580
cmp ax, 1
je 0x1400d8202
mov qword [rsp + 0x38], rsi
test ax, ax
je 0x1400d824a
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 0x1400d8256
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
jmp 0x1400d826a
xor eax, eax
mov qword [rsp + 0x38], rsi
test ax, ax
jne 0x1400d8202
xor ebx, ebx
xor eax, eax
or rax, rbx
test ax, ax
je 0x1400d822e
movzx eax, ax
cmp eax, 1
jne 0x1400d826a
cmp qword [rsp + 0x38], 0
je 0x1400d83a9
mov r8d, 0xf
lea rax, [0x1401ccc57]
and rax, 0xfffffffffffffff8
sub rax, rdi
movdqa xmm0, xmmword [str.::::::::::::::::]
movdqa xmm1, xmmword [0x14019a240]
movabs rdx, 0x8080808080808080
lea rcx, [0x1401cdf10]
jmp 0x1400d82ba
cmp r8, 0xf
ja 0x1400d838a
mov r9, r8
mov r10, r8
cmp r8, rax
jb 0x1400d82de
mov r11d, r8d
sub r11d, eax
and r11d, 0xf
mov r9, r8
mov r10, rax
sub r9, r11
jb 0x1400d88ea
lea r11, [rdi + r8]
sub r11, rdi
sub r11, r9
lea rsi, [r8 + rdi]
dec rsi
nop
test r11, r11
je 0x1400d8310
dec r11
cmp byte [rsi], 0x3a
lea rsi, [rsi - 1]
jne 0x1400d82f0
add r11, r9
mov r8, r11
jmp 0x1400d8364
mov r11, r9
cmp r9, r10
jbe 0x1400d8346
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 0x1400d8310
cmp r11, r8
ja 0x1400d88ea
nop
test r11, r11
je 0x1400d838a
lea r8, [r11 - 1]
cmp byte [r11 + rdi - 1], 0x3a
mov r11, r8
jne 0x1400d8350
cmp r8, 0xe
ja 0x1400d82b0
cmp byte [r8 + rdi], 0x3a
jne 0x1400d82b0
lea rcx, str.invalid_port_value
cmp r8, 0xe
jne 0x1400d8790
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 [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x1400d83ec
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400d88ea
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400d88ea
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 0x1400d84c0
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapFree
dec rbx
mov rcx, qword [0x140206128]
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 0x1400d86ae
movzx r14d, word [r13]
cmp r14w, 2
je 0x1400d86ae
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 [0x140206108]
cmp rax, 3
jne 0x1400d869d
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 0x1400d8560
test r14w, r14w
je 0x1400d85e0
mov r8d, 0x1c
mov ax, 0x17
movdqu xmm0, xmmword [rsp + 0x32]
jmp 0x1400d85f7
mov dword [rsp + 0x9c], r12d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400d8582
mov r12d, eax
cmp eax, 0x2726
jne 0x1400d863a
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 0x1400d868b
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x1400d86a7
mov r12d, dword [rsp + 0x9c]
test r14w, r14w
jne 0x1400d854a
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 0x1400d86f0
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
mov rcx, r15
call sub.ws2_32.dll_closesocket
test rbx, rbx
je 0x1400d84a0
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d84a0
test rax, rax
je 0x1400d84a0
mov r15, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d848c
cmp qword [rsi + 0x10], 0x11
jb 0x1400d847b
mov r15, qword [r15 - 8]
jmp 0x1400d847b
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
test rbx, rbx
jne 0x1400d8643
jmp 0x1400d84a0
call fcn.1400e0e80
jmp 0x1400d8504
call sub.kernel32.dll_GetLastError
jmp 0x1400d862f
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400d86d9
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
test rbx, rbx
lea rax, [0x1401ccc88]
cmovne rax, rbx
mov qword [r14 + 8], rax
jmp 0x1400d838e
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], r15
mov qword [rax], 0
cmp qword [rsp + 0x78], 0
je 0x1400d8721
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, qword [rsp + 0x88]
call sub.kernel32.dll_HeapFree
test rbx, rbx
je 0x1400d8395
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d8395
test rax, rax
je 0x1400d8395
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 0x1400d877a
cmp qword [rbx + 0x10], 0x11
jb 0x1400d8769
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1400d8395
lea r9, [r8 + rdi]
inc r9
movzx eax, byte [r9]
mov r10d, 0xe
cmp eax, 0x2d
je 0x1400d87c0
cmp eax, 0x2b
jne 0x1400d87ca
cmp r8, 0xd
je 0x1400d838a
inc r9
mov r10d, 0xd
jmp 0x1400d87ca
cmp r8, 0xd
je 0x1400d838a
sub r10, r8
cmp r10, 5
jae 0x1400d882a
xor edx, edx
xor eax, eax
movzx r11d, byte [r9 + rdx]
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400d838a
add eax, eax
lea eax, [rax + rax*4]
add eax, r11d
inc rdx
cmp r10, rdx
jne 0x1400d87d7
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.1400eabd0
cmp qword [rsp + 0x30], 0
je 0x1400d8864
mov rcx, qword [rsp + 0x38]
jmp 0x1400d838a
xor r11d, r11d
mov si, 0xa
xor eax, eax
cmp r10, r11
je 0x1400d87fa
movzx ebx, byte [r9 + r11]
mul si
seto dl
add ebx, 0xffffffd0
cmp ebx, 9
ja 0x1400d838a
test dl, dl
jne 0x1400d838a
inc r11
add ax, bx
jae 0x1400d8833
jmp 0x1400d838a
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.1400ecac0
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
shl rcx, 5
je 0x1400d88da
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r14
add rcx, r13
jmp 0x1400d8467
xor ebx, ebx
test rax, rax
jne 0x1400d86c8
jmp 0x1400d86d9
ud2