Function at 0x108149d
Capabilities:
Create process on windows
Create process suspended
Create thread
Get common file path
Resume thread
Terminate process
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x628], eax
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [ebp - 0x62c], eax
cmp eax, ebx
je 0x10814d8
mov dword [ebp - 0x620], ebx
jmp 0x10814eb
call fcn.0101af08
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1081713
push dword [ebp - 0x62c]
call fcn.010813e6
mov dword [ebp - 0x640], eax
cmp eax, ebx
je 0x1081707
lea ecx, [ebp - 0x644]
push ecx
push 4
push eax
push 0x10813a6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x624], eax
cmp eax, ebx
jne 0x1081538
call fcn.0101af08
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x10816fb
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x628]
mov edi, eax
push 0x1081728
call fcn.01025c38
mov dword [ebp - 0x620], 0x80004005
cmp edi, ebx
je 0x10816ce
cmp edi, esi
ja 0x10816ce
push ebx
push 0x10817b0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01080e98
test eax, eax
jl 0x10816ce
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push 0x400
push 0x1081748
push 0x208
push eax
call fcn.0103456a
add esp, 0x14
test eax, eax
jl 0x10816ce
push 0x40
lea eax, [ebp - 0x684]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x63c], ebx
lea edi, [ebp - 0x638]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x688]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x688], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x108162d
call fcn.0101af08
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x10816ce
push dword [ebp - 0x63c]
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x108164b
mov dword [ebp - 0x620], ebx
jmp 0x108165a
call fcn.0101af08
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x10816a2
push dword [ebp - 0x638]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [ebp - 0x624]
call esi
cmp dword [ebp + 0xc], ebx
je 0x1081683
push 0xffffffffffffffff
push dword [ebp - 0x624]
push ebx
call fcn.0106dabd
push dword [ebp - 0x628]
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0x1081738
call fcn.01026975
jmp 0x10816b0
push 5
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x63c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x638]
call esi
cmp dword [ebp - 0x620], ebx
jge 0x10816ed
push 5
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x628]
push ebx
push 0x1081738
call fcn.01026975
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
xor ecx, ebp
pop ebx
call fcn.01001fef
leave
ret 8