joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d8600
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14d, 0x400
mov r12, r9
mov r8d, r14d
mov r13, rdx
mov r15, rcx
mov dil, 1
mov rcx, qword [0x140196670]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
nop dword [rax + rax]
mov byte [rsp + 0x50], dil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov byte [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x38], 1
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, r15
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov ebx, eax
cmp eax, 0x103
jne 0x1400d86ac
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
cmp ebx, 0x80000005
je 0x1400d86bc
cmp ebx, 0xc0000004
jne 0x1400d86dd
mov rcx, qword [0x140196670]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [r14 + r14]
mov r14d, eax
mov r8d, eax
jmp 0x1400d8633
mov r13, qword [rsp + 0xc0]
cmp ebx, 0x80000006
je 0x1400d872f
test ebx, ebx
js 0x1400d8731
mov rdx, r12
mov rcx, rbp
xor esi, esi
mov rdi, rbp
call r13
test al, al
je 0x1400d8731
mov eax, dword [rdi]
test eax, eax
je 0x1400d871f
add esi, eax
mov rdx, r12
mov edi, esi
add rdi, rbp
mov rcx, rdi
call r13
test al, al
jne 0x1400d8703
jmp 0x1400d8731
mov r13, qword [rsp + 0xb8]
xor dil, dil
jmp 0x1400d8650
xor ebx, ebx
mov rcx, qword [0x140196670]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d8760
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov esi, 0x200
mov r14, rdx
mov r8d, esi
mov rbp, rcx
mov rcx, qword [0x140196670]
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, esi
mov dword [rsp + 0x20], 0x16
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp eax, 0x80000005
je 0x1400d87d0
cmp eax, 0xc0000023
je 0x1400d87d0
cmp eax, 0xc0000004
jne 0x1400d87ec
mov rcx, qword [0x140196670]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rsi + rsi]
mov esi, eax
mov r8d, eax
jmp 0x1400d8788
test ebx, ebx
js 0x1400d87f5
mov qword [r14], rdi
jmp 0x1400d8809
mov rcx, qword [0x140196670]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400dacf0
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 [0x140196670]
mov esi, 0x10
mov r8d, 0x100
lea edx, [rsi - 0xc]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
nop word [rax + rax]
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
test eax, eax
jns 0x1400dad9c
mov rcx, qword [0x140196670]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x1400dad9f
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400dad40
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 0x1400dadc0
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 0x1400dae18
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 0x1400dae23
mov eax, 0xc0000106
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140196670]
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
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 0x1400daeb5
mov rcx, qword [0x140196670]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0x80000005
jne 0x1400daeb8
mov r8d, dword [rsp + 0x68]
mov edx, 4
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
add esi, 0xffffffff
jne 0x1400dae50
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 0x1400db840
Capabilities:
Set file attributes

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xc0
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x1400db85b
mov rcx, qword [rcx + 8]
jmp 0x1400db85e
mov rcx, rbp
xor r9d, r9d
mov qword [rsp + 0xf0], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov edi, eax
test eax, eax
js 0x1400db928
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], 0x80
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]
mov rsi, qword [rsp + 0xe0]
test edi, edi
cmovns rsi, qword [rsp + 0xe8]
jmp 0x1400db930
mov rsi, qword [rsp + 0xe0]
test edi, edi
js 0x1400db982
mov r9, rbx
lea r8, [0x1400db560]
xor edx, edx
mov rcx, rsi
call sym.ProcessHacker.exe_PhEnumDirectoryFile
mov r9d, 1
mov byte [rsp + 0xe0], 1
lea r8, [rsp + 0xe0]
mov dword [rsp + 0x20], 0xd
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov rsi, qword [rsp + 0xf0]
test rbx, rbx
je 0x1400db995
mov rcx, qword [rbx + 8]
jmp 0x1400db998
mov rcx, rbp
call qword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
cmove edi, ebp
mov eax, edi
add rsp, 0xc0
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400dc640
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rsi, rdx
mov qword [rbp + 0x7f], 0
lea rdx, str.SystemCurrentControlSetServices_
mov ecx, 3
lea r9, str.Parameters
lea r8, str.KProcessHacker3
call sym.ProcessHacker.exe_PhConcatStrings
mov rdi, rax
movzx ecx, word [rax]
mov word [rbp - 0x29], cx
add cx, 2
cmp qword [rax], 0xfffe
mov word [rbp - 0x27], cx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x21], rcx
jbe 0x1400dc6ad
mov ebx, 0xc0000106
jmp 0x1400dc711
xor r8d, r8d
lea rax, [rbp + 0x77]
lea r9, [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x29]
lea rcx, [r8 - 3]
call fcn.1400da6c0
mov ebx, eax
test eax, eax
js 0x1400dc711
lea rax, [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x17]
mov dword [rsp + 0x28], 0
lea rcx, [rbp + 0x7f]
mov edx, 0x30006
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rbp + 0x77]
mov ebx, eax
test rcx, rcx
je 0x1400dc711
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rdi - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400dc727
call fcn.1400c8bc0
test ebx, ebx
js 0x1400dc7e6
mov rcx, qword [rbp + 0x7f]
lea rax, str.SecurityLevel
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x39]
mov r9d, 4
mov qword [rbp - 0x31], rax
xor r8d, r8d
mov dword [rbp - 0x39], 0x1c001a
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1400dc7cc
cmp byte [rsi + 4], 0
je 0x1400dc7c8
lea rax, str.DynamicConfiguration
mov dword [rbp - 0x39], 0x2a0028
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x31], rax
mov dword [rbp - 0x19], 3
mov dword [rbp - 0x15], 1
call fcn.140105780
test eax, eax
js 0x1400dc7c8
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp - 0x19]
mov dword [rsp + 0x28], 0x2c
lea rdx, [rbp - 0x39]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test ebx, ebx
jns 0x1400dc7dc
cmp dword [rbp + 0x67], 1
jne 0x1400dc7dc
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400dc960
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 0x1400dc9ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400dca99
movzx eax, ax
or eax, 0xc0070000
jmp 0x1400dca99
lea rax, [0x14013ca58]
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 0x1400dca77
mov rcx, rax
call fcn.1400dc800
test rsi, rsi
je 0x1400dca3a
mov rdx, rsi
call fcn.1400dc640
mov ebx, eax
test eax, eax
jns 0x1400dca3a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400dca8e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400dca6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400dca63
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400dca8e
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400dca8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400dca85
mov ebx, eax
jmp 0x1400dca8e
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 0x1400e0db0
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 0x1400e0df4
mov eax, dword [sym.ProcessHacker.exe_WindowsVersion]
cmp eax, 0x66
jb 0x1400e0de4
mov ebx, 0x3ff
jmp 0x1400e0df4
cmp eax, 0x64
mov ebx, 0x3b
mov ecx, 0x1ff
cmovae ebx, ecx
mov edi, dword [0x14018dfb0]
test r8d, r8d
mov rcx, qword [0x140196670]
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 0x1400e0efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400e0ee8
mov rcx, qword [0x140196670]
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 [0x140196670]
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]
test eax, eax
jne 0x1400e0efe
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1400e0f20
mov eax, dword [0x14018dfb0]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x14018dfb0], 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 0x1400e1270
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 0x1400e1db0
Capabilities:
Get graphical window text

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1400e1e57
mov rdx, qword [0x140196800]
mov qword [rsp + 0x30], rbx
mov ebx, eax
add rbx, rbx
mov qword [rsp + 0x48], rdi
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, rsi
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x30]
test eax, eax
je 0x1400e1e27
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsp + 0x40], rax
lea rcx, [rdi - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e1e47
call fcn.1400c8bc0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
add rsp, 0x20
pop rsi
jmp sym.ProcessHacker.exe_PhReferenceEmptyString
Function at 0x1400e1e70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rdi, r8
mov ebx, edx
mov rbp, rcx
test dl, 1
je 0x1400e1f43
test bl, 2
je 0x1400e1eb5
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [0x140196800]
mov ecx, 0x212
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
lea rcx, [rax + 0x10]
mov qword [rax], 0x200
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + 0x200], ax
mov rcx, rbp
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rdi, rdi
je 0x1400e1f1b
mov qword [rdi], rbx
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e1f31
call fcn.1400c8bc0
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test eax, eax
je 0x1400e2008
test bl, 2
jne 0x1400e2008
mov rdx, qword [0x140196800]
mov ebx, esi
add rbx, rbx
mov qword [rsp + 0x80], r14
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, rbp
mov r8d, dword [r14]
mov rdx, qword [r14 + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400e1fe1
test rdi, rdi
je 0x1400e1fb1
mov qword [rdi], r14
jmp 0x1400e1fc7
lea rcx, [r14 - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e1fc7
call fcn.1400c8bc0
mov eax, esi
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x1400e1fee
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rdi], rax
lea rcx, [r14 - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400e2004
call fcn.1400c8bc0
xor eax, eax
jmp 0x1400e1fc9
test rdi, rdi
je 0x1400e2015
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rdi], rax
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e2cb0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2f0
movzx esi, r8b
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400e2d80
movzx eax, byte [rdx]
xor al, 0xe
test al, 0x1f
jne 0x1400e2d80
lea rdx, str..exe
mov rcx, rdi
call fcn.14010f5a0
test eax, eax
jne 0x1400e2d80
xor ebx, ebx
mov qword [rsp + 0x308], rbx
test rbp, rbp
je 0x1400e2d41
test sil, sil
lea r8, [rsp + 0x308]
lea rdx, [rsp + 0x308]
mov rcx, rbp
cmovne r8, rbx
cmove rdx, rbx
call fcn.1400c8600
mov rax, qword [rsp + 0x308]
test rax, rax
jne 0x1400e2e15
test sil, sil
lea rdx, [rsp + 0x308]
lea rcx, [rsp + 0x308]
cmove rdx, rbx
cmovne rcx, rbx
call sym.ProcessHacker.exe_PhGetStockApplicationIcon
mov rax, qword [rsp + 0x308]
test rax, rax
je 0x1400e2e15
mov rcx, rax
call qword [sym.imp.USER32.dll_CopyIcon]
jmp 0x1400e2e15
xor ebx, ebx
mov qword [rsp + 0x308], rbx
test rbp, rbp
je 0x1400e2dd5
movzx eax, sil
lea r8, [rsp + 0x30]
neg al
mov r9d, 0x2b8
sbb ecx, ecx
xor edx, edx
add ecx, 0x101
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x308]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov qword [rsp + 0x308], rbx
test rbx, rbx
jne 0x1400e2e12
test rdi, rdi
je 0x1400e2e12
neg sil
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
sbb eax, eax
mov rcx, rdi
add eax, 0x111
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x308]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov rax, rbx
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400e2e30
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.14010e700
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 0x1400e2ebe
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400e2ebe
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400e2ebe
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400e2ec7
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 0x1400e2ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push r14
sub rsp, 0x58
mov rbp, r8
mov qword [rax - 0x28], r9
mov r14, rcx
mov qword [rax - 0x30], 5
mov rcx, rbp
mov qword [rax - 0x20], 0
lea r9, [rax + 0x20]
mov r8d, 3
lea rdx, [rax - 0x30]
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x1400e2ffa
mov rdx, qword [rsp + 0x88]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x1400e2ffa
mov rcx, qword [0x140196670]
mov edx, 4
mov qword [rsp + 0x70], rbx
mov ebx, dword [rsp + 0x78]
mov qword [rsp + 0x80], rsi
mov r8d, ebx
mov qword [rsp + 0x50], rdi
mov rdi, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.14010e700
mov rdi, qword [rsp + 0x50]
mov eax, 0xffff
cmp word [rsi + 2], ax
jne 0x1400e2fa3
mov dword [rsi + 0xc], 0x40000448
jmp 0x1400e2fa9
mov dword [rsi], 0x40000448
mov rax, qword [rsp + 0x98]
mov r8, r14
mov r9, qword [rsp + 0x90]
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rcx, qword [0x140196670]
mov r8, rsi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x80]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x58
pop r14
pop rbp
ret
xor eax, eax
add rsp, 0x58
pop r14
pop rbp
ret
Function at 0x1400e4bf0
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 0x1400e4c66
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