joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104990
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call sym.ProcessHacker.exe_PhCountStringZ
mov rdx, qword gs:[0x30]
mov r13, rax
add r13, r13
mov rcx, qword [rdx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rdx, qword gs:[0x30]
xor ebx, ebx
mov r8, qword [rdx + 0x60]
mov r12, qword [r8 + 0x18]
add r12, 0x10
mov r15, qword [r12]
cmp r15, r12
je 0x140104ae2
nop dword [rax]
movzx esi, word ds:[r15 + 0x48]
mov rax, qword [r15 + 0x50]
cmp rsi, r13
jne 0x140104b18
cmp byte [0x1402165de], 1
mov r14, rdi
mov ecx, esi
mov rbx, rax
jb 0x140104a7d
shr rcx, 4
test rcx, rcx
je 0x140104a66
nop word [rax + rax]
movdqu xmm1, xmmword [r14]
movdqu xmm0, xmmword [rbx]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x140104a6e
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x140104a40
shr rsi, 1
and esi, 7
jmp 0x140104aa2
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x140104aa2
shr rcx, 3
test rcx, rcx
je 0x140104a9c
mov rax, qword [r14]
cmp qword [rbx], rax
jne 0x140104b07
add rbx, 8
add r14, 8
sub rcx, 1
jne 0x140104a86
shr rsi, 1
and esi, 3
test rsi, rsi
je 0x140104adf
sub r14, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
movzx ebp, word [r14 + rbx]
cmp cx, bp
je 0x140104ad5
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, bp
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
nop
cmp di, ax
jne 0x140104b13
add rbx, 2
sub rsi, 1
jne 0x140104ab0
mov rbx, r15
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
je 0x140104b3e
mov rax, qword [rbx + 0x30]
jmp 0x140104b40
and esi, 7
lea rsi, [rsi + rcx*8]
shr rsi, 1
jmp 0x140104aa2
mov rdi, qword [rsp + 0x50]
mov r15, qword [r15]
cmp r15, r12
jne 0x140104a00
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140104b60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov eax, 0x5a4d
movzx r10d, r8w
cmp word [rcx], ax
jne 0x140104bc4
mov r9d, dword ds:[rcx + 0x3c]
lea eax, [r9 - 1]
cmp eax, 0xffffffe
ja 0x140104bc4
cmp dword [r9 + rcx], 0x4550
jne 0x140104bc4
lea r8, ds:[rcx + 0x88]
add r8, r9
mov eax, dword [r8]
test eax, eax
je 0x140104bc4
cmp dword [r8 + 4], 0
je 0x140104bc4
mov word [rsp + 0x28], r10w
lea r9, [rcx + rax]
mov qword [rsp + 0x20], rdx
call fcn.140104bd0
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1401058b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r13
push r14
mov eax, 0x1078
call fcn.140182db0
sub rsp, rax
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov qword ss:[rsp + 0x10b0], rsi
movzx r13d, dl
mov qword [rsp + 0x10b8], r12
xor r14d, r14d
mov r12, rcx
mov qword [rsp + 0x1070], r15
mov rcx, qword [0x140213cd0]
mov esi, 0x1000
mov r8d, esi
lea edx, [r14 + 4]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov rbx, rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r15d, r14d
call qword [sym.imp.ntdll.dll_NtReadFile]
nop
test eax, eax
js 0x1401059ee
mov qword [rsp + 0x10a8], rbp
mov edi, dword [rsp + 0x58]
test edi, edi
je 0x1401059e6
lea ebp, ds:[rdi + r15]
cmp esi, ebp
jae 0x140105991
mov rcx, qword [0x140213cd0]
add esi, esi
mov r9d, esi
mov r8, rbx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rbx, rax
mov ecx, r15d
lea rdx, [rsp + 0x60]
add rcx, rbx
mov r8, rdi
call fcn.140165120
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov dword [rsp + 0x30], 0x1000
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r15d, ebp
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jns 0x140105960
mov rbp, qword [rsp + 0x10a8]
mov r12, qword [rsp + 0x10b8]
mov edi, r15d
mov eax, esi
lea rcx, [rdi + 1]
cmp rax, rcx
jae 0x140105a20
mov rcx, qword [0x140213cd0]
lea r9d, [rsi + 1]
mov r8, rbx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rbx, rax
mov rsi, qword [rsp + 0x10b0]
test r15d, r15d
mov r15, qword [rsp + 0x1070]
je 0x140105a84
mov byte [rdi + rbx], r14b
test r13b, r13b
je 0x140105a4e
mov rdx, rdi
mov rcx, rbx
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov r14, rax
jmp 0x140105a84
mov rdx, qword [0x140213b48]
lea rcx, [rdi + 0x11]
call sym.ProcessHacker.exe_PhCreateObject
mov r14, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [r14 + 8], rax
mov byte [rax + rdi], 0
test rbx, rbx
je 0x140105a84
mov rcx, qword [r14 + 8]
mov r8, rdi
mov rdx, rbx
call fcn.140165120
mov rcx, qword [0x140213cd0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, r14
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.140161390
add rsp, 0x1078
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x140105bf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, 0x5a4d
mov rdi, r9
mov rsi, r8
mov rbx, rdx
cmp word [rcx], ax
jne 0x140105cd5
mov r10d, dword [rcx + 0x3c]
lea eax, [r10 - 1]
cmp eax, 0xffffffe
ja 0x140105cd5
cmp dword [r10 + rcx], 0x4550
jne 0x140105cd5
lea r8, [rcx + 0x88]
add r8, r10
mov eax, dword [r8]
test eax, eax
je 0x140105cd5
cmp dword [r8 + 4], 0
je 0x140105cd5
lea r9, ds:[rcx + rax]
xor eax, eax
mov word [rsp + 0x28], ax
lea rax, str.DllGetClassObject
mov qword [rsp + 0x20], rax
call fcn.140104bd0
test rax, rax
je 0x140105cd5
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [0x140187ac0]
call qword [case.0x140101f48.0]
mov ebx, eax
test eax, eax
js 0x140105cc3
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rsi
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140101f48.0]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140101f48.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov eax, 0x7f
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1401063b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx], eax
mov qword [rcx + 0x208], rax
mov qword [rcx + 0x210], rax
mov ecx, dword [0x1402169f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1402169f0]
mov rdx, rbx
mov qword [rbx + 0x218], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax]
test eax, eax
jne 0x140106400
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rsp, 0x20
pop rbx
ret

