joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140116800
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [0x14023e1ac]
mov ebx, edx
mov rsi, rcx
mov dword [rsp + 0x48], eax
mov rcx, qword [0x140241998]
mov r8d, eax
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x20], ebx
mov ecx, dword ds:[rsp + 0x48]
lea r9, [rsp + 0x48]
mov r8d, 0x10
mov dword [rsp + 0x24], ecx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdi, rax
lea ecx, [r8 + 0x25]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140116876
cmp eax, 0xc0000004
jne 0x1401168a2
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x48]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop
jmp 0x140116837
lfence
test ebx, ebx
jns 0x1401168cd
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [0x14023e1ac]
cmp dword [rsp + 0x48], 0x100000
mov rbx, qword [rsp + 0x40]
cmovbe ecx, dword [rsp + 0x48]
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x50]
mov dword [0x14023e1ac], ecx
add rsp, 0x30
pop rdi
ret

Function at 0x140116a80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, dword [0x14023e340]
mov r14, rcx
mov rcx, qword [0x140241998]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140116b27
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140116b48
lfence
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140116ad2
lfence
test esi, esi
jns 0x140116b4f
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140116b67
mov eax, 0xc000009a
jmp 0x140116b69
mov eax, dword [0x14023e340]
cmp ebx, 0x100000
mov qword [r14], rdi
cmovbe eax, ebx
mov dword [0x14023e340], eax
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140116b80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, dword [0x14023ddec]
xor ebp, ebp
mov r14, rcx
mov dword [rsp + 0x48], ebp
mov rcx, qword [0x140241998]
mov r8d, ebx
lea edx, [rbp + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
lea ecx, [rbp + 0x40]
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140116c2a
cmp ebp, 0xa
jae 0x140116c32
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword ds:[rsp + 0x48]
mov edx, 4
mov rcx, qword [0x140241998]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
inc ebp
mov esi, eax
cmp eax, 0xc0000004
je 0x140116bd4
test esi, esi
jns 0x140116cef
mov ebx, dword [0x14023ddec]
mov edx, 4
mov rcx, qword [0x140241998]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140116cc7
nop
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x140116ce8
lfence
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140116c70
test esi, esi
jns 0x140116cef
lfence
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140116d0a
mov eax, 0xc000009a
jmp 0x140116d0c
lfence
mov eax, dword [0x14023ddec]
cmp ebx, 0x200000
mov qword [r14], rdi
cmovbe eax, ebx
mov dword [0x14023ddec], eax
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140116e80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x140241998]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x140116f2f
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rbx + rbx]
mov ebx, eax
cmp eax, 0x10000000
ja 0x140116f4a
lfence
mov rcx, qword [0x140241998]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rdi, rax
lea ecx, [r9 + 0x12]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140116ed1
lfence
test esi, esi
jns 0x140116f51
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140116f54
mov eax, 0xc000009a
jmp 0x140116f56
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140116f80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 0x200
mov rcx, qword [0x140241998]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x14011702f
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rbx + rbx]
mov ebx, eax
cmp eax, 0x10000000
ja 0x14011704a
lfence
mov rcx, qword [0x140241998]
mov r8d, ebx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov ecx, 0x90
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
je 0x140116fd2
lfence
test esi, esi
jns 0x140117051
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140117054
mov eax, 0xc000009a
jmp 0x140117056
mov qword [r14], rdi
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140117080
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r15
sub rsp, 0x40
mov r15, rdx
mov rbx, rcx
mov rcx, qword [0x140241998]
mov edx, 4
mov r8d, 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rbp, rax
lea r8d, [r12 + 0x18]
lea ecx, [r12 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x140117140
mov rcx, qword [0x140241998]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx r8d, word [rsp + 0x2a]
lea edx, [r12 + 4]
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
lea r8d, [r12 + 0x18]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea ecx, [r12 + 0x58]
mov rbp, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
lfence
test edi, edi
js 0x1401171b2
movzx eax, word [rsp + 0x28]
test ax, ax
jne 0x14011715b
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1401171af
mov rdx, qword [0x1402418e8]
lea rcx, [rax + 0x12]
mov qword [rsp + 0x60], rsi
mov rsi, rax
mov qword [rsp + 0x68], r14
mov r14, qword [rsp + 0x30]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rsi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rsi], r12w
test r14, r14
je 0x1401171a5
mov rcx, qword ds:[rbx + 8]
mov r8, rsi
mov rdx, r14
call fcn.140188690
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov qword [r15], rbx
mov rcx, qword [0x140241998]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret
Function at 0x140118420
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movzx r13d, r8b
mov ebx, edx
mov r15, rcx
mov r14d, 0x400
mov rcx, qword [0x140241998]
mov r8d, r14d
mov edx, 4
mov r12, r9
mov dil, 1
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
nop dword [rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r12
xor r9d, r9d
mov byte [rsp + 0x40], r13b
xor r8d, r8d
mov dword [rsp + 0x38], ebx
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x1401184c8
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x1401184d8
cmp ebx, 0xc0000004
jne 0x140118512
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [0x140241998]
lea eax, [r14 + r14]
mov r8d, eax
mov edx, 4
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [rsp + 0xa8]
jmp 0x14011846a
cmp ebx, 0x80000006
je 0x14011857f
test ebx, ebx
js 0x140118581
mov rdx, qword [rsp + 0xc8]
mov rcx, rsi
mov rax, qword [rsp + 0xc0]
xor ebp, ebp
mov rdi, rsi
call qword [case.0x1400f654f.0]
nop dword [rax]
test al, al
je 0x140118581
mov eax, dword [rdi]
test eax, eax
je 0x140118570
mov rdx, qword [rsp + 0xc8]
add ebp, eax
mov rax, qword [rsp + 0xc0]
mov edi, ebp
add rdi, rsi
mov rcx, rdi
call qword [case.0x1400f654f.0]
test al, al
jne 0x140118544
jmp 0x140118581
mov ebx, dword [rsp + 0xa8]
xor dil, dil
jmp 0x140118470
xor ebx, ebx
mov rcx, qword [0x140241998]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1401185c0
Capabilities:
Get file attributes

Disassembly:
mov r8, rdx
mov edx, 0x16
jmp fcn.140114140
Function at 0x14011b1a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword ss:[rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov dword [rsp + 0x68], 0x100
mov ebp, edx
mov r14, rcx
mov rcx, qword [0x140241998]
mov esi, 0x10
mov r8d, 0x100
lea edx, [rsi - 0xc]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop dword [rax]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
test eax, eax
jns 0x14011b24e
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x14011b26c
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x14011b1f0
mov qword [r15], rdi
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lfence
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14011b251

Function at 0x14011b280
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword ss:[rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r15, r9
mov ebp, r8d
mov r14, rcx
mov esi, 0x10
test rdx, rdx
je 0x14011b2e2
mov r10, qword [rdx]
test r10, r10
je 0x14011b2e2
mov word [rsp + 0x30], r10w
lea eax, [r10 + 2]
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
cmp r10, 0xfffe
jbe 0x14011b2ea
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rcx, qword [0x140241998]
mov edx, 4
mov qword [rsp + 0x60], rbx
mov r8d, 0x100
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop word [rax + rax]
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r14
mov r8d, ebp
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x14011b385
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x14011b3a3
mov rcx, qword [0x140241998]
nop
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x14011b320
mov qword [r15], rdi
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
lfence
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14011b388
Function at 0x14011b3c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x14011b3f6
movzx eax, word [rdx]
mov word [rsp + 0x30], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
jbe 0x14011b3fe
mov eax, 0xc0000106
add rsp, 0x48
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
add rsp, 0x48
ret

Function at 0x14011b430
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x14011b466
movzx eax, word [rdx]
mov word [rsp + 0x20], ax
add ax, 2
cmp qword [rdx], 0xfffe
mov word [rsp + 0x22], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
jbe 0x14011b46e
mov eax, 0xc0000106
add rsp, 0x38
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
add rsp, 0x38
ret

Function at 0x14011b480
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x140241998]
xor esi, esi
mov r8d, 0x100
mov r15, r9
lea edx, [rsi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14011b5bf
nop dword [rax]
cmp ebx, 0x80000005
je 0x14011b510
cmp ebx, 0xc0000023
jne 0x14011b568
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
test ebx, ebx
js 0x14011b5c1
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x1400f654f.0]
test al, al
je 0x14011b5c1
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x14011b500
xor ebx, ebx
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14011b600
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, r8
mov dword [rsp + 0x30], 0x100
mov r14d, edx
mov rbp, rcx
mov rcx, qword [0x140241998]
xor esi, esi
mov r8d, 0x100
mov r15, r9
lea edx, [rsi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [rsp + 0x30]
mov r8d, r14d
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14011b73f
nop dword [rax]
cmp ebx, 0x80000005
je 0x14011b690
cmp ebx, 0xc0000023
jne 0x14011b6e8
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, r14d
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
test ebx, ebx
js 0x14011b741
lfence
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x1400f654f.0]
test al, al
je 0x14011b741
lfence
lea rax, [rsp + 0x30]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x30]
mov r8d, r14d
mov edx, esi
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
cmp eax, 0x8000001a
jne 0x14011b680
xor ebx, ebx
mov rcx, qword [0x140241998]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14011e840
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r14b, r14b
lea rbp, str.KProcessHacker3
xor r12b, r12b
mov r15, r9
test rcx, rcx
mov r13, r8
cmovne rbp, rcx
call fcn.14011e6a0
mov ebx, eax
mov eax, 0x80000000
lea ecx, [rbx + rax]
test eax, ecx
jne 0x14011ea65
cmp ebx, 0xc000020a
je 0x14011ea65
lea eax, ds:[rbx + 0x3ffffff2]
cmp eax, 0x2c
ja 0x14011ea62
movabs rcx, 0x104000000003
bt rcx, rax
jae 0x14011ea62
mov qword ss:[rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
lfence
mov edi, 1
xor edx, edx
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14011e943
lea r8d, [rdi + 0xf]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14011e92c
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
movzx r14d, r14b
mov rcx, rdi
test eax, eax
mov eax, 1
cmovne r14d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14b, r14b
jne 0x14011ea2b
mov edi, 1
mov rcx, r13
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x14011ea4f
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14011ea4f
lea rax, [0x1401b790c]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
mov r8, rbp
xor eax, eax
mov rdx, rbp
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x14011ea08
mov rcx, rax
mov r12b, 1
call fcn.14011ee60
test r15, r15
je 0x14011e9eb
mov rdx, r15
mov rcx, rbp
call fcn.14011ea80
mov ebx, eax
test eax, eax
js 0x14011ea3c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14011ea08
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14011ea2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14011ea1d
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14b, r14b
je 0x14011ea32
call fcn.14011e6a0
mov ebx, eax
test r12b, r12b
je 0x14011ea4f
test rdi, rdi
je 0x14011ea4f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword ss:[rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
jmp 0x14011ea65
lfence
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14011efe0
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rsi, r8
mov rdi, rdx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x14011f035
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14011f131
movzx eax, ax
or eax, 0xc0070000
jmp 0x14011f131
lea rax, [0x1401b790c]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.KProcessHacker3
mov qword [rsp + 0x58], rbx
lea rdx, str.KProcessHacker3
mov qword [rsp + 0x50], rbx
mov rcx, rbp
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x14011f10f
mov rcx, rax
call fcn.14011ee60
nop
test rsi, rsi
je 0x14011f0d1
mov rdx, rsi
lea rcx, str.KProcessHacker3
call fcn.14011ea80
mov ebx, eax
test eax, eax
jns 0x14011f0d1
lfence
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14011f126
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
nop
test eax, eax
jne 0x14011f104
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14011f0fb
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14011f126
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14011f126
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14011f11d
mov ebx, eax
jmp 0x14011f126
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret