joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400399c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x68
cmp qword [rsp + 0x88], 0
je 0x140039a15
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x1400399f0
mov rax, qword [rsp + 0x38]
shl rax, 1
mov qword [rsp + 0x40], rax
jmp 0x140039a1e
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
add rax, 0x208
mov rdx, rax
xor ecx, ecx
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x140039ad2
mov rcx, qword [rsp + 0x30]
call fcn.140009bb0
cmp qword [rsp + 0x88], 0
je 0x140039acb
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
lea rax, [rcx + rax*2]
mov rdi, rax
mov rsi, qword [rsp + 0x88]
mov rax, qword [rsp + 0x50]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
jmp 0x140039ade
mov rcx, qword [rsp + 0x30]
call sym.ProcessHacker.exe_PhDereferenceObject
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140039af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
xor eax, eax
cmp eax, 1
je 0x140039c03
mov dword [rsp + 0x20], 0x1cbf
mov r9d, dword [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x88]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140039b6f
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x30], eax
jge 0x140039b6f
mov eax, dword [rsp + 0x30]
jmp 0x140039c03
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x30], eax
jne 0x140039bbb
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140039bb9
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140039b7c
jmp 0x140039bc1
mov eax, dword [rsp + 0x30]
jmp 0x140039c03
cmp dword [rsp + 0x98], 0xffffffff
je 0x140039bfe
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140039bfe
mov eax, 0x102
jmp 0x140039c03
jmp 0x140039b1c
add rsp, 0x78
ret
Function at 0x14003a110
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x138], 0
je 0x14003a153
mov rcx, qword [rsp + 0x138]
call sym.ProcessHacker.exe_PhCreateString
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x64], 0
mov r9d, 4
lea r8, [0x14010e098]
mov edx, dword [rsp + 0x158]
lea rcx, [rsp + 0x64]
call sym.ProcessHacker.exe_PhMapFlags1
cmp qword [rsp + 0x150], 0
je 0x14003a1a0
lea rax, [rsp + 0xa0]
mov rdi, rax
mov rsi, qword [rsp + 0x150]
mov ecx, 0x68
rep movsb byte [rdi], byte [rsi]
jmp 0x14003a1bf
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xa0], 0x68
cmp qword [rsp + 0x160], 0
jne 0x14003a26f
mov eax, dword [rsp + 0x158]
and eax, 1
test eax, eax
je 0x14003a1e6
mov dword [rsp + 0x78], 1
jmp 0x14003a1ee
mov dword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x70]
call fcn.1400360e0
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003a261
mov dword [rsp + 0x60], 0
jmp 0x14003a26a
call fcn.140021c20
mov dword [rsp + 0x60], eax
jmp 0x14003a319
mov eax, dword [rsp + 0x158]
and eax, 1
test eax, eax
je 0x14003a287
mov dword [rsp + 0x68], 1
jmp 0x14003a28f
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x70]
call fcn.1400360e0
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14003a310
mov dword [rsp + 0x60], 0
jmp 0x14003a319
call fcn.140021c20
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0x70], 0
je 0x14003a32b
mov rcx, qword [rsp + 0x70]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp dword [rsp + 0x60], 0
jl 0x14003a357
mov r9, qword [rsp + 0x178]
mov r8, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x80]
call fcn.14003a060
mov eax, dword [rsp + 0x60]
add rsp, 0x118
pop rdi
pop rsi
ret
Function at 0x14003b230
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov dword [rsp + 0x20], 0x70
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 5
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
add rsp, 0x90
pop rdi
ret

Function at 0x14003b2b0
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x40
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xd0]
and eax, 1
test eax, eax
je 0x14003b342
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14003b342
lea rax, str.runas
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14003b3e3
cmp dword [rsp + 0xd8], 0
je 0x14003b3af
mov eax, dword [rsp + 0xd0]
and eax, 2
test eax, eax
jne 0x14003b393
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0x20]
call fcn.1400360a0
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x14003b3af
mov r9d, dword [rsp + 0xd8]
lea r8, [rsp + 0x98]
mov edx, 1
xor ecx, ecx
call sym.ProcessHacker.exe_PhWaitForMultipleObjectsAndPump
cmp qword [rsp + 0xe0], 0
je 0x14003b3cf
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
jmp 0x14003b3dd
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x14003b3e5
xor al, al
add rsp, 0xa0
pop rdi
ret

Function at 0x14003b4c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov dword [rsp + 0x20], 0x70
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x24], 0xc
lea rax, str.properties
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
add rsp, 0x90
pop rdi
ret
Function at 0x14003b6e0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [0x140136220]
mov r8, 0xfffffffffffffff7
mov edx, 0x20006
lea rcx, [rsp + 0x50]
call sym.ProcessHacker.exe_PhCreateKey
test eax, eax
jge 0x14003b72d
jmp 0x14003b83b
lea rdx, str.LastKey
lea rcx, [rsp + 0x58]
call fcn.140020210
mov dl, 1
mov rcx, qword [rsp + 0x88]
call fcn.14003b540
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rsp + 0x48]
call sym.ProcessHacker.exe_PhDereferenceObject
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
lea rdx, str._regedit.exe
mov ecx, 0x24
call sym.ProcessHacker.exe_PhGetKnownLocation
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14003b7cb
lea rcx, str.regedit.exe
call sym.ProcessHacker.exe_PhCreateString
mov qword [rsp + 0x40], rax
movzx eax, byte [sym.ProcessHacker.exe_PhElevated]
test eax, eax
jne 0x14003b814
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8, [0x140110d6c]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhShellExecuteEx
jmp 0x14003b831
lea r8, [0x140110d6c]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhShellExecute
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhDereferenceObject
add rsp, 0x78
ret

Function at 0x14003b840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x34], 0x10
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140020210
mov dword [rsp + 0x30], 0x100
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14003b8b7
jmp 0x14003b8fc
cmp dword [rsp + 0x38], 0x80000005
jne 0x14003b8dd
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x30]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x40], rax
jmp 0x14003b8eb
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhFree
xor eax, eax
jmp 0x14003b901
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14003b87d
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x14003d660
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp dword [rsp + 0x88], 0
jne 0x14003d68c
mov dword [rsp + 0x88], 0x3b
cmp dword [rsp + 0x90], 0
jne 0x14003d6a1
mov dword [rsp + 0x90], 3
mov eax, dword [0x1401344bc]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14003d7ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14003d7b9
mov rcx, qword [rsp + 0x60]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14003d7ce
mov rcx, qword [rsp + 0x60]
call sym.ProcessHacker.exe_PhFree
xor eax, eax
jmp 0x14003d7f5
cmp dword [rsp + 0x50], 0x10000
ja 0x14003d7e2
mov eax, dword [rsp + 0x50]
mov dword [0x1401344bc], eax
mov rax, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x5c]
mov dword [rax], ecx
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret

Function at 0x14003da80
Capabilities:
Modify service

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, byte [rsp + 0x48]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x14003dab9
mov dword [rsp + 0x20], 1
jmp 0x14003dac1
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14003fd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
cmp qword [rax + 8], 0
jne 0x14003fd41
mov eax, 0xc000000d
jmp 0x14003fe58
mov dword [rsp + 0x20], 0
lea r9, [0x1401363f0]
mov r8, 0xfffffffffffffffd
mov edx, 0x20019
lea rcx, [rsp + 0x38]
call sym.ProcessHacker.exe_PhOpenKey
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14003fd7a
mov eax, dword [rsp + 0x30]
jmp 0x14003fe58
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x30], 0xc0000034
jne 0x14003fdcb
mov eax, 0xc0000361
jmp 0x14003fe58
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14003fdf3
mov eax, dword [rsp + 0x30]
jmp 0x14003fe58
lea rdx, str.OutOfProcessFunctionTableCallback
lea rcx, [rsp + 0x50]
call fcn.14003de10
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14003fe49
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x14004f8a0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, str.wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
lea rcx, str.crypt32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d68], rax
lea rdx, str.CryptCATAdminCalcHashFromFileHandle2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d78], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d20], rax
lea rdx, str.CryptCATAdminAcquireContext2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d58], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d30], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d38], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d70], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d48], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d18], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d40], rax
lea rdx, str.WinVerifyTrust
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d28], rax
lea rdx, str.CertNameToStrW
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d80], rax
lea rdx, str.CertDuplicateCertificateContext
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d60], rax
lea rdx, str.CertFreeCertificateContext
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140140d50], rax
add rsp, 0x38
ret

Function at 0x140051b10
Capabilities:
Lock the desktop

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
call qword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x140051b29
mov al, 1
jmp 0x140051b48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.Unable_to_lock_the_computer
mov rcx, qword [rsp + 0x30]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
add rsp, 0x28
ret
Function at 0x140051b50
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140051b6d
mov al, 1
jmp 0x140051b8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.Unable_to_logoff_the_computer
mov rcx, qword [rsp + 0x30]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
add rsp, 0x28
ret

Function at 0x140051c40
Capabilities:
Shutdown system

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140051c84
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.restart
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x140051cbc
mov eax, dword [rsp + 0x48]
or eax, 2
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140051c9f
mov al, 1
jmp 0x140051cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.Unable_to_restart_the_computer
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
add rsp, 0x38
ret

Function at 0x140051cd0
Capabilities:
Shutdown system

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x140051d14
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.shutdown
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
je 0x140051d67
mov eax, dword [rsp + 0x48]
or eax, 8
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140051d2f
mov al, 1
jmp 0x140051d69
mov eax, dword [rsp + 0x48]
or eax, 1
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140051d4a
mov al, 1
jmp 0x140051d69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.Unable_to_shutdown_the_computer
mov rcx, qword [rsp + 0x40]
call sym.ProcessHacker.exe_PhShowStatus
xor al, al
add rsp, 0x38
ret
Function at 0x140053c20
Capabilities:
Start 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 edx, 0x10
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhOpenService
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140053c7b
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140053c70
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 0x140053d48
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_start
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 0x140053d25
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x140053d23
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
mov edx, 1
mov rcx, qword [rax + 8]
call fcn.1400a8b00
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140053cfb
mov byte [rsp + 0x30], 1
jmp 0x140053d1e
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
lea rdx, str.start
mov rcx, qword [rsp + 0x50]
call fcn.140053bc0
call fcn.140051ad0
jmp 0x140053d48
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
lea rdx, str.start
mov rcx, qword [rsp + 0x50]
call fcn.140053bc0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret