Function at 0x40a78b
Capabilities:
Create process on windows

Disassembly:
push 0x2f8
mov eax, 0x41983c
call fcn.0040d10c
cmp word [ebp + 0x10], 1
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x244], eax
je 0x40a7c0
cmp word [ebp + 0x10], 2
je 0x40a7c0
cmp word [ebp + 0x10], 3
jne 0x40a7c6
xor ebx, ebx
cmp eax, ebx
jne 0x40a7d3
mov eax, 0x80070057
call fcn.0040d18f
ret 0x10
call fcn.00409828
push dword [esi + 0x10]
lea ecx, [ebp - 0x2ac]
call fcn.0040a023
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.00401141
cmp eax, ebx
mov dword [ebp - 0x238], eax
jbe 0x40a8e4
push edi
lea ecx, [ebp - 0x2ac]
call fcn.00401157
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00402af3
pop ecx
pop ecx
mov dword [ebp - 0x21c], ebx
mov esi, dword [ebp - 0x22c]
cmp esi, ebx
mov byte [ebp - 4], 2
je 0x40a848
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [eax + 0x20]
cmp dword [ebp - 0x21c], ebx
jne 0x40a872
push edi
lea ecx, [ebp - 0x2ac]
call fcn.00401157
lea edx, [ebp - 0x21c]
push edx
add eax, 0x1c
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x41a90c
push eax
call dword [ecx]
cmp dword [ebp - 0x21c], ebx
je 0x40a8b5
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x21c]
call fcn.0040b3c2
add esp, 0x10
test eax, eax
jl 0x40a8b5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40a8b5
cmp dword [ebp - 0x248], eax
jne 0x40a8b5
mov ax, word [ebp + 0x10]
cmp word [ebp - 0x23c], ax
je 0x40a8f1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40a8c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov byte [ebp - 4], 0
je 0x40a8d7
mov eax, dword [esi]
push esi
call dword [eax + 8]
inc edi
cmp edi, dword [ebp - 0x238]
jb 0x40a804
cmp dword [ebp + 8], 2
jne 0x40a925
mov ebx, 0x80004005
jmp 0x40a913
cmp esi, ebx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x21c], ebx
mov dword [ecx], eax
mov byte [ebp - 4], 0
je 0x40a913
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x2ac]
call fcn.0040460d
mov eax, ebx
jmp 0x40a7cb
mov ecx, dword [ebp - 0x234]
xor esi, esi
call fcn.00408aec
mov edi, eax
cmp edi, ebx
jbe 0x40a8ea
mov ecx, dword [ebp - 0x234]
push esi
call fcn.00408b02
cmp dword [eax + 0x10], ebx
je 0x40a950
inc esi
cmp esi, edi
jb 0x40a938
jmp 0x40a8ea
mov ecx, dword [ebp - 0x234]
push esi
call fcn.00408b02
mov esi, eax
or dword [esi + 0x10], 0xffffffff
cmp word [ebp + 0x10], 1
mov dword [ebp - 0x220], esi
mov edi, 0x41b230
je 0x40a979
mov edi, 0x41b228
push esi
lea ecx, [ebp - 0x22c]
call fcn.00408704
push dword [eax]
lea eax, [ebp - 0x1f0]
push edi
push str._s__Automation__guid:_s
push 0xc8
push eax
call fcn.0040d52c
add esp, 0x14
push dword [ebp - 0x22c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x40
lea eax, [ebp - 0x300]
push ebx
push eax
mov dword [ebp - 0x304], 0x44
call fcn.0040c750
xor eax, eax
mov dword [ebp - 0x29c], ebx
lea edi, [ebp - 0x298]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp + 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
xor edi, edi
call fcn.00404856
add esp, 0x14
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], ebx
jle 0x40aa38
lea ecx, [ebp - 0x29c]
push ecx
lea ecx, [ebp - 0x304]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x40aa38
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], ebx
cmp edi, ebx
mov byte [ebp - 4], 4
je 0x40af05
mov eax, dword [ebp - 0x294]
push 0x13
mov dword [esi + 0x10], eax
pop ecx
mov esi, str.192751BF_2639_487d_B97E_67EFFFC62822
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, ebx
je 0x40aa88
push 0x5dc
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x218], ebx
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push 0x41a90c
push 4
push ebx
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x26c], ebx
jl 0x40add2
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x218]
call fcn.0040b3c2
add esp, 0x10
test eax, eax
jl 0x40add2
cmp dword [ebp - 0x238], ebx
jne 0x40aed5
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x294]
jne 0x40aed5
push str.Property
lea ecx, [ebp - 0x28c]
mov word [ebp - 0x28c], bx
call fcn.00408d62
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x28c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 7
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
test eax, eax
je 0x40ab87
mov eax, dword [ebp - 0x220]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x230]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x40ab75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40aed8
mov dword [ebp - 0x228], ebx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
lea edx, [ebp - 0x228]
push edx
push 0x41b184
push eax
mov byte [ebp - 4], 8
call dword [ecx]
test eax, eax
je 0x40abcb
mov eax, dword [ebp - 0x220]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x228]
cmp eax, ebx
mov byte [ebp - 4], 7
je 0x40ab61
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40ab61
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x258], 3
mov dword [ebp - 0x250], eax
lea esi, [ebp - 0x258]
lea edi, [ebp - 0x2bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x41b17c
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 9
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x268], bx
call fcn.00408d62
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x228]
lea esi, [ebp - 0x2bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0xa
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x268]
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
call ebx
mov ax, word [ebp + 0x10]
mov word [ebp - 0x268], 2
mov word [ebp - 0x260], ax
and word [ebp - 0x258], 0
lea esi, [ebp - 0x268]
lea edi, [ebp - 0x2bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.AppType
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xb
movsd dword es:[edi], dword [esi]
call fcn.00408d62
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x228]
lea esi, [ebp - 0x2bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x258]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0xc
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x268]
push eax
call ebx
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x274]
push edx
push 0x41b2f4
mov word [ebp - 0x27c], 9
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xd
call dword [ecx]
test eax, eax
je 0x40ad5c
mov eax, dword [ebp - 0x220]
and dword [eax + 0x10], 0
and word [ebp - 0x27c], 0
lea eax, [ebp - 0x27c]
push eax
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 7
je 0x40ad32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x230]
test eax, eax
mov byte [ebp - 4], 6
je 0x40ad46
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x28c]
push eax
call ebx
mov eax, dword [ebp - 0x218]
test eax, eax
jmp 0x40aee0
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x20]
test eax, eax
jl 0x40ad96
cmp dword [ebp - 0x218], 0
je 0x40ad96
push dword [ebp - 0x218]
lea eax, [ebp - 0x240]
push eax
call fcn.00401483
lea eax, [ebp - 0x27c]
push eax
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
mov byte [ebp - 4], 7
je 0x40adb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x230]
test eax, eax
mov byte [ebp - 4], 6
je 0x40adc7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x28c]
push eax
call ebx
xor ebx, ebx
mov eax, dword [ebp - 0x218]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x40ade6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x240]
cmp edi, ebx
je 0x40aeff
lea ecx, [ebp - 0x214]
call fcn.00402ab8
push 0x41b168
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 0xe
call fcn.004042c1
cmp word [ebp + 0x10], 1
mov eax, 0x41b230
je 0x40ae24
mov eax, 0x41b228
push eax
lea ecx, [ebp - 0x1fc]
call fcn.004042c1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi + 0x10]
push eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0040b75e
add esp, 0xc
push eax
lea ecx, [ebp - 0x1f8]
call fcn.00408c56
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x40ae6c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ax, word [ebp + 0x10]
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax + 0x10]
mov byte [ebp - 0x1f4], 1
mov word [ebp - 0x210], bx
mov dword [ebp - 0x204], ebx
call fcn.004065d7
lea eax, [ebp - 0x240]
push eax
lea ecx, [esi + 0x14]
call fcn.00408c56
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x214]
mov dword [eax], edi
call fcn.00402b34
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00401bb2
jmp 0x40a913
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 0x218]
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x40aeec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00401bb2
jmp 0x40a8ea
mov esi, dword [ebp - 0x220]
mov dword [esi + 0x10], ebx
jmp 0x40aeec