Function at 0x418640
Capabilities:
Create process on windows
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49da30
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4d506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00418420
push 0x44
push 0
cmp eax, 1
jne 0x4186e3
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 1
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x34], ax
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], 1
cmp dword [eax - 4], 1
jle 0x4186bc
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040e6b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 1
jmp 0x418815
lea eax, [ebp - 0xb8]
xor edi, edi
push eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x8c], 1
xorps xmm0, xmm0
mov eax, 1
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x88], ax
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0xc4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0xc4]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xcc], eax
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0xc0]
push eax
push 1
push 2
push edi
push 0xf01ff
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.CreateProcessWithTokenW
push 0x4c2074
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x4187e8
mov esi, dword [ebp + 0xc]
cmp dword [esi - 4], 1
jle 0x4187ae
push dword [esi - 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e6b0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4187c5
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040e6b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
push esi
push 0
push 0x20
push eax
push 0
push 0
push dword [ebp - 0xc0]
call dword [ebp - 0xc8]
mov edi, eax
mov eax, dword [ebp - 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4187fb
push eax
call esi
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x418808
push eax
call esi
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x418815
push eax
call esi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418836
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x418855
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049abdf
mov esp, ebp
pop ebp
ret