Function at 0x18d2d370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xee8
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xee4], eax
mov ecx, dword [ebp - 0xee4]
sub ecx, 1
mov dword [ebp - 0xee4], ecx
cmp dword [ebp - 0xee4], 0xf
ja case.0x18d2d1bd.4
mov edx, dword [ebp - 0xee4]
jmp dword [edx*4 + 0x18d2d8c4]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x18d2d36b
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
jmp 0x18d2d201
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x18d2d242
push 0x400
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetMenuState]
and eax, 0x80
je 0x18d2d240
push 0x400
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_HiliteMenuItem]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x18d2d1f8
mov ecx, dword [0x18d38cb8]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x18d2d36b
push 0x400
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x18d2d291
call dword [sym.imp.USER32.dll_EndMenu]
push 0x480
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_HiliteMenuItem]
cmp dword [ebp + 0xc], 2
je 0x18d2d2b6
mov ecx, dword [ebp - 0x1c]
and ecx, 3
je 0x18d2d2bb
jmp case.0x18d2d1bd.4
mov edx, dword [ebp - 0x1c]
and edx, 0x10
je 0x18d2d313
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x18d2d311
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemRect]
test eax, eax
je 0x18d2d311
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0x4000
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x18d2d36b
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800
je 0x18d2d32a
mov dword [ebp - 0xee8], 0
jmp 0x18d2d33e
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov dword [ebp - 0xee8], eax
mov ecx, dword [ebp - 0xee8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0xffffffff
je 0x18d2d36b
push 0
mov edx, dword [ebp - 0x34]
and edx, 0xffff
movzx eax, dx
push eax
push 0x111
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x18d2d1bd.4
mov edx, dword [0x18d38cb8]
mov eax, dword [edx + 0x20]
add eax, 8
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov ecx, dword [0x18d38cb8]
mov edx, dword [ecx + 0x20]
movzx eax, byte [edx + 0x19]
and eax, 0x80
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x35], al
mov ecx, dword [0x18d38cb8]
mov edx, dword [ecx + 0x20]
movzx eax, byte [edx + 0x1a]
and eax, 0x80
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x36], al
movzx ecx, byte [ebp - 0x36]
test ecx, ecx
je 0x18d2d448
movzx edx, byte [ebp - 0x35]
test edx, edx
jne 0x18d2d3fc
mov eax, dword [0x18d38cb8]
mov ecx, dword [eax + 0x20]
movzx edx, byte [ecx + 0x7b]
and edx, 0x80
je 0x18d2d3fa
push 0
push 0
push 0x10
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x18d2d448
mov ecx, dword [0x18d38cb8]
mov edx, dword [ecx + 0x20]
movzx eax, byte [edx + 0x36]
and eax, 0x80
je 0x18d2d448
push 1
push 0
push 0
push 0x8e4b4b29
push 7
push 0x18d34bd8
call fcn.18d217f0
add esp, 0xc
push eax
push 0x30e661ea
push 4
push 0x18d34be0
call fcn.18d217f0
add esp, 0xc
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp case.0x18d2d1bd.4
mov ecx, dword [0x18d38cb8]
cmp dword [ecx + 0x754], 0
je 0x18d2d46f
mov edx, dword [ebp + 8]
push edx
call fcn.18d2b0d0
add esp, 4
mov dword [ebp - 4], 0xdead
jmp case.0x18d2d1bd.4
push 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
jmp case.0x18d2d1bd.4
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movsx edx, cx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x40]
push edx
push 0
push 0x445
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], eax
jmp case.0x18d2d1bd.4
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movsx edx, cx
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0x445
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x18d2d5a8
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x417
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x60]
push edx
push 0x44b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x468]
push ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x50], eax
movzx edx, byte [ebp - 0x5c]
and edx, 2
jne 0x18d2d563
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [0x18d38cb8]
push ecx
call fcn.18d2e340
add esp, 8
cmp dword [ebp + 0xc], 9
jne 0x18d2d5a8
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [ebp - 0x48]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp - 0x44]
and eax, 0xffff
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
push edx
push 0xa
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [0x18d38cb8]
push eax
call fcn.18d2f290
add esp, 0x10
jmp case.0x18d2d1bd.4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [ebp - 0x46c], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
push ecx
mov edx, dword [ebp + 0x10]
and edx, 0xffff
movsx eax, dx
push eax
push 0x100
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push eax
push 0x112
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x18d2d1bd.4
push 0
push 0
push 0xcc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x18d2d1bd.4
push str.VMW_STEALWND:
mov edx, dword [ebp + 8]
push edx
call fcn.18d33350
add esp, 8
mov eax, dword [0x18d38cb8]
movzx ecx, byte [eax + 0xc94]
test ecx, ecx
je 0x18d2d692
mov edx, dword [0x18d38cb8]
add edx, 0xc74
push edx
call fcn.18d24910
add esp, 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x18d38cb8]
push edx
call fcn.18d2f910
add esp, 0xc
mov eax, dword [0x18d38cb8]
add eax, 0xc74
push eax
call fcn.18d24930
add esp, 4
jmp case.0x18d2d1bd.4
jmp case.0x18d2d1bd.4
mov eax, dword [0x18d38cb8]
movzx ecx, byte [eax + 0xc94]
test ecx, ecx
je 0x18d2d6b4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp case.0x18d2d1bd.4
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x6469612f
push 4
push 0x18d34c08
call fcn.18d217f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x670]
push ecx
call fcn.18d26c20
add esp, 0x10
lea edx, [ebp - 0x670]
push edx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x674], eax
cmp dword [ebp - 0x674], 0
je case.0x18d2d1bd.4
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x678], 0
je 0x18d2d8ac
push 0x8c
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x67c], eax
cmp dword [ebp - 0x67c], 0
je 0x18d2d89f
mov ecx, dword [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0
je 0x18d2d892
mov ecx, 0x23
mov esi, 0x18d372a8
mov edi, dword [ebp - 0x680]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0xe84], 1
xor eax, eax
mov word [ebp - 0xe80], ax
push 0x7fe
push 0
lea ecx, [ebp - 0xe7e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0xee0], 0
push 0x54
push 0
lea edx, [ebp - 0xedc]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0xee0], 0x58
push 0xc7a5b66c
push 0x15
push 0x18d34c10
call fcn.18d217f0
add esp, 0xc
mov dword [ebp - 0xed4], eax
lea eax, [ebp - 0xe80]
mov dword [ebp - 0xec4], eax
mov dword [ebp - 0xec0], 0x800
push 0x88c5949e
push 0x18
push 0x18d34c28
call fcn.18d217f0
add esp, 0xc
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xe9c], 0x18d2d080
lea ecx, [ebp - 0xe84]
mov dword [ebp - 0xea0], ecx
mov edx, dword [ebp - 0x67c]
mov dword [ebp - 0xed8], edx
mov dword [ebp - 0xeac], 0x2818a4
lea eax, [ebp - 0xee0]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x18d2d892
mov ecx, dword [ebp - 0x678]
mov edx, dword [ebp - 0xe84]
mov dword [ecx], edx
lea eax, [ebp - 0xe80]
push eax
mov ecx, dword [ebp - 0x678]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x678]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x674]
push ecx
call fcn.18d21ba0
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret