Function at 0x1080ba1
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 0x1080bdc
mov dword [ebp - 0x620], ebx
jmp 0x1080bef
call fcn.0101ae40
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1080e17
push dword [ebp - 0x62c]
call fcn.01080aea
mov dword [ebp - 0x640], eax
cmp eax, ebx
je 0x1080e0b
lea ecx, [ebp - 0x644]
push ecx
push 4
push eax
push 0x1080aaa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x624], eax
cmp eax, ebx
jne 0x1080c3c
call fcn.0101ae40
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1080dff
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 0x1080e30
call fcn.01025b68
mov dword [ebp - 0x620], 0x80004005
cmp edi, ebx
je 0x1080dd2
cmp edi, esi
ja 0x1080dd2
push ebx
push 0x1080eb8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0108059d
test eax, eax
jl 0x1080dd2
push dword [ebp - 0x628]
lea eax, [ebp - 0x61c]
push 0x400
push 0x1080e50
push 0x208
push eax
call fcn.010343ca
add esp, 0x14
test eax, eax
jl 0x1080dd2
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 0x1080d31
call fcn.0101ae40
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1080dd2
push dword [ebp - 0x63c]
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x1080d4f
mov dword [ebp - 0x620], ebx
jmp 0x1080d5e
call fcn.0101ae40
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x1080da6
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 0x1080d87
push 0xffffffffffffffff
push dword [ebp - 0x624]
push ebx
call fcn.0106d7bd
push dword [ebp - 0x628]
push dword [ebp - 0x63c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0x1080e40
call fcn.01026899
jmp 0x1080db4
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 0x1080df1
push 5
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x628]
push ebx
push 0x1080e40
call fcn.01026899
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.01001feb
leave
ret 8