joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140120920
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 [0x140213cd0]
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 0x1401209ce
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x1401209d1
mov r8d, dword ds:[rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140213cd0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x140120970
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 0x1401209f0
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 0x140120a4c
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 0x140120a57
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 [0x140213cd0]
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]
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 0x140120af7
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
cmp ebx, 0x80000005
jne 0x140120afa
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140213cd0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x140120a90
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 0x140120b20
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x140120b56
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 0x140120b61
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 0x140120b90
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 [0x140213cd0]
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 0x140120cc6
nop dword [rax]
cmp ebx, 0x80000005
je 0x140120c20
cmp ebx, 0xc0000023
jne 0x140120c78
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [0x140213cd0]
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 0x140120cc8
mov r8, r15
mov rdx, rdi
mov rcx, rbp
mov rax, r12
call qword [case.0x140101f48.0]
nop
test al, al
je 0x140120cc8
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 0x140120c10
xor ebx, ebx
mov rcx, qword [0x140213cd0]
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 0x140120d00
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 [0x140213cd0]
xor esi, esi
mov r8d, 0x100
lea edx, [rsi + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x140120e39
nop word [rax + rax]
cmp ebx, 0x80000005
je 0x140120d90
cmp ebx, 0xc0000023
jne 0x140120de8
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140213cd0]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x140120e3b
mov r8, r14
mov rdx, rdi
mov rcx, rbp
mov rax, r15
call qword [case.0x140101f48.0]
nop
test al, al
je 0x140120e3b
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 0x140120d80
xor ebx, ebx
mov rcx, qword [0x140213cd0]
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 0x140121b40
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xc0
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x140121b5b
mov rcx, qword [rcx + 8]
jmp 0x140121b5e
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 0x140121cb7
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_RtlFreeUnicodeString]
test edi, edi
js 0x140121cb7
xor r9d, r9d
mov qword [rsp + 0xf0], rsi
mov rsi, qword [rsp + 0xe8]
lea rax, [0x140121780]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call fcn.14011e470
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x6a
lea rdx, [rsp + 0x80]
mov edi, eax
mov rcx, rsi
jb 0x140121c7f
mov dword [rsp + 0xe0], 0x11
lea r8, [rsp + 0xe0]
mov dword [rsp + 0x20], 0x40
mov r9d, 4
jmp 0x140121c9d
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 0x140121cc2
mov rcx, qword [rbx + 8]
jmp 0x140121cc5
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 0x140122c90
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.140122b00
mov ebx, eax
add eax, 0x3ffffff2
cmp eax, 0x2c
ja 0x140122e8e
movabs rcx, 0x104000000003
bt rcx, rax
jae 0x140122e8e
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 0x140122d5f
lea r8d, [r13 + 0xf]
mov rcx, rax
lea rdx, str.KProcessHacker3
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140122d49
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 0x140122e4b
mov rcx, r12
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x140122e76
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140122e76
lea rax, [0x140192200]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.KProcessHacker3
xor eax, eax
lea rdx, str.KProcessHacker3
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 0x140122e25
mov rcx, rax
movzx r15d, r13b
call fcn.140123150
test r14, r14
je 0x140122e08
mov rdx, r14
call fcn.140122ea0
mov ebx, eax
test eax, eax
js 0x140122e61
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140122e25
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140122e4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140122e3d
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bpl, bpl
je 0x140122e57
nop dword [rax + rax]
call fcn.140122b00
mov ebx, eax
test r15b, r15b
je 0x140122e76
test rdi, rdi
je 0x140122e76
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 0x1401232d0
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 0x140123325
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14012341d
movzx eax, ax
or eax, 0xc0070000
jmp 0x14012341d
lea rax, [0x140192200]
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 0x1401233fb
mov rcx, rax
call fcn.140123150
nop dword [rax + rax]
test rsi, rsi
je 0x1401233b8
mov rdx, rsi
call fcn.140122ea0
mov ebx, eax
test eax, eax
jns 0x1401233b8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140123412
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401233f0
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401233e7
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140123412
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140123412
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140123409
mov ebx, eax
jmp 0x140123412
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 0x140123440
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14020a008]
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 0x14012348c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140123518
movzx eax, ax
or eax, 0xc0070000
jmp 0x140123518
mov r8d, 0x10020
mov qword [rsp + 0x60], rdi
lea rdx, str.KProcessHacker3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1401234f3
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 0x1401234e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1401234e8
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140123508
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140123508
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.140161390
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x140128440
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 0x140128486
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x66
jb 0x140128476
mov ebx, 0x3ff
jmp 0x140128486
cmp eax, 0x64
mov ebx, 0x3b
mov ecx, 0x1ff
cmovae ebx, ecx
mov edi, dword [0x1402108f4]
test r8d, r8d
mov rcx, qword [0x140213cd0]
mov r15d, 3
cmovne r15d, r8d
mov edx, 4
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x14012859a
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140128584
mov rcx, qword [0x140213cd0]
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 [0x140213cd0]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
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 0x14012859a
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1401285bc
mov eax, dword [0x1402108f4]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x1402108f4], 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 0x1401288c0
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 0x14012dfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x70
mov rax, qword [0x14020a008]
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 0x14012e0ab
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 0x14012e0ab
mov ebx, dword [rsp + 0x20]
mov edx, 4
mov rcx, qword [0x140213cd0]
mov r8d, ebx
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140165120
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov rcx, qword [0x140213cd0]
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 0x14012e0c8
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetSubMenu]
jmp 0x14012e0cb
mov rax, rbx
mov rdx, rax
mov rcx, r14
call fcn.14012dda0
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140161390
add rsp, 0x70
pop r14
pop rbp
pop rbx
ret
Function at 0x1401323e0
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 0x140132426
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.140131f60
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 0x1401325b6
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x1401325b1
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x1401324f9
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [0x140213cd0]
lea edx, [r13 + 4]
mov esi, eax
mov rax, qword [rsp + 0x80]
mov r8d, esi
mov rdi, qword [rax + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.140165120
mov rcx, qword [rsp + 0x80]
mov qword [r12], rbx
nop dword [rax]
test r14, r14
je 0x140132590
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x14013257b
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 0x140132538
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [r14], rax
jmp 0x140132588
mov rdx, qword [0x140213b58]
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 0x140132576
mov rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.140165120
mov qword [r14], rbx
jmp 0x140132588
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 0x1401325b6
mov eax, dword [rcx]
mov dword [r15], eax
jmp 0x1401325b6
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
test rax, rax
je 0x1401325d6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1401325e6
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
Function at 0x1401351d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x140210ce0], 1
jne 0x1401353d5
lock bts qword [0x140210ce0], 0x1f
jae 0x140135214
test byte [0x140210ce0], 1
jne 0x1401353d5
xor edx, edx
lea rcx, [0x140210ce0]
call sym.ProcessHacker.exe_PhfWaitForEvent
movzx eax, byte [0x1402165df]
add rsp, 0x38
ret
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x1401353c6
mov qword [rsp + 0x40], rbx
lea rcx, str.kernelbase.dll
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140135389
movzx ecx, word [rax]
mov qword [rsp + 0x48], rsi
mov esi, 0x5a4d
cmp cx, si
jne 0x1401352b3
mov edx, dword [rax + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0xffffffe
ja 0x1401352b3
cmp dword [rdx + rdi], 0x4550
jne 0x1401352b3
lea r8, [rdi + 0x88]
add r8, rdx
mov eax, dword [r8]
test eax, eax
je 0x1401352a8
cmp dword [r8 + 4], 0
je 0x1401352a8
lea r9, [rdi + rax]
xor ebx, ebx
lea rax, str.AppContainerDeriveSidFromMoniker
mov word [rsp + 0x28], bx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140104bd0
movzx ecx, word [rdi]
jmp 0x1401352b7
xor ebx, ebx
mov qword [0x140217690], rbx
jmp 0x1401352c3
xor ebx, ebx
mov eax, ebx
mov qword [0x140217690], rax
cmp cx, si
jne 0x14013531d
mov edx, dword ds:[rdi + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0xffffffe
ja 0x14013531d
cmp dword [rdx + rdi], 0x4550
jne 0x14013531d
lea r8, ds:[rdi + 0x88]
add r8, rdx
mov eax, dword [r8]
test eax, eax
je 0x14013531d
cmp dword [r8 + 4], 0
je 0x14013531d
lea r9, [rdi + rax]
mov word [rsp + 0x28], bx
lea rax, str.AppContainerLookupMoniker
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140104bd0
movzx ecx, word [rdi]
jmp 0x140135320
mov rax, rbx
cmp cx, si
mov qword [0x140217688], rax
mov rsi, qword [rsp + 0x48]
jne 0x140135380
mov ecx, dword [rdi + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x140135380
cmp dword [rcx + rdi], 0x4550
jne 0x140135380
lea r8, [rdi + 0x88]
add r8, rcx
mov eax, dword [r8]
test eax, eax
je 0x140135380
cmp dword [r8 + 4], 0
je 0x140135380
lea r9, [rdi + rax]
mov word [rsp + 0x28], bx
lea rax, str.AppContainerFreeMemory
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140104bd0
mov rbx, rax
mov qword [0x140217680], rbx
jmp 0x140135390
mov rbx, qword [0x140217680]
cmp qword [0x140217690], 0
mov rdi, qword [rsp + 0x30]
je 0x1401353c1
cmp qword [0x140217688], 0
je 0x1401353c1
movzx eax, byte [0x1402165df]
test rbx, rbx
mov ecx, 1
cmovne eax, ecx
mov byte [0x1402165df], al
mov rbx, qword [rsp + 0x40]
lea rcx, [0x140210ce0]
nop dword [rax]
call sym.ProcessHacker.exe_PhfSetEvent
movzx eax, byte [0x1402165df]
add rsp, 0x38
ret