joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053d60
Capabilities:
Continue service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 0x40
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhOpenService
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140053dc0
lea r8, [rsp + 0x40]
mov edx, 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140053db5
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140053e8d
call fcn.140021c20
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_continue
call sym.ProcessHacker.exe_PhaConcatStrings2
lea r9, [rsp + 0x31]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x70]
call fcn.140051850
movzx eax, al
test eax, eax
je 0x140053e6a
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140053e68
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 2
mov rcx, qword [rax + 8]
call fcn.1400a8b00
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140053e40
mov byte [rsp + 0x30], 1
jmp 0x140053e63
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.continue
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
call fcn.140051ad0
jmp 0x140053e8d
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.continue
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
movzx eax, byte [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140053ea0
Capabilities:
Pause service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 0x40
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhOpenService
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140053f00
lea r8, [rsp + 0x40]
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140053ef5
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140053fcd
call fcn.140021c20
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_pause
call sym.ProcessHacker.exe_PhaConcatStrings2
lea r9, [rsp + 0x31]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x70]
call fcn.140051850
movzx eax, al
test eax, eax
je 0x140053faa
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140053fa8
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 3
mov rcx, qword [rax + 8]
call fcn.1400a8b00
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140053f80
mov byte [rsp + 0x30], 1
jmp 0x140053fa3
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.pause
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
call fcn.140051ad0
jmp 0x140053fcd
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.pause
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
movzx eax, byte [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140053fe0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 0x20
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhOpenService
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140054040
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140054035
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14005410d
call fcn.140021c20
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_stop
call sym.ProcessHacker.exe_PhaConcatStrings2
lea r9, [rsp + 0x31]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x70]
call fcn.140051850
movzx eax, al
test eax, eax
je 0x1400540ea
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x1400540e8
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x10]
mov edx, 4
mov rcx, qword [rax + 8]
call fcn.1400a8b00
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1400540c0
mov byte [rsp + 0x30], 1
jmp 0x1400540e3
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.stop
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
call fcn.140051ad0
jmp 0x14005410d
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
lea rdx, str.stop
mov rcx, qword [rsp + 0x70]
call fcn.140053bc0
movzx eax, byte [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140054120
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov byte [rsp + 0x20], 1
lea r9, str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
mov r8, qword [rax + 8]
lea rdx, [0x1401160c8]
mov rcx, qword [rsp + 0x50]
call sym.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
jne 0x14005416b
xor al, al
jmp 0x140054280
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov edx, 0x10000
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhOpenService
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400541ae
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400541a3
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14005427b
call fcn.140021c20
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 8]
lea rcx, str.Unable_to_delete
call sym.ProcessHacker.exe_PhaConcatStrings2
lea r9, [rsp + 0x31]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x50]
call fcn.140051850
movzx eax, al
test eax, eax
je 0x140054258
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140054256
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov edx, 5
mov rcx, qword [rax + 8]
call fcn.1400a8b00
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x14005422e
mov byte [rsp + 0x30], 1
jmp 0x140054251
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
lea rdx, [0x1401160c8]
mov rcx, qword [rsp + 0x50]
call fcn.140053bc0
call fcn.140051ad0
jmp 0x14005427b
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
lea rdx, [0x1401160c8]
mov rcx, qword [rsp + 0x50]
call fcn.140053bc0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140055850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x50], 0
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x1400558a5
mov byte [rsp + 0x20], 0
lea r9, str.Destroying_heaps_may_cause_the_process_to_crash.
lea r8, str.the_selected_heap
lea rdx, str.destroy
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhShowConfirmMessage
mov byte [rsp + 0x50], al
jmp 0x1400558aa
mov byte [rsp + 0x50], 1
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x1400558ba
xor al, al
jmp 0x1400559ec
mov r8, qword [rsp + 0x88]
mov edx, 2
lea rcx, [rsp + 0x60]
call sym.ProcessHacker.exe_PhOpenProcess
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x1400559c3
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14005594c
lea rdx, [0x140116ee0]
lea rcx, [0x140110f20]
call fcn.140015cc0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov dword [rsp + 0x54], eax
jmp 0x1400559a6
lea rdx, [0x140116ee0]
lea rcx, [0x140110f20]
call fcn.140015cc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400559a6
call fcn.140021c20
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x1400559b8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x54], 0
jge 0x1400559ea
xor r9d, r9d
mov r8d, dword [rsp + 0x54]
lea rdx, str.Unable_to_destroy_the_heap
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
jmp 0x1400559ec
mov al, 1
add rsp, 0x78
ret
Function at 0x140057740
Capabilities:
Create pipe
Write file on windows

