Function at 0x1400d4270
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.1400189f0
mov rbx, rax
test bl, 1
je 0x1400d435a
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1400d434e
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 0x1400d434e
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.140018650
cmp ax, 1
je 0x1400d4312
mov qword [rsp + 0x38], rsi
test ax, ax
je 0x1400d435a
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 0x1400d4366
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
jmp 0x1400d437a
xor eax, eax
mov qword [rsp + 0x38], rsi
test ax, ax
jne 0x1400d4312
xor ebx, ebx
xor eax, eax
or rax, rbx
test ax, ax
je 0x1400d433e
movzx eax, ax
cmp eax, 1
jne 0x1400d437a
cmp qword [rsp + 0x38], 0
je 0x1400d44b9
mov r8d, 0xf
lea rax, [0x1401cbae7]
and rax, 0xfffffffffffffff8
sub rax, rdi
movdqa xmm0, xmmword [str.::::::::::::::::]
movdqa xmm1, xmmword [0x140199290]
movabs rdx, 0x8080808080808080
lea rcx, [0x1401ccd08]
jmp 0x1400d43ca
cmp r8, 0xf
ja 0x1400d449a
mov r9, r8
mov r10, r8
cmp r8, rax
jb 0x1400d43ee
mov r11d, r8d
sub r11d, eax
and r11d, 0xf
mov r9, r8
mov r10, rax
sub r9, r11
jb 0x1400d49fa
lea r11, [rdi + r8]
sub r11, rdi
sub r11, r9
lea rsi, [r8 + rdi]
dec rsi
nop
test r11, r11
je 0x1400d4420
dec r11
cmp byte [rsi], 0x3a
lea rsi, [rsi - 1]
jne 0x1400d4400
add r11, r9
mov r8, r11
jmp 0x1400d4474
mov r11, r9
cmp r9, r10
jbe 0x1400d4456
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 0x1400d4420
cmp r11, r8
ja 0x1400d49fa
nop
test r11, r11
je 0x1400d449a
lea r8, [r11 - 1]
cmp byte [r11 + rdi - 1], 0x3a
mov r11, r8
jne 0x1400d4460
cmp r8, 0xe
ja 0x1400d43c0
cmp byte [r8 + rdi], 0x3a
jne 0x1400d43c0
lea rcx, str.invalid_port_value
cmp r8, 0xe
jne 0x1400d48a0
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 [0x140205110]
mov rcx, qword [0x140205100]
test rcx, rcx
jne 0x1400d44fc
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400d49fa
mov rcx, rax
mov qword [0x140205100], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400d49fa
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 0x1400d45d0
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapFree
dec rbx
mov rcx, qword [0x140205100]
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 0x1400d47be
movzx r14d, word [r13]
cmp r14w, 2
je 0x1400d47be
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 [0x1402050e0]
cmp rax, 3
jne 0x1400d47ad
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 0x1400d4670
test r14w, r14w
je 0x1400d46f0
mov r8d, 0x1c
mov ax, 0x17
movdqu xmm0, xmmword [rsp + 0x32]
jmp 0x1400d4707
mov dword [rsp + 0x9c], r12d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400d4692
mov r12d, eax
cmp eax, 0x2726
jne 0x1400d474a
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 0x1400d479b
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x1400d47b7
mov r12d, dword [rsp + 0x9c]
test r14w, r14w
jne 0x1400d465a
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 0x1400d4800
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
mov rcx, r15
call sub.ws2_32.dll_closesocket
test rbx, rbx
je 0x1400d45b0
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d45b0
test rax, rax
je 0x1400d45b0
mov r15, qword [rbx - 1]
mov rsi, qword [rbx + 7]
mov rcx, r15
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400d459c
cmp qword [rsi + 0x10], 0x11
jb 0x1400d458b
mov r15, qword [r15 - 8]
jmp 0x1400d458b
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
test rbx, rbx
jne 0x1400d4753
jmp 0x1400d45b0
call fcn.1400dca80
jmp 0x1400d4614
call sub.kernel32.dll_GetLastError
jmp 0x1400d473f
mov r14, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400d47e9
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapFree
test rbx, rbx
lea rax, [0x1401cbb18]
cmovne rax, rbx
mov qword [r14 + 8], rax
jmp 0x1400d449e
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], r15
mov qword [rax], 0
cmp qword [rsp + 0x78], 0
je 0x1400d4831
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, qword [rsp + 0x88]
call sub.kernel32.dll_HeapFree
test rbx, rbx
je 0x1400d44a5
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400d44a5
test rax, rax
je 0x1400d44a5
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 0x1400d488a
cmp qword [rbx + 0x10], 0x11
jb 0x1400d4879
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1400d44a5
lea r9, [r8 + rdi]
inc r9
movzx eax, byte [r9]
mov r10d, 0xe
cmp eax, 0x2d
je 0x1400d48d0
cmp eax, 0x2b
jne 0x1400d48da
cmp r8, 0xd
je 0x1400d449a
inc r9
mov r10d, 0xd
jmp 0x1400d48da
cmp r8, 0xd
je 0x1400d449a
sub r10, r8
cmp r10, 5
jae 0x1400d493a
xor edx, edx
xor eax, eax
movzx r11d, byte [r9 + rdx]
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400d449a
add eax, eax
lea eax, [rax + rax*4]
add eax, r11d
inc rdx
cmp r10, rdx
jne 0x1400d48e7
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.1400e6630
cmp qword [rsp + 0x30], 0
je 0x1400d4974
mov rcx, qword [rsp + 0x38]
jmp 0x1400d449a
xor r11d, r11d
mov si, 0xa
xor eax, eax
cmp r10, r11
je 0x1400d490a
movzx ebx, byte [r9 + r11]
mul si
seto dl
add ebx, 0xffffffd0
cmp ebx, 9
ja 0x1400d449a
test dl, dl
jne 0x1400d449a
inc r11
add ax, bx
jae 0x1400d4943
jmp 0x1400d449a
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.1400e8520
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
shl rcx, 5
je 0x1400d49ea
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r14
add rcx, r13
jmp 0x1400d4577
xor ebx, ebx
test rax, rax
jne 0x1400d47d8
jmp 0x1400d47e9
ud2