Function at 0x10008ebd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x100505e8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
jne 0x10008d4f
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 5
ja case.default.0x10008d5e
push esi
push edi
jmp dword [eax*4 + 0x10009070]
mov esi, dword [ebp + 8]
call fcn.1000c050
mov eax, dword [0x100505e8]
mov dword [eax + 0x108], esi
jmp 0x10008d7d
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
cmp edi, ebx
je 0x10009064
push edi
or ebx, 0xffffffff
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
jle 0x10008dcb
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test al, al
jns 0x10008dc5
mov ecx, dword [ebp + 8]
push 0x400
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov ebx, esi
inc esi
cmp esi, dword [ebp - 8]
jl 0x10008da1
mov eax, dword [0x100505e8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009064
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp - 8], eax
cmp ebx, esi
je 0x10008e07
call dword [sym.imp.USER32.dll_EndMenu]
mov ebx, dword [ebp + 8]
push 0x480
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
cmp dword [ebp + 0xc], 2
je 0x10009064
mov eax, dword [ebp - 8]
test al, 3
jne 0x10009064
test al, 0x10
je 0x10008e7e
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
test ebx, ebx
je 0x10009064
lea edx, [ebp - 0x18]
push edx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemRect]
test eax, eax
je 0x10009064
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
push 0
push esi
push eax
push ecx
push 0x4000
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, 0x800
je 0x10008e89
xor eax, eax
jmp 0x10008e9a
push esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
je 0x10009064
push 0
movzx edx, ax
push edx
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.1000c090
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1004fb6c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x100505e8]
add ecx, 8
push ecx
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [0x100505e8]
mov al, byte [edx + 0x1a]
mov cl, byte [edx + 0x19]
shr al, 7
shr cl, 7
test al, al
je 0x10008f41
test cl, cl
jne 0x10008f0d
test byte [edx + 0x7b], 0x80
je 0x10008f67
mov edx, dword [ebp + 8]
push ebx
push ebx
push 0x10
push 2
push edx
call dword [sym.imp.USER32.dll_GetAncestor]
jmp 0x10008f60
test byte [edx + 0x36], 0x80
je 0x10008f67
push 1
push ebx
push ebx
push str.taskmgr
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [0x1004fb6c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, cl
je 0x10008f67
test byte [edx + 0x23], 0x80
je 0x10008f67
mov eax, dword [0x1004fc04]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push ebx
push ebx
push 0x201
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x1004fb6c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x100503e8], ebx
je 0x10009064
mov eax, dword [ebp + 8]
call fcn.1000a950
pop edi
mov dword [ebp - 4], 0xdead
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edx, ebx
jne 0x10008fd0
call dword [sym.imp.USER32.dll_GetCursor]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov edx, dword [0x100505e8]
pop edi
pop esi
mov dword [edx + 0x11f], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edx
call dword [sym.imp.USER32.dll_DestroyCursor]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1005af40]
cmp eax, dword [ecx + 0x124]
jne 0x10008ffd
mov eax, dword [0x1005af44]
cmp eax, dword [ecx + 0x128]
je 0x10009064
cmp edx, ebx
jne 0x10009033
cmp dword [0x1005af8c], ebx
je 0x10009064
mov ecx, dword [0x1005af84]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [0x1005af8c]
call fcn.10005510
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x1005af8c], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x1005059c
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
push eax
mov dword [0x1005af8c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edi, edi
mov dword [0x1005af84], eax
call fcn.10006810
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 8