joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a2a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r14d, r14d
lea r15, [0x14015bde0]
test byte [0x140155490], 1
lea r12, [0x14015bdf8]
movzx edi, r8b
mov esi, edx
mov rbp, rcx
jne 0x14002a3ab
lock bts qword [0x140155490], 0x1f
jae 0x14002a309
test byte [0x140155490], 1
jne 0x14002a3ab
xor edx, edx
lea rcx, [0x140155490]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14002a3ab
mov r9d, 4
mov r8, r15
mov ecx, 0x400
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14002a32f
mov dword [0x14015bde0], 0x2e
mov r9d, 4
mov r8, r12
mov ecx, 0x400
lea edx, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14002a355
mov dword [0x14015bdf8], 0x2c
lock bts qword [0x140155490], 0
jb 0x14002a3ab
mov rbx, qword [0x140155498]
test rbx, rbx
je 0x14002a378
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x140155490], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x14002a3ab
test rbx, rbx
je 0x14002a3ab
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x140155498], r14
neg dil
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], esi
sbb eax, eax
mov dword [rsp + 0x34], r14d
and eax, 3
mov qword [rsp + 0x40], r15
mov r8, rbp
mov dword [rsp + 0x38], eax
xor edx, edx
mov qword [rsp + 0x48], r12
mov ecx, 0x400
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov rbx, qword [0x14015f3f8]
mov esi, eax
lea ecx, [rax + rax]
mov edi, ecx
lea rdx, [rcx + 0x12]
mov rcx, rbx
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
lea r9, [rsp + 0x30]
movzx edx, byte [rbx + 2]
mov r8, rbp
mov word [rax], dx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
xor edx, edx
mov word [rax + rdi], r14w
mov ecx, 0x400
mov rax, qword [rbx + 8]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x14002a471
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002a46d
call fcn.1400258b0
xor eax, eax
jmp 0x14002a483
mov rcx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002a530
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x38]
mov rsi, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x14002a5b7
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, edi
mov edx, 4
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
xor edx, edx
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x14002a5a4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002b210
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14015a3d0]
test rax, rax
je 0x14002b229
lock inc dword [rax - 8]
add rsp, 0x38
ret
mov qword [rsp + 0x48], rbx
mov edx, 0x92
mov rbx, qword [0x14015f3f8]
mov qword [rsp + 0x50], rbp
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r14
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor ebp, ebp
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], 0x80
lea edx, [rbp + 0x40]
mov word [rax + 0x80], bp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or esi, 0xffffffff
mov r14d, eax
cmp eax, 0x40
jbe 0x14002b304
mov qword [rsp + 0x28], rdi
lea rcx, [rbx - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14002b2b1
call fcn.1400258b0
mov rbx, qword [0x14015f3f8]
lea eax, [r14 + r14]
lea rdx, [rax + 0x12]
mov edi, eax
mov rcx, rbx
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
mov edx, r14d
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], bp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rdi, qword [rsp + 0x28]
mov r14d, eax
mov rbp, qword [rsp + 0x50]
test r14d, r14d
mov r14, qword [rsp + 0x20]
jne 0x14002b337
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x14002b326
call fcn.1400258b0
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rcx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
xor eax, eax
lock cmpxchg qword [0x14015a3d0], rbx
jne 0x14002b357
lock inc dword [rbx - 8]
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14002b370
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x14015bdf0], 0
mov rbx, rcx
je 0x14002b393
movups xmm0, xmmword [0x14015bde8]
movups xmmword [rcx], xmm0
add rsp, 0x30
pop rbx
ret
mov ecx, 0x7ffe0030
mov qword [rsp + 0x28], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rsp + 0x20], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x14002b3c1
sub rax, 2
mov qword [rsp + 0x20], rax
movups xmm0, xmmword [rsp + 0x20]
mov qword [0x14015bde8], rax
movups xmmword [rbx], xmm0
lock or dword [rsp], 0
mov qword [0x14015bdf0], 0x7ffe0030
add rsp, 0x30
pop rbx
ret
Function at 0x14002b6b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
xor esi, esi
mov r8, qword [rax + 0x60]
mov rax, qword [r8 + 0x18]
add rax, 0x10
mov rcx, qword [rax]
cmp rcx, rax
je 0x14002b713
nop
test rbx, rbx
je 0x14002b748
cmp qword [rcx + 0x30], rbx
je 0x14002b748
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x14002b700
mov rbx, rsi
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
jne 0x14002b75f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rcx, rcx
je 0x14002b713
movzx edx, word [rcx + 0x48]
mov rcx, qword [rcx + 0x50]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rbx, rax
jmp 0x14002b716
mov rcx, rbx
mov qword [rsp + 0x30], rdi
call sym.ProcessHacker.exe_PhGetFileName
mov rdi, rax
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14002b785
call fcn.1400258b0
test r14, r14
je 0x14002b7a9
mov edx, 0x5c
xor r8d, r8d
mov rcx, rdi
call sym.ProcessHacker.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
lea rcx, [rax + 1]
cmovne rsi, rcx
mov dword [r14], esi
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002b860
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rbp, rdx
mov r14d, ecx
test rdx, rdx
je 0x14002b896
mov rcx, rdx
call sym.ProcessHacker.exe_PhCountStringZ
mov rsi, rax
add rsi, rsi
jmp 0x14002b899
mov rsi, r15
mov rbx, qword [0x14015f3f8]
lea rdi, [rsi + 0x208]
lea rdx, [rdi + 0x12]
mov rcx, rbx
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor r9d, r9d
movzx ecx, byte [rbx + 2]
xor r8d, r8d
mov word [rax], cx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov edx, r14d
mov word [rax + rdi], r15w
xor ecx, ecx
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002b92a
mov rcx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
test rbp, rbp
je 0x14002b925
mov rcx, qword [rbx + 8]
lea r8, [rsi + 2]
shr rax, 1
mov rdx, rbp
lea rcx, [rcx + rax*2]
call fcn.1400e19b0
add qword [rbx], rsi
mov rax, rbx
jmp 0x14002b942
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002b940
call fcn.1400258b0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14002cb60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.1400e2690
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x28], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14002cbd0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov rdi, r8
mov rsi, rcx
mov ebp, r9d
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.1400e2690
mov qword [rsp + 0x38], rbx
mov ebx, dword [rsp + 0xc0]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x24], 0x40
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x28], rsi
test bl, 1
je 0x14002cc4b
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
lea rax, str.runas
cmovb rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14002ccf9
mov r9d, dword [rsp + 0xc8]
test r9d, r9d
je 0x14002cccb
test bl, 2
jne 0x14002ccb7
cmp r9d, 0xffffffff
jne 0x14002cc8b
mov rcx, qword [rsp + 0x88]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x14002cccb
imul rcx, r9, 0xffffffffffffd8f0
mov rax, r9
lea r8, [rsp + 0xa0]
mov qword [rsp + 0xa0], rcx
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x14002cccb
lea r8, [rsp + 0x88]
mov edx, 1
xor ecx, ecx
call sym.ProcessHacker.exe_PhWaitForMultipleObjectsAndPump
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x14002cce7
mov rax, qword [rsp + 0x88]
mov qword [rcx], rax
mov al, 1
jmp 0x14002ccfb
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov al, 1
jmp 0x14002ccfb
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002ce60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rbx, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.1400e2690
lea rax, str.properties
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x24], 0xc
mov qword [rsp + 0x28], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x14002d0b0
Capabilities:
Create process on windows
Set registry value

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov r8, qword [0x1401554d0]
mov rdi, rdx
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit]
mov r14, rcx
mov word [rsp + 0x48], r8w
mov word [rsp + 0x4a], r8w
mov qword [rsp + 0x50], rax
cmp r8, 0xfffe
ja 0x14002d2d9
xor r8d, r8d
lea rax, [rsp + 0x40]
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea rcx, [r8 - 9]
call fcn.140023c80
test eax, eax
js 0x14002d2d9
xor eax, eax
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x50]
mov dword [rsp + 0x28], eax
lea rcx, [rbp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x20006
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x14002d15d
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x14002d2d1
lea rax, str.LastKey
mov qword [rsp + 0x1a8], rsi
mov rcx, rdi
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 0x10000e
call fcn.14002ced0
mov r9d, 1
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rbx, rax
mov ecx, dword [rax]
add ecx, 2
mov dword [rsp + 0x28], ecx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
or edi, 0xffffffff
lea rcx, [rbx - 0x10]
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002d1d1
call fcn.1400258b0
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ntdll.dll_NtClose]
lea rdx, str._regedit.exe
mov ecx, 0x24
call sym.ProcessHacker.exe_PhGetKnownLocation
mov rsi, rax
test rax, rax
jne 0x14002d209
lea edx, [rax + 0x16]
lea rcx, str.regedit.exe
call sym.ProcessHacker.exe_PhCreateStringEx
mov rsi, rax
mov rbx, qword [rsi + 8]
xor edx, edx
cmp byte [sym.ProcessHacker.exe_PhElevated], dl
lea r8d, [rdx + 0x6c]
jne 0x14002d282
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x70], 0x70
call fcn.1400e2690
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
lea rax, [0x140122b94]
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x70]
lea rax, str.runas
mov qword [rbp - 0x78], rbx
cmovb rax, qword [rbp - 0x80]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 0x40
mov dword [rbp - 0x60], 1
mov qword [rsp + 0x78], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14002d2b6
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x14002d2b6
lea rcx, [rbp - 0x1c]
mov dword [rbp - 0x20], 0x70
call fcn.1400e2690
lea rax, [0x140122b94]
mov qword [rbp - 8], rbx
lea rcx, [rbp - 0x20]
mov qword [rbp], rax
mov dword [rbp + 0x10], 5
mov qword [rbp - 0x18], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea rcx, [rsi - 0x10]
lock xadd dword [rcx + 8], edi
mov rsi, qword [rsp + 0x1a8]
cmp edi, 1
jne 0x14002d2d1
call fcn.1400258b0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x180
pop r14
pop rdi
pop rbp
ret
Function at 0x14002d2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov edi, 0x10
test rdx, rdx
je 0x14002d32d
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x14002d310
add rax, rax
mov word [rsp + 0x30], ax
add ax, 2
mov word [rsp + 0x32], ax
jmp 0x14002d333
xor eax, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8d, 0x100
mov qword [rsp + 0x38], rdx
mov edx, 4
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
nop dword [rax + rax]
mov ecx, dword [rsp + 0x58]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, rsi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jns 0x14002d3c5
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
xor edx, edx
mov r8, rbx
cmp eax, 0x80000005
jne 0x14002d3d8
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x58]
mov edx, 4
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
add edi, 0xffffffff
jne 0x14002d360
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14002e3d0
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
mov dword [rcx], edx
test edx, edx
je 0x14002e428
sub edx, 1
je 0x14002e3fa
cmp edx, 1
je 0x14002e3f0
mov ecx, 0xc00000f0
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
xor eax, eax
mov dword [rcx + 4], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [rcx + 0x1c], 0x67452301
mov qword [rcx + 0x30], rax
mov dword [rcx + 0x20], 0xefcdab89
mov dword [rcx + 0x24], 0x98badcfe
mov dword [rcx + 0x28], 0x10325476
mov dword [rcx + 0x2c], 0xc3d2e1f0
add rsp, 0x28
ret
xor eax, eax
mov dword [rcx + 0xc], 0x67452301
mov qword [rcx + 4], rax
mov dword [rcx + 0x10], 0xefcdab89
mov dword [rcx + 0x14], 0x98badcfe
mov dword [rcx + 0x18], 0x10325476
add rsp, 0x28
ret

Function at 0x14002e450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov r9, rdx
mov r11, rcx
mov edx, dword [rcx]
test edx, edx
je 0x14002e4d3
sub edx, 1
je 0x14002e4c3
cmp edx, 1
je 0x14002e476
mov ecx, 0xc000000d
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov r10d, r8d
mov r8d, dword [rcx + 4]
not r8d
test r10, r10
je 0x14002e4b7
mov qword [rsp + 0x20], rbx
lea rbx, [0x140121c50]
movsx ecx, byte [r9]
lea r9, [r9 + 1]
mov eax, r8d
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
sub r10, 1
jne 0x14002e491
mov rbx, qword [rsp + 0x20]
not r8d
mov dword [r11 + 4], r8d
add rsp, 0x28
ret
add rcx, 4
mov rdx, r9
add rsp, 0x28
jmp fcn.140028210
add rcx, 4
mov rdx, r9
add rsp, 0x28
jmp fcn.14001c040
Function at 0x14002f1d0
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 0x14002f209
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
mov ebx, 0x3b
mov eax, 0x1ff
cmovae ebx, eax
mov edi, dword [0x140153808]
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 0x14002f30f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14002f2f9
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 0x14002f30f
mov rcx, qword [sym.ProcessHacker.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x14002f331
mov eax, dword [0x140153808]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x140153808], 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 0x14002f620
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 0x1400318a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
cmp qword [r8 + 8], 0
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
jne 0x1400318cd
mov eax, 0xc000000d
jmp 0x140031a16
mov rcx, qword [0x140155760]
mov rax, qword [str.SoftwareMicrosoftWindows_NTCurrentVersionKnownFunctionTableDlls]
mov qword [rsp + 0xc0], rbx
mov word [rsp + 0x50], cx
mov word [rsp + 0x52], cx
mov qword [rsp + 0x58], rax
cmp rcx, 0xfffe
jbe 0x140031905
mov eax, 0xc0000106
jmp 0x140031a0e
xor r8d, r8d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
lea rcx, [r8 - 3]
call fcn.140023c80
mov ebx, eax
test eax, eax
js 0x140031954
lea r8, [rsp + 0x70]
mov edx, 0x20019
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x140031952
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
test ebx, ebx
js 0x140031a0e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xd0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0xc0000034
jne 0x1400319a2
mov eax, 0xc0000361
jmp 0x140031a0e
lea r9, [rsp + 0x38]
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
js 0x140031a0e
mov rcx, qword [rsp + 0x38]
lea rax, str.OutOfProcessFunctionTableCallback
lea r9, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0x220021
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov ebx, eax
test eax, eax
js 0x140031a01
mov r8, qword [rsp + 0xe0]
mov r9, rsi
mov rdx, rbp
mov rcx, r14
call qword [rsp + 0x48]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc8]
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
Function at 0x14003bc50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.crypt32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle2
mov rcx, rbx
mov qword [0x14015e8f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x14015e898], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext2
mov rcx, rbx
mov qword [0x14015e8b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x14015e8e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x14015e8c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x14015e8a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x14015e888], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x14015e890], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x14015e8e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinVerifyTrust
mov rcx, rbx
mov qword [0x14015e8a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertNameToStrW
mov rcx, rdi
mov qword [0x14015e8d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertDuplicateCertificateContext
mov rcx, rdi
mov qword [0x14015e8b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [0x14015e8c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0x14015e8d0], rax
add rsp, 0x20
pop rdi
ret