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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ebd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp byte [edi + 0x4c], 0
mov eax, 0x10
jne 0x42d45f
or dword [edi + 0x80], 1
mov eax, 0x8000000
xor ecx, ecx
mov word [edi + 0x84], cx
mov edx, eax
xorps xmm0, xmm0
or edx, 4
cmp byte [edi + 0x4e], 0
movups xmmword [ebp - 0x48], xmm0
cmove edx, eax
cmp byte [edi + 0x4d], 0
mov dword [ebp - 0x14], edx
jne 0x42d48b
test dword [edi + 0x80], 0x100
jne 0x42d48b
xor ecx, ecx
jmp 0x42d490
mov ecx, 1
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42d4e1
mov eax, dword [edi + 0xe4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x42d4e1
mov byte [ebp - 0x18], 1
mov eax, dword [eax]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call dword [0x4d9444]
mov ecx, dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 0x38]
cmp dword [edi + 0x44], 0
lea eax, [edi + 0x54]
mov dword [ebp - 0x4c], eax
jne 0x42d4f1
xor eax, eax
jmp 0x42d4fc
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
jb 0x42d4fc
mov eax, dword [eax]
add edi, 0x1c
mov dword [ebp - 0x50], edi
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x42d50c
mov esi, dword [edi]
lea edx, [ebp - 0x48]
push edx
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x14]
push eax
push 0
push edx
push ecx
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42d940
mov dword [ebp - 4], 1
cmp byte [ebp - 0x24], 0
jne 0x42d54b
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.0042e6e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], esi
mov dword [edx], ecx
mov ecx, edx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ecx + 4]
mov dword [ecx + 8], edi
mov edi, dword [ecx + 0x14]
mov dword [ecx + 4], edx
mov dword [ebp - 0x64], eax
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
test edi, edi
je 0x42d602
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x42d602
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x42d602
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
lea ecx, [ebp - 0x68]
call fcn.0042d3a0
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x42d655
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push 0
push edx
sub eax, ecx
push eax
push ecx
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d97e
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp dword [ebp - 0x30], ecx
jne 0x42d97e
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x42d666
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x9c], 0
mov eax, dword [esi + 0x98]
test eax, eax
je 0x42d681
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x42d69c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x42d6b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xac], 0
mov eax, 0x103
cmp dword [esi + 0x50], 0
mov dword [ebp - 0x34], eax
jbe 0x42d925
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x42d7c8
mov eax, dword [ecx]
xorps xmm0, xmm0
mov dword [ecx + 4], eax
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push ecx
push 0x19000
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.0042eb80
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d78d
mov edi, dword [ebp - 0x50]
nop dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42d78d
mov edx, dword [ebp - 0x24]
add eax, edx
mov ecx, dword [esi + 0xb4]
push edi
push eax
push edx
push dword [ecx + 4]
call fcn.0042e960
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d750
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x42d7c8
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x42d7be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d9a0
push edx
push ecx
call fcn.00484d63
add esp, 8
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x42d8b8
mov eax, dword [ecx]
xorps xmm0, xmm0
mov dword [ecx + 4], eax
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push ecx
push 0x19000
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call fcn.0042eb80
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d87d
mov edi, dword [ebp - 0x50]
nop
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42d87d
mov edx, dword [ebp - 0x24]
add eax, edx
mov ecx, dword [esi + 0xb8]
push edi
push eax
push edx
push dword [ecx + 4]
call fcn.0042e960
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d840
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x42d8b8
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x42d8ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d9a5
push edx
push ecx
call fcn.00484d63
add esp, 8
mov eax, dword [esi + 0x18]
push dword [esi + 0x50]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x42d8e6
mov ecx, dword [ebp - 0x50]
call fcn.00412590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_wait_for_process__ls_
jmp 0x42d967
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42d922
lea ecx, [esi + 0x1c]
call fcn.00412590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_retrieve_exit_status_for_process__ls_
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041bc90
push 0x5057bc
lea eax, [ebp - 0x2c]
jmp 0x42d978
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00412590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_create_process__ls_
push eax
lea ecx, [ebp - 0x64]
call fcn.0041bc90
push 0x5057bc
lea eax, [ebp - 0x64]
push eax
call fcn.004a0209
push str.Unable_to_write_to_the_pipe_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
call fcn.0043e0b0
push 0x5057bc
lea eax, [ebp - 0x64]
push eax
call fcn.004a0209
call fcn.004a949f
call fcn.004a949f
int3