Function at 0x140054a40
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 [0x140117240]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, qword [rbp + 0x150]
mov edx, 0x10
xor r13d, r13d
cmp byte [rsi + 0x70], r13b
jne 0x140054aa6
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 0x140054ad9
test dword [rsi + 0xb4], 0x100
je 0x140054ade
mov eax, 1
mov dword [rbp + 0x1c], eax
mov qword [rbp + 0x68], r13
lea rcx, [rbp + 0x68]
call fcn.140054800
nop
lea r12, [rsi + 0x78]
cmp dword [rbp + 0x1c], 0
je 0x140054b1a
mov rcx, qword [rsi + 0x160]
test rcx, rcx
je 0x140054b1a
mov byte [rbp + 0x10], 1
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov rax, qword [rax + 0x10]
call qword [case.0x14006e76f.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 0x140054d02
call fcn.1400553b0
test al, al
je 0x140054d02
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 0x140054b8d
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.1400303b0
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 0x1400551bc
mov dword [rbp + 0x18], r13d
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.1400554b0
test eax, eax
jne 0x1400551bc
cmp dword [rbp + 0x18], 7
jne 0x1400551bc
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 0x140055191
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], 0x70
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.1400073b0
lea rcx, [rbp + 0xd8]
call fcn.1400308a0
cmp byte [rbp + 0xd0], 0
je 0x140054d02
lea rcx, [rbp + 0xb0]
call fcn.140008760
cmp qword [rsi + 0x60], 0
jne 0x140054d0e
mov rax, r13
jmp 0x140054d1c
lea rax, [rsi + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x140054d1c
mov rax, qword [rax]
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 7
jbe 0x140054d2b
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 0x1400551f8
cmp byte [rbp + 0x50], 0
jne 0x140054d80
lea rax, [rbp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140055340
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.140096ac0
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.140050db0
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140054e2e
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140054e2e
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14006e76f.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140054e2e
mov rcx, qword [rbp - 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e76f.0]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140054e3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140054e4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsi + 0x110]
test r8, r8
je 0x140054eac
mov dword [rbp + 0x18], r13d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x14005526b
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 0x140055240
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
mov eax, dword [rbp + 0x18]
cmp rax, rcx
jne 0x140055240
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x140054ebe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe8], r13
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x140054ed7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe0], r13
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
je 0x140054ef0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xf8], r13
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x140054f09
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 0x1400550cb
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x140054fda
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x140054f3f
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.140029470
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140055143
nop dword [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 0x140054fd1
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x140054fd1
mov rcx, qword [rsi + 0x118]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140029980
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140055143
jmp 0x140054f80
lea rcx, [rbp + 0x30]
call fcn.14001ad00
mov rax, qword [rsi + 0x120]
test rax, rax
je 0x14005509a
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x140054ff7
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.140029470
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x14005516a
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 0x140055091
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140055091
mov rcx, qword [rsi + 0x120]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140029980
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x14005516a
jmp 0x140055040
lea rcx, [rbp + 0x30]
call fcn.14001ad00
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 0x140055292
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400550fb
mov eax, dword [rbp + 0x70]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400827b0
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], 0x30
lea r9, [rsi + 0x30]
lea r8, [rbp + 0x80]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14002efd0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.140027550
lea rdx, [0x1401147d8]
lea rcx, [rbp + 0x50]
call fcn.1400850a4
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.140027550
lea rdx, [0x1401147d8]
lea rcx, [rbp + 0x50]
call fcn.1400850a4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.UpdateProcThreadAttribute_set_protection_level
lea rcx, [rsp + 0x50]
call fcn.140007b20
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
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.14002efd0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
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.14002efd0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
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.140007b20
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.140027550
lea rdx, [0x1401147d8]
lea rcx, [rbp + 0x50]
call fcn.1400850a4
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.14002efd0
lea rdx, [0x140114310]
lea rcx, [rsp + 0x50]
call fcn.1400850a4
int3