Function at 0x140002850
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.140002550
test al, al
jne 0x1400028ad
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 0x140002b2e
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 [0x14015c480]
test rcx, rcx
je 0x140002945
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 0x140002978
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 0x1400029c6
cmp qword [0x14015c480], 0
mov rsi, qword [rsp + 0x50]
je 0x1400029a3
mov edx, 1
mov rcx, rsi
call fcn.1400c00e0
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x1400029b3
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 0x140002b15
xor r12b, r12b
test r13b, r13b
jne 0x140002ac8
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.140001740
test al, al
je 0x140002ac8
cmp byte [rbp + 0xc8], r13b
je 0x140002ac3
mov rcx, qword [0x140160340]
test rcx, rcx
jne 0x140002a58
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 0x140002a9e
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002aaa
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 0x140002a2d
mov r12b, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140002b15
lea rcx, str.Unable_to__s__s
call fcn.1400015b0
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 0x140002b15
mov r13b, 1
jmp 0x140002b15
mov rax, qword [rdi]
lea rdx, str.terminate
cmp qword [rax + 0x20], 0
mov r8, qword [rax + 0x30]
mov r8, qword [r8 + 8]
jl 0x140002af3
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002aff
lea rcx, str.Unable_to__s__s
call fcn.1400015b0
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, r15
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x140002b2e
inc r14d
add rdi, 8
mov esi, 0
cmp r14d, dword [rbp + 0xc0]
jb 0x1400028d0
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