joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fc080
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140244804]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
jne 0x1400fc0b2
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rax]
cmp eax, 0x40
jae 0x1400fc0ce
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 0x1400fc101
mov rcx, qword [0x140241998]
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 0x1400fc147
mov r8, qword [rbx + 0x210]
lea eax, [rcx + rcx]
mov rcx, qword [0x140241998]
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 0x1400fc580
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, [0x140244820]
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400fc5bb
lock dec dword [0x140244830]
jmp 0x1400fc5db
mov r8, qword [0x140244838]
mov edx, 4
mov rcx, qword [0x140241998]
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, [0x1400fc4e0]
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 0x1400fc643
mov rax, qword [rsp + 0x68]
jmp 0x1400fc688
mov eax, dword [0x140244834]
cmp dword [0x140244830], eax
lfence
jae 0x1400fc66f
mov rdx, rdi
lea rcx, [0x140244820]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x140244830]
jmp 0x1400fc686
mov rcx, qword [0x140241998]
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 0x1400fc6a0
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, [0x140244820]
mov rbp, rdx
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rbx, rax
test rax, rax
je 0x1400fc6db
lock dec dword [0x140244830]
jmp 0x1400fc6fb
mov r8, qword [0x140244838]
mov edx, 4
mov rcx, qword [0x140241998]
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, [0x1400fc4e0]
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 0x1400fc756
mov rcx, qword [rsp + 0x68]
mov qword [rsi], rcx
jmp 0x1400fc796
mov eax, dword [0x140244834]
cmp dword [0x140244830], eax
lfence
jae 0x1400fc782
mov rdx, rbx
lea rcx, [0x140244820]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x140244830]
nop
jmp 0x1400fc794
mov rcx, qword [0x140241998]
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 0x1400fcaa0
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 0x1400fcafc
test rbx, rbx
je 0x1400fcaf1
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 0x140101620
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x140101660
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
xor ebx, ebx
test r8, r8
jne 0x140101678
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 0x1401016c0
movzx eax, byte ds:[rdi]
lea rdi, [rdi + 1]
xor ebx, eax
imul ebx, ebx, 0x1000193
sub r8, 1
jne 0x140101690
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 0x1401016c0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140101700
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r10, rcx
test r8d, r8d
je 0x14010178a
sub r8d, 1
je 0x14010178a
cmp r8d, 1
jne 0x140101725
mov rcx, qword ds:[rcx]
xor r9d, r9d
test rcx, rcx
jne 0x140101728
xor eax, eax
ret
mov rax, qword [r10 + 8]
shr rcx, 1
lea r10, [rax + rcx*2]
test dl, dl
je 0x14010176b
cmp rax, r10
je 0x140101786
nop dword [rax]
movzx r8d, word [rax]
lea ecx, [r8 - 0x61]
cmp cx, 0x19
lea edx, [r8 - 0x20]
cmova edx, r8d
imul r9d, r9d, 0x1003f
add rax, 2
add r9d, edx
cmp rax, r10
jne 0x140101740
mov eax, r9d
ret
cmp rax, r10
je 0x140101786
movzx ecx, word [rax]
add rax, 2
imul r9d, r9d, 0x1003f
add r9d, ecx
cmp rax, r10
jne 0x140101770
mov eax, r9d
ret
jmp sym.ProcessHacker.exe_PhHashStringRef
Function at 0x140107760
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, qword [0x1402418d0]
mov ecx, 0x48
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140241998]
mov rbx, rax
mov edx, 4
mov dword [rax], 0x10
lea rax, [0x14005dce0]
mov qword [rbx + 8], rax
lea rax, [0x14005dcf0]
lea r8d, [rdx + 0x3c]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbx + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.1401868c0
mov eax, dword [rbx + 0x18]
mov edx, 4
mov rcx, qword [0x140241998]
mov dword [rbx + 0x28], eax
lea r8, [rax + rax*2]
shl r8, 3
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [0x1402418d0]
xor edi, edi
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x38], edi
mov dword [rbx + 0x3c], 0xffffffff
lea ecx, [rdi + 0x48]
mov dword [rbx + 0x40], edi
mov qword [0x140244878], rbx
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [0x140241998]
lea edx, [rdi + 4]
mov rbx, rax
lea r8d, [rdi + 0x40]
mov dword [rax], 0x18
lea rax, [0x140109d80]
mov qword [rbx + 8], rax
lea rax, [0x140109da0]
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rbx + 0x18]
mov edx, 0xff
shl r8, 2
mov rcx, rax
mov qword [rbx + 0x20], rax
call fcn.1401868c0
mov r8d, dword [rbx + 0x18]
lea edx, [rdi + 4]
mov rcx, qword [0x140241998]
mov dword [rbx + 0x28], r8d
shl r8, 5
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea ecx, [rdi + 0x31]
mov dword [rbx + 0x38], edi
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x3c], 0xffffffff
mov dword [rbx + 0x40], edi
mov qword [0x140244868], rbx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rdi + 0x32]
mov dword [0x140237d48], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rdi + 0xb]
mov dword [0x140237d4c], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rdi + 0xc]
mov dword [0x140237d40], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov dword [0x140237d44], eax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
test rax, rax
je 0x14010790b
lea edx, [rdi + 0x5a]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov dword [sym.ProcessHacker.exe_PhGlobalDpi], eax
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [0x140237d34], 0x3e
jb 0x140107988
lea rcx, [0x1401d9d58]
nop dword [rax + rax]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
je 0x140107981
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140107981
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140107981
cmp dword [rdx + rcx], 0x4550
jne 0x140107981
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140107981
cmp dword [rdx + 4], edi
je 0x140107981
lea r8, [rcx + rax]
mov word [rsp + 0x20], di
lea r9, str.IsImmersiveProcess
call fcn.1400fa1a0
mov rdi, rax
mov qword [0x140241ac0], rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140107e20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, r8
mov ebx, edx
mov rbp, rcx
test dl, 1
je 0x140107eec
test bl, 2
je 0x140107e6d
mov r8d, 0x20
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov esi, eax
jmp 0x140107fc1
mov rdx, qword [0x1402418e8]
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 0x140107ec8
mov qword [rdi], rbx
mov eax, esi
jmp 0x140107fc1
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140107ee5
nop dword [rax + rax]
call fcn.1400fbcc0
mov eax, esi
jmp 0x140107fc1
mov qword [rsp + 0xa8], r14
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
test eax, eax
je 0x140107fa9
test bl, 2
jne 0x140107fa9
mov rdx, qword [0x1402418e8]
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 0x140107f79
test rdi, rdi
je 0x140107f5f
mov qword [rdi], rsi
jmp 0x140107fb6
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140107fb6
call fcn.1400fbcc0
jmp 0x140107fb6
test rdi, rdi
je 0x140107f88
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 0x140107fa5
nop dword [rax + rax]
call fcn.1400fbcc0
xor eax, eax
jmp 0x140107fb9
test rdi, rdi
je 0x140107fb6
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.1401848a0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140108e80
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.140188690
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 0x140108f13
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140108f13
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140108f13
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140108f1c
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 0x140109000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, qword [rsp + 0xc0]
mov rsi, r9
mov rdi, r8
mov qword [rsp + 0x50], rdx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x48], 5
mov r8d, 3
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x140109094
lfence
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x140109094
mov rdx, qword [rsp + 0x40]
mov r9, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
jmp 0x140109096
xor eax, eax
mov rcx, qword ds:[rsp + 0x60]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010a0a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
xor edi, edi
xorps xmm0, xmm0
mov qword [rbp + 0x20], rdi
mov rbx, rdx
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x79], 1
movups xmmword [rsp + 0x60], xmm0
test rdx, rdx
je 0x14010a0e5
mov qword [rbp + 0x20], rdx
jmp 0x14010a1e6
cmp byte [0x140240e3f], dil
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdi
je 0x14010a13f
lea rax, [rbp + 0x20]
mov dword [rbp - 0x78], 0x1000
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x68]
lea rax, [rsp + 0x50]
mov dword [rbp - 0x68], edi
mov qword [rbp - 0x70], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
jmp 0x14010a1c3
lea r9, [rsp + 0x50]
mov dword [rbp - 0x40], 0x30
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rdi
mov edx, 0x1000
mov dword [rbp - 0x28], edi
lea rcx, [rbp + 0x20]
mov qword [rbp - 0x30], rdi
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x14010a1e6
cmp byte [0x140240e3f], dil
je 0x14010a1e6
lea rax, ds:[rbp + 0x20]
mov dword [rbp - 0x58], 0x1000
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x48]
lea rax, [rsp + 0x50]
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x50], rax
call fcn.14011f9e0
mov dword [rsp + 0x48], edi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x30], rax
lea rax, [rbp]
mov rcx, qword [0x140241b70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x999920cb
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14010a212
cmp dword [0x140237d34], 0x3e
jb 0x14010a212
mov rax, qword [0x140241ac0]
nop
test rax, rax
je 0x14010a212
call qword [case.0x1400f654f.0]
test eax, eax
setne byte [rsp + 0x78]
lea rdx, ds:[rsp + 0x60]
lea rcx, [0x140109fc0]
call qword [sym.imp.USER32.dll_EnumWindows]
test rbx, rbx
jne 0x14010a23a
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14010a23a
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword ds:[rsp + 0x68]
lea r11, [rsp + 0x110]
mov rax, qword [rsp + 0x60]
test rcx, rcx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
cmovne rax, rcx
mov rsp, r11
pop rbp
ret
Function at 0x14010a6a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, r8
test byte [0x14023e090], 1
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x30], rbp
jne 0x14010a778
lock bts qword [0x14023e090], 0x1f
jae 0x14010a6ff
test byte [0x14023e090], 1
jne 0x14010a778
xor edx, edx
lea rcx, [0x14023e090]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x14010a778
lea rcx, [0x1401d9d58]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
je 0x14010a762
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14010a762
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14010a762
cmp dword [rdx + rcx], 0x4550
jne 0x14010a762
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14010a762
cmp dword [rdx + 4], ebp
je 0x14010a762
lea r8, [rcx + rax]
mov word [rsp + 0x20], bp
lea r9, str.PrivateExtractIconExW
call fcn.1400fa1a0
nop
jmp 0x14010a765
mov rax, rbp
lea rcx, [0x14023e090]
mov qword [0x140244850], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rax, qword [0x140244850]
nop
test rax, rax
je 0x14010a7f6
test rbx, rbx
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
mov rcx, rsi
cmove r9, rbp
lea r8, [rsp + 0x68]
test rdi, rdi
cmove r8, rbp
xor edx, edx
call qword [case.0x1400f654f.0]
test eax, eax
jle 0x14010a7d2
test rdi, rdi
je 0x14010a7c1
mov rax, qword [rsp + 0x68]
mov qword [rdi], rax
test rbx, rbx
je 0x14010a7ce
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov al, 1
jmp 0x14010a7f8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14010a7e6
nop dword [rax]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14010a7f6
call qword [sym.imp.USER32.dll_DestroyIcon]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14010ba80
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
test byte [rcx + 8], 0xc
mov rbx, rcx
jne 0x14010bad7
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 0x14010bac0
lfence
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov rax, qword [rsp + 0x50]
cmp qword [rbx + 0x10], rax
je 0x14010bad7
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
add rsp, 0x40
pop rbx
ret

Function at 0x14010bae0
Capabilities:
Allocate or change rwx memory

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

Function at 0x14010bb60
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 0x14010bbce
mov rcx, qword ds:[rsi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x14010bbe7
mov eax, dword [rsp + 0x50]
test eax, eax
js 0x14010bbe7
mov rcx, qword ds:[rsp + 0x58]
add qword [rsi + 0x10], rcx
test rdi, rdi
je 0x14010bbe7
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14010bc00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x70
xor r13d, r13d
mov r14, r9
test byte [rcx + 8], 2
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
mov edi, r13d
je 0x14010bc33
call fcn.14010bb60
jmp 0x14010be0d
mov eax, dword [rbx + 0x28]
mov ecx, dword [rcx + 0x24]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], r15
sub eax, ecx
jne 0x14010bd4c
mov r8d, dword [rbx + 0x2c]
test r8d, r8d
je 0x14010bc6e
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.14010be40
test eax, eax
js 0x14010bca4
mov dword [rbx + 0x2c], r13d
cmp ebp, dword [rbx + 0x20]
jb 0x14010bc90
lfence
mov r9, r14
mov qword [rbx + 0x24], r13
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call fcn.14010bb60
jmp 0x14010bdfd
cmp qword [rbx + 0x18], rdi
jne 0x14010bcac
mov rcx, rbx
call fcn.14010bae0
nop
test eax, eax
jns 0x14010bcac
lfence
jmp 0x14010bdfd
mov ecx, dword [rbx + 0x20]
lea rax, [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
test byte [rbx + 8], 8
mov qword [rsp + 0x40], r13
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x14010bd10
mov rcx, qword ds:[rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x14010bd44
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x14010bd44
mov rsi, qword ds:[rsp + 0x58]
add qword [rbx + 0x10], rsi
test esi, esi
jne 0x14010bd38
lfence
test r14, r14
je 0x14010bdfb
mov dword [r14], r13d
jmp 0x14010bdfb
mov dword [rbx + 0x24], r13d
mov ecx, r13d
mov dword [rbx + 0x28], esi
jmp 0x14010bd4e
lfence
jmp 0x14010bdfb
mov esi, eax
mov edx, ecx
cmp esi, ebp
mov rcx, r12
cmova esi, ebp
add rdx, qword [rbx + 0x18]
mov r8d, esi
call fcn.140188690
add dword [rbx + 0x24], esi
cmp esi, ebp
jae 0x14010bdf3
mov eax, dword [rbx + 0x20]
cmp dword [rbx + 0x28], eax
jne 0x14010bdf3
lfence
test byte [rbx + 8], 8
lea rax, [r12 + rsi]
lea rcx, [rbx + 0x10]
cmove rcx, r13
xor r12d, r12d
mov qword [rsp + 0x40], r12
sub ebp, esi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x14010bddf
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x14010bdfb
mov edi, dword [rsp + 0x60]
nop
test edi, edi
js 0x14010bdfb
mov rax, qword [rsp + 0x68]
add qword [rbx + 0x10], rax
add esi, eax
mov qword [rbx + 0x24], r12
test r14, r14
je 0x14010bdfb
mov dword [r14], esi
mov eax, edi
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret