joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017670
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140148c50
push rbx
push rsi
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x20]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8d, 0x31
lea rdx, [rsp + 0x78]
mov ecx, 0x69
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x140148cc6
mov dword [rsp + 0x64], 0x30
mov eax, dword [rsp + 0x64]
mov edx, eax
lea rcx, [rsp + 0x78]
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Ex
mov qword [rsp + 0x28], rax
jmp 0x140148d91
mov eax, 4
imul rax, rax, 0
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x110], rax
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x110]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov eax, 4
imul rax, rax, 4
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x118], rax
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x118]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov eax, 4
imul rax, rax, 8
lea rax, [rsp + rax + 0xc8]
mov qword [rsp + 0x120], rax
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov r8, qword [rsp + 0x120]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov dword [rsp + 0x64], 0x30
mov eax, dword [rsp + 0x64]
mov edx, eax
lea rcx, [rsp + 0xc8]
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Ex
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140016ad0
lea rax, [rsp + 0x48]
mov rdi, rax
mov rsi, qword [rsp + 0x28]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8d, 2
lea rdx, [0x1405d59e0]
lea rcx, [rsp + 0x48]
call sym.ProcessHacker.exe_PhTrimStringRef
lea rcx, [rsp + 0x48]
call fcn.1400070e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400040d0
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404d1e00]
call fcn.140015750
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret

Function at 0x140017750
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1402a11d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1402a1248
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1402a1248
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1402a1248
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1402a123c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1402a125a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1402a122a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1402a124a
Function at 0x1400177c0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1401be0e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x460
lea rdi, [rsp + 0x20]
mov ecx, 0x110
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x470]
xor eax, eax
mov word [rsp + 0x454], ax
mov rax, qword [rsp + 0x470]
movzx eax, word [rax]
cmp eax, 0x14
jge 0x1401be136
mov rax, qword [rsp + 0x470]
movzx eax, word [rax + 2]
cmp eax, 0x40
jl 0x1401be14d
mov eax, 0xffff
mov rcx, qword [rsp + 0x478]
mov word [rcx], ax
xor al, al
jmp 0x1401be227
xor r9d, r9d
mov r8d, 0x408
lea rdx, [rsp + 0x40]
mov ecx, 0x37
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1401be188
mov eax, 0xffff
mov rcx, qword [rsp + 0x478]
mov word [rcx], ax
xor al, al
jmp 0x1401be227
movzx eax, word [rsp + 0x454]
imul rax, rax, 0x10
movzx eax, word [rsp + rax + 0x50]
mov rcx, qword [rsp + 0x470]
movzx ecx, word [rcx]
cmp eax, ecx
jne 0x1401be1d8
movzx eax, word [rsp + 0x454]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x470]
movzx ecx, word [rcx + 2]
mov edx, 1
shl rdx, cl
mov rcx, rdx
mov rax, qword [rsp + rax + 0x48]
and rax, rcx
test rax, rax
jne 0x1401be212
movzx eax, word [rsp + 0x454]
inc ax
mov word [rsp + 0x454], ax
movzx eax, word [rsp + 0x454]
cmp eax, dword [rsp + 0x40]
jbe 0x1401be20d
mov eax, 0xffff
mov rcx, qword [rsp + 0x478]
mov word [rcx], ax
xor al, al
jmp 0x1401be227
jmp 0x1401be188
mov rax, qword [rsp + 0x478]
movzx ecx, word [rsp + 0x454]
mov word [rax], cx
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404f5790]
call fcn.140015750
mov rax, rdi
add rsp, 0x460
pop rdi
ret
Function at 0x140017fd0
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x1402615b0
mov qword [rsp + 8], rcx
push rdi
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x18], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x18], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x18], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x18], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x18], 0xc3d2e1f0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x2c], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x10]
mov dword [rcx + rax + 0x2c], 0
pop rdi
ret
Function at 0x140018180
Capabilities:
Print debug messages

Disassembly:
jmp 0x14036df50
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400186b0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402da120
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402d9a70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402da169
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140613010]
jmp 0x1402da178
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140019270
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1401b9330
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x44], 0x100
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x8000001a
jne 0x1401b93c4
mov dword [rsp + 0x30], 0
jmp 0x1401b9461
cmp dword [rsp + 0x30], 0x80000005
je 0x1401b93d8
cmp dword [rsp + 0x30], 0xc0000023
jne 0x1401b9421
mov rcx, qword [rsp + 0x38]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1401b942a
jmp 0x1401b9461
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x80]
movzx eax, al
test eax, eax
jne 0x1401b944c
jmp 0x1401b9461
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
xor eax, eax
cmp eax, 1
jne 0x1401b937e
mov rcx, qword [rsp + 0x38]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1404f26b0]
call fcn.140015750
mov eax, edi
add rsp, 0x60
pop rdi
ret
Function at 0x140019390
Capabilities:
Delete registry key

Disassembly:
jmp 0x1401c7cd0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
lea rdi, [rsp + 0x30]
mov ecx, 0xd0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x380]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov dword [rsp + 0x30], 0xc0000001
mov qword [rsp + 0x48], 0
mov eax, 0x20
imul rax, rax, 0
mov dword [rsp + rax + 0xa0], 1
mov eax, 0x20
imul rax, rax, 0
lea rax, [rsp + rax + 0xb0]
lea rdx, str.SystemCurrentControlSetServices_
mov rcx, rax
call fcn.140005530
xor eax, eax
test eax, eax
jne 0x1401c7d19
mov eax, 0x20
imul rax, rax, 1
mov dword [rsp + rax + 0xa0], 1
cmp qword [rsp + 0x380], 0
je 0x1401c7d84
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0x360], rax
jmp 0x1401c7d93
lea rax, str.KProcessHacker3
mov qword [rsp + 0x360], rax
mov eax, 0x20
imul rax, rax, 1
lea rax, [rsp + rax + 0xb0]
mov rdx, qword [rsp + 0x360]
mov rcx, rax
call fcn.140005530
xor eax, eax
test eax, eax
jne 0x1401c7d53
mov eax, 0x20
imul rax, rax, 2
mov dword [rsp + rax + 0xa0], 1
mov eax, 0x20
imul rax, rax, 2
lea rax, [rsp + rax + 0xb0]
lea rdx, str.Parameters
mov rcx, rax
call fcn.140005530
xor eax, eax
test eax, eax
jne 0x1401c7dba
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x208
lea r8, [rsp + 0x140]
mov edx, 3
lea rcx, [rsp + 0xa0]
call sym.ProcessHacker.exe_PhFormatToBuffer
movzx eax, al
test eax, eax
jne 0x1401c7e32
mov eax, 0xc0000001
jmp 0x1401c7ef5
lea rax, [rsp + 0x140]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x118]
sub rax, 2
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x380]
call fcn.140008590
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xffff
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x424
jne 0x1401c7e80
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jl 0x1401c7eae
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, 0xfffffffffffffffd
mov edx, 0x10000
lea rcx, [rsp + 0x48]
call sym.ProcessHacker.exe_PhOpenKey
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1401c7ecc
cmp qword [rsp + 0x48], 0
je 0x1401c7ecc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000034
jne 0x1401c7ede
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x48], 0
je 0x1401c7ef1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404fa0d0]
call fcn.140015750
mov rax, rdi
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x370
pop rdi
ret
Function at 0x140019430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x1401707c0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1405e3f04]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1401707ea
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [0x1405e871c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140170811
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
add rsp, 0x30
pop rdi
ret

Function at 0x140019730
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1401b8ef0
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x84], 0x10
cmp qword [rsp + 0xa8], 0
je 0x1401b8f6e
mov rax, qword [rsp + 0xa8]
cmp qword [rax], 0
je 0x1401b8f6e
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xa8]
call fcn.1400117c0
movzx eax, al
test eax, eax
jne 0x1401b8f6c
mov eax, 0xc0000106
jmp 0x1401b903c
jmp 0x1401b8f7d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.14001b520
mov dword [rsp + 0x74], 0x100
mov eax, dword [rsp + 0x74]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0xb0]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1401b8fd4
jmp 0x1401b9028
cmp dword [rsp + 0x30], 0x80000005
jne 0x1401b8ffa
mov rcx, qword [rsp + 0x68]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x74]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x68], rax
jmp 0x1401b900a
mov rcx, qword [rsp + 0x68]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x30]
jmp 0x1401b903c
mov eax, dword [rsp + 0x84]
dec eax
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jne 0x1401b8f95
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404f2530]
call fcn.140015750
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x1400198f0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1401b5e60
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov eax, dword [0x1405d655c]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x38], eax
xor eax, eax
cmp eax, 1
je 0x1401b5f1b
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x64]
mov r8d, 0x10
lea rdx, [rsp + 0x38]
mov ecx, 0x35
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000023
je 0x1401b5efb
cmp dword [rsp + 0x20], 0xc0000004
jne 0x1401b5f17
mov rcx, qword [rsp + 0x58]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x64]
mov ecx, eax
call sym.ProcessHacker.exe_PhAllocate
mov qword [rsp + 0x58], rax
jmp 0x1401b5f19
jmp 0x1401b5f1b
jmp 0x1401b5eaf
cmp dword [rsp + 0x20], 0
jge 0x1401b5f32
mov rcx, qword [rsp + 0x58]
call sym.ProcessHacker.exe_PhFree
mov eax, dword [rsp + 0x20]
jmp 0x1401b5f5a
cmp dword [rsp + 0x64], 0x100000
ja 0x1401b5f46
mov eax, dword [rsp + 0x64]
mov dword [0x1405d655c], eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404f1190]
call fcn.140015750
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x140019af0
Capabilities:
Create service
Delete service
Start service

