Function at 0x14003ef00
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov ebx, r8d
mov rdi, rdx
mov dword [rsp + 0x28], ebx
lea r8, str.Terminating_a_process_will_cause_unsaved_data_to_be_lost.
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea rdx, str.terminate
mov r15, rcx
mov r12b, 1
xor r13b, r13b
call fcn.14003ec00
test al, al
jne 0x14003ef5d
add rsp, 0x178
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x1b0], rsi
xor esi, esi
mov qword [rsp + 0x170], r14
mov r14d, esi
test ebx, ebx
je 0x14003f1de
nop word [rax + rax]
mov rax, qword [rdi]
mov qword [rsp + 0x60], rsi
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x58], rcx
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x14003eff5
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x18
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 0x999920cb
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 1
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x14003f028
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x30
lea r9, [rsp + 0x58]
mov qword [rbp - 0x78], rsi
lea r8, [rbp - 0x80]
mov dword [rbp - 0x68], esi
mov edx, 1
mov qword [rbp - 0x70], rsi
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov ebx, eax
test eax, eax
js 0x14003f076
cmp qword [0x14015a2a8], 0
mov rsi, qword [rsp + 0x50]
je 0x14003f053
mov edx, 1
mov rcx, rsi
call fcn.140019770
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x14003f063
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14003f1c5
xor r12b, r12b
test r13b, r13b
jne 0x14003f178
mov rax, qword [rdi]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rcx + 8]
lea rcx, str.Unable_to_terminate
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rbp + 0xc8]
mov r8d, ebx
mov rcx, r15
mov rdx, qword [rax + 8]
call fcn.14003ddf0
test al, al
je 0x14003f178
cmp byte [rbp + 0xc8], r13b
je 0x14003f173
mov rcx, qword [0x14015e640]
test rcx, rcx
jne 0x14003f108
mov ebx, 0xc0000037
mov rax, qword [rdi]
lea rdx, str.terminate
cmp qword [rax + 0x20], 0
mov r8, qword [rax + 0x30]
mov r8, qword [r8 + 8]
jl 0x14003f14e
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call sym.ProcessHacker.exe_PhaFormatString
jmp 0x14003f15a
mov rax, qword [rdi]
lea r8, [rbp - 0x40]
mov dword [rbp - 0x18], 4
mov qword [rbp - 8], 1
mov qword [rbp - 0x40], 0xb00088
mov rdx, qword [rax + 0x20]
mov qword [rbp - 0x10], rdx
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov ebx, dword [rbp - 0x14]
test eax, eax
cmovs ebx, eax
test ebx, ebx
js 0x14003f0dd
mov r12b, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14003f1c5
lea rcx, str.Unable_to__s__s
call sym.ProcessHacker.exe_PhaFormatString
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, r15
call sym.ProcessHacker.exe_PhShowContinueStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14003f1c5
mov r13b, 1
jmp 0x14003f1c5
mov rax, qword [rdi]
lea rdx, str.terminate
cmp qword [rax + 0x20], 0
mov r8, qword [rax + 0x30]
mov r8, qword [r8 + 8]
jl 0x14003f1a3
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call sym.ProcessHacker.exe_PhaFormatString
jmp 0x14003f1af
lea rcx, str.Unable_to__s__s
call sym.ProcessHacker.exe_PhaFormatString
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, r15
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x14003f1de
inc r14d
add rdi, 8
mov esi, 0
cmp r14d, dword [rbp + 0xc0]
jb 0x14003ef80
mov r14, qword [rsp + 0x170]
movzx eax, r12b
mov rsi, qword [rsp + 0x1b0]
add rsp, 0x178
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret