Function at 0x401000
Capabilities:
Create process on windows
Read file on windows
Set current directory

Disassembly:
sub esp, 0x5e8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x604]
push 0x20
push edi
call fcn.00401320
add esp, 8
test eax, eax
je 0x401219
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x6c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
call fcn.00401320
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edi, [edx + 1]
lea ebx, [esp + 0x270]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
mov byte [edx], 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x270]
push 0x20
push edx
call fcn.00401320
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4010a7
mov byte [ebp], 0
push 0
push 0x8000000
push 3
push 0
push 1
lea eax, [esp + 0x284]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401219
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x74]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
lea eax, [esp + 0x6c]
push 0x29
push eax
call fcn.00401320
add esp, 8
test eax, eax
je 0x401219
lea ecx, [esp + 0x6c]
push 0x405024
push ecx
call fcn.00401230
add esp, 8
test eax, eax
je 0x401219
push 0x405020
push 0
call fcn.00401230
add esp, 8
test eax, eax
je 0x401219
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x374]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x401197
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], 0x20
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x374]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
xor eax, eax
push ecx
push edx
push eax
push eax
push 8
push 1
push eax
lea ecx, [esp + 0x390]
push eax
push ecx
push eax
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401219
mov edx, dword [esp + 0x14]
push edx
call ebx
push 0xffffffffffffffff
mov eax, dword [esp + 0x14]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401200
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e8
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5e8
ret 0x10