Function at 0x428bf0
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov r12d, 0xffffffff
mov esi, r8d
mov qword [rsp + 0x2a0], rcx
mov r14, rdx
mov rbx, r9
lea r15, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0xa0], 0x18
mov dword [rsp + 0xb0], 1
lea r9d, [rsi + rsi + 0xd]
mov qword [rsp + 0x50], rax
mov r8, r15
mov rdx, rax
mov r13, qword [sym.imp.KERNEL32.dll_CreatePipe]
call r13
test eax, eax
je 0x429000
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x78]
mov dword [rsp + 0x20], 0
mov r8, rdi
mov rdx, qword [rsp + 0x80]
mov rcx, rdi
mov rbp, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rbp
test eax, eax
je 0x429017
mov qword [r15], 0
mov qword [r15 + 8], 0
lea rdx, [rsp + 0x88]
mov qword [r15 + 0x10], 0
mov dword [rsp + 0xa0], 0x18
mov r8, r15
mov dword [rsp + 0xb0], 1
mov r9d, dword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x50]
call r13
test eax, eax
je 0x429024
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x90]
mov dword [rsp + 0x20], 0x80000000
mov r8, rdi
mov rdx, qword [rsp + 0x80]
mov rcx, rdi
call rbp
test eax, eax
je 0x42903b
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
lea r9, [rsp + 0x98]
mov dword [rsp + 0x20], 0
mov r8, rdi
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call rbp
test eax, eax
je 0x42905c
lea rdx, [rsp + 0xe0]
xor eax, eax
mov ecx, 0xd
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0xe0], 0x68
mov dword [rsp + 0x11c], 0x100
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x88]
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x2a0]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x429077
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc8]
lea rbp, [rsp + 0x6c]
call r13
mov rcx, qword [rsp + 0x70]
xor r15d, r15d
call r13
mov rcx, qword [rsp + 0x88]
call r13
mov rcx, qword [rsp + 0x98]
call r13
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
cmp esi, r15d
jle 0x428eee
movsxd rax, r15d
mov r12, qword [rsp + 0x58]
lea rdx, [r14 + rax]
cmp byte [rdx], 0xa
je 0x428f82
mov r8d, esi
lea rcx, [r14 + rax + 1]
mov r9d, r15d
sub r8d, r15d
xor eax, eax
jmp 0x428ebe
add rcx, 1
cmp byte [rcx - 1], 0xa
je 0x428f72
add eax, 1
cmp eax, r8d
lea r15d, [rax + r9]
jne 0x428eb0
test r8d, r8d
je 0x428eee
mov qword [rsp + 0x20], 0
mov r9, rbp
mov rcx, qword [rsp + 0x78]
call rdi
cmp esi, r15d
mov r12, rdi
jg 0x428f82
mov rcx, qword [rsp + 0x78]
lea r12, [rsp + 0x150]
xor esi, esi
call r13
mov eax, dword [rsp + 0x2c0]
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
lea r14d, [rax - 1]
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, 0x100
mov rdx, r12
mov rcx, qword [rsp + 0x90]
call rdi
test eax, eax
je 0x428fac
mov edx, dword [rsp + 0x6c]
test edx, edx
je 0x428fac
cmp esi, r14d
jge 0x428f12
test edx, edx
jle 0x428f12
sub edx, 1
mov rax, r12
lea r8, [r12 + rdx + 1]
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x428f62
movsxd rdx, esi
add esi, 1
mov byte [rbx + rdx], cl
cmp esi, r14d
jge 0x428f12
add rax, 1
cmp rax, r8
jne 0x428f51
jmp 0x428f12
test eax, eax
mov r8d, eax
mov r12, qword [rsp + 0x50]
jne 0x428ecf
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, 2
lea rdx, [0x004da0f0]
mov rcx, qword [rsp + 0x78]
add r15d, 1
call r12
jmp 0x428e81
movsxd rsi, esi
mov rcx, qword [rsp + 0x90]
mov byte [rbx + rsi], 0
call r13
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x150], 0x2a
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, r12
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0xc0]
call r13
mov r12d, dword [rsp + 0x150]
mov eax, r12d
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x429000
mov rcx, qword [rsp + 0x70]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x78]
call rbx
jmp 0x429000
mov rcx, qword [rsp + 0x88]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x70]
call rbx
mov rcx, qword [rsp + 0x78]
call rbx
jmp 0x429000
mov rcx, qword [rsp + 0x90]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x88]
jmp 0x42904a
mov rcx, qword [rsp + 0x98]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x90]
jmp 0x42906b