Function at 0x140106410
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.ProcessHacker.exe_PhDrainAutoPool
mov ecx, dword [0x1402169f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbx
jne 0x140106471
mov rdx, qword [rbx + 0x218]
mov ecx, dword [0x1402169f0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140106471
mov r8, qword ds:[rbx + 0x210]
test r8, r8
je 0x14010646a
mov rcx, qword [0x140213cd0]
xor edx, edx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
add rsp, 0x20
pop rbx
nop
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
Function at 0x140106570
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1402169f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
jne 0x1401065a2
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rax]
cmp eax, 0x40
jae 0x1401065be
mov qword [rbx + rax*8 + 8], rdi
mov rax, rdi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x210], 0
jne 0x1401065f1
mov rcx, qword [0x140213cd0]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov ecx, dword [rbx + 0x20c]
cmp eax, ecx
jne 0x140106637
mov r8, qword [rbx + 0x210]
lea eax, [rcx + rcx]
mov rcx, qword [0x140213cd0]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x208]
mov ecx, eax
mov rax, qword [rbx + 0x210]
mov qword [rax + rcx*8], rdi
mov rax, rdi
inc dword [rbx + 0x208]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140106960
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
mov rbx, r8
lea rcx, [0x140216a00]
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14010699b
lock dec dword [0x140216a10]
jmp 0x1401069bb
mov r8, qword [0x140216a18]
mov edx, 4
mov rcx, qword [0x140213cd0]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
xor edx, edx
mov qword [rdi + 0x10], rsi
mov qword [rsp + 0x48], rdx
lea rcx, [rdi + 0x10]
lea rax, [rsp + 0x68]
mov qword [rcx + 8], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rcx
lea rax, [0x1401068d0]
mov qword [rsp + 0x30], rax
lea rcx, [rdx - 1]
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x140106a23
mov rax, qword [rsp + 0x68]
jmp 0x140106a68
mov eax, dword [0x140216a14]
cmp dword [0x140216a10], eax
jae 0x140106a4f
mov rdx, rdi
lea rcx, [0x140216a00]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x140216a10]
jmp 0x140106a66
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140106a80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rdi, r8
lea rcx, [0x140216a00]
mov rbp, rdx
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rbx, rax
test rax, rax
je 0x140106abb
lock dec dword [0x140216a10]
jmp 0x140106adb
mov r8, qword [0x140216a18]
mov edx, 4
mov rcx, qword [0x140213cd0]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
xor edx, edx
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x48], rdx
lea rcx, [rbx + 0x10]
lea rax, [rsp + 0x68]
mov qword [rcx + 8], rdi
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rcx
lea rax, [0x1401068d0]
mov qword [rsp + 0x30], rax
lea rcx, [rdx - 1]
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test eax, eax
js 0x140106b36
mov rcx, qword [rsp + 0x68]
mov qword [rsi], rcx
jmp 0x140106b71
mov eax, dword [0x140216a14]
cmp dword [0x140216a10], eax
jae 0x140106b5d
mov rdx, rbx
lea rcx, [0x140216a00]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x140216a10]
jmp 0x140106b6f
mov rcx, qword [0x140213cd0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140106ea0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov rbx, rdx
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x50]
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
nop dword [rax]
test eax, eax
js 0x140106efc
test rbx, rbx
je 0x140106ef1
mov rax, qword [rsp + 0x40]
mov qword [rbx], rax
mov rax, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14010b430
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor eax, eax
mov r8, rcx
test rdx, rdx
je 0x14010b456
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
xor eax, ecx
imul eax, eax, 0x1000193
sub rdx, 1
jne 0x14010b440
ret

Function at 0x14010b460
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
xor ebx, ebx
test r8, r8
jne 0x14010b478
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov rsi, r8
shr rsi, 1
mov qword [rsp + 0x38], rdi
mov rdi, qword [rcx + 8]
test dl, dl
jne 0x14010b4c0
movzx eax, byte ds:[rdi]
lea rdi, [rdi + 1]
xor ebx, eax
imul ebx, ebx, 0x1000193
sub r8, 1
jne 0x14010b490
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
movzx ecx, word [rdi]
lea rdi, [rdi + 2]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub rsi, 1
jne 0x14010b4c0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14010d0d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r8
mov ebx, edx
mov rbp, rcx
test dl, 1
je 0x14010d19c
test bl, 2
je 0x14010d11d
mov r8d, 0x20
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
jmp 0x14010d271
mov rdx, qword [0x140213b58]
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 0x14010d178
mov qword [rdi], rbx
mov eax, esi
jmp 0x14010d271
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010d195
nop dword [rax + rax]
call fcn.140106290
mov eax, esi
jmp 0x14010d271
mov qword [rsp + 0xa8], r14
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
test eax, eax
je 0x14010d259
test bl, 2
jne 0x14010d259
mov rdx, qword [0x140213b58]
mov ebx, r14d
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rsi, 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 [rsi]
mov rdx, qword [rsi + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x14010d229
test rdi, rdi
je 0x14010d20f
mov qword [rdi], rsi
jmp 0x14010d266
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010d266
call fcn.140106290
jmp 0x14010d266
test rdi, rdi
je 0x14010d238
nop
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rdi], rax
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010d255
nop dword [rax + rax]
call fcn.140106290
xor eax, eax
jmp 0x14010d269
test rdi, rdi
je 0x14010d266
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rdi], rax
mov eax, r14d
mov r14, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140161390
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010e1c0
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.140165120
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 0x14010e253
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14010e253
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14010e253
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14010e25c
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 0x14010e280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, qword ds:[rsp + 0xd0]
lea rdx, [rsp + 0x48]
mov r12, qword [rsp + 0xd8]
mov rbp, r8
mov r14, rcx
mov qword [rsp + 0x50], r9
mov rcx, rbp
mov qword [rsp + 0x48], 5
lea r9, [rsp + 0x38]
mov qword [rsp + 0x58], 0
mov r8d, 3
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x14010e3ad
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x14010e3ad
mov rcx, qword [0x140213cd0]
mov edx, 4
mov qword [rsp + 0x80], rbx
mov ebx, dword [rsp + 0x30]
mov qword [rsp + 0x78], rsi
mov r8d, ebx
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140165120
mov rdi, qword [rsp + 0x70]
mov eax, 0xffff
cmp word [rsi + 2], ax
jne 0x14010e368
mov dword [rsi + 0xc], 0x40000448
jmp 0x14010e36e
mov dword [rsi], 0x40000448
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, r14
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x80]
jmp 0x14010e3af
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161390
add rsp, 0x88
pop r15
pop r14
pop r12
pop rbp
ret
Function at 0x14010f070
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x10], rax
mov rbx, rdx
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], rcx
mov byte [rbp - 0x37], r8b
movups xmmword [rbp - 0x50], xmm0
test rdx, rdx
je 0x14010f0aa
mov rcx, rdx
mov qword [rbp + 0x10], rdx
jmp 0x14010f10e
cmp byte [0x1402130ef], al
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rax
jne 0x14010f0f8
lea r9, [rbp - 0x60]
mov dword [rbp - 0x30], 0x30
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov edx, 0x1000
mov dword [rbp - 0x18], eax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x14010f10a
cmp byte [0x1402130ef], 0
je 0x14010f10a
lea r8, [rbp - 0x60]
mov edx, 0x1000
lea rcx, [rbp + 0x10]
call fcn.140123530
mov rcx, qword [rbp + 0x10]
nop
test rcx, rcx
je 0x14010f131
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jb 0x14010f131
cmp qword [sym.imp.USER32.dll_IsImmersiveProcess], 0
je 0x14010f131
call qword [sym.imp.USER32.dll_IsImmersiveProcess]
mov byte [rbp - 0x38], al
lea rdx, [rbp - 0x50]
lea rcx, [0x14010ef90]
call qword [sym.imp.USER32.dll_EnumWindows]
test rbx, rbx
jne 0x14010f15b
mov rcx, qword ds:[rbp + 0x10]
test rcx, rcx
je 0x14010f15b
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x50]
test rcx, rcx
mov rbx, qword [rsp + 0x98]
cmovne rax, rcx
add rsp, 0x80
pop rbp
ret
Function at 0x140113e00
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
test byte [rcx + 8], 0xc
mov rbx, rcx
jne 0x140113e54
mov rcx, qword [rcx]
lea r8, [rsp + 0x50]
mov r9d, 8
mov dword [rsp + 0x20], 0xe
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x140113e3d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rax, qword [rsp + 0x50]
cmp qword [rbx + 0x10], rax
je 0x140113e54
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140113e60
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
test byte [rcx + 8], 8
lea rax, [rcx + 0x10]
mov rsi, rcx
mov rdi, r9
mov ecx, 0
cmove rax, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov rcx, qword [rsi]
lea rax, [r11 - 0x18]
mov dword [r11 - 0x38], r8d
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140113ece
mov rcx, qword ds:[rsi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x140113ee7
mov eax, dword [rsp + 0x50]
test eax, eax
js 0x140113ee7
mov rcx, qword ds:[rsp + 0x58]
add qword [rsi + 0x10], rcx
test rdi, rdi
je 0x140113ee7
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140114170
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
test byte [rcx + 8], 8
lea rax, [rcx + 0x10]
mov rbx, rcx
mov ecx, 0
cmove rax, rcx
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov dword [r11 - 0x38], r8d
lea rax, [r11 - 0x18]
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [r11 - 0x40], rdx
xor edx, edx
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp eax, 0x103
jne 0x1401141de
mov rcx, qword ds:[rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x1401141f4
mov ecx, dword [rsp + 0x50]
test ecx, ecx
js 0x1401141f2
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
or dword [rbx + 8], 0x80000000
mov eax, ecx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret