Function at 0x1400d44f0
Capabilities:
Create tcp socket
Create udp socket
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
lea rdi, str.127.0.0.1:34254could_not_resolve_to_any_addresses
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x38]
call fcn.14000b320
mov rbx, rax
test bl, 1
je 0x1400d46dd
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1400d46d8
mov r10, qword [rsp + 0x38]
cmp byte [r10], 0x3a
jne 0x1400d46d8
mov r9, r8
dec r9
je 0x1400d46d8
movabs rax, 0xffffffff00
and rbx, rax
shr rbx, 8
xor r11d, r11d
mov si, 0xa
xor eax, eax
nop word cs:[rax + rax]
movzx ebp, byte [r10 + r11 + 1]
add ebp, 0xffffffd0
cmp ebp, 9
ja 0x1400d45b3
mul si
jo 0x1400d46d8
mov ecx, eax
add ax, bp
jb 0x1400d46d8
movsx eax, bp
add eax, ecx
inc r11
cmp r9, r11
jne 0x1400d4580
xor ecx, ecx
jmp 0x1400d45bc
mov rcx, r9
sub rcx, r11
mov r9d, r11d
mov qword [rsp + 0x40], rcx
test r9d, r9d
je 0x1400d46d8
movzx eax, ax
shl rax, 0x30
shl rbx, 0x10
or rbx, rax
mov eax, 1
or rax, rbx
cmp ax, 1
jne 0x1400d46ee
cmp qword [rsp + 0x40], 0
jne 0x1400d4703
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xa8], rax
movzx eax, byte [0x140198310]
mov edx, 0x20
xor ecx, ecx
call fcn.1400f22c0
test rax, rax
je 0x1400d4bf1
mov rsi, rax
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 [rsi + 6], bx
mov dword [rsi + 2], ecx
mov rax, qword [rsp + 0xa8]
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], 0
mov rax, rsi
add rax, 0x20
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], 1
mov qword [rsp + 0xd0], rax
mov rax, rsi
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
cmp rsi, rax
je 0x1400d4a74
xor edi, edi
jmp 0x1400d4814
mov qword [rsp + 0x40], r8
xor ebx, ebx
xor eax, eax
or rax, rbx
cmp ax, 1
je 0x1400d45ea
movzx eax, ax
test eax, eax
jne 0x1400d4703
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x60], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0x58], rax
mov bl, 0x3a
mov r8d, 0xf
jmp 0x1400d4746
cmp r8, 0xf
ja 0x1400d479f
mov cl, 0x3a
mov rdx, rdi
call fcn.14000d700
cmp rax, 1
jne 0x1400d479f
mov r8, rdx
cmp rdx, 0xf
jae 0x1400d4740
cmp byte [r8 + rdi], bl
jne 0x1400d4740
mov r10, r8
lea rsi, str.invalid_port_value
sub r10, 0xe
je 0x1400d47a6
lea r9, [r8 + rdi]
inc r9
cmp r8, 0xd
jne 0x1400d4a10
movzx eax, byte [r9]
cmp eax, 0x2b
je 0x1400d47a6
mov r10d, 1
cmp eax, 0x2d
je 0x1400d47a6
jmp 0x1400d4ac0
lea rsi, str.invalid_socket_address
mov eax, 1
mov rdx, rsi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
dec rdi
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
shl r12, 0x20
or r12, 2
add rsi, 0x20
mov rdi, r12
cmp rsi, qword [rsp + 0xd8]
je 0x1400d4a77
movzx r13d, word [rsi]
cmp r13w, 2
je 0x1400d4aa6
mov r14d, dword [rsi + 0x14]
mov r12d, dword [rsi + 0x18]
movzx ebx, word [rsi + 0x1c]
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x90], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [0x140198268]
cmp rax, 3
jne 0x1400d49fe
test r13w, r13w
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 qword [sym.imp.ws2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400d48c0
test r13w, r13w
je 0x1400d4940
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x82]
jmp 0x1400d495d
mov dword [rsp + 0x6c], r12d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400d48e0
mov r12d, eax
cmp eax, 0x2726
jne 0x1400d49a3
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400d49e5
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1400d4a08
mov r12d, dword [rsp + 0x6c]
test r13w, r13w
jne 0x1400d489f
nop dword [rax + rax]
movzx ebx, word [rsp + 0x84]
mov r14d, dword [rsp + 0x80]
xorps xmm0, xmm0
mov r8d, 0x10
mov ax, 2
rol bx, 8
mov word [rsp + 0x38], ax
mov word [rsp + 0x3a], bx
mov dword [rsp + 0x3c], r14d
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], r12d
mov rcx, r15
lea rdx, [rsp + 0x38]
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400d4b73
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
mov rcx, r15
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400d47f7
mov r15, qword [rdi - 1]
mov rbx, qword [rdi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400d49c6
mov rcx, r15
call rax
cmp qword [rbx + 8], 0
je 0x1400d47e2
cmp qword [rbx + 0x10], 0x11
jb 0x1400d47d0
mov r15, qword [r15 - 8]
jmp 0x1400d47d0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r12d, eax
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400d47f7
jmp 0x1400d49b1
call fcn.1401248e0
jmp 0x1400d4858
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400d4997
cmp byte [r9], 0x2b
jne 0x1400d4ab3
lea r9, [rdi + r8]
add r9, 2
mov r10d, 0xd
sub r10, r8
cmp r8, 8
ja 0x1400d4ac0
xor r11d, r11d
mov bx, 0xa
xor eax, eax
nop
mul bx
jo 0x1400d47a6
mov ecx, eax
movzx eax, byte [r9 + r11]
add eax, 0xffffffd0
cmp eax, 9
ja 0x1400d47a6
mov edx, ecx
add dx, ax
jb 0x1400d47a6
cwde
add eax, ecx
inc r11
cmp r10, r11
jne 0x1400d4a40
jmp 0x1400d4af0
xor r12d, r12d
cmp qword [rsp + 0x78], 0
je 0x1400d4a93
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, qword [rsp + 0x70]
call qword [sym.imp.kernel32.dll_HeapFree]
test r12, r12
lea rsi, [0x14015b878]
cmovne rsi, r12
jmp 0x1400d47a6
mov r12, rdi
cmp qword [rsp + 0x78], 0
jne 0x1400d4a7f
jmp 0x1400d4a93
neg r10
cmp r8, 9
jbe 0x1400d4a35
xor ecx, ecx
xor eax, eax
nop word cs:[rax + rax]
movzx edx, byte [r9 + rcx]
add edx, 0xffffffd0
cmp edx, 9
ja 0x1400d47a6
add eax, eax
lea eax, [rax + rax*4]
add eax, edx
inc rcx
cmp r10, rcx
jne 0x1400d4ad0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r8
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x38]
call fcn.1400f1300
cmp qword [rsp + 0x80], 0
mov rsi, qword [rsp + 0x88]
jne 0x1400d47a6
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xe0], rsi
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0xe0]
call fcn.1400f1540
mov rax, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
test rax, rax
jne 0x1400d46a6
jmp 0x1400d47a6
cmp qword [rsp + 0x78], 0
je 0x1400d4b8f
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, qword [rsp + 0x70]
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400d4be7
mov rsi, qword [rdi - 1]
mov rbx, qword [rdi + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400d4bae
mov rcx, rsi
call rax
dec rdi
cmp qword [rbx + 8], 0
je 0x1400d4bd5
cmp qword [rbx + 0x10], 0x11
jb 0x1400d4bc3
mov rsi, qword [rsi - 8]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
mov rsi, r15
jmp 0x1400d47ab
mov ecx, 4
mov edx, 0x20
call fcn.14011a540
int3