Function at 0x140062320
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 [0x140212c80]
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 0x140062386
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 0x1400623b9
test dword [rsi + 0xb4], 0x100
je 0x1400623be
mov eax, 1
mov dword [rbp + 0x1c], eax
mov qword [rbp + 0x68], r13
lea rcx, [rbp + 0x68]
call fcn.140061ab0
nop
lea r12, [rsi + 0x78]
cmp dword [rbp + 0x1c], 0
je 0x1400623fa
mov rcx, qword [rsi + 0x160]
test rcx, rcx
je 0x1400623fa
mov byte [rbp + 0x10], 1
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov rax, qword [rax + 0x10]
call qword [case.0x1400cc851.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 0x1400625e2
call fcn.140063540
test al, al
je 0x1400625e2
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 0x14006246d
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.14004c640
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 0x140062a9c
mov dword [rbp + 0x18], r13d
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.1400679f0
test eax, eax
jne 0x140062a9c
cmp dword [rbp + 0x18], 7
jne 0x140062a9c
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 0x140062a71
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.140025810
lea rcx, [rbp + 0xd8]
call fcn.14004cd80
cmp byte [rbp + 0xd0], 0
je 0x1400625e2
lea rcx, [rbp + 0xb0]
call fcn.140025e80
cmp qword [rsi + 0x60], 0
jne 0x1400625ee
mov rax, r13
jmp 0x1400625fc
lea rax, [rsi + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x1400625fc
mov rax, qword [rax]
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 7
jbe 0x14006260b
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 0x140062ad8
cmp byte [rbp + 0x50], 0
jne 0x140062660
lea rax, [rbp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140063010
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.140143670
mov rax, qword [rbp + 0x90]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x80], rax
mov eax, dword [rbp + 0xa0]
mov dword [rbp - 0x78], eax
mov eax, dword [rbp + 0xa4]
mov dword [rbp - 0x74], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0x98], r13
mov qword [rbp + 0x90], r13
lea rdx, [rsp + 0x78]
mov rcx, qword [rsi + 0x28]
call fcn.140055820
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14006270d
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006270d
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400cc851.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14006270d
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14006271c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006272c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsi + 0x110]
test r8, r8
je 0x14006278a
mov dword [rbp + 0x18], r13d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140062b4b
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 0x140062b20
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
mov eax, dword [rbp + 0x18]
cmp rax, rcx
jne 0x140062b20
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x14006279c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe8], r13
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x1400627b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe0], r13
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
je 0x1400627ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xf8], r13
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x1400627e7
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 0x1400629ab
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x1400628ba
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x14006281d
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.14000bed0
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140062a23
nop dword [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 0x1400628b1
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x1400628b1
mov rcx, qword [rsi + 0x118]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.14005b930
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140062a23
jmp 0x140062860
lea rcx, [rbp + 0x30]
call fcn.140025210
mov rax, qword [rsi + 0x120]
test rax, rax
je 0x14006297a
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x1400628d7
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.14000bed0
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140062a4a
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 0x140062971
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140062971
mov rcx, qword [rsi + 0x120]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.14005b930
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140062a4a
jmp 0x140062920
lea rcx, [rbp + 0x30]
call fcn.140025210
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 0x140062b72
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400629db
mov eax, dword [rbp + 0x70]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140133600
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], getservbyname
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140029f20
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c180
lea rdx, [0x14020e200]
lea rcx, [rbp + 0x50]
call fcn.140135f84
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c180
lea rdx, [0x14020e200]
lea rcx, [rbp + 0x50]
call fcn.140135f84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.UpdateProcThreadAttribute_set_protection_level
lea rcx, [rsp + 0x50]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
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.140029f20
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
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.140029f20
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
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.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.14000c180
lea rdx, [0x14020e200]
lea rcx, [rbp + 0x50]
call fcn.140135f84
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.140029f20
lea rdx, [0x14020e468]
lea rcx, [rsp + 0x50]
call fcn.140135f84
int3