Disassembly:
sub rsp, 0x98
lea rcx, [0x140135768]
call fcn.14000c1b0
movzx eax, al
test eax, eax
je 0x14005794a
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f0003
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x1400577e9
mov r8, qword [rsp + 0x60]
lea rdx, [0x140057650]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400577de
mov rcx, qword [rsp + 0x58]
call fcn.140057490
movzx eax, al
test eax, eax
je 0x1400577c6
lea rdx, [0x140135528]
mov rcx, qword [rsp + 0x58]
call fcn.140057600
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f0003
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtCreateEvent]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x140057874
mov r8, qword [rsp + 0x60]
lea rdx, [0x140057690]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140057869
mov rcx, qword [rsp + 0x58]
call fcn.140057490
movzx eax, al
test eax, eax
je 0x140057851
lea rdx, [0x1401355f8]
mov rcx, qword [rsp + 0x58]
call fcn.140057600
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14005793e
mov r8, qword [rsp + 0x68]
lea rdx, [0x1400576e0]
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateThread
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140057928
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x58]
call fcn.140057490
movzx eax, al
test eax, eax
je 0x1400578dc
lea rdx, [0x140135578]
mov rcx, qword [rsp + 0x58]
call fcn.140057600
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [0x140135768]
call sym.ProcessHacker.exe_PhfEndInitOnce
add rsp, 0x98
ret
Function at 0x1400596b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [rax], rcx
jne 0x140059750
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x41
je 0x140059720
cmp dword [rsp + 0x20], 0x43
je 0x1400596f9
jmp 0x140059750
mov eax, dword [rsp + 0x50]
and eax, 1
test eax, eax
je 0x14005971e
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x14005971e
mov rcx, qword [rsp + 0x48]
call sym.ProcessHacker.exe_PhCopyListView
jmp 0x140059750
mov eax, dword [rsp + 0x50]
and eax, 2
test eax, eax
je 0x140059750
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140059750
mov r8d, 2
mov edx, 2
mov rcx, qword [rsp + 0x48]
call sym.ProcessHacker.exe_PhSetStateAllListViewItems
add rsp, 0x38
ret

