Function at 0x140002900
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
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.140002610
test al, al
jne 0x14000295d
add rsp, 0x138
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
mov qword [rsp + 0x170], rsi
xor esi, esi
mov qword [rsp + 0x130], r14
mov r14d, esi
test ebx, ebx
je 0x140002ba5
nop word [rax + rax]
mov rax, qword [rdi]
lea r9, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 0x30
mov edx, 1
mov qword [rsp + 0x50], rsi
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
movdqu xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov ebx, eax
cmp eax, 0xc0000022
jne 0x1400029f2
cmp byte [0x14015e000], 0
je 0x1400029f2
lea r8, [rsp + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400c02c0
mov ebx, eax
test ebx, ebx
js 0x140002a3d
cmp byte [0x14015e000], 0
mov rsi, qword [rsp + 0x30]
je 0x140002a1a
mov edx, 1
mov rcx, rsi
call fcn.1400c0500
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x140002a2a
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140002b8c
xor r12b, r12b
test r13b, r13b
jne 0x140002b3f
mov rcx, qword [rdi]
mov rdx, qword [rcx + 0x30]
lea rcx, str.Unable_to_terminate
mov rdx, qword [rdx + 8]
call sym.ProcessJacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessJacker.exe_PhAutoDereferenceObject
lea r9, [rbp + 0x88]
mov r8d, ebx
mov rcx, r15
mov rdx, qword [rax + 8]
call fcn.140001780
test al, al
je 0x140002b3f
cmp byte [rbp + 0x88], r13b
je 0x140002b3a
mov rcx, qword [0x14015f1c0]
test rcx, rcx
jne 0x140002acf
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 0x140002b15
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002b21
mov rax, qword [rdi]
lea r8, [rbp - 0x80]
mov dword [rbp - 0x58], 4
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x80], 0xb00088
mov rdx, qword [rax + 0x20]
mov qword [rbp - 0x50], rdx
lea rdx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov ebx, dword [rbp - 0x54]
test eax, eax
cmovs ebx, eax
test ebx, ebx
js 0x140002aa4
mov r12b, 1
call sym.ProcessJacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140002b8c
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.ProcessJacker.exe_PhShowContinueStatus
call sym.ProcessJacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140002b8c
mov r13b, 1
jmp 0x140002b8c
mov rax, qword [rdi]
lea rdx, str.terminate
cmp qword [rax + 0x20], 0
mov r8, qword [rax + 0x30]
mov r8, qword [r8 + 8]
jl 0x140002b6a
mov r9d, dword [rax + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002b76
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.ProcessJacker.exe_PhShowContinueStatus
test al, al
je 0x140002ba5
inc r14d
add rdi, 8
mov esi, 0
cmp r14d, dword [rbp + 0x80]
jb 0x140002980
mov r14, qword [rsp + 0x130]
movzx eax, r12b
mov rsi, qword [rsp + 0x170]
add rsp, 0x138
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret