Function at 0x1400040f0
Capabilities:
Delete registry key

Disassembly:
jmp 0x1400c7b90
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x150
lea rdi, [rsp + 0x40]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, byte [rsp + 0x160]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x40], 0xc0000001
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], 0
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call sym.ProcessHacker.exe_PhGetBaseName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x90], rax
movzx eax, byte [rsp + 0x160]
test eax, eax
je 0x1400c7e6d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80
lea r9, [0x1405d1a00]
mov r8, 0xfffffffffffffffd
mov edx, 0x20006
lea rcx, [rsp + 0x58]
call sym.ProcessHacker.exe_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400c7c69
jmp 0x1400c7fcd
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80
mov r9, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x20006
lea rcx, [rsp + 0x78]
call sym.ProcessHacker.exe_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400c7cb1
jmp 0x1400c7fcd
mov dword [rsp + 0xa4], 4
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa4]
mov r8d, 4
lea rdx, [0x1405d1a10]
mov rcx, qword [rsp + 0x78]
call sym.ProcessHacker.exe_PhSetValueKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1400c7cf3
jmp 0x1400c7fcd
cmp dword [rsp + 0x40], 0
jl 0x1400c7e68
lea rcx, [0x1405d1980]
call fcn.1400070e0
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0xd8], rax
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xd8]
call sym.ProcessHacker.exe_PhGetBaseDirectory
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xe0]
call sym.ProcessHacker.exe_PhGetBaseName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 8]
lea r8, [0x1403c83b0]
mov rax, qword [rsp + 0xd8]
mov rdx, qword [rax + 8]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80
mov r9, rax
mov r8, 0xfffffffffffffffd
mov edx, 0x20006
lea rcx, [rsp + 0xc8]
call sym.ProcessHacker.exe_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400c7e68
lea rdx, str.GlobalFlag
mov rcx, qword [rsp + 0xc8]
call sym.ProcessHacker.exe_PhQueryRegistryUlong
mov dword [rsp + 0xf4], eax
cmp dword [rsp + 0xf4], 0xffffffff
jne 0x1400c7e1a
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0xf4]
bts eax, 9
mov dword [rsp + 0xf4], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [0x1405d1a20]
mov rcx, qword [rsp + 0xc8]
call sym.ProcessHacker.exe_PhSetValueKey
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400c7fcd
mov dword [rsp + 0x20], 0
lea r9, [0x1405d1a00]
mov r8, 0xfffffffffffffffd
mov edx, 0x10000
lea rcx, [rsp + 0x58]
call sym.ProcessHacker.exe_PhOpenKey
test eax, eax
jl 0x1400c7ecc
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x58]
mov edx, 0x10000
lea rcx, [rsp + 0x78]
call sym.ProcessHacker.exe_PhOpenKey
test eax, eax
jl 0x1400c7ecc
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
lea rcx, [0x1405d1980]
call fcn.1400070e0
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x128], rax
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x128]
call sym.ProcessHacker.exe_PhGetBaseDirectory
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x130]
call sym.ProcessHacker.exe_PhGetBaseName
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov r9, qword [rax + 8]
lea r8, [0x1403c83b0]
mov rax, qword [rsp + 0x128]
mov rdx, qword [rax + 8]
mov ecx, 3
call sym.ProcessHacker.exe_PhConcatStrings
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xfffffffffffffffd
mov edx, 0x20006
lea rcx, [rsp + 0x118]
call sym.ProcessHacker.exe_PhOpenKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400c7fcd
lea rdx, [0x1405d1a20]
mov rcx, qword [rsp + 0x118]
call sym.ProcessHacker.exe_PhDeleteValueKey
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x58], 0
je 0x1400c7fe0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x78], 0
je 0x1400c7ff3
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x40]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1404aec10]
call fcn.140015750
mov eax, edi
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x150
pop rdi
ret