Function at 0x140001925
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1a8
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x190], xmm7
mov r12d, ecx
mov rbp, rdx
call sym.__main
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov qword [0x1400100a0], rax
test rax, rax
je 0x140001a19
lea rdx, [rsp + 0x110]
mov ecx, 0xd
mov eax, 0
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rsp + 0x110], 0x68
mov qword [0x1400100b0], 0
mov qword [0x1400100b8], 0
mov qword [0x1400100c0], 0
mov edx, 1
lea rcx, [dbg.ConsoleHandler]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp r12d, 4
jg 0x140001a2a
mov rbx, qword [rbp]
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, rax
mov r8, rbx
lea rdx, str.usage:__s__time_limit_in_seconds___virtual_memory_limit_in_MiB__n___________show_hide_cpu_time:__s_h___command___args_..._n_nZero_sets_no_limit__keeps_the_actual_limit__n
call dbg.fprintf
mov eax, 1
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.CreateJobObject
call dbg.ErrorReport
jmp 0x140001973
lea rsi, [rsp + 0xe0]
mov rcx, qword [rbp + 8]
mov r8d, 0xa
mov rdx, rsi
call sym.strtol
mov r14d, eax
mov rax, qword [rsp + 0xe0]
movzx ebx, byte [rax]
mov rcx, qword [rbp + 0x10]
mov r8d, 0xa
mov rdx, rsi
call sym.strtol
mov edi, eax
mov rax, qword [rsp + 0xe0]
or bl, byte [rax]
jne 0x1400019cf
mov rbx, qword [rbp + 0x18]
mov rdx, rbx
lea rcx, [0x14000b0b5]
call sym.strcmp
mov r13d, eax
mov rdx, rbx
lea rcx, [0x14000b0b8]
call sym.strcmp
test r13d, r13d
je 0x140001aa8
test eax, eax
jne 0x1400019cf
lea rbx, [rbp + 0x20]
lea eax, [r12 - 5]
lea r15, [rbp + rax*8 + 0x28]
mov esi, 0
mov rcx, qword [rbx]
call sym.strlen
lea esi, [rsi + rax + 3]
add rbx, 8
cmp rbx, r15
jne 0x140001abb
cmp esi, 0x7fff
ja 0x140001afd
mov ecx, esi
call sym.malloc
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x140001b17
mov byte [rax], 0
mov r15d, r12d
mov ebx, 4
sub r12d, 1
jmp 0x140001b3d
mov rdx, qword [rbp]
lea rcx, str._s:_Error:_parameters_length_exceeds_CreateProcess_limits_n
call dbg.printf
mov eax, 1
jmp 0x1400019f5
mov r8d, esi
mov rdx, qword [rbp]
lea rcx, str._s:_Error:_when_allocating__d_bytes_in_memory_n
call dbg.printf
mov eax, 1
jmp 0x1400019f5
add rbx, 1
cmp rbx, r15
je 0x140001b98
mov rsi, qword [rsp + 0xe0]
mov rcx, rsi
call sym.strlen
mov word [rsi + rax], 0x22
mov rdx, qword [rbp + rbx*8]
mov rcx, qword [rsp + 0xe0]
call sym.strcat
mov rsi, qword [rsp + 0xe0]
mov rcx, rsi
call sym.strlen
mov word [rsi + rax], 0x22
cmp r12d, ebx
jle 0x140001b34
mov rsi, qword [rsp + 0xe0]
mov rcx, rsi
call sym.strlen
mov word [rsi + rax], 0x20
jmp 0x140001b34
mov eax, r14d
or eax, edi
je 0x140001c24
movsxd rdx, edi
lea r8, [rsp + 0x50]
mov ecx, 0x24
mov eax, 0
mov rdi, r8
rep stosd dword [rdi], eax
test rdx, rdx
setne al
movzx eax, al
shl eax, 8
test r14d, r14d
setne cl
movzx ecx, cl
add ecx, ecx
or eax, ecx
mov dword [rsp + 0x60], eax
test r14d, r14d
je 0x140001beb
movsxd r14, r14d
imul r14, r14, 0x989680
mov qword [rsp + 0x50], r14
test rdx, rdx
je 0x140001bff
mov rdi, rdx
shl rdi, 0x14
mov qword [rsp + 0xc0], rdi
mov r9d, 0x90
lea r8, [rsp + 0x50]
mov edx, 9
mov rcx, qword [0x1400100a0]
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x140001d47
lea rax, [0x1400100b0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rsp + 0xe0]
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001d5d
mov rdx, qword [0x1400100b0]
mov rcx, qword [0x1400100a0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140001d8b
mov rcx, qword [0x1400100b8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, qword [0x1400100b0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp eax, 0x80
je 0x140001dc3
cmp eax, 0x102
je 0x140001db2
cmp eax, 0xffffffff
je 0x140001da1
lea rdx, [rsp + 0xec]
mov rcx, qword [0x1400100b0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test r13d, r13d
je 0x140001dd4
mov rcx, qword [0x1400100b0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [0x1400100b8]
call rsi
mov rcx, qword [0x1400100a0]
call rsi
mov rcx, qword [rsp + 0xe0]
call sym.free
cmp ebx, 0x102
je 0x140001f18
mov eax, dword [rsp + 0xec]
jmp 0x1400019f5
lea rcx, str.SetInformationJobObject
call dbg.ErrorReport
mov eax, 1
jmp 0x1400019f5
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rbp]
lea rcx, str._s:_Error:_failed_when_launching___s__n
call dbg.printf
lea rcx, str.CreateProcess
call dbg.ErrorReport
mov eax, 1
jmp 0x1400019f5
lea rcx, str.AssignProcessToJobObject
call dbg.ErrorReport
mov eax, 1
jmp 0x1400019f5
lea rcx, str.Wait_failed
call dbg.printf
jmp 0x140001ce2
lea rcx, str.Wait_timeout
call dbg.printf
jmp 0x140001ce2
lea rcx, str.Wait_abandonned
call dbg.printf
jmp 0x140001ce2
lea rdx, [rsp + 0x108]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0x100]
mov rcx, qword [0x1400100b0]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, dword [rsp + 0x10c]
shl rax, 0x20
mov ecx, dword [rsp + 0x108]
or rcx, rax
mov edx, dword [rsp + 0x104]
shl rdx, 0x20
mov eax, dword [rsp + 0x100]
or rax, rdx
mov r8d, dword [rsp + 0xfc]
shl r8, 0x20
mov edx, dword [rsp + 0xf8]
or rdx, r8
mov r9d, dword [rsp + 0xf4]
shl r9, 0x20
mov r8d, dword [rsp + 0xf0]
or r8, r9
add rdx, r8
js 0x140001edc
pxor xmm6, xmm6
cvtsi2sd xmm6, rdx
addsd xmm6, qword [0x14000b2a0]
divsd xmm6, qword [0x14000b2a8]
sub rax, rcx
js 0x140001efa
pxor xmm7, xmm7
cvtsi2sd xmm7, rax
addsd xmm7, qword [0x14000b2a0]
divsd xmm7, qword [0x14000b2a8]
mov ecx, 1
mov rsi, qword [sym.__acrt_iob_func]
call rsi
mov rcx, rax
movapd xmm3, xmm7
movq r9, xmm7
movapd xmm2, xmm6
movq r8, xmm6
lea rdx, str.why3cpulimit_time_:__f_s_nwhy3cpulimit_real_time_:__f_s_n
call dbg.fprintf
mov ecx, 1
call rsi
mov rcx, rax
call sym.fflush
jmp 0x140001d00
mov r8, rdx
shr r8, 1
and edx, 1
or r8, rdx
pxor xmm6, xmm6
cvtsi2sd xmm6, r8
addsd xmm6, xmm6
jmp 0x140001e6b
mov rdx, rax
shr rdx, 1
and eax, 1
or rdx, rax
pxor xmm7, xmm7
cvtsi2sd xmm7, rdx
addsd xmm7, xmm7
jmp 0x140001e89
mov eax, 0x98
jmp 0x1400019f5