Function at 0x140001070
Capabilities:
Create thread
Inject thread
Terminate process

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0xc8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x60]
xor r14d, r14d
mov r9, rax
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov edx, 0x1fffff
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 4
call qword [0x140005a30]
mov dword [0x140005630], eax
test eax, eax
je 0x1400010f4
mov edx, eax
lea rcx, str.NtCreateProcessEx_failed_:__x_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, 0x30
mov qword [rsp + 0xc0], rsi
xor edx, edx
mov qword [rsp + 0x20], r14
movsxd rax, dword [rcx + 0x3c]
mov ebx, dword [rax + rcx + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [0x140005a40]
mov rdx, qword [rsp + 0x78]
lea r8, [0x140005640]
mov rcx, qword [rsp + 0x60]
mov r9d, 0x248
mov dword [0x140005630], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rsi, qword [0x140005650]
lea rcx, [rsp + 0xa0]
mov rdx, rbp
add rsi, rbx
call qword [0x140005a50]
mov dword [rsp + 0x50], 1
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], r14
call qword [0x140005a28]
mov dword [0x140005630], eax
test eax, eax
je 0x1400011d5
mov edx, eax
lea rcx, str.RtlCreateProcessParametersEx_failed_:__x_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsp + 0x68]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov eax, dword [rdx + 0x3f0]
add eax, dword [rdx]
mov r8d, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdx, qword [rsp + 0x68]
mov r9d, ebx
mov rcx, qword [rsp + 0x60]
mov r8, rdx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000123c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_update_process_parameters_:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add rdx, 0x20
mov r9d, 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001281
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_update_PEB_:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x1400012c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_remote_thread_:__d_n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001760
add rsp, 0xc8
pop r14
pop rdi
pop rbp
pop rbx
ret