joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bfeb0
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 0x1400bfefd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400bffe1
movzx eax, ax
or eax, 0xc0070000
jmp 0x1400bffe1
lea rax, [0x14010bbd8]
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
lea r8, str.KProcessHacker2
mov qword [rsp + 0x58], rbx
lea rdx, str.KProcessHacker2
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 0x1400bffbf
test rsi, rsi
je 0x1400bff82
mov rdx, rsi
call fcn.1400bfcf0
mov ebx, eax
test eax, eax
jns 0x1400bff82
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400bffd6
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400bffb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400bffab
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400bffd6
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400bffd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400bffcd
mov ebx, eax
jmp 0x1400bffd6
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 0x1400c0000
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
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 0x1400c0043
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400c00cb
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0x10020
mov qword [rsp + 0x50], rdi
lea rdx, str.KProcessHacker2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400c00a6
lea r8, [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 0x1400c009b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400c009b
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400c00bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400c00bb
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

Function at 0x1400c00e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
mov qword [rsp + 0x50], rcx
mov rcx, qword [0x14015c480]
mov ebx, edx
mov dword [rsp + 0x48], eax
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x10
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], edx
xor edx, edx
mov dword [rsp + 0x28], 0x999920df
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
cmp eax, 0xc00000db
jne 0x1400c0145
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x70
pop rbx
ret
Function at 0x1400c09c0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r9d, 0x100000
mov r8d, 0x200000
mov qword [rsp + 0x20], rbx
mov ecx, 0x1002
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [sym.ProcessHacker.exe_PhHeapHandle], rax
test rax, rax
jne 0x1400c0a02
mov eax, 0xc000009a
add rsp, 0x30
pop rbx
ret
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [sym.ProcessHacker.exe_PhLibImageBase], rax
call fcn.1400c0ab0
xor r9d, r9d
lea rdx, [sym.ProcessHacker.exe_PhSystemBasicInformation]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor r9d, r9d
lea rcx, [0x14015ec38]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x1400c0aa5
cmp byte [0x14015f058], 1
mov eax, 0xfa0
cmova ebx, eax
mov dword [0x140156d20], ebx
call fcn.1400ae0a0
test eax, eax
js 0x1400c0aa5
call fcn.1400aeac0
test al, al
je 0x1400c0aa5
call fcn.1400b4850
test al, al
je 0x1400c0aa5
lea r8, [0x1400b58d0]
xor edx, edx
lea rcx, str.SymbolProvider
call sym.ProcessHacker.exe_PhCreateObjectType
mov qword [0x14015f240], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x1400c0ab0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x1400c0ae0
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
add rsp, 0x148
ret
lea rcx, [sym.ProcessHacker.exe_PhOsVersion]
mov eax, 2
lea rdx, [rsp + 0x20]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400c0af1
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x1400c0bc5
mov eax, dword [rsp + 0x28]
cmp eax, 1
jb 0x1400c0bc7
jne 0x1400c0bb0
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x33
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x400
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f0fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x40
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x20
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f03ff
add rsp, 0x148
ret
cmp eax, 2
jne 0x1400c0c46
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x34
jmp 0x1400c0b76
jae 0x1400c0bd3
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0
jmp 0x1400c0b76
cmp eax, 6
jne 0x1400c0c1f
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c0bec
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jmp 0x1400c0c53
cmp eax, 1
jne 0x1400c0bfd
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3d
jmp 0x1400c0c53
cmp eax, 2
jne 0x1400c0c0e
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jmp 0x1400c0c53
cmp eax, 3
jne 0x1400c0c46
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jmp 0x1400c0c53
cmp eax, 0xa
jne 0x1400c0c38
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c0c3a
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
jmp 0x1400c0c53
jbe 0x1400c0c46
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
jmp 0x1400c0c53
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x1400c0b76
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x1000
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f1fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x800
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x400
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f0fff
add rsp, 0x148
ret
Function at 0x1400c17f0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.shlwapi.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.uxtheme.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [sym.ProcessHacker.exe_WindowsVersion]
mov rbx, rax
cmp ecx, 0x3c
jb 0x1400c1869
lea rcx, [0x1401261f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c185c
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.ProcessHacker.exe_WindowsVersion]
mov qword [0x14015eff8], rax
cmp ecx, 0x3e
jb 0x1400c1897
lea rcx, [0x1401261f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c1890
lea rdx, str.IsImmersiveProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015efe0], rax
mov edx, 0x3d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetWindowTheme
mov rcx, rbx
mov qword [0x14015eff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsThemeActive
mov rcx, rbx
mov qword [0x14015efa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenThemeData
mov rcx, rbx
mov qword [0x14015efa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CloseThemeData
mov rcx, rbx
mov qword [0x14015ef90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsThemePartDefined
mov rcx, rbx
mov qword [0x14015ef98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DrawThemeBackground
mov rcx, rbx
mov qword [0x14015ef80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DrawThemeText
mov rcx, rbx
mov qword [0x14015ef88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetThemeInt
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnableThemeDialogTexture
mov rcx, rbx
mov qword [0x14015efb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHAutoComplete
mov rcx, rsi
mov qword [0x14015efd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHCreateShellItem
mov rcx, rdi
mov qword [0x14015efb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHOpenFolderAndSelectItems
mov rcx, rdi
mov qword [0x14015efd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHParseDisplayName
mov rcx, rdi
mov qword [0x14015efc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.comctl32.dll
mov qword [0x14015efc8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c1a09
lea rdx, str.TaskDialogIndirect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015efe8], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov qword [0x14015efe8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x1400c22f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r8
mov ebx, edx
mov r14, rcx
test dl, 1
je 0x1400c23dd
test dl, 2
je 0x1400c2337
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [0x14015f258]
mov edx, 0x212
mov rcx, rbx
call fcn.1400ae4a0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], 0x200
mov word [rax + 0x200], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rsi, rsi
je 0x1400c23b4
mov qword [rsi], rbx
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c23ca
call fcn.1400ae580
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x80], rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
je 0x1400c24a0
test bl, 2
jne 0x1400c24a0
mov rbx, qword [0x14015f258]
mov edi, ebp
add rdi, rdi
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400ae4a0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400c2479
test rsi, rsi
je 0x1400c2461
mov qword [rsi], rbx
jmp 0x1400c24ad
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c24ad
call fcn.1400ae580
jmp 0x1400c24ad
test rsi, rsi
je 0x1400c2486
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c249c
call fcn.1400ae580
xor eax, eax
jmp 0x1400c24af
test rsi, rsi
je 0x1400c24ad
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c3220
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
movzx esi, r8b
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400c32f5
movzx eax, byte [rdx]
xor al, 0xe
test al, 0x1f
jne 0x1400c32f5
lea rdx, str..exe
mov rcx, rdi
call fcn.1400e45ac
test eax, eax
jne 0x1400c32f5
xor ebx, ebx
mov qword [rsp + 0x318], rbx
test rbp, rbp
je 0x1400c32b4
test sil, sil
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x318]
mov rcx, rbp
cmovne r9, rbx
lea r8, [rsp + 0x318]
cmove r8, rbx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rax, qword [rsp + 0x318]
test rax, rax
jne 0x1400c339b
test sil, sil
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x318]
cmove rdx, rbx
cmovne rcx, rbx
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
mov rax, qword [rsp + 0x318]
test rax, rax
je 0x1400c339b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x1400c339b
xor ebx, ebx
mov qword [rsp + 0x310], r14
test sil, sil
mov qword [rsp + 0x318], rbx
mov r14d, ebx
sete r14b
test rbp, rbp
je 0x1400c3355
mov eax, r14d
lea r8, [rsp + 0x30]
bts eax, 8
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov qword [rsp + 0x318], rbx
test rbx, rbx
jne 0x1400c3390
test rdi, rdi
je 0x1400c3390
or r14d, 0x110
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rsp + 0x20], r14d
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x310]
mov rax, rbx
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c33b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov ecx, 2
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, qword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
call fcn.1400e31d0
mov rcx, qword [rdi]
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400c343e
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400c343e
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400c343e
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400c3447
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c3460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rcx
mov rcx, rsi
mov r8d, 5
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400c34a1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rdx, rax
mov qword [rsp + 0x48], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400c34c9
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400c34d0
xor eax, eax
jmp 0x1400c3564
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400c355f
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
mov edx, 4
mov rbx, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1400e31d0
mov eax, 0xffff
cmp word [rdi + 2], ax
jne 0x1400c3523
mov dword [rdi + 0xc], 0x40000448
jmp 0x1400c3529
mov dword [rdi], 0x40000448
mov rax, qword [rsp + 0x68]
mov r8, r14
mov r9, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400c3e10
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 ebp, r8d
mov ebx, edx
mov r15, rcx
test edx, edx
jne 0x1400c3e49
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
mov ebx, 0x3b
mov eax, 0x1ff
cmovae ebx, eax
mov edi, dword [0x140156d24]
mov eax, 3
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
test r8d, r8d
mov r8d, edi
cmove ebp, eax
lea edx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov r9d, ebp
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, r15
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c3f4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400c3f39
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
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 [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r12
mov r9d, ebp
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, r15
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c3f4f
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1400c3f71
mov eax, dword [0x140156d24]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x140156d24], 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 0x1400c4260
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 0x1400c51c0
Capabilities:
Map section object

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov dword [rsp + 0x48], 2
lea rax, [r11 + 0x20]
mov rbx, rdx
mov qword [r11 + 0x20], 1
xor edx, edx
lea r8, [r11 + 0x18]
mov dword [rsp + 0x40], edx
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
or rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x1400c5236
mov rdx, qword [rsp + 0x70]
mov r8, rbx
or rcx, 0xffffffffffffffff
call sym.ProcessHacker.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400c6d90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x60
cmp qword [rcx + 0x20], 0
mov rbp, r9
mov r15, r8
mov rdi, rcx
jne 0x1400c6dd3
mov r9d, 1
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x1f0003
add rcx, 0x20
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x1400c6f0b
cmp qword [rdi + 0x28], 0
mov qword [rsp + 0x88], rsi
jne 0x1400c6e07
mov r9d, 1
mov byte [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rdi + 0x28]
mov edx, 0x1f0003
call qword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
js 0x1400c6f03
mov qword [rsp + 0x80], rbx
lea rbx, [rdi + 0x30]
mov qword [rsp + 0x90], r12
xor r12d, r12d
cmp qword [rbx], r12
jne 0x1400c6e8a
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ntdll.dll_NtClearEvent]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ntdll.dll_NtClearEvent]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
lea rax, [0x1400c6f20]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], 0x8000
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
js 0x1400c6ef3
mov rcx, qword [rdi + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rdi + 0x20]
lea rax, [0x1400c6f70]
xor edx, edx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r15
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rdi + 0x28]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
mov qword [rdi + 0x10], r12
lock or dword [rsp], r12d
mov qword [rdi + 0x18], r12
test eax, eax
je 0x1400c6ef1
mov rcx, qword [rbx]
mov esi, 0xc0000001
mov edx, esi
call qword [sym.imp.ntdll.dll_NtTerminateThread]
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbx], r12
mov eax, esi
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
ret