joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e140
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140077268]
mov rbx, rax
test rax, rax
jne 0x14002e2cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140027980
nop
lea r8, [0x140077690]
cmp qword [0x1400776a8], 8
cmovae r8, qword [0x140077690]
mov r9, qword [0x1400776a0]
mov rcx, rax
call fcn.140006510
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140077470]
cmp qword [0x140077488], 8
cmovae r8, qword [0x140077470]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002e275
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e270
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e316
call fcn.140031110
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14002e2c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e2c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e310
call fcn.140031110
xor al, al
jmp 0x14002e2ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400310f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140037b64
nop
call fcn.140037b64
nop
int3
Function at 0x14002e4c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140074048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x14002e500
lea rdx, [rcx + 0x60]
mov rcx, rdi
call fcn.140011ac0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002e50d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002e5cb
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002e529
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14002e5cb
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002e5c1
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400313d0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140033280
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002e5b9
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140031110
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002e606
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002e601
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002e63a
mov rcx, r8
call fcn.140031110
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400310f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140037b64
int3
Function at 0x140031f00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031f4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031f4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031f4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031f4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140031f4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140031f4c
xor al, al
add rsp, 0x28
ret

Function at 0x14003bc1c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003baaf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003baaf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003baaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003baaf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003baaf
cmp dword [rcx + 0x84], 0xe
jbe 0x14003baaf
cmp dword [rcx + 0xf8], 0
je 0x14003baaf
mov ecx, ebx
call fcn.14003bb50
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003b940
cmp dword [rbp + 0x20], 0
je 0x14003bafc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003bb04
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003ba48
Function at 0x140053570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001c00
Capabilities:
Lock the desktop

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x140001c1b
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001c33
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140001c3a
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_lock_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001c6a
lea r8, [0x1401345d8]
call sym.ProcessHacker.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001c95
call fcn.1400ae580
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001cb0
Capabilities:
Shutdown system

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001ccf
mov al, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001ce7
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140001cee
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_log_off_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001d1e
lea r8, [0x1401345d8]
call sym.ProcessHacker.exe_PhShowMessage
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001d49
call fcn.1400ae580
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001e00
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140001e45
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, rdi
lea rdx, str.restart
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x140001ed8
or ebx, 2
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001e63
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001e76
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140001e7d
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_restart_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001ead
lea r8, [0x1401345d8]
call sym.ProcessHacker.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001ed8
call fcn.1400ae580
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140001ef0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140001f35
xor r9d, r9d
mov byte [rsp + 0x20], 0
lea r8, str.the_computer
mov rcx, rdi
lea rdx, str.shut_down
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
je 0x140001fd9
mov ecx, ebx
xor edx, edx
or ecx, 8
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140001f53
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 1
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140001f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001f77
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140001f7e
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_shut_down_the_computer
mov rbx, rax
mov edx, 0x10
mov rcx, rdi
test rax, rax
jne 0x140001fae
lea r8, [0x1401345d8]
call sym.ProcessHacker.exe_PhShowMessage
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
lea r8, str._s:__s
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
sub eax, 1
jne 0x140001fd9
call fcn.1400ae580
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002b60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov r8, qword [rdx + 0x20]
mov rsi, rdx
mov rdi, rcx
mov edx, 1
lea rcx, [rsp + 0x20]
mov rbp, r9
call sym.ProcessHacker.exe_PhOpenProcess
mov ebx, eax
test eax, eax
js 0x140002be2
cmp qword [0x14015c480], 0
mov rdi, qword [rsp + 0x20]
je 0x140002bbe
mov edx, 1
mov rcx, rdi
call fcn.1400c00e0
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x140002bce
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140002c34
mov rdi, qword [rsp + 0x60]
cmp qword [rsi + 0x20], 0
lea rdx, str.terminate
mov r8, qword [rsi + 0x30]
mov byte [rbp], 0
mov r8, qword [r8 + 8]
jl 0x140002c0e
mov r9d, dword [rsi + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call fcn.1400015b0
jmp 0x140002c1a
lea rcx, str.Unable_to__s__s
call fcn.1400015b0
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x140002cc3
mov rbx, qword [rsp + 0x70]
or ebp, 0xffffffff
nop dword [rax]
mov rcx, qword [rbx + 0x50]
mov rax, qword [rsi + 0x20]
cmp rcx, rax
je 0x140002c9a
cmp qword [rbx + 0x58], rax
jne 0x140002c9a
call sym.ProcessHacker.exe_PhReferenceProcessItem
mov rdi, rax
test rax, rax
je 0x140002c9a
mov rcx, qword [rsi + 0x40]
cmp qword [rax + 0x40], rcx
jl 0x140002c85
mov r9, qword [rsp + 0x78]
mov rdx, rax
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.140002b60
test al, al
je 0x140002cb0
lea rcx, [rdi - 0x10]
mov eax, ebp
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140002c9a
call fcn.1400ae580
mov eax, dword [rbx]
test eax, eax
je 0x140002ca5
add rbx, rax
jne 0x140002c40
mov al, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rdi - 0x10]
lock xadd dword [rcx + 8], ebp
cmp ebp, 1
jne 0x140002cc3
call fcn.1400ae580
xor al, al
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004750
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400047dc
lea r8d, [r15 + 0xf]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x1400047dc
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x1400048b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400047f1
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_start
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x48]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001740
test al, al
je 0x140004885
cmp byte [rsp + 0x48], 0
je 0x1400048b2
mov rcx, qword [rsi + 0x10]
mov edx, r15d
mov rcx, qword [rcx + 8]
call fcn.1400600b0
mov edi, eax
test eax, eax
js 0x140004851
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x1400048b2
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x1400048b2
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400048d0
Capabilities:
Pause service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004960
lea r8d, [r15 + 0x3f]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004960
lea r8, [rsp + 0x20]
mov rcx, rbp
lea edx, [r15 + 2]
call qword [sym.imp.ADVAPI32.dll_ControlService]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x140004a38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140004975
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_continue
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001740
test al, al
je 0x140004a0b
cmp byte [rsp + 0x68], 0
je 0x140004a38
mov rcx, qword [rsi + 0x10]
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.1400600b0
mov edi, eax
test eax, eax
js 0x1400049d7
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004a38
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004a38
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
mov rbp, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140004a60
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r14, rcx
mov r15d, 1
mov r8d, r15d
xor edx, edx
xor ecx, ecx
xor bl, bl
mov rbp, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004af0
lea r8d, [r15 + 0x3f]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004af0
lea r8, [rsp + 0x20]
mov rcx, rbp
lea edx, [r15 + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
movzx ebx, bl
mov rcx, rbp
test eax, eax
cmovne ebx, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
jne 0x140004bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140004b05
movzx edi, ax
or edi, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_pause
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x68]
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001740
test al, al
je 0x140004b9b
cmp byte [rsp + 0x68], 0
je 0x140004bc8
mov rcx, qword [rsi + 0x10]
mov edx, 3
mov rcx, qword [rcx + 8]
call fcn.1400600b0
mov edi, eax
test eax, eax
js 0x140004b67
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004bc8
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004bc8
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, edi
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
mov rbp, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140004d80
Capabilities:
Delete service

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov r8, qword [rdx + 0x10]
lea r9, str.Deleting_a_service_can_prevent_the_system_from_starting_or_functioning_properly.
mov rsi, rdx
mov byte [rsp + 0x20], 1
lea rdx, [0x14010ce98]
mov r14, rcx
xor dil, dil
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
jne 0x140004dbf
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x10]
xor edx, edx
mov qword [rsp + 0x50], rbx
xor ecx, ecx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r15
mov r15d, 1
mov rbp, qword [rax + 8]
mov r8d, r15d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140004e39
mov r8d, 0x10000
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbp, rbp
je 0x140004e39
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movzx edi, dil
mov rcx, rbp
test eax, eax
cmovne edi, r15d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test dil, dil
jne 0x140004f11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140004e4e
movzx ebx, ax
or ebx, 0xc0070000
mov rax, qword [rsi + 0x10]
lea rcx, str.Unable_to_delete
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call fcn.140001740
test al, al
je 0x140004ee4
cmp byte [rsp + 0x58], 0
je 0x140004f11
mov rcx, qword [rsi + 0x10]
mov edx, 5
mov rcx, qword [rcx + 8]
call fcn.1400600b0
mov ebx, eax
test eax, eax
js 0x140004eb0
movzx edi, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004f11
mov r8, qword [rsi + 0x10]
lea rdx, [0x14010ce98]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140004f11
mov r8, qword [rsi + 0x10]
lea rdx, [0x14010ce98]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call fcn.1400015b0
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowStatus
mov r15, qword [rsp + 0x68]
movzx eax, dil
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret