Function at 0x140066f20
Capabilities:
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, qword [rbp + 0x150]
mov edx, reloc.WS2_32.dll_recv
xor r13d, r13d
cmp byte [rsi + 0x70], r13b
jne 0x140066f86
mov edx, 0x8000000
or dword [rsi + 0xb4], 1
mov word [rsi + 0xb8], r13w
mov r14d, edx
or r14d, 4
cmp byte [rsi + 0x72], r13b
cmove r14d, edx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rax
cmp byte [rsi + 0x71], al
jne 0x140066fb9
test dword [rsi + 0xb4], 0x100
je 0x140066fbe
mov eax, 1
mov dword [rbp + 0x1c], eax
mov qword [rbp + 0x68], r13
lea rcx, [rbp + 0x68]
call fcn.140066350
nop
lea r12, [rsi + 0x78]
cmp dword [rbp + 0x1c], 0
je 0x140066ffa
mov rcx, qword [rsi + 0x160]
test rcx, rcx
je 0x140066ffa
mov byte [rbp + 0x10], 1
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov rax, qword [rax + 0x10]
call qword [case.0x1400cd6b1.0]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x50], al
lea rax, [rbp + 0x1c]
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rsi
mov r15d, r14d
mov rbx, qword [rbp + 0x68]
cmp dword [rbp + 0x1c], 0
je 0x1400671e2
call fcn.140067fa0
test al, al
je 0x1400671e2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], rax
lea rdx, [rsi + 0x30]
cmp qword [rdx + 0x18], 7
jbe 0x14006706d
mov rdx, qword [rdx]
mov byte [rbp + 0xd0], al
mov qword [rbp + 0xd8], r13
movdqa xmmword [rbp + 0xe0], xmm0
movdqa xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], r13
lea rcx, [rbp + 0xb0]
call fcn.14004f560
nop
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rcx, qword [rbp + 0xb0]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x120089
lea r8d, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x1400676ac
mov dword [rbp + 0x18], r13d
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.14006c440
test eax, eax
jne 0x1400676ac
cmp dword [rbp + 0x18], 7
jne 0x1400676ac
mov dword [rbp + 0x20], 0xffffffff
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 4
lea r9, [rbp + 0x20]
xor edx, edx
mov r8d, 0x2000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140067681
mov r15d, r14d
or r15d, 0xc0000
movups xmm0, xmmword [rsi + 0x78]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rsi + 0x88]
movaps xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rsi + 0x98]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsi + 0xa8]
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rsi + 0xb8]
movaps xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rsi + 0xc8]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [rsi + 0xd8]
movsd qword [rbp], xmm0
mov dword [rbp - 0x60], reloc.WS2_32.dll_WSASetLastError
mov qword [rbp + 8], rbx
lea r12, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0xf0]
call fcn.140025680
lea rcx, [rbp + 0xd8]
call fcn.14004fca0
cmp byte [rbp + 0xd0], 0
je 0x1400671e2
lea rcx, [rbp + 0xb0]
call fcn.140025f00
cmp qword [rsi + 0x60], 0
jne 0x1400671ee
mov rax, r13
jmp 0x1400671fc
lea rax, [rsi + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x1400671fc
mov rax, qword [rax]
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 7
jbe 0x14006720b
mov rdx, qword [rsi + 0x30]
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r15d
mov eax, dword [rbp + 0x1c]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400676e8
cmp byte [rbp + 0x50], 0
jne 0x140067260
lea rax, [rbp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140067a80
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.140167c30
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x78], rax
mov eax, dword [rbp + 0xa0]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp + 0xa4]
mov dword [rbp - 0x7c], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0x98], r13
mov qword [rbp + 0x90], r13
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 0x28]
call fcn.140059470
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14006730e
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006730e
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400cd6b1.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006730e
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cd6b1.0]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006731e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006732e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi + 0x168], 0x1fffff
mov r8, qword [rsi + 0x110]
test r8, r8
je 0x140067396
mov dword [rbp + 0x18], r13d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x14006775b
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x18]
mov rcx, qword [rsi + 0xe8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140067730
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
mov eax, dword [rbp + 0x18]
cmp rax, rcx
jne 0x140067730
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x1400673a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe8], r13
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x1400673c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe0], r13
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
je 0x1400673da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xf8], r13
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x1400673f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x108], r13
mov eax, 0x103
mov dword [rbp + 0x70], eax
cmp dword [rsi + 0x74], 0
jbe 0x1400675bb
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x1400674ca
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x140067429
mov qword [rax + 8], rcx
mov dword [rbp + 0x68], r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], r13
mov edx, 0x19000
lea rcx, [rbp + 0x30]
call fcn.14000c050
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140067633
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x68]
mov rcx, qword [rsi + 0xf0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400674c1
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x1400674c1
mov rcx, qword [rsi + 0x118]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140060360
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140067633
jmp 0x140067470
lea rcx, [rbp + 0x30]
call fcn.140025240
mov rax, qword [rsi + 0x120]
test rax, rax
je 0x14006758a
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x1400674e7
mov qword [rax + 8], rcx
mov dword [rbp + 0x20], r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], r13
mov edx, 0x19000
lea rcx, [rbp + 0x30]
call fcn.14000c050
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x14006765a
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x20]
mov rcx, qword [rsi + 0x100]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140067581
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140067581
mov rcx, qword [rsi + 0x120]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140060360
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x14006765a
jmp 0x140067530
lea rcx, [rbp + 0x30]
call fcn.140025240
mov rax, qword [rsi + 0x28]
mov edx, dword [rsi + 0x74]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x140067782
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400675eb
mov eax, dword [rbp + 0x70]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_retrieve_exit_status_for_process__
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], gethostname
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14002a040
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c300
lea rdx, [0x14023d798]
lea rcx, [rbp + 0x50]
call fcn.14015a550
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c300
lea rdx, [0x14023d798]
lea rcx, [rbp + 0x50]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.UpdateProcThreadAttribute_set_protection_level
lea rcx, [rsp + 0x50]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
lea rax, str.Wrong_signature_level__
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x1b
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x30]
mov edx, 0x241
lea rcx, [rsp + 0x50]
call fcn.14002a040
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_create_process__
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], 0x1e
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14002a040
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_write_to_the_pipe_
lea rcx, [rsp + 0x50]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c300
lea rdx, [0x14023d798]
lea rcx, [rbp + 0x50]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_wait_for_process__
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], 0x20
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14002a040
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3