joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801a8b90
Capabilities:
Delete registry value

Disassembly:
jmp 0x1801a8b90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 0
je 0x1801a8bdc
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.180011010
movzx eax, al
test eax, eax
jne 0x1801a8bda
mov eax, 0xc0000106
jmp 0x1801a8c03
jmp 0x1801a8beb
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.18001a850
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c2200]
call fcn.180014e20
mov rax, rdi
add rsp, 0x60
pop rdi
ret

Function at 0x1801a8c30
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x1801a8c30
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.ProcessMonitor.dll_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_NtEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x8000001a
jne 0x1801a8cc4
mov dword [rsp + 0x30], 0
jmp 0x1801a8d61
cmp dword [rsp + 0x30], 0x80000005
je 0x1801a8cd8
cmp dword [rsp + 0x30], 0xc0000023
jne 0x1801a8d21
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_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_NtEnumerateKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1801a8d2a
jmp 0x1801a8d61
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 0x1801a8d4c
jmp 0x1801a8d61
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
xor eax, eax
cmp eax, 1
jne 0x1801a8c7e
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804c2260]
call fcn.180014e20
mov eax, edi
add rsp, 0x60
pop rdi
ret
Function at 0x1801a8d90
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1801a8d90
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.ProcessMonitor.dll_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 0x1801a8e24
mov dword [rsp + 0x30], 0
jmp 0x1801a8ec1
cmp dword [rsp + 0x30], 0x80000005
je 0x1801a8e38
cmp dword [rsp + 0x30], 0xc0000023
jne 0x1801a8e81
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x44]
mov ecx, eax
call sym.ProcessMonitor.dll_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 0x1801a8e8a
jmp 0x1801a8ec1
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 0x1801a8eac
jmp 0x1801a8ec1
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
xor eax, eax
cmp eax, 1
jne 0x1801a8dde
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804c22c0]
call fcn.180014e20
mov eax, edi
add rsp, 0x60
pop rdi
ret
Function at 0x1801abd10
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1801abd10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov byte [rsp + 0x68], 0
mov dword [rsp + 0x40], 0x14
mov eax, dword [rsp + 0x40]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 8
lea rdx, [rsp + 0x90]
mov ecx, 0xe6
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc0000023
jne 0x1801abdec
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 8
lea rdx, [rsp + 0x90]
mov ecx, 0xe6
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x1801abe6f
mov dword [rsp + 0x34], 0xc0000225
mov dword [rsp + 0x64], 0
jmp 0x1801abe0f
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov qword [rsp + 0x70], rax
mov ecx, dword [rsp + 0x54]
xor edx, edx
mov eax, ecx
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
jae 0x1801abe6f
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
shr eax, 0x13
and eax, 1
test eax, eax
je 0x1801abe6d
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
and eax, 0xffff
mov byte [rsp + 0x68], 1
mov word [rsp + 0x30], ax
mov dword [rsp + 0x34], 0
jmp 0x1801abe6f
jmp 0x1801abe05
mov rcx, qword [rsp + 0x38]
call sym.ProcessMonitor.dll_PhFree
cmp dword [rsp + 0x34], 0
jl 0x1801abea3
cmp byte [rsp + 0x68], 0
jne 0x1801abe93
lea rcx, str.architecture
call fcn.180004f00
mov rax, qword [rsp + 0x98]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804c40a0]
call fcn.180014e20
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x1801aca00
Capabilities:
Get uefi variable

Disassembly:
jmp 0x1801aca00
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x30]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, 2
mov word [rsp + 0x38], ax
mov eax, 4
mov word [rsp + 0x3a], ax
lea rax, [0x1803a54d0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x64], 0
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQuerySystemEnvironmentValueEx]
cmp eax, 0xc0000100
jne 0x1801aca97
mov al, 1
jmp 0x1801aca99
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c4820]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xc0
pop rdi
ret

Function at 0x1801ad3d0
Capabilities:
Get file attributes

Disassembly:
jmp 0x1801ad3d0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x70], 0x200
mov eax, dword [rsp + 0x70]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x68], rax
xor eax, eax
cmp eax, 1
je 0x1801ad492
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x80000005
je 0x1801ad468
cmp dword [rsp + 0x30], 0xc0000023
je 0x1801ad468
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1801ad48e
mov rcx, qword [rsp + 0x68]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x70]
shl eax, 1
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x68], rax
jmp 0x1801ad490
jmp 0x1801ad492
jmp 0x1801ad417
cmp dword [rsp + 0x30], 0
jl 0x1801ad4ab
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
jmp 0x1801ad4b5
mov rcx, qword [rsp + 0x68]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804c4e80]
call fcn.180014e20
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x1801ada20
Capabilities:
Delete registry key
Unload driver

Disassembly:
jmp 0x1801ada20
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x40]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [0x1805a01c0]
call sym.ProcessMonitor.dll_PhConcatStringRef2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180011010
movzx eax, al
test eax, eax
jne 0x1801ada8f
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
mov eax, 0xc0000106
jmp 0x1801adc35
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0xa4]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
xor r8d, r8d
mov edx, 0x30006
lea rcx, [rsp + 0x88]
call sym.ProcessMonitor.dll_PhCreateKey
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1801adc27
cmp dword [rsp + 0xa4], 1
jne 0x1801adbf2
mov dword [rsp + 0xf4], 1
lea rdx, str.ErrorControl
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, [0x1804c8430]
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, str.Type
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xf4]
mov r8d, 4
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rdx, str.ImagePath
lea rcx, [rsp + 0xc8]
call fcn.180005390
mov eax, dword [0x1805a01d0]
add rax, 2
mov dword [rsp + 0x20], eax
mov r9, qword [str.SystemRoot_system32drivers_ntfs.sys]
mov r8d, 1
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
call sym.ProcessMonitor.dll_PhSetValueKey
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0xa4], 1
jne 0x1801adc19
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x48]
call sym.ProcessMonitor.dll_PhDereferenceObject
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c51f0]
call fcn.180014e20
mov rax, rdi
add rsp, 0x110
pop rdi
ret
Function at 0x1801b62d0
Capabilities:
Delete registry key

Disassembly:
jmp 0x1801b62d0
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 [0x1805a6200]
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.180005390
xor eax, eax
test eax, eax
jne 0x1801b6319
mov eax, 0x20
imul rax, rax, 1
mov dword [rsp + rax + 0xa0], 1
cmp qword [rsp + 0x380], 0
je 0x1801b6384
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0x360], rax
jmp 0x1801b6393
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.180005390
xor eax, eax
test eax, eax
jne 0x1801b6353
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.180005390
xor eax, eax
test eax, eax
jne 0x1801b63ba
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.ProcessMonitor.dll_PhFormatToBuffer
movzx eax, al
test eax, eax
jne 0x1801b6432
mov eax, 0xc0000001
jmp 0x1801b64f5
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.180008230
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xffff
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x424
jne 0x1801b6480
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jl 0x1801b64ae
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, 0xfffffffffffffffd
mov edx, 0x10000
lea rcx, [rsp + 0x48]
call sym.ProcessMonitor.dll_PhOpenKey
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1801b64cc
cmp qword [rsp + 0x48], 0
je 0x1801b64cc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000034
jne 0x1801b64de
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x48], 0
je 0x1801b64f1
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, [0x1804c9020]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x370
pop rdi
ret
Function at 0x1801b6730
Capabilities:
Create service
Delete service
Start service

Disassembly:
jmp 0x1801b6730
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 0x1801b6769
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 0x1801b6790
call fcn.180010890
jmp 0x1801b68a9
lea rax, [0x18039c4c4]
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 0x1801b6891
mov rcx, qword [rsp + 0x80]
call fcn.180016760
cmp qword [rsp + 0xb0], 0
je 0x1801b6861
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
call fcn.180008650
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1801b6861
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x1801b6881
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1801b6881
call fcn.180010890
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1801b689a
call fcn.180010890
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 0x1801b68c0
Capabilities:
Delete service
Stop service

Disassembly:
jmp 0x1801b68c0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x20], 0
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1801b6927
call fcn.180010890
jmp 0x1801b69cb
cmp qword [rsp + 0xa0], 0
je 0x1801b6944
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rax
jmp 0x1801b6953
lea rax, str.KProcessHacker3
mov qword [rsp + 0x80], rax
mov r8d, 0x10020
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801b69b3
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1801b69a6
call fcn.180010890
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1801b69bc
call fcn.180010890
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804c90f0]
call fcn.180014e20
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0x90
pop rdi
ret
Function at 0x1801b8460
Capabilities:
Enumerate services

Disassembly:
jmp 0x1801b8460
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
lea rdi, [rsp + 0x50]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
cmp dword [rsp + 0xc8], 0
jne 0x1801b84d5
cmp dword [0x18059ff7c], 0x66
jb 0x1801b84b4
mov dword [rsp + 0xc8], 0x3ff
jmp 0x1801b84d5
cmp dword [0x18059ff7c], 0x64
jb 0x1801b84ca
mov dword [rsp + 0xc8], 0x1ff
jmp 0x1801b84d5
mov dword [rsp + 0xc8], 0x3b
cmp dword [rsp + 0xd0], 0
jne 0x1801b84ea
mov dword [rsp + 0xd0], 3
mov eax, dword [0x1805a0628]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc8]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1801b861d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1801b8608
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhFree
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, eax
call sym.ProcessMonitor.dll_PhAllocate
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x94]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc8]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1801b861d
mov rcx, qword [rsp + 0x58]
call sym.ProcessMonitor.dll_PhFree
xor eax, eax
jmp 0x1801b8647
cmp dword [rsp + 0x60], 0x20000
ja 0x1801b8631
mov eax, dword [rsp + 0x60]
mov dword [0x1805a0628], eax
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x94]
mov dword [rax], ecx
mov rax, qword [rsp + 0x58]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804ca250]
call fcn.180014e20
mov rax, rdi
add rsp, 0xb0
pop rdi
ret
Function at 0x1801b8a20
Capabilities:
Modify service

Disassembly:
jmp 0x1801b8a20
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rsp + 0x58]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x1801b8a70
mov dword [rsp + 0x34], 1
jmp 0x1801b8a78
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1804ca440]
call fcn.180014e20
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x1801c3e70
Capabilities:
Map section object

Disassembly:
jmp 0x1801c3e70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1801c3f15
mov eax, dword [rsp + 0x50]
jmp 0x1801c3f4e
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x88]
mov rcx, 0xffffffffffffffff
call sym.ProcessMonitor.dll_PhGetProcessMappedFileName
mov dword [rsp + 0x50], eax
mov rdx, qword [rsp + 0x88]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, dword [rsp + 0x50]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804d00c0]
call fcn.180014e20
mov rax, rdi
add rsp, 0xa0
pop rdi
ret