Function at 0x4571f0
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 0x51543d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x55f2b4]
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 - 0x1c], edi
cmp byte [edi + 0x4c], 0
mov eax, 0x10
jne 0x45723f
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 0x45726b
test dword [edi + 0x80], 0x100
jne 0x45726b
xor ecx, ecx
jmp 0x457270
mov ecx, 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4572b5
mov eax, dword [edi + 0xe4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4572b5
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 [0x51a4a0]
mov ecx, dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x38]
cmp dword [edi + 0x44], 0
lea eax, [edi + 0x54]
mov dword [ebp - 0x4c], eax
jne 0x4572c5
xor eax, eax
jmp 0x4572d0
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
jb 0x4572d0
mov eax, dword [eax]
add edi, 0x1c
mov dword [ebp - 0x50], edi
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x4572e0
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 0x4576f7
mov dword [ebp - 4], 1
cmp byte [ebp - 0x2c], 0
jne 0x45731f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.00457b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
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 0x4573d6
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4573d6
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x51a4a0]
mov ecx, edi
call esi
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4573d6
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x51a4a0]
mov ecx, edi
call esi
lea ecx, [ebp - 0x68]
call fcn.00457180
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x457429
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
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 0x457723
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp dword [ebp - 0x1c], ecx
jne 0x457723
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x45743a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x9c], 0
mov eax, dword [esi + 0x98]
test eax, eax
je 0x457455
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x457470
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xac]
test eax, eax
je 0x45748b
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 - 0x20], eax
jbe 0x4576dc
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x45758e
mov eax, dword [ecx]
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ecx + 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push ecx
push 0x19000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.0044bfd0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
sub eax, edi
push 0
push ecx
push eax
push edi
push dword [esi + 0xa0]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457556
nop dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x457556
push dword [ebp - 0x50]
mov ecx, dword [esi + 0xb4]
add eax, edi
push eax
push edi
push dword [ecx + 4]
call fcn.0044a570
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
push edi
push dword [esi + 0xa0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x457520
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x45758e
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x457584
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457745
push ecx
push edi
call fcn.004d06e3
add esp, 8
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x457672
mov eax, dword [ecx]
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ecx + 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push ecx
push 0x19000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.0044bfd0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
sub eax, edi
push 0
push ecx
push eax
push edi
push dword [esi + 0xa8]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45763a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45763a
push dword [ebp - 0x50]
mov ecx, dword [esi + 0xb8]
add eax, edi
push eax
push edi
push dword [ecx + 4]
call fcn.0044a570
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
push edi
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x457604
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x457672
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x457668
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45774a
push ecx
push edi
call fcn.004d06e3
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 0x45769d
mov ecx, dword [ebp - 0x50]
call fcn.004146e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_wait_for_process__ls_
jmp 0x45770c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4576d9
lea ecx, [esi + 0x1c]
call fcn.004146e0
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 - 0x34]
call fcn.00416ba0
push 0x55c1ac
lea eax, [ebp - 0x34]
jmp 0x45771d
mov eax, dword [ebp - 0x20]
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.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004146e0
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.00416ba0
push 0x55c1ac
lea eax, [ebp - 0x64]
push eax
call fcn.004e81cb
push str.Unable_to_write_to_the_pipe_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
call fcn.00468e50
push 0x55c1ac
lea eax, [ebp - 0x64]
push eax
call fcn.004e81cb
call fcn.004ebf29
call fcn.004ebf29
int3