Function at 0x4021b0
Capabilities:
Create process on windows
Patch process command line

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x8e8
mov eax, dword [0x5e3fe4]
xor eax, esp
mov dword [esp + 0x8e4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.IsWow64Process
mov edi, ecx
mov dword [esp + 0x1c], edx
push str.kernel32
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402384
lea ecx, [esp + 0xc]
push ecx
push edi
call eax
test eax, eax
je 0x402384
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40222c
mov ecx, str.32_bit_Excel
call fcn.004041a0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402384
mov esi, dword [esp + 0x14]
push str.ddxdd.exe
push esi
push ecx
call fcn.004076c0
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x4d8]
push edi
push esi
push str.__s___d
push 0x208
push eax
call fcn.00402630
add esp, 0x14
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x44
xorps xmm0, xmm0
mov dword [esp + 0x70], 0
movlpd qword [esp + 0x64], xmm0
or dword [esp + 0x64], 0x100
push eax
lea eax, [esp + 0x3c]
movaps xmmword [esp + 0x24], xmm0
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [esp + 0x4f8]
movlpd qword [esp + 0x5c], xmm0
push eax
push 0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402336
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcess
push eax
push str._t_d___s
lea eax, [esp + 0x2e4]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x2d8]
call fcn.004041a0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x8e4]
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
xor ecx, ecx
cmp dword [esp + 0x14], ecx
cmovne ecx, edi
mov edi, ecx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x8e4]
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
push str.NtQueryInformationProcess
push str.ntdll.dll
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5ed350], eax
test eax, eax
je 0x4025d1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
push ecx
push 0x18
lea ecx, [esp + 0x88]
push ecx
push 0
push edi
call eax
cmp dword [esp + 0x10], 0
jne 0x4023ce
mov ecx, str.NtQueryInformationProcess_failed
jmp 0x402438
push 0x1d8
lea eax, [esp + 0x104]
push 0
push eax
call fcn.005515b0
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0x1d8
lea eax, [esp + 0x108]
push eax
push dword [esp + 0x90]
push edi
call esi
test eax, eax
jne 0x402461
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ReadProcessMemory_pbi_failed
push eax
push str._t_d___s
lea eax, [esp + 0x2e4]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x2d8]
call fcn.004041a0
xor eax, eax
test al, 1
mov ecx, 0
mov eax, dword [esp + 0x18]
cmovne eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x8e4]
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x118]
push edi
call esi
test eax, eax
jne 0x402488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ReadProcessMemory_ldr_failed
jmp 0x402416
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40243d
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x68
lea eax, [esp + 0xa0]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402593
mov di, word [esp + 0xc4]
mov esi, dword [esp + 0x98]
test di, di
je 0x40257f
push 0x104
lea eax, [esp + 0x4dc]
push 0
push eax
call fcn.005515b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
movzx eax, di
mov edi, dword [esp + 0x20]
push eax
lea eax, [esp + 0x4e0]
push eax
push dword [esp + 0xd4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40253f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ReadProcessMemory_dll_failed
push eax
push str._t_d___s
lea eax, [esp + 0x2e4]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x2d8]
call fcn.004041a0
jmp 0x402583
or dword [esp + 0xc], 1
lea eax, [esp + 0x4d8]
push str.ZEDDXCalc.xll
push eax
call fcn.0055da38
add esp, 8
test eax, eax
je 0x402576
lea eax, [esp + 0x4d8]
push str.ZEWSProxy.dll
push eax
call fcn.0055da38
add esp, 8
test eax, eax
jne 0x402583
mov eax, dword [esp + 0xc]
or eax, 2
jmp 0x4025c9
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x14], esi
je 0x4025c5
test esi, esi
jne 0x402496
jmp 0x4025c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ReadProcessMemory_table_failed
push eax
push str._t_d___s
lea eax, [esp + 0x2e4]
push 0x100
push eax
call fcn.00402630
add esp, 0x14
lea ecx, [esp + 0x2d8]
call fcn.004041a0
mov eax, dword [esp + 0xc]
test al, 2
je 0x40243f
mov ecx, dword [esp + 0x8ec]
mov eax, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.0054e183
mov esp, ebp
pop ebp
ret