Function at 0x1400099f4
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov r15, r9
mov rbx, r8
mov esi, edx
mov r14, rcx
xor r12d, r12d
mov qword [rbp - 0x50], r12
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov dword [rbp + 0x50], r12d
xor edx, edx
lea r8d, [r12 + 0x60]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll_memset
lea edi, [r12 + 3]
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_Entry
call fcn.140003dc0
mov rdx, rbx
call fcn.14000a040
test al, al
je 0x140009b95
lea rdx, [rbx + 0x20]
call fcn.14000a040
test al, al
je 0x140009b95
mov r9, rbx
mov r8d, esi
lea rdx, [rbp - 0x60]
call fcn.14000990c
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x140009b7e
mov edx, esi
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_Injecting_the_AppAgent_into_process__lu
call fcn.1400117dc
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140009b45
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140009b45
mov edx, dword [r14 + 0x120]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140009b12
mov edi, r12d
jmp 0x140009b25
mov edx, eax
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_Error_waiting_for_MavInject_to_exit__0x_X
call fcn.140003df4
mov edi, 2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140009b34
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140009b8a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009b8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_CreateProcess_failed__error__0x_X
call fcn.140003df4
mov r9, rbx
lea r8, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_CreateProcess_command_line___s
mov edx, 0x100
lea rcx, [rbp + 0xc0]
call qword [sym.imp.msvcrt.dll_swprintf_s]
lea rcx, [rbp + 0xc0]
jmp 0x140009b85
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_Failed_to_allocate_buffer
call fcn.140003ee4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x140009b9a
mov edi, 1
test edi, edi
jne 0x140009c69
mov edx, esi
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_AppAgent_succeessfully_injected_into_process__lu
call fcn.1400117dc
lea ebx, [rdi + 7]
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
lea r8d, [rdi + 0x15]
lea rdx, str.Injected_successfully
lea rcx, [rbp - 0x80]
call fcn.140005c18
nop
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
xor r8d, r8d
lea rdx, [0x1400d2100]
lea rcx, [rsp + 0x60]
call fcn.140005c18
nop
mov dword [rsp + 0x20], 4
lea r9d, [rdi + 0x35]
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call fcn.140008818
nop
cmp qword [rsp + 0x78], 8
jb 0x140009c2c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
cmp qword [rbp - 0x68], 8
jb 0x140009c4d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
lea rcx, [rbp - 0x30]
call fcn.140008588
nop
jmp 0x140009d60
cmp edi, 2
jne 0x140009c87
test byte [0x140124700], 4
je 0x140009d83
lea rdx, [0x1400d1728]
jmp 0x140009d7b
cmp edi, 1
jne 0x140009d6b
test byte [0x140124700], 0x10
je 0x140009ca8
mov r8d, esi
lea rdx, [0x1400d1748]
call fcn.1400075f0
mov ebx, 7
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
lea r8d, [rbx + 0xa]
lea rdx, str.Invalid_mavinject
lea rcx, [rsp + 0x60]
call fcn.140005c18
nop
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
xor r8d, r8d
lea rdx, [0x1400d2100]
lea rcx, [rbp - 0x80]
call fcn.140005c18
nop
mov dword [rsp + 0x20], 2
mov r9d, 0x2ee
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.140008818
nop
cmp qword [rbp - 0x68], 8
jb 0x140009d26
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
cmp qword [rsp + 0x78], 8
jb 0x140009d46
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
lea rcx, [rbp - 0x30]
call fcn.140008588
nop
lea rcx, [rbp - 0x30]
call fcn.140008970
jmp 0x140009d83
test byte [0x140124700], 4
je 0x140009d83
lea rdx, [0x1400d15b0]
mov r8d, esi
call fcn.1400075f0
lea rcx, str.AgentService.CreateProcNotificationListener::LaunchAndWaitForInjectionProcess:_Exit
call fcn.140003dc0
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0x3d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret