Function at 0x40cecd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4391dd
mov eax, dword fs:[0]
push eax
mov eax, 0x10dc
call fcn.004389da
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x10a8]
mov dword [ebp - 0x10b0], eax
xor edi, edi
mov eax, dword [ebp + 0x24]
mov ebx, edi
mov dword [ebp - 0x10ac], eax
call fcn.00401d46
push eax
push ecx
push dword [str._b_ven_US]
lea ecx, [ebp - 0x10c4]
call fcn.00415376
mov dword [ebp - 4], edi
xor eax, eax
lea edi, [ebp - 0x1088]
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x1078], ebx
mov dword [ebp - 0x1074], ecx
mov word [ebp - 0x1088], ax
lea edi, [ebp - 0x1070]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x105c], ecx
mov dword [ebp - 0x1060], edi
mov word [ebp - 0x1070], ax
mov byte [ebp - 4], 2
call fcn.0040e4f3
test al, al
je 0x40d046
xor eax, eax
mov word [ebp - 0x1058], ax
lea eax, [ebp - 0x1058]
push 0x824
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1058]
push str.Microsoft.OfficeHelper
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40d046
test esi, esi
je 0x40cfd3
cmp word [esi], di
je 0x40cfd3
mov eax, edi
jmp 0x40cfd6
xor eax, eax
inc eax
test eax, eax
je 0x40cfe1
mov esi, edi
jmp 0x40d0cd
push esi
lea ecx, [ebp - 0x1070]
call fcn.0040d336
lea edx, [ebp - 0x1070]
lea ecx, [ebp - 0x10a0]
call fcn.0040c8f6
push eax
lea ecx, [ebp - 0x1088]
call fcn.0040dd89
lea ecx, [ebp - 0x10a0]
call fcn.0040a63a
cmp dword [ebp - 0x1078], 0
je 0x40d046
cmp dword [ebp - 0x1074], 7
lea ebx, [ebp - 0x1088]
lea esi, [ebp - 0x1070]
cmova ebx, dword [ebp - 0x1088]
cmp dword [ebp - 0x105c], 7
cmova esi, dword [ebp - 0x1070]
push dword [ebp - 0x10ac]
push dword [ebp - 0x10b0]
push edi
push edi
push 0x400
push edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40d093
lea ecx, [ebp - 0x10e8]
call fcn.00401d46
push eax
push ecx
push dword [0x43dc54]
lea ecx, [ebp - 0x109c]
call fcn.00415376
lea ecx, [ebp - 0x109c]
call fcn.004153c3
xor eax, eax
mov dword [ebp - method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov word [ebp - 0x108c], ax
lea eax, [ebp - 0x1098]
push eax
push str.HevCreateProcess_
push ecx
mov ecx, 0x170b0c5
mov dword [ebp - 0x1094], str.Param
mov dword [ebp - 0x1090], esi
call fcn.00401ce6
mov eax, dword [ebp - 0x105c]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, 7
jbe 0x40d105
mov ecx, dword [ebp - 0x1070]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x40d101
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x40d14e
push ecx
call edi
pop ecx
xor eax, eax
mov dword [ebp - 0x105c], 7
xor ebx, ebx
mov word [ebp - 0x1070], ax
mov eax, dword [ebp - 0x1074]
mov dword [ebp - 0x1060], ebx
cmp eax, 7
jbe 0x40d158
mov ecx, dword [ebp - 0x1088]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x40d154
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
jbe 0x40d154
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
call edi
pop ecx
xor eax, eax
mov dword [ebp - 0x1078], ebx
lea ecx, [ebp - 0x10c4]
mov dword [ebp - 0x1074], 7
mov word [ebp - 0x1088], ax
call fcn.004153c3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004370bb
leave
ret 0x20