Disassembly:
jmp 0x1401c8130
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0xa0], 0
jne 0x1401c8169
lea rax, str.KProcessHacker3
mov qword [rsp + 0xa0], rax
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1401c8190
call fcn.140010ff0
jmp 0x1401c82a9
lea rax, [0x1403c77e4]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1401c8291
mov rcx, qword [rsp + 0x80]
call fcn.1400171d0
cmp qword [rsp + 0xb0], 0
je 0x1401c8261
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call fcn.1400089b0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1401c8261
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x1401c8281
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401c8281
call fcn.140010ff0
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1401c829a
call fcn.140010ff0
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
add rsp, 0x90
pop rdi
ret
Function at 0x140019b00
Capabilities:
Shutdown system

Disassembly:
jmp 0x14002dbd0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov dword [rsp + 0x30], 0xc0000001
lea rcx, str.EnableWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002dc26
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.the_computer
lea rdx, str.restart
mov rcx, qword [rsp + 0x90]
call sym.ProcessHacker.exe_PhShowConfirmMessage
movzx eax, al
test eax, eax
jne 0x14002dc26
jmp 0x14002dd54
lea rcx, str.EnableBootObjectsEnumerate
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002dc40
mov dword [rsp + 0x60], 1
jmp 0x14002dc48
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x34], al
lea rcx, str.EnableUpdateDefaultFirmwareBootEntry
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x14002dc6b
mov dword [rsp + 0x64], 1
jmp 0x14002dc73
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x35], al
movzx ecx, byte [rsp + 0x34]
call fcn.140002c00
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14002dced
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x98], eax
jae 0x14002dce3
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov rdi, rax
mov rsi, qword [rsp + 0x40]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
movzx edx, byte [rsp + 0x35]
lea rcx, [rsp + 0x50]
call fcn.140009cf0
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call fcn.140017970
cmp dword [rsp + 0x30], 0
jl 0x14002dd38
mov dword [rsp + 0x20], 0x80000000
mov r9d, 4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14002dd36
mov r9d, dword [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Unable_to_configure_the_boot_application.
mov rcx, qword [rsp + 0x90]
call sym.ProcessHacker.exe_PhShowStatus
jmp 0x14002dd54
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
lea rdx, str.Unable_to_configure_the_boot_application.
mov rcx, qword [rsp + 0x90]
call sym.ProcessHacker.exe_PhShowStatus
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14001a480
Capabilities:
Check os version

Disassembly:
jmp 0x1401a0320
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x20]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov r8d, 0x11c
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400139e0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jge 0x1401a0384
mov dword [0x1405d62d4], 0xffffffff
jmp 0x1401a0619
mov r8d, 0x11c
lea rdx, [rsp + 0x30]
lea rcx, [0x1405e4170]
call fcn.14000d4b0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x154], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x158], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x15c], eax
cmp dword [rsp + 0x154], 6
jne 0x1401a03d0
cmp dword [rsp + 0x158], 1
jb 0x1401a03da
cmp dword [rsp + 0x154], 6
jae 0x1401a03e9
mov dword [0x1405d62d4], 0
jmp 0x1401a0619
cmp dword [rsp + 0x154], 6
jne 0x1401a040c
cmp dword [rsp + 0x158], 1
jne 0x1401a040c
mov dword [0x1405d62d4], 0x3d
jmp 0x1401a0619
cmp dword [rsp + 0x154], 6
jne 0x1401a042f
cmp dword [rsp + 0x158], 2
jne 0x1401a042f
mov dword [0x1405d62d4], 0x3e
jmp 0x1401a0619
cmp dword [rsp + 0x154], 6
jne 0x1401a0452
cmp dword [rsp + 0x158], 3
jne 0x1401a0452
mov dword [0x1405d62d4], 0x3f
jmp 0x1401a0619
cmp dword [rsp + 0x154], 0xa
jne 0x1401a060f
cmp dword [rsp + 0x158], 0
jne 0x1401a060f
cmp dword [rsp + 0x15c], 0x57e4
jb 0x1401a048a
mov dword [0x1405d62d4], 0x72
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x55f0
jb 0x1401a04a6
mov dword [0x1405d62d4], 0x71
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x4a64
jb 0x1401a04c2
mov dword [0x1405d62d4], 0x70
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x4a63
jb 0x1401a04de
mov dword [0x1405d62d4], 0x6f
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x4a62
jb 0x1401a04fa
mov dword [0x1405d62d4], 0x6e
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x4a61
jb 0x1401a0516
mov dword [0x1405d62d4], 0x6d
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x47bb
jb 0x1401a0532
mov dword [0x1405d62d4], 0x6c
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x47ba
jb 0x1401a054e
mov dword [0x1405d62d4], 0x6b
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x4563
jb 0x1401a056a
mov dword [0x1405d62d4], 0x6a
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x42ee
jb 0x1401a0586
mov dword [0x1405d62d4], 0x69
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x3fab
jb 0x1401a059f
mov dword [0x1405d62d4], 0x68
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x3ad7
jb 0x1401a05b8
mov dword [0x1405d62d4], 0x67
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x3839
jb 0x1401a05d1
mov dword [0x1405d62d4], 0x66
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x295a
jb 0x1401a05ea
mov dword [0x1405d62d4], 0x65
jmp 0x1401a060d
cmp dword [rsp + 0x15c], 0x2800
jb 0x1401a0603
mov dword [0x1405d62d4], 0x64
jmp 0x1401a060d
mov dword [0x1405d62d4], 0x64
jmp 0x1401a0619
mov dword [0x1405d62d4], 0xffffffff
mov rcx, rsp
lea rdx, [0x1404e9b20]
call fcn.140015750
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x170
pop rdi
ret