Function at 0x14003f840
Capabilities:
Delete registry key
Read file on windows

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x318]
sub rsp, 0x418
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov r12, rax
test rax, rax
je 0x14003ff07
mov qword [rsp + 0x430], rbx
lea rcx, str.KphServiceName
mov qword [rsp + 0x438], rsi
mov qword [rsp + 0x440], rdi
mov qword [rsp + 0x410], r13
mov qword [rsp + 0x408], r14
mov qword [rsp + 0x400], r15
call sym.ProcessHacker.exe_PhGetStringSetting
xor r15d, r15d
mov rsi, rax
lea rdi, [r15 - 1]
test rax, rax
je 0x14003f8e5
cmp qword [rax], r15
jne 0x14003f8e5
lea rcx, [rax - 0x10]
mov esi, r15d
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003f8e5
nop dword [rax]
call fcn.1400fbcc0
mov rbx, qword [r12]
mov rdx, qword [0x1402418e8]
add rbx, 0x24
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r13, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov r8, qword [r12]
mov rdx, qword [r12 + 8]
mov rcx, qword [rax + 8]
call fcn.140188690
mov rdx, qword [r13 + 8]
mov rcx, qword [r12]
movups xmm0, xmmword [0x1401df6b0]
movups xmmword [rdx + rcx], xmm0
movups xmm1, xmmword [0x1401df6c0]
movups xmmword [rdx + rcx + 0x10], xmm1
mov eax, dword [0x1401df6d0]
mov dword [rdx + rcx + 0x20], eax
mov rbx, qword [r12]
mov rdx, qword [0x1402418e8]
add rbx, 0x22
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
mov qword [rsp + 0x70], rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
mov r8, qword [r12]
mov rdx, qword [r12 + 8]
mov rcx, qword [rax + 8]
call fcn.140188690
mov rcx, qword [r12]
mov rdx, qword [r14 + 8]
movups xmm0, xmmword [str.processhacker.sig]
movups xmmword [rdx + rcx], xmm0
movups xmm1, xmmword [0x1401df6e8]
movups xmmword [rdx + rcx + 0x10], xmm1
movzx eax, word [0x1401df6f8]
mov word [rdx + rcx + 0x20], ax
lea rcx, str.KphBuildNumber
call sym.ProcessHacker.exe_PhGetIntegerSetting
lea r15, str.KProcessHacker3
test eax, eax
jne 0x14003f9ea
mov edx, dword [0x1402419ac]
lea rcx, str.KphBuildNumber
nop
call sym.ProcessHacker.exe_PhSetIntegerSetting
jmp 0x14003fb8e
cmp eax, dword [0x1402419ac]
je 0x14003fb8e
test rsi, rsi
je 0x14003fa02
mov r14, qword ds:[rsi + 8]
jmp 0x14003fa05
mov r14, r15
lea rax, str.SystemCurrentControlSetServices_
mov qword [rsp + 0x68], 0
test r14, r14
mov qword [rbp + 0x98], rax
mov rcx, r15
mov dword [rbp + 0x80], 1
cmovne rcx, r14
mov qword [rbp + 0x90], 0x44
mov rax, rdi
mov dword [rbp + 0xa0], 1
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14003fa50
add rax, rax
mov qword [rbp + 0xb8], rcx
mov qword [rbp + 0xb0], rax
lea r8, [rbp + 0xe0]
lea rax, str.Parameters
mov dword [rbp + 0xc0], 1
mov qword [rbp + 0xd8], rax
lea rcx, [rbp + 0x80]
lea rax, [rsp + 0x78]
mov qword [rbp + 0xd0], 0x16
mov r9d, 0x208
mov qword [rsp + 0x20], rax
mov edx, 3
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
je 0x14003fb89
mov rbx, qword [rsp + 0x78]
mov rcx, r14
add rbx, 0xfffffffffffffffe
mov word [rbp - 0x70], bx
call fcn.14011f160
lea eax, [rbx + 2]
mov word [rbp - 0x6e], ax
lea rax, [rbp + 0xe0]
mov qword [rbp - 0x68], rax
cmp rbx, 0xfffe
jbe 0x14003faf5
mov ebx, 0xc0000106
jmp 0x14003fb63
xor r8d, r8d
lea rax, [rbp - 0x80]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
lea rcx, [r8 - 3]
call fcn.14011ab40
test eax, eax
js 0x14003fb54
lea r8, [rbp + 0x30]
mov edx, 0x10000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rbp - 0x80]
mov ebx, eax
test rcx, rcx
je 0x14003fb3b
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
test ebx, ebx
js 0x14003fb54
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003fb73
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
cmp eax, 0xc0000034
mov eax, 0
cmove ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003fb73
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14003fb89
mov edx, dword [0x1402419ac]
lea rcx, str.KphBuildNumber
call sym.ProcessHacker.exe_PhSetIntegerSetting
mov r14, qword [rsp + 0x70]
mov rcx, qword [r13 + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x14003fe27
mov dword [rbp + 0x60], 3
mov byte [rbp + 0x64], 1
test rsi, rsi
je 0x14003fbb3
mov r15, qword [rsi + 8]
mov r8, qword ds:[r13 + 8]
lea r9, [rbp + 0x60]
mov rcx, r15
call fcn.14011e840
mov ebx, eax
test eax, eax
js 0x14003fde5
mov rcx, qword ds:[r14 + 8]
lea rdx, [rbp - 0x60]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov r14d, eax
test eax, eax
js 0x14003fda6
xor ecx, ecx
mov dword [rbp - 0x38], 0x30
mov dword [rsp + 0x50], ecx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rcx
lea r9, [rbp - 8]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x38]
mov dword [rsp + 0x38], 1
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov edx, 0x120089
mov qword [rbp - 0x30], rcx
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x78]
mov dword [rbp - 0x20], 0x40
mov qword [rbp - 0x28], rax
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rbp - 0x60]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test r14d, r14d
js 0x14003fda6
mov rcx, qword [0x140241998]
mov edx, 4
mov rbx, qword [rbp - 0x78]
mov r8d, 0x400
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
xor r8d, r8d
mov r15, rax
xor edx, edx
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x68]
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.ntdll.dll_NtClose]
test r14d, r14d
js 0x14003fd8b
mov eax, dword [rbp + 0x70]
lfence
mov dword [rbp - 0x40], eax
lea rcx, [0x14011f940]
xor eax, eax
mov qword [rbp - 0x50], rcx
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x48], eax
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov dword [rsp + 0x38], 0x18
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 8]
mov dword [rsp + 0x28], 0x99992007
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x48], r15
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
js 0x14003fd44
mov byte [0x140240e3f], 1
jmp 0x14003fd73
lea rcx, str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14003fd73
test dword [0x140246920], 0x100
nop
jne 0x14003fd73
lfence
mov edx, ebx
lea rcx, str.Unable_to_verify_the_kernel_driver_signature.
call fcn.14003f6e0
mov rcx, qword [0x140241998]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14003fe74
lfence
mov rcx, qword [0x140241998]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14003fe74
test dword [0x140246920], 0x100
jne 0x14003fe74
lfence
mov edx, r14d
lea rcx, str.Unable_to_read_the_kernel_driver_signature.
call fcn.14003f6e0
nop dword [rax]
jmp 0x14003fe74
lea rcx, str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14003fe74
lea rcx, [rbp + 0x18]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x14003fe74
test dword [0x140246920], 0x100
jne 0x14003fe74
lfence
mov edx, ebx
lea rcx, str.Unable_to_load_the_kernel_driver_service.
call fcn.14003f6e0
jmp 0x14003fe74
lea rcx, str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14003fe74
test dword [0x140246920], 0x100
jne 0x14003fe74
lea rax, str.You_will_be_unable_to_use_more_advanced_features__view_details_about_system_processes_or_terminate_malicious_software.
mov edx, 0x20
mov qword [rsp + 0x28], rax
lea r9, str.The_kernel_driver_was_not_found.
lea rax, [0x1401b8d58]
xor ecx, ecx
mov r8d, 0xfffe
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
mov r15, qword [rsp + 0x400]
mov r14, qword [rsp + 0x408]
mov rbx, qword [rsp + 0x430]
test rsi, rsi
je 0x14003feaa
lea rcx, ds:[rsi - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003feaa
call fcn.1400fbcc0
mov rcx, qword [rsp + 0x70]
mov eax, edi
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
mov rsi, qword [rsp + 0x438]
cmp eax, 1
jne 0x14003fecc
call fcn.1400fbcc0
lea rcx, ds:[r13 - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
mov r13, qword [rsp + 0x410]
cmp eax, 1
jne 0x14003feea
call fcn.1400fbcc0
lea rcx, ds:[r12 - 0x10]
lock xadd dword [rcx + 8], edi
cmp edi, 1
mov rdi, qword [rsp + 0x440]
jne 0x14003ff07
call fcn.1400fbcc0
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x418
pop r12
pop rbp
ret