joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7c00e0920
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 [0x7ff7c01d3cd0]
mov esi, 0x10
mov r8d, 0x100
lea edx, [rsi - 0xc]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
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 0x7ff7c00e09ce
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x7ff7c00e09d1
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov rdi, rax
add esi, 0xffffffff
jne 0x7ff7c00e0970
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

Function at 0x7ff7c00e09f0
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 0x7ff7c00e0a4c
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 0x7ff7c00e0a57
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov rcx, qword [0x7ff7c01d3cd0]
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.kernel32.dll_HeapAlloc_1]
mov rdi, rax
nop dword [rax]
nop dword [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 0x7ff7c00e0af7
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
cmp ebx, 0x80000005
jne 0x7ff7c00e0afa
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov rdi, rax
add esi, 0xffffffff
jne 0x7ff7c00e0a90
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
Function at 0x7ff7c00e0b20
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x7ff7c00e0b56
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 0x7ff7c00e0b61
mov eax, 0xc0000106
add rsp, 0x48
ret
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
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 0x7ff7c00e0b90
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 [0x7ff7c01d3cd0]
xor esi, esi
mov r8d, 0x100
mov r15, r9
lea edx, [rsi + 4]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
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 0x7ff7c00e0cc6
nop dword [rax]
cmp ebx, 0x80000005
je 0x7ff7c00e0c20
cmp ebx, 0xc0000023
jne 0x7ff7c00e0c78
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
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 0x7ff7c00e0cc8
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x7ff7c00c1f48.0]
nop
test al, al
je 0x7ff7c00e0cc8
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 0x7ff7c00e0c10
xor ebx, ebx
mov rcx, qword [0x7ff7c01d3cd0]
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 0x7ff7c00e0d00
Capabilities:
Query or enumerate registry value

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 r14, r8
mov dword [rsp + 0x68], 0x100
mov r15, rdx
mov rbp, rcx
mov rcx, qword [0x7ff7c01d3cd0]
xor esi, esi
mov r8d, 0x100
lea edx, [rsi + 4]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov edx, dword [rsp + 0x68]
lea r8d, [rsi + 1]
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x68]
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 0x7ff7c00e0e39
nop word [rax + rax]
cmp ebx, 0x80000005
je 0x7ff7c00e0d90
cmp ebx, 0xc0000023
jne 0x7ff7c00e0de8
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, 1
mov edx, esi
mov rdi, rax
mov rcx, rbp
lea rax, [rsp + 0x68]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov ebx, eax
test ebx, ebx
js 0x7ff7c00e0e3b
mov r8, r14
mov rdx, rdi
mov rcx, rbp
mov rax, r15
call qword [case.0x7ff7c00c1f48.0]
nop
test al, al
je 0x7ff7c00e0e3b
lea rax, [rsp + 0x68]
inc esi
mov qword [rsp + 0x28], rax
mov r9, rdi
mov eax, dword [rsp + 0x68]
mov r8d, 1
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 0x7ff7c00e0d80
xor ebx, ebx
mov rcx, qword [0x7ff7c01d3cd0]
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, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x7ff7c00e1b40
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xc0
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x7ff7c00e1b5b
mov rcx, qword [rcx + 8]
jmp 0x7ff7c00e1b5e
mov rcx, rbp
xor r9d, r9d
lea rdx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov edi, eax
test eax, eax
js 0x7ff7c00e1cb7
mov dword [rsp + 0x50], ebp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rbp
lea r9, [rsp + 0x70]
mov dword [rsp + 0x40], 0x21
lea r8, [rsp + 0x90]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0xe8]
mov dword [rsp + 0x30], 5
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x10
mov edx, 0x130089
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rbp
mov dword [rsp + 0xa8], 0x40
mov qword [rsp + 0xa0], rax
movdqu xmmword [rsp + 0xb0], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
lea rcx, [rsp + 0x60]
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlFreeAnsiString]
test edi, edi
js 0x7ff7c00e1cb7
xor r9d, r9d
mov qword [rsp + 0xf0], rsi
mov rsi, qword [rsp + 0xe8]
lea rax, [0x7ff7c00e1780]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call fcn.7ff7c00de470
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
lea rdx, [rsp + 0x80]
mov edi, eax
mov rcx, rsi
jb 0x7ff7c00e1c7f
mov dword [rsp + 0xe0], 0x11
lea r8, [rsp + 0xe0]
mov dword [rsp + 0x20], 0x40
mov r9d, 4
jmp 0x7ff7c00e1c9d
mov byte [rsp + 0xe0], 1
lea r8, [rsp + 0xe0]
mov dword [rsp + 0x20], 0xd
mov r9d, 1
nop dword [rax]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xf0]
test rbx, rbx
je 0x7ff7c00e1cc2
mov rcx, qword [rbx + 8]
jmp 0x7ff7c00e1cc5
mov rcx, rbp
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
cmove edi, ebp
mov eax, edi
add rsp, 0xc0
pop rdi
pop rbp
pop rbx
ret
Function at 0x7ff7c00e2c90
Capabilities:
Create service
Delete service
Start service

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x70
mov r14, r9
mov r12, r8
xor bpl, bpl
xor r15b, r15b
call fcn.7ff7c00e2b00
mov ebx, eax
add eax, 0x3ffffff2
cmp eax, 0x2c
ja 0x7ff7c00e2e8e
movabs rcx, 0x104000000003
bt rcx, rax
jae 0x7ff7c00e2e8e
mov qword [rsp + 0xa0], rsi
xor edx, edx
mov qword [rsp + 0xa8], rdi
xor ecx, ecx
mov qword [rsp + 0xb0], r13
mov r13d, 1
mov r8d, r13d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x7ff7c00e2d5f
lea r8d, [r13 + 0xf]
mov rcx, rax
lea rdx, [0x7ff7c01798a0]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x7ff7c00e2d49
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
movzx ebp, bpl
mov rcx, rdi
test eax, eax
cmovne ebp, r13d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bpl, bpl
jne 0x7ff7c00e2e4b
mov rcx, r12
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x7ff7c00e2e76
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x7ff7c00e2e76
lea rax, [0x7ff7c0152200]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, [0x7ff7c01798a0]
xor eax, eax
lea rdx, [0x7ff7c01798a0]
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], r12
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x7ff7c00e2e25
mov rcx, rax
movzx r15d, r13b
call fcn.7ff7c00e3150
test r14, r14
je 0x7ff7c00e2e08
mov rdx, r14
call fcn.7ff7c00e2ea0
mov ebx, eax
test eax, eax
js 0x7ff7c00e2e61
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x7ff7c00e2e25
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x7ff7c00e2e4b
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7c00e2e3d
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bpl, bpl
je 0x7ff7c00e2e57
nop dword [rax + rax]
call fcn.7ff7c00e2b00
mov ebx, eax
test r15b, r15b
je 0x7ff7c00e2e76
test rdi, rdi
je 0x7ff7c00e2e76
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r13, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov eax, ebx
add rsp, 0x70
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x7ff7c00e32d0
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 0x7ff7c00e3325
call qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x7ff7c00e341d
movzx eax, ax
or eax, 0xc0070000
jmp 0x7ff7c00e341d
lea rax, [0x7ff7c0152200]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, [0x7ff7c01798a0]
mov qword [rsp + 0x58], rbx
lea rdx, [0x7ff7c01798a0]
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 0x7ff7c00e33fb
mov rcx, rax
call fcn.7ff7c00e3150
nop dword [rax + rax]
test rsi, rsi
je 0x7ff7c00e33b8
mov rdx, rsi
call fcn.7ff7c00e2ea0
mov ebx, eax
test eax, eax
jns 0x7ff7c00e33b8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x7ff7c00e3412
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x7ff7c00e33f0
nop word [rax + rax]
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jg 0x7ff7c00e33e7
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x7ff7c00e3412
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x7ff7c00e3412
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jg 0x7ff7c00e3409
mov ebx, eax
jmp 0x7ff7c00e3412
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
Function at 0x7ff7c00e3440
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x7ff7c00e348c
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x7ff7c00e3518
movzx eax, ax
or eax, 0xc0070000
jmp 0x7ff7c00e3518
mov r8d, 0x10020
mov qword [rsp + 0x60], rdi
lea rdx, [0x7ff7c01798a0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x7ff7c00e34f3
lea r8, ds:[rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x7ff7c00e34e8
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7c00e34e8
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x7ff7c00e3508
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7c00e3508
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff7c0121390
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x7ff7c00e8440
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov ebx, edx
mov rbp, rcx
test edx, edx
jne 0x7ff7c00e8486
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x66
jb 0x7ff7c00e8476
mov ebx, 0x3ff
jmp 0x7ff7c00e8486
cmp eax, 0x64
mov ebx, 0x3b
mov ecx, 0x1ff
cmovae ebx, ecx
mov edi, dword [0x7ff7c01d08f4]
test r8d, r8d
mov rcx, qword [0x7ff7c01d3cd0]
mov r15d, 3
cmovne r15d, r8d
mov edx, 4
mov r8d, edi
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
xor r12d, r12d
mov r9d, r15d
mov qword [rsp + 0x48], r12
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov r8d, ebx
lea rax, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x7ff7c00e859a
nop word [rax + rax]
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xea
jne 0x7ff7c00e8584
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [rsp + 0x88]
lea edx, [r12 + 4]
mov rcx, qword [0x7ff7c01d3cd0]
mov r8d, edi
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov qword [rsp + 0x48], r12
mov r9d, r15d
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov r8d, ebx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x88]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
nop dword [rax]
test eax, eax
jne 0x7ff7c00e859a
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x7ff7c00e85bc
mov eax, dword [0x7ff7c01d08f4]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x7ff7c01d08f4], eax
mov eax, dword [rsp + 0x90]
mov dword [r14], eax
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x7ff7c00e88c0
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x38]
mov edx, 3
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x7ff7c00edfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x70
mov rax, qword [0x7ff7c01ca008]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x40], r8
mov ebp, r9d
mov qword [rsp + 0x60], rdi
mov rdi, rdx
mov qword [rsp + 0x38], 4
mov r14, rcx
mov qword [rsp + 0x48], rbx
lea r8d, [rbx + 3]
mov rcx, rdi
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x7ff7c00ee0ab
mov rdx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x7ff7c00ee0ab
mov ebx, dword [rsp + 0x20]
mov edx, 4
mov rcx, qword [0x7ff7c01d3cd0]
mov r8d, ebx
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.7ff7c0125120
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov rcx, qword [0x7ff7c01d3cd0]
mov r8, rsi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
cmp ebp, 0xffffffff
je 0x7ff7c00ee0c8
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x7ff7c00ee0cb
mov rax, rbx
mov rdx, rax
mov rcx, r14
call fcn.7ff7c00edda0
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.7ff7c0121390
add rsp, 0x70
pop r14
pop rbp
pop rbx
ret
Function at 0x7ff7c00f23e0
Capabilities:
Get user security identifier

Disassembly:
push r12
push r14
push r15
sub rsp, 0x60
movzx eax, word [rcx]
mov r15, r9
mov word [rsp + 0x38], ax
mov r14, r8
add ax, 2
mov r12, rdx
cmp qword [rcx], 0xfffe
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x7ff7c00f2426
mov eax, 0xc0000106
add rsp, 0x60
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], r13
call fcn.7ff7c00f1f60
xor r13d, r13d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r13
lea r8d, [r13 + 1]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rcx, qword ds:[rsp + 0x80]
mov ebp, eax
test eax, eax
js 0x7ff7c00f25b6
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x7ff7c00f25b1
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x7ff7c00f24f9
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [0x7ff7c01d3cd0]
lea edx, [r13 + 4]
mov esi, eax
mov rax, qword [rsp + 0x80]
mov r8d, esi
mov rdi, qword [rax + 8]
call qword [sym.imp.kernel32.dll_HeapAlloc_1]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.7ff7c0125120
mov rcx, qword [rsp + 0x80]
mov qword [r12], rbx
nop dword [rax]
test r14, r14
je 0x7ff7c00f2590
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x7ff7c00f257b
lea rdx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
lea rax, [rcx + rdx*8]
movzx ecx, word [rcx + rdx*8]
test cx, cx
jne 0x7ff7c00f2538
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x7ff7c00f2588
mov rdx, qword [0x7ff7c01d3b58]
mov rdi, rcx
mov rsi, qword [rax + 8]
add rcx, 0x12
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], r13w
test rsi, rsi
je 0x7ff7c00f2576
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.7ff7c0125120
mov qword [r14], rbx
jmp 0x7ff7c00f2588
nop dword [rax + rax]
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [r14], rax
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x88]
test r15, r15
je 0x7ff7c00f25b6
mov eax, dword [rcx]
mov dword [r15], eax
jmp 0x7ff7c00f25b6
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rax, rax
je 0x7ff7c00f25d6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x7ff7c00f25e6
nop dword [rax + rax]
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
ret