Function at 0x1018838
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x106e347
call fcn.0100dba4
mov dword [ebp - 0x10], ecx
xor edi, edi
xor ebx, ebx
cmp dword [ecx + 0x3760], edi
je 0x1018957
lea esi, [ecx + 0x3770]
mov eax, dword [esi]
cmp eax, edi
je 0x10188ad
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10188ad
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x3c], 0x2c
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x34], 2
jne 0x1018899
mov eax, dword [esi]
push 9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esi]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x101891c
push 0x1fc
call fcn.0100d756
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10188cb
mov ecx, eax
call fcn.0103d1d8
jmp 0x10188cd
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.01015c13
mov edi, dword [esi]
test edi, edi
jne 0x1018924
mov ebx, 0x8007000e
xor edi, edi
mov eax, dword [0x107d1a4]
cmp eax, 0x107d1a4
je 0x101890b
test byte [eax + 0x1c], 1
je 0x101890b
push ebx
push 0x1002790
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01035c59
mov ecx, dword [ebp - 0x10]
push 0x10
push edi
push 0x8e
push ebx
call fcn.010169f3
call fcn.0100dc90
ret 0xc
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, edi
call fcn.010174b2
test eax, eax
jne 0x1018943
call fcn.01056967
mov ebx, eax
test ebx, ebx
jl 0x10188e4
mov eax, dword [esi]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
jmp 0x1018acd
mov esi, dword [0x107d620]
cmp dword [ecx + 0x3764], edi
je 0x10189e2
lea eax, [ebp + 0xc]
push eax
push 0x10029c4
push 1
push edi
push 0x10029b4
mov dword [ebp + 0xc], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, edi
jl 0x10188e6
cmp dword [ebp + 8], 2
je 0x1018995
cmp dword [ebp + 8], 1
jne 0x10189cc
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x10189a1
mov eax, dword [0x107d628]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x10189bc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov ebx, eax
jmp 0x10189c1
mov ebx, 0x8007000e
cmp esi, edi
je 0x10189cc
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, edi
jl 0x10188e6
jmp 0x1018acd
push 0x108086c
lea ecx, [ebp + 8]
call fcn.0100edf3
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], edi
call sub.MpClient.dll_MpClientUtilExportFunctions
lea ecx, [ebp + 0x10]
push ecx
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, edi
jl 0x1018abe
cmp dword [ebp + 0x10], 4
jne 0x1018a1b
mov esi, dword [0x107d624]
push edi
lea eax, [ebp + 8]
push eax
push 0x1002994
push 0x1002990
call fcn.01025a45
mov ebx, eax
cmp ebx, edi
jl 0x1018abe
lea eax, [ebp + 8]
cmp dword [ebp + 0xc], edi
je 0x1018a55
push dword [ebp + 0xc]
push esi
push 0x100297c
push eax
call fcn.01011850
add esp, 0x10
jmp 0x1018a64
push esi
push 0x1002974
push eax
call fcn.01011850
add esp, 0xc
mov ebx, eax
cmp ebx, edi
jl 0x1018abe
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x48], 0x600
mov dword [ebp - 0x40], 0x1002968
mov dword [ebp - 0x3c], 0x1002948
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1018abe
call fcn.01056967
mov ebx, eax
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0100e7d0
cmp ebx, edi
jge 0x101891c
jmp 0x10188e6