Function at 0x14005a120
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdx, str.DebugSetProcessKillOnExit
lea rcx, str.kernel32.dll
call fcn.140015cc0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14005a16d
lea rdx, str.DebugActiveProcessStop
lea rcx, str.kernel32.dll
call fcn.140015cc0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14005a174
xor al, al
jmp 0x14005a269
mov byte [rsp + 0x50], 0
call fcn.140012650
mov rax, qword [rax + 0x60]
movzx eax, byte [rax + 1]
mov byte [rsp + 0x51], al
call fcn.140012650
mov rax, qword [rax + 0x60]
mov byte [rax + 1], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14005a22d
xor ecx, ecx
call qword [rsp + 0x58]
mov ecx, dword [rsp + 0x78]
call qword [rsp + 0x60]
mov byte [rsp + 0x50], 1
cmp qword [rsp + 0x68], 0
je 0x14005a240
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x70], 0
je 0x14005a253
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
call fcn.140012650
mov rax, qword [rax + 0x60]
movzx ecx, byte [rsp + 0x51]
mov byte [rax + 1], cl
movzx eax, byte [rsp + 0x50]
add rsp, 0xf0
pop rdi
ret
Function at 0x14005b180
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov byte [rsp + 0x40], 0
xor edx, edx
lea rcx, str.RegEdit_RegEdit
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14005b1d0
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call sym.ProcessHacker.exe_PhShellOpenKey
mov al, 1
jmp 0x14005b34b
movzx eax, byte [sym.ProcessHacker.exe_PhElevated]
test eax, eax
jne 0x14005b1f8
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call fcn.140051970
movzx eax, al
test eax, eax
jne 0x14005b1f8
xor al, al
jmp 0x14005b34b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x140136518]
mov r8, 0xfffffffffffffff7
mov edx, 0x20006
lea rcx, [rsp + 0x48]
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
jge 0x14005b237
jmp 0x14005b336
lea rax, [rsp + 0x80]
lea rcx, str.A_ProcessHacker
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1e
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 0xf
lea rax, [rsp + rax + 0x80]
mov edx, 0x10
mov rcx, rax
call sym.ProcessHacker.exe_PhGenerateRandomAlphaString
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140020210
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140027730
mov dl, 1
mov rcx, qword [rsp + 0xe8]
call fcn.14003b540
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rsp + 0x50]
call sym.ProcessHacker.exe_PhDereferenceObject
movzx eax, byte [sym.ProcessHacker.exe_PhElevated]
test eax, eax
jne 0x14005b2fa
mov dword [rsp + 0x44], 1
jmp 0x14005b302
mov dword [rsp + 0x44], 0
movzx r8d, byte [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.14005aeb0
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
movzx eax, byte [sym.ProcessHacker.exe_PhElevated]
test eax, eax
jne 0x14005b346
call fcn.140051ad0
movzx eax, byte [rsp + 0x40]
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14006e910
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x38
cmp qword [0x14013bdb0], 0
jne 0x14006e96c
mov qword [rsp + 0x20], 0
lea r9, [0x14006ebd0]
mov r8, qword [sym.ProcessHacker.exe_PhMainWndHandle]
mov edx, 0xb2
mov rcx, qword [0x140140cd0]
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov qword [0x14013bdb0], rax
mov rcx, qword [0x14013bdb0]
call sym.ProcessHacker.exe_PhRegisterDialog
mov edx, 5
mov rcx, qword [0x14013bdb0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14013bdb0]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x14006e991
mov edx, 9
mov rcx, qword [0x14013bdb0]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14006e99e
mov rcx, qword [0x14013bdb0]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
add rsp, 0x38
ret
Function at 0x14006fe20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x98
call fcn.1400cdef0
mov eax, dword [0x140140c80]
shr eax, 1
and eax, 1
test eax, eax
jne 0x14006ffde
cmp qword [0x140140c88], 0
je 0x14006fe65
xor edx, edx
mov rax, qword [0x140140c88]
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhGetFullPath
mov qword [0x14013bdb8], rax
cmp qword [0x14013bdb8], 0
jne 0x14006feb8
mov rax, qword [0x140140c70]
lea rdx, [0x140136678]
mov rcx, rax
call sym.ProcessHacker.exe_PhConcatStringRef2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
movzx eax, al
test eax, eax
je 0x14006feae
mov rax, qword [rsp + 0x58]
mov qword [0x14013bdb8], rax
jmp 0x14006feb8
mov rcx, qword [rsp + 0x58]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp qword [0x14013bdb8], 0
jne 0x14006feda
lea rdx, str.Process_Hacker_2_settings.xml
mov ecx, 0x1a
call sym.ProcessHacker.exe_PhGetKnownLocation
mov qword [0x14013bdb8], rax
cmp qword [0x14013bdb8], 0
je 0x14006ffde
mov rax, qword [0x14013bdb8]
mov rcx, qword [rax + 8]
call fcn.1400cf910
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xc0000102
jne 0x14006ffde
lea r8, str.Process_Hackers_settings_file_is_corrupt._Do_you_want_to_reset_it__nIf_you_select_No__the_settings_system_will_not_function_properly.
mov edx, 0x34
xor ecx, ecx
call sym.ProcessHacker.exe_PhShowMessage
cmp eax, 6
jne 0x14006ffc7
lea rax, [rsp + 0x78]
lea rcx, str._settings___settings_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x16
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0x60
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 5
xor r9d, r9d
mov r8d, 0x120116
mov rax, qword [0x14013bdb8]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x60]
call sym.ProcessHacker.exe_PhCreateFileWin32
test eax, eax
jl 0x14006ffc5
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14006ffde
mov rcx, qword [0x14013bdb8]
call sym.ProcessHacker.exe_PhDereferenceObject
mov qword [0x14013bdb8], 0
lea rcx, str.MaxSizeUnit
call sym.ProcessHacker.exe_PhGetIntegerSetting
mov dword [0x140139dc0], eax
lea rcx, str.SampleCountAutomatic
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140070038
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x800
jbe 0x140070028
mov dword [rsp + 0x50], 0x800
mov edx, dword [rsp + 0x50]
lea rcx, str.SampleCount
call sym.ProcessHacker.exe_PhSetIntegerSetting
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x1400734b0
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
sub rsp, 0x28
movzx eax, byte [0x14013bdee]
test eax, eax
je 0x1400734e0
mov edx, 3
mov rcx, qword [sym.ProcessHacker.exe_PhMainWndHandle]
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x14013bdee], 0
add rsp, 0x28
ret
Function at 0x14007e8e0
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov edx, 0x170
mov ecx, 9
call fcn.140061f60
mov rcx, rax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x170
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.140067580
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x58]
test eax, eax
je 0x14007e987
cmp dword [rsp + 0x60], 1
je 0x14007e987
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov rcx, qword [rsp + 0x30]
add rcx, 0x40
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x28], 0
mov edi, dword [0x140140314]
mov dword [rsp + 0x20], edi
mov r9d, 1
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, rax
call fcn.140067800
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x58], rcx
mov rcx, qword [rsp + 0x58]
call sym.ProcessHacker.exe_PhReferenceObject
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov rdi, rax
xor eax, eax
mov ecx, 0xd0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x28], 0xd
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x48]
call sym.ProcessHacker.exe_PhAddEntryHashtable
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x50]
call sym.ProcessHacker.exe_PhAddItemList
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov ecx, 9
call fcn.140061fb0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x404
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x140087cf0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
add rsp, 0x38
ret

Function at 0x140087d30
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov r9d, 0x10
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryMutant]
add rsp, 0x38
ret