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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
push str.KphBuildNumber
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x42896a
cmp eax, dword [0x5b1dbc]
je 0x42897a
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
push 0x208
lea eax, [esp + 0x98]
mov dword [esp + 0x50], 1
push eax
push 3
lea eax, [esp + 0x58]
mov dword [esp + 0x68], 0x44
push eax
mov dword [esp + 0x70], str.SystemCurrentControlSetServices_
mov dword [esp + 0x74], 1
mov dword [esp + 0x84], 0x1e
mov dword [esp + 0x88], str.KProcessHacker3
mov dword [esp + 0x8c], 1
mov dword [esp + 0x9c], 0x16
mov dword [esp + 0xa0], str.Parameters
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
je 0x42897a
lea eax, [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
mov dword [esp + 0x14], eax
call fcn.004cbe20
push 0
lea eax, [esp + 0x18]
push eax
push 0xfffffffffffffffd
push 0x10000
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhOpenKey
mov esi, eax
test esi, esi
js 0x428948
mov eax, dword [esp + 0x10]
test eax, eax
je 0x428966
push eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
xor eax, eax
cmp esi, 0xc0000034
cmove esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x428966
push eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x42897a
push dword [0x5b1dbc]
push str.KphBuildNumber
call sym.ProcessHacker.exe_PhSetIntegerSetting
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x428ceb
push str.KphServiceName
call sym.ProcessHacker.exe_PhGetStringSetting
mov ebx, eax
test ebx, ebx
je 0x4289b9
cmp dword [ebx], 0
jne 0x4289b9
mov ecx, ebx
or eax, 0xffffffff
xor ebx, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4289b9
call fcn.004b3960
mov esi, dword [edi]
push dword [0x5b1d70]
add esi, 0x24
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0x10], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [edi]
push dword [edi + 4]
push dword [eax + 4]
call fcn.00521a30
mov edi, dword [esp + 0x1c]
mov ecx, 9
mov eax, dword [esp + 0x30]
mov esi, 0x57017c
add esp, 0xc
mov edi, dword [edi + 4]
add edi, dword [eax]
rep movsd dword es:[edi], dword [esi]
push dword [0x5b1d70]
mov edi, eax
mov esi, dword [edi]
add esi, 0x22
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0x20], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [edi]
push dword [edi + 4]
push dword [eax + 4]
call fcn.00521a30
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x54]
mov edi, dword [edi]
mov ecx, 8
mov esi, str.processhacker.sig
add esp, 0xc
add edi, dword [eax + 4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
call fcn.004ca2c0
test eax, eax
jns 0x428ac5
cmp eax, 0xc0000043
je 0x428ac5
cmp eax, 0xc0000022
je 0x428ac5
push str.EnableKphWarnings
mov edi, edi
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x428c8a
test dword [0x5b4b40], 0x100
jne 0x428c8a
push str.You_will_be_unable_to_use_more_advanced_features__view_details_about_system_processes_or_terminate_malicious_software.
push 0x54ace8
push str.The_kernel_driver_was_not_found.
push 0xfffe
push 0x20
push 0
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
jmp 0x428c8a
mov dword [esp + 0x38], 3
mov byte [esp + 0x3c], 1
test ebx, ebx
je 0x428adb
mov ecx, dword [ebx + 4]
jmp 0x428ae0
mov ecx, str.KProcessHacker3
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
call fcn.004cb7c0
mov esi, eax
test esi, esi
js 0x428c4b
mov eax, dword [esp + 0x20]
push 0x60
push 1
push 1
push 0x80
push 0x120089
push dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhCreateFileWin32
mov edi, eax
test edi, edi
js 0x428c26
push 0x400
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [esp + 0x14]
push 0
push 0
push 0x400
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtReadFile]
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x428c10
mov eax, dword [esp + 0x44]
push 0
push 0
lfence
mov esi, dword [esp + 0x24]
push 0xc
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push 0x99992007
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 0x4cc2c0
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
mov dword [esp + 0x54], esi
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov edi, eax
test edi, edi
js 0x428bd3
push esi
push 0
push dword [0x5b1dac]
mov byte [0x5b18bb], 1
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x428c86
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
lea ecx, [ecx]
test eax, eax
je 0x428bff
test dword [0x5b4b40], 0x100
jne 0x428bff
mov edx, edi
mov ecx, str.Unable_to_verify_the_kernel_driver_signature.
lfence
call fcn.00428760
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x428c86
lfence
mov esi, dword [esp + 0x1c]
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x428c86
test dword [0x5b4b40], 0x100
mov edi, edi
jne 0x428c86
mov edx, edi
mov ecx, str.Unable_to_read_the_kernel_driver_signature.
jmp 0x428c7e
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x428c86
lea eax, ds:[esp + 0x28]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x428c86
test dword [0x5b4b40], 0x100
jne 0x428c86
mov edx, esi
mov ecx, str.Unable_to_load_the_kernel_driver_service.
lfence
call fcn.00428760
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x428ca7
lea ecx, [ebx - 8]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x428caa
mov edi, edi
call fcn.004b3960
jmp 0x428caa
or ebx, 0xffffffff
mov ecx, dword [esp + 0x20]
mov eax, ebx
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x428cc5
jmp 0x428cc0
call fcn.004b3960
lea ecx, [esi - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x428cd7
call fcn.004b3960
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x428ceb
call fcn.004b3960
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret