Function at 0x140005ac0
Capabilities:
Spoof parent pid

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rcx
mov r14, rcx
mov qword [rbp + 0x138], rbx
lea rcx, str.EnableWarnings
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0x148], rbx
mov r12d, ebx
mov qword [rsp + 0x70], rbx
mov rsi, rdx
mov qword [rsp + 0x60], rbx
xor r13b, r13b
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x130], rbx
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140005b5e
mov r8, qword [rsi + 0x30]
lea r9, str.The_process_will_be_restarted_with_the_same_command_line__working_directory_and_privileges.
lea rdx, str.restart
mov byte [rsp + 0x20], bl
mov rcx, r14
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x140005b71
mov rax, qword gs:[0x30]
mov rcx, qword [rsi + 0x20]
cmp rcx, qword [rax + 0x40]
jne 0x140005b78
xor al, al
jmp 0x1400063f3
cmp byte [0x140240e3f], bl
xorps xmm0, xmm0
mov eax, 1
mov qword [rsp + 0x350], rdi
movups xmmword [rbp + 0x150], xmm0
mov dword [rbp + 0x150], 0x70
movups xmmword [rbp + 0x180], xmm0
mov dword [rbp + 0x18c], eax
movups xmmword [rbp + 0x190], xmm0
mov word [rbp + 0x190], ax
movups xmmword [rbp + 0x160], xmm0
mov qword [rsp + 0x78], rcx
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp - 0x80], rbx
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
je 0x140005c2f
lea rax, [rbp + 0x138]
mov dword [rbp - 0x60], 0x1010
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x50]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x50], ebx
mov qword [rbp - 0x58], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], ebx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x98]
jmp 0x140005cc0
lea r9, [rsp + 0x78]
mov dword [rbp + 0x68], 0x30
lea r8, [rbp + 0x68]
mov qword [rbp + 0x70], rbx
mov edx, 0x1010
mov dword [rbp + 0x80], ebx
lea rcx, [rbp + 0x138]
mov qword [rbp + 0x78], rbx
movdqu xmmword [rbp + 0x88], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov edi, eax
cmp eax, 0xc0000022
jne 0x140005ce8
cmp byte [0x140240e3f], bl
je 0x140005ce8
lea rax, [rbp + 0x138]
mov dword [rbp - 0x40], 0x1010
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x30]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x38], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], ebx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa8]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov edi, eax
test edi, edi
js 0x1400062e6
mov rcx, qword ds:[rbp + 0x138]
lea rdx, [rbp - 0x78]
call sym.ProcessHacker.exe_PhGetProcessCommandLine
mov edi, eax
test eax, eax
js 0x1400062e6
mov r14, qword [rbp - 0x78]
mov rcx, r14
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [rbp + 0x138]
lea r8, [rbp - 0x70]
xor edx, edx
call sym.ProcessHacker.exe_PhGetProcessPebString
mov edi, eax
test eax, eax
js 0x1400063bb
mov qword [rsp + 0x300], r15
mov r15, qword [rbp - 0x70]
mov rcx, r15
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp + 0xb8]
mov qword [rbp + 0x138], rbx
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov r8, qword [rsi + 0x20]
lea rcx, [rbp + 0x138]
mov edx, 0x81
test byte [rax + 8], 1
mov eax, 0x21081
cmovne edx, eax
call fcn.140110fc0
mov edi, eax
test eax, eax
js 0x1400062d9
xor r8d, r8d
lea r9, [rbp + 0x148]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140005de5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140005de5
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0x50]
mov edi, eax
test eax, eax
jle 0x1400062de
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400062de
mov r8, qword [rbp + 0x148]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r8d, r8d
lea r9, [rbp + 0x148]
mov rcx, rax
mov qword [rbp + 0x1b8], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
nop dword [rax]
test eax, eax
jne 0x140005e47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0x50]
mov edi, eax
test eax, eax
jle 0x1400062de
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400062de
mov rcx, qword [rbp + 0x1b8]
lea r9, [rbp + 0x138]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140005ea5
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rsp + 0x50]
mov edi, eax
test eax, eax
jle 0x1400062de
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400062de
lea rcx, [rbp + 0xd0]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x140005ecd
mov rcx, qword [rbp + 0x138]
lea r8, [rsp + 0x70]
mov edx, 0x15
call sym.ProcessHacker.exe_PhGetObjectSecurity
lea rcx, [rbp + 0xe8]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov rdi, qword ds:[rbp + 0x138]
lea r8, [rbp + 0x130]
mov rcx, rdi
mov ebx, dword [rax + 8]
and ebx, 1
shl ebx, 0x11
or ebx, 8
cmp byte [0x140240e3f], r12b
mov edx, ebx
jne 0x140005f28
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x140005f2d
cmp byte [0x140240e3f], r12b
je 0x1400060b7
lea r8, [rbp + 0x130]
mov edx, ebx
mov rcx, rdi
call fcn.14011f3a0
test eax, eax
js 0x1400060b7
lea rcx, ds:[rbp + 0x100]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x140005f65
mov rcx, qword ds:[rbp + 0x130]
lea r8, [rsp + 0x60]
mov edx, 0x15
call sym.ProcessHacker.exe_PhGetObjectSecurity
call fcn.140123480
test rax, rax
je 0x140005f96
call fcn.140123480
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp + 0x140]
xor r8d, r8d
call qword [case.0x1400f654f.0]
test eax, eax
mov eax, 2
cmovne r12d, eax
mov rcx, qword ds:[rbp + 0x130]
call fcn.1401294a0
mov rcx, qword [rbp + 0x130]
test al, al
je 0x1400060a6
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rbp + 0x138]
lea r8, [rbp + 0x130]
xor edi, edi
mov rcx, rbx
mov qword [rbp + 0x130], rdi
lea edx, [rdi + 0xe]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [rax]
cmp eax, 0xc0000022
jne 0x14000608e
cmp byte [0x140240e3f], dil
je 0x1400060b9
mov rcx, qword [0x140241b70]
lea rax, [rbp + 0x130]
mov qword [rbp - 0x18], rax
lea r8, [0x14011f940]
mov dword [rsp + 0x48], edi
mov eax, 2
mov dword [rsp + 0x68], eax
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea rax, [0x14011fb00]
mov qword [rbp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x38], 4
lea rax, [rbp - 0x28]
mov qword [rbp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 0x9999200b
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x28], rbx
mov dword [rbp - 0x20], 0xe
mov dword [rbp - 0x10], edi
mov dword [rbp + 0x38], 0xc0000001
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [rbp + 0x38]
test ebx, ebx
cmovs eax, ebx
test eax, eax
js 0x1400060b9
mov rdx, qword [rbp + 0x130]
call fcn.14011d440
test eax, eax
setns r13b
jmp 0x1400060b9
call qword [sym.imp.ntdll.dll_NtClose]
xor edi, edi
mov qword [rbp + 0x130], rdi
jmp 0x1400060b9
xor edi, edi
test r15, r15
je 0x1400060c4
mov r9, qword [r15 + 8]
jmp 0x1400060c7
mov r9, rdi
test r14, r14
je 0x1400060d2
mov rdx, qword [r14 + 8]
jmp 0x1400060d5
mov rdx, rdi
mov rax, qword [rsi + 0x50]
test rax, rax
je 0x1400060e4
mov rcx, qword [rax + 8]
jmp 0x1400060e7
mov rcx, rdi
mov r8, qword ds:[rbp + 0x140]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rdi
or r12d, 0x194
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov rcx, qword [rbp + 0x130]
mov edi, eax
test rcx, rcx
je 0x14000614a
test r13b, r13b
je 0x140006144
call fcn.14011d5a0
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x1400062d9
lea rcx, [rbp + 0x118]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x14000628b
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x140006186
mov rcx, qword ds:[rsp + 0x58]
mov edx, 0x15
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
cmp qword [rsp + 0x60], 0
je 0x14000628b
mov rbx, qword [rsp + 0x58]
lea r8, [rbp + 0x130]
mov rcx, rbx
mov edx, 0xc0000
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x140006263
cmp byte [0x140240e3f], 0
nop
je 0x14000628b
mov rcx, qword [0x140241b70]
lea rax, [rbp + 0x130]
mov qword [rbp + 8], rax
lea r8, [0x14011f940]
mov dword [rsp + 0x48], 0
mov eax, 2
mov dword [rsp + 0x6c], eax
xor r9d, r9d
mov qword [rsp + 0x40], 0
lea rax, [0x14011fb00]
mov qword [rbp + 0x50], rax
xor edx, edx
mov dword [rsp + 0x38], 4
lea rax, [rbp - 8]
mov qword [rbp + 0x58], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], 0x9999200b
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], rbx
mov dword [rbp], 0xc0000
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x60], 0xc0000001
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [rbp + 0x60]
test ebx, ebx
cmovs eax, ebx
test eax, eax
js 0x14000628b
mov r8, qword [rsp + 0x60]
mov edx, 0x15
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x58]
lea r8, [rbp + 0x1c0]
mov r9d, 0x30
mov qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400062bd
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov rcx, qword [rbp + 0x138]
mov edx, 1
call fcn.140111460
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtResumeProcess]
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x300]
cmp qword [rbp + 0x140], 0
je 0x14000630c
call fcn.140123600
test rax, rax
je 0x14000630c
call fcn.140123600
mov rcx, qword [rbp + 0x140]
call qword [case.0x1400f654f.0]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140006326
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x14000633f
mov rcx, qword [0x140241998]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x1b8]
test rcx, rcx
je 0x140006367
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword [rbp + 0x1b8]
xor edx, edx
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14000637a
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x14000638c
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x1400063e9
cmp qword [rsi + 0x20], 0
lea rdx, str.restart
lfence
mov r8, qword [rsi + 0x30]
mov r8, qword [r8 + 8]
jl 0x1400063c5
mov r9d, dword [rsi + 0x20]
lea rcx, str.Unable_to__s__s__PID__lu_
call fcn.140001720
jmp 0x1400063d1
mov r14, qword [rsp + 0x50]
jmp 0x1400062e6
lea rcx, str.Unable_to__s__s
call fcn.140001720
mov rdx, qword ds:[rax + 8]
xor r9d, r9d
mov r8d, edi
mov rcx, r14
call sym.ProcessHacker.exe_PhShowContinueStatus
xor al, al
jmp 0x1400063eb
mov al, 1
mov rdi, qword [rsp + 0x350]
mov rcx, qword ds:[rbp + 0x1f0]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x308
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret