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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rsp + 0x38], 0x800
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0x800
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400bc353
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x38]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400bc35a
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edi, edi
mov r8d, 0x800
mov dword [rsp + 0x30], 0x800
lea edx, [rdi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 0xb]
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400bc3fa
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
lea edx, [rdi + 4]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 0xb]
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1400bc40b
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx], 1
jb 0x1400bc431
lea rcx, [rbx + 0x30]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rcx + rdx], dil
jne 0x1400bc420
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov rdi, rax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400bc460
Capabilities:
Get system information on windows

Disassembly:
mov edx, 5
jmp sym.ProcessHacker.exe_PhEnumProcessesEx
Function at 0x1400bc470
Capabilities:
Get system information on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov r8d, edx
mov esi, edx
mov r14, rcx
sub r8d, 5
je 0x1400bc4ad
sub r8d, 0x34
je 0x1400bc4a6
cmp r8d, 0x5b
je 0x1400bc49f
mov eax, 0xc0000003
add rsp, 0x28
pop r14
pop rsi
ret
mov eax, 2
jmp 0x1400bc4af
mov eax, 1
jmp 0x1400bc4af
xor eax, eax
mov qword [rsp + 0x40], rbx
lea rcx, [0x140156cd8]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r15
lea r15, [rcx + rax*4]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x48], eax
mov r8d, eax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, esi
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400bc50d
cmp eax, 0xc0000004
jne 0x1400bc526
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x48]
jmp 0x1400bc4d3
test eax, eax
jns 0x1400bc53e
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bc54f
mov eax, dword [rsp + 0x48]
cmp eax, 0x100000
ja 0x1400bc54c
mov dword [r15], eax
mov qword [r14], rdi
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret

Function at 0x1400bc570
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 [0x140156c60]
mov ebx, edx
mov rsi, rcx
mov dword [rsp + 0x48], eax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, eax
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x20], ebx
mov ecx, dword [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 0x1400bc5e1
cmp eax, 0xc0000004
jne 0x1400bc60c
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x48]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x1400bc5a7
test eax, eax
jns 0x1400bc634
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 [0x140156c60]
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 [0x140156c60], ecx
add rsp, 0x30
pop rdi
ret
Function at 0x1400bc7e0
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 [0x140156b6c]
mov r14, rcx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 0x1400bc882
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x1400bc89a
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 0x1400bc832
test esi, esi
jns 0x1400bc8a1
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bc8b9
mov eax, 0xc000009a
jmp 0x1400bc8bb
mov eax, dword [0x140156b6c]
cmp ebx, 0x100000
mov qword [r14], rdi
cmovbe eax, ebx
mov dword [0x140156b6c], 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 0x1400bc8e0
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 [0x140156c64]
mov r14, rcx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x1400bc982
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
cmp ebx, 0x10000000
ja 0x1400bc99a
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 0x1400bc932
test esi, esi
jns 0x1400bc9a1
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bc9b9
mov eax, 0xc000009a
jmp 0x1400bc9bb
mov eax, dword [0x140156c64]
cmp ebx, 0x200000
mov qword [r14], rdi
cmovbe eax, ebx
mov dword [0x140156c64], 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 0x1400bc9e0
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 [sym.ProcessHacker.exe_PhHeapHandle]
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 0x1400bca83
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rbx + rbx]
mov ebx, eax
cmp eax, 0x10000000
ja 0x1400bca9b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 0x1400bca31
test esi, esi
jns 0x1400bcaa2
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bcaa5
mov eax, 0xc000009a
jmp 0x1400bcaa7
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 0x1400bcac0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov ebp, 0x100
mov r8d, ebp
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x1000000
mov rdi, rax
mov qword [rsp + 0x30], rax
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x1400bcb72
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx r8d, word [rsp + 0x2a]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rdi, rax
mov qword [rsp + 0x30], rax
lea r8d, [r9 + 0x18]
lea ecx, [r9 + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test ebx, ebx
js 0x1400bcb88
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call sym.ProcessHacker.exe_PhCreateStringEx
mov qword [rsi], rax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400bd2b0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14d, 0x400
mov r12, r9
mov r8d, r14d
mov r13, rdx
mov r15, rcx
mov dil, 1
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
nop dword [rax + rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov byte [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x38], 1
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, r15
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x1400bd35c
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 0x1400bd36c
cmp ebx, 0xc0000004
jne 0x1400bd38d
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [r14 + r14]
mov r14d, eax
mov r8d, eax
jmp 0x1400bd2e3
mov r13, qword [rsp + 0xc0]
cmp ebx, 0x80000006
je 0x1400bd3df
test ebx, ebx
js 0x1400bd3e1
mov rdx, r12
mov rcx, rbp
xor esi, esi
mov rdi, rbp
call r13
test al, al
je 0x1400bd3e1
mov eax, dword [rdi]
test eax, eax
je 0x1400bd3cf
add esi, eax
mov rdx, r12
mov edi, esi
add rdi, rbp
mov rcx, rdi
call r13
test al, al
jne 0x1400bd3b3
jmp 0x1400bd3e1
mov r13, qword [rsp + 0xb8]
xor dil, dil
jmp 0x1400bd300
xor ebx, ebx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400bd410
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov esi, 0x200
mov r14, r8
mov r8d, esi
mov rbp, rcx
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, esi
mov dword [rsp + 0x20], 0x16
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp eax, 0x80000005
je 0x1400ba490
cmp eax, 0xc0000023
je 0x1400ba490
cmp eax, 0xc0000004
jne 0x1400ba4ac
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rsi + rsi]
mov esi, eax
mov r8d, eax
jmp 0x1400ba448
test eax, eax
js 0x1400ba4b5
mov qword [r14], rdi
jmp 0x1400ba4c9
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov r8, rdx
jmp 0x1400ba420
Function at 0x1400bf0f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [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 [sym.ProcessHacker.exe_PhHeapHandle]
mov esi, 0x10
mov r8d, 0x100
lea edx, [rsi - 0xc]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop word [rax + 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 0x1400bf19b
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x1400bf1b9
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400bf140
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
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bf19e

Function at 0x1400bf1d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [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 0x1400bf224
cmp qword [rdx], 0xfffe
movzx eax, word [rdx]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], ax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x38], rax
jbe 0x1400bf22f
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 dword [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 0x1400bf2c4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
mov r8, rdi
cmp eax, 0x80000005
jne 0x1400bf2e2
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400bf260
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
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400bf2c7
Function at 0x1400bfa70
Capabilities:
Create service
Delete service
Start service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov edi, 1
mov qword [rsp + 0x80], 0x10
lea rax, str.Device_
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x70]
mov r15, r8
mov dword [rsp + 0x90], edi
mov r12, rdx
mov qword [rsp + 0xa0], 0x1e
lea rax, str.KProcessHacker2
xor r13d, r13d
lea edx, [rdi + 1]
mov qword [rsp + 0xa8], rax
mov r9d, 0x200
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0xb0]
xor sil, sil
xor r14b, r14b
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
jne 0x1400bfb08
mov eax, 0xc0000106
jmp 0x1400bfcd3
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x2e0], rbx
call fcn.1400bf960
mov ebx, eax
mov eax, 0x80000000
lea ecx, [rbx + rax]
test eax, ecx
jne 0x1400bfcc9
cmp ebx, 0xc000020a
je 0x1400bfcc9
lea eax, [rbx + 0x3ffffff2]
cmp eax, 0x2c
ja 0x1400bfcc9
movabs rcx, 0x104000000003
bt rcx, rax
jae 0x1400bfcc9
mov r8d, edi
mov qword [rsp + 0x2e8], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400bfbd5
mov r8d, 0x10
lea rdx, str.KProcessHacker2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400bfbbe
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
movzx esi, sil
mov rcx, rdi
test eax, eax
mov eax, 1
cmovne esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test sil, sil
jne 0x1400bfc9b
mov edi, 1
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
je 0x1400bfcc1
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400bfcc1
lea rax, [0x14010bbd8]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.KProcessHacker2
mov qword [rsp + 0x58], r13
lea rdx, str.KProcessHacker2
mov qword [rsp + 0x50], r13
mov rcx, rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x1400bfc8d
mov r14b, 1
test r15, r15
je 0x1400bfc71
mov rdx, r15
call fcn.1400bfcf0
mov ebx, eax
test eax, eax
js 0x1400bfcaf
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
movzx esi, sil
mov eax, 1
cmovne esi, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test sil, sil
je 0x1400bfcaa
lea rcx, [rsp + 0xb0]
call fcn.1400bf960
mov ebx, eax
test r14b, r14b
je 0x1400bfcc1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x2e8]
mov eax, ebx
mov rbx, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400bfcf0
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rsi, rdx
mov qword [rbp + 0x7f], 0
lea rdx, str.SystemCurrentControlSetServices_
mov ecx, 3
lea r9, str.Parameters
lea r8, str.KProcessHacker2
call sym.ProcessHacker.exe_PhConcatStrings
mov rdi, rax
cmp qword [rax], 0xfffe
movzx ecx, word [rax]
mov word [rbp - 0x29], cx
mov word [rbp - 0x27], cx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x21], rcx
jbe 0x1400bfd59
mov ebx, 0xc0000106
jmp 0x1400bfdbd
xor r8d, r8d
lea rax, [rbp + 0x77]
lea r9, [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x29]
lea rcx, [r8 - 3]
call fcn.1400bed90
mov ebx, eax
test eax, eax
js 0x1400bfdbd
lea rax, [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x17]
mov dword [rsp + 0x28], 0
lea rcx, [rbp + 0x7f]
mov edx, 0x30006
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rbp + 0x77]
mov ebx, eax
test rcx, rcx
je 0x1400bfdbd
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rdi - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400bfdd3
call fcn.1400ae580
test ebx, ebx
js 0x1400bfe92
mov rcx, qword [rbp + 0x7f]
lea rax, str.SecurityLevel
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x39]
mov r9d, 4
mov qword [rbp - 0x31], rax
xor r8d, r8d
mov dword [rbp - 0x39], 0x1c001a
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1400bfe78
cmp byte [rsi + 4], 0
je 0x1400bfe74
lea rax, str.DynamicConfiguration
mov dword [rbp - 0x39], 0x2a0028
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x19], 2
mov dword [rbp - 0x15], 1
call fcn.1400e22e0
test eax, eax
js 0x1400bfe74
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp - 0x19]
mov dword [rsp + 0x28], 0x2c
lea rdx, [rbp - 0x39]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test ebx, ebx
jns 0x1400bfe88
cmp dword [rbp + 0x67], 1
jne 0x1400bfe88
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret