Function at 0x1400546b0
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 [0x140117280]
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 0x140054716
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 0x140054749
test dword [rsi + 0xb4], 0x100
je 0x14005474e
mov eax, 1
mov dword [rbp + 0x1c], eax
mov qword [rbp + 0x68], r13
lea rcx, [rbp + 0x68]
call fcn.140054470
nop
lea r12, [rsi + 0x78]
cmp dword [rbp + 0x1c], 0
je 0x14005478a
mov rcx, qword [rsi + 0x160]
test rcx, rcx
je 0x14005478a
mov byte [rbp + 0x10], 1
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
mov rax, qword [rax + 0x10]
call qword [case.0x140069c0f.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 0x140054972
call fcn.140055020
test al, al
je 0x140054972
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 0x1400547fd
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.140030560
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 0x140054e2c
mov dword [rbp + 0x18], r13d
lea rdx, [rbp + 0x18]
mov rcx, rax
call fcn.140055120
test eax, eax
jne 0x140054e2c
cmp dword [rbp + 0x18], 7
jne 0x140054e2c
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 0x140054e01
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.1400071f0
lea rcx, [rbp + 0xd8]
call fcn.140030a50
cmp byte [rbp + 0xd0], 0
je 0x140054972
lea rcx, [rbp + 0xb0]
call fcn.140008480
cmp qword [rsi + 0x60], 0
jne 0x14005497e
mov rax, r13
jmp 0x14005498c
lea rax, [rsi + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x14005498c
mov rax, qword [rax]
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 7
jbe 0x14005499b
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 0x140054e68
cmp byte [rbp + 0x50], 0
jne 0x1400549f0
lea rax, [rbp + 0x50]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.140054fb0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call fcn.140096170
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.140050c50
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140054a9d
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140054a9d
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140069c0f.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140054a9d
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140069c0f.0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140054aac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140054abc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsi + 0x110]
test r8, r8
je 0x140054b1a
mov dword [rbp + 0x18], r13d
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140054edb
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 0x140054eb0
mov rax, qword [rsi + 0x110]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
mov eax, dword [rbp + 0x18]
cmp rax, rcx
jne 0x140054eb0
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x140054b2c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe8], r13
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x140054b45
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xe0], r13
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
je 0x140054b5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xf8], r13
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x140054b77
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 0x140054d3b
mov rax, qword [rsi + 0x118]
test rax, rax
je 0x140054c4a
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x140054bad
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.140028e00
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140054db3
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 0x140054c41
mov eax, dword [rbp + 0x68]
test eax, eax
je 0x140054c41
mov rcx, qword [rsi + 0x118]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140029ca0
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140054db3
jmp 0x140054bf0
lea rcx, [rbp + 0x30]
call fcn.140019b40
mov rax, qword [rsi + 0x120]
test rax, rax
je 0x140054d0a
mov rcx, qword [rax]
cmp rcx, qword [rax + 8]
je 0x140054c67
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.140028e00
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub r8, rdx
mov eax, r8d
cmp rax, r8
jne 0x140054dda
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 0x140054d01
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140054d01
mov rcx, qword [rsi + 0x120]
mov r9d, eax
mov rdx, qword [rcx + 8]
mov r8, qword [rbp + 0x30]
call fcn.140029ca0
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
sub rcx, rdx
mov r8d, ecx
cmp r8, rcx
jne 0x140054dda
jmp 0x140054cb0
lea rcx, [rbp + 0x30]
call fcn.140019b40
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 0x140054f02
mov rcx, qword [rsi + 0x28]
lea rdx, [rbp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140054d6b
mov eax, dword [rbp + 0x70]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140081ef0
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.14002f170
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.1400275a0
lea rdx, [0x140114598]
lea rcx, [rbp + 0x50]
call fcn.140084768
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.1400275a0
lea rdx, [0x140114598]
lea rcx, [rbp + 0x50]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.UpdateProcThreadAttribute_set_protection_level
lea rcx, [rsp + 0x50]
call fcn.14006eb60
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
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.14002f170
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
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.14002f170
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
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.14006eb60
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
int3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x50]
call fcn.1400275a0
lea rdx, [0x140114598]
lea rcx, [rbp + 0x50]
call fcn.140084768
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.14002f170
lea rdx, [0x140114190]
lea rcx, [rsp + 0x50]
call fcn.140084768
int3