joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e2b0
Capabilities:
Lock the desktop

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x14003e2cb
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 0x14003e2e3
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14003e2ea
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 0x14003e31a
lea r8, [0x140124fc0]
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 0x14003e345
call fcn.1400258b0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e360
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 0x14003e37f
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 0x14003e397
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14003e39e
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 0x14003e3ce
lea r8, [0x140124fc0]
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 0x14003e3f9
call fcn.1400258b0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003e4b0
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 0x14003e4f5
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 0x14003e588
or ebx, 2
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x14003e513
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 0x14003e526
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14003e52d
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 0x14003e55d
lea r8, [0x140124fc0]
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 0x14003e588
call fcn.1400258b0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e5a0
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 0x14003e5e5
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 0x14003e689
mov ecx, ebx
xor edx, edx
or ecx, 8
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x14003e603
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 0x14003e5f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14003e627
xor ecx, ecx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x14003e62e
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 0x14003e65e
lea r8, [0x140124fc0]
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 0x14003e689
call fcn.1400258b0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003f210
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 0x14003f292
cmp qword [0x14015a2a8], 0
mov rdi, qword [rsp + 0x20]
je 0x14003f26e
mov edx, 1
mov rcx, rdi
call fcn.140019770
mov ebx, eax
cmp eax, 0xc00000bb
jne 0x14003f27e
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 0x14003f2e4
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 0x14003f2be
mov r9d, dword [rsi + 0x20]
lea rcx, str.Unable_to__s__s__PID__u_
call sym.ProcessHacker.exe_PhaFormatString
jmp 0x14003f2ca
lea rcx, str.Unable_to__s__s
call sym.ProcessHacker.exe_PhaFormatString
mov rdx, qword [rax + 8]
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x14003f373
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 0x14003f34a
cmp qword [rbx + 0x58], rax
jne 0x14003f34a
call sym.ProcessHacker.exe_PhReferenceProcessItem
mov rdi, rax
test rax, rax
je 0x14003f34a
mov rcx, qword [rsi + 0x40]
cmp qword [rax + 0x40], rcx
jl 0x14003f335
mov r9, qword [rsp + 0x78]
mov rdx, rax
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.14003f210
test al, al
je 0x14003f360
lea rcx, [rdi - 0x10]
mov eax, ebp
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003f34a
call fcn.1400258b0
mov eax, dword [rbx]
test eax, eax
je 0x14003f355
add rbx, rax
jne 0x14003f2f0
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 0x14003f373
call fcn.1400258b0
xor al, al
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400412b0
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 0x14004133c
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 0x14004133c
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 0x140041412
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140041351
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.14003ddf0
test al, al
je 0x1400413e5
cmp byte [rsp + 0x48], 0
je 0x140041412
mov rcx, qword [rsi + 0x10]
mov edx, r15d
mov rcx, qword [rcx + 8]
call fcn.14009b150
mov edi, eax
test eax, eax
js 0x1400413b1
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140041412
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x140041412
mov r8, qword [rsi + 0x10]
lea rdx, str.start
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x140041430
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 0x1400414c0
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 0x1400414c0
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 0x140041598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400414d5
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.14003ddf0
test al, al
je 0x14004156b
cmp byte [rsp + 0x68], 0
je 0x140041598
mov rcx, qword [rsi + 0x10]
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.14009b150
mov edi, eax
test eax, eax
js 0x140041537
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140041598
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x140041598
mov r8, qword [rsi + 0x10]
lea rdx, str.continue
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x1400415c0
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 0x140041650
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 0x140041650
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 0x140041728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140041665
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.14003ddf0
test al, al
je 0x1400416fb
cmp byte [rsp + 0x68], 0
je 0x140041728
mov rcx, qword [rsi + 0x10]
mov edx, 3
mov rcx, qword [rcx + 8]
call fcn.14009b150
mov edi, eax
test eax, eax
js 0x1400416c7
movzx ebx, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140041728
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x140041728
mov r8, qword [rsi + 0x10]
lea rdx, str.pause
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x1400418e0
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, [0x140128048]
mov r14, rcx
xor dil, dil
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhShowConfirmMessage
test al, al
jne 0x14004191f
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 0x140041999
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 0x140041999
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 0x140041a71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400419ae
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.14003ddf0
test al, al
je 0x140041a44
cmp byte [rsp + 0x58], 0
je 0x140041a71
mov rcx, qword [rsi + 0x10]
mov edx, 5
mov rcx, qword [rcx + 8]
call fcn.14009b150
mov ebx, eax
test eax, eax
js 0x140041a10
movzx edi, r15b
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140041a71
mov r8, qword [rsi + 0x10]
lea rdx, [0x140128048]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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 0x140041a71
mov r8, qword [rsi + 0x10]
lea rdx, [0x140128048]
lea rcx, str.Unable_to__s__s
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhaFormatString
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
Function at 0x140042200
Capabilities:
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rdi, rdx
xor r15b, r15b
xor edx, edx
mov r12d, r8d
mov r13, rcx
mov sil, 1
mov r14d, edx
test r8d, r8d
je 0x140042451
mov qword [rsp + 0x1b0], rbx
nop dword [rax]
mov rax, qword [rdi]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x1400422b6
mov dword [rsp + 0x48], edx
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x18
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 2
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov dword [rsp + 0x28], 0x99992193
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x1400422ed
mov qword [rbp - 0x80], rdx
lea r9, [rsp + 0x50]
mov dword [rbp - 0x70], edx
lea r8, [rsp + 0x78]
mov qword [rbp - 0x78], rdx
lea rcx, [rbp + 0xc8]
xorps xmm0, xmm0
mov dword [rsp + 0x78], 0x30
mov edx, 2
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
mov ebx, eax
test eax, eax
js 0x140042319
mov rcx, qword [rbp + 0xc8]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSuspendThread]
mov rcx, qword [rbp + 0xc8]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14004241d
xor sil, sil
test r15b, r15b
jne 0x1400423ee
mov rax, qword [rdi]
lea rcx, str.Unable_to_suspend_thread__u
mov edx, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
lea r9, [rbp + 0xc0]
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call fcn.14003ddf0
test al, al
je 0x1400423ee
cmp byte [rbp + 0xc0], r15b
je 0x1400423e9
mov rcx, qword [0x14015e640]
test rcx, rcx
jne 0x1400423a4
mov ebx, 0xc0000037
mov rax, qword [rdi]
lea rdx, str.suspend
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowContinueStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14004241d
mov rax, qword [rdi]
lea r8, [rbp - 0x40]
mov dword [rbp - 0x18], 0xa
mov qword [rbp - 8], 2
mov qword [rbp - 0x40], 0xb00088
mov rdx, qword [rax]
mov qword [rbp - 0x10], rdx
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov ebx, dword [rbp - 0x14]
test eax, eax
cmovs ebx, eax
test ebx, ebx
js 0x140042372
mov sil, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14004241d
mov r15b, 1
jmp 0x14004241d
mov rax, qword [rdi]
lea rdx, str.suspend
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x140042432
inc r14d
add rdi, 8
mov edx, 0
cmp r14d, r12d
jb 0x140042240
mov rbx, qword [rsp + 0x1b0]
movzx eax, sil
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, sil
jmp 0x14004243e
Function at 0x140042460
Capabilities:
Resume thread

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rdi, rdx
xor r15b, r15b
xor edx, edx
mov r12d, r8d
mov r13, rcx
mov sil, 1
mov r14d, edx
test r8d, r8d
je 0x1400426b1
mov qword [rsp + 0x1b0], rbx
nop dword [rax]
mov rax, qword [rdi]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rcx, qword [0x14015a2a8]
test rcx, rcx
je 0x140042516
mov dword [rsp + 0x48], edx
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x18
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 2
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov dword [rsp + 0x28], 0x99992193
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
jmp 0x14004254d
mov qword [rbp - 0x80], rdx
lea r9, [rsp + 0x50]
mov dword [rbp - 0x70], edx
lea r8, [rsp + 0x78]
mov qword [rbp - 0x78], rdx
lea rcx, [rbp + 0xc8]
xorps xmm0, xmm0
mov dword [rsp + 0x78], 0x30
mov edx, 2
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenThread]
mov ebx, eax
test eax, eax
js 0x140042579
mov rcx, qword [rbp + 0xc8]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtResumeThread]
mov rcx, qword [rbp + 0xc8]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x14004267d
xor sil, sil
test r15b, r15b
jne 0x14004264e
mov rax, qword [rdi]
lea rcx, str.Unable_to_resume_thread__u
mov edx, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
lea r9, [rbp + 0xc0]
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call fcn.14003ddf0
test al, al
je 0x14004264e
cmp byte [rbp + 0xc0], r15b
je 0x140042649
mov rcx, qword [0x14015e640]
test rcx, rcx
jne 0x140042604
mov ebx, 0xc0000037
mov rax, qword [rdi]
lea rdx, str.resume
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowContinueStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14004267d
mov rax, qword [rdi]
lea r8, [rbp - 0x40]
mov dword [rbp - 0x18], 0xa
mov qword [rbp - 8], 3
mov qword [rbp - 0x40], 0xb00088
mov rdx, qword [rax]
mov qword [rbp - 0x10], rdx
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
mov ebx, dword [rbp - 0x14]
test eax, eax
cmovs ebx, eax
test ebx, ebx
js 0x1400425d2
mov sil, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x14004267d
mov r15b, 1
jmp 0x14004267d
mov rax, qword [rdi]
lea rdx, str.resume
lea rcx, str.Unable_to__s_thread__u
mov r8d, dword [rax]
call sym.ProcessHacker.exe_PhaFormatString
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
mov rdx, qword [rax + 8]
call sym.ProcessHacker.exe_PhShowContinueStatus
test al, al
je 0x140042692
inc r14d
add rdi, 8
mov edx, 0
cmp r14d, r12d
jb 0x1400424a0
mov rbx, qword [rsp + 0x1b0]
movzx eax, sil
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, sil
jmp 0x14004269e