Function at 0x10009cce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004d6b8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x10009b6e
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
dec ecx
push ebx
cmp ecx, 5
ja case.default.0x10009b7d
push esi
jmp dword [ecx*4 + 0x10009e6c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x108], ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, eax
cmp esi, edi
je 0x10009e60
push esi
or ebx, 0xffffffff
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x10009bdc
push 0x400
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
test al, al
jns 0x10009bd6
mov eax, dword [ebp + 8]
push 0x400
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov ebx, edi
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10009bb2
mov eax, dword [0x1004d6b8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009e60
push 0x400
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp + 0x10], eax
cmp ebx, edi
je 0x10009c18
call dword [sym.imp.USER32.dll_EndMenu]
mov ebx, dword [ebp + 8]
push 0x480
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
cmp dword [ebp + 0xc], 2
je 0x10009e60
mov eax, dword [ebp + 0x10]
test al, 3
jne 0x10009e60
test al, 0x10
je 0x10009c8f
push edi
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
test ebx, ebx
je 0x10009e60
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemRect]
test eax, eax
je 0x10009e60
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push 0
push esi
push edx
push eax
push 0x4000
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
test eax, 0x800
je 0x10009c9a
xor eax, eax
jmp 0x10009cab
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
je 0x10009e60
push 0
movzx ecx, ax
push ecx
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.1000cd40
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x1004cc3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1004d6b8]
add eax, 8
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [0x1004d6b8]
mov al, byte [edx + 0x1a]
mov cl, byte [edx + 0x19]
shr al, 7
shr cl, 7
test al, al
je 0x10009d51
test cl, cl
jne 0x10009d1e
test byte [edx + 0x7b], 0x80
je 0x10009d78
mov ecx, dword [ebp + 8]
push edi
push edi
push 0x10
push 2
push ecx
call dword [sym.imp.USER32.dll_GetAncestor]
jmp 0x10009d71
test byte [edx + 0x36], 0x80
je 0x10009d78
push 1
push edi
push edi
push str.taskmgr
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [0x1004cc3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
test cl, cl
je 0x10009d78
test byte [edx + 0x23], 0x80
je 0x10009d78
mov edx, dword [0x1004ccd4]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
push edi
push edi
push 0x201
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x1004cc3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1004d4b8], edi
je 0x10009e60
mov eax, dword [ebp + 8]
call fcn.1000b710
pop esi
mov dword [ebp - 4], 0xdead
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.USER32.dll_GetCursor]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [0x1004d6b8]
pop esi
pop ebx
mov dword [ecx + 0x11f], eax
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x10057bc8]
cmp edx, dword [eax + 0x124]
jne 0x10009df8
mov ecx, dword [0x10057bcc]
cmp ecx, dword [eax + 0x128]
je 0x10009e60
cmp dword [ebp + 0x10], edi
jne 0x10009e2f
cmp dword [0x10057c14], edi
je 0x10009e60
mov edx, dword [0x10057c0c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [0x10057c14]
call fcn.10023e00
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov dword [0x10057c14], edi
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x1004d66c
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push edi
push edi
push edi
push 0xf001f
push eax
mov dword [0x10057c14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edi, edi
mov dword [0x10057c0c], eax
call fcn.100076e0
pop esi
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc