joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14024f0b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x88
call fcn.1402563f0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov rbp, rcx
cmp r9, 0x10
jae 0x14024f0eb
xor eax, eax
jmp 0x14024f267
mov qword [rsp + 0x78], r13
cmp r9, 0x10
jne 0x14024f113
mov rax, qword [rcx + 0xa8]
mov r8, rdx
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
neg eax
sbb rax, rax
and eax, 0x10
jmp 0x14024f262
mov qword [rsp + 0x80], rbx
mov rbx, r9
mov r13d, reloc.WS2_32.dll_recv
and ebx, 0xf
mov rax, 0xfffffffffffffff0
cmove ebx, r13d
sub rax, rbx
add rdi, rax
je 0x14024f15e
mov rax, qword [rcx + 0xa8]
mov r8, rdx
mov r9, rdi
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
jne 0x14024f158
xor eax, eax
jmp 0x14024f25a
add r12, rdi
add rsi, rdi
mov rax, qword [rbp + 0x94]
mov qword [rsp + 0x70], r14
mov r14, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x9c]
mov qword [rsp + 0x68], r15
mov r15, qword [r12 + 8]
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rbp + 0x94], rax
mov qword [rbp + 0x9c], rax
mov rax, qword [rbp + 0xa8]
lea rdx, [rsp + 0x40]
mov r9, r13
mov r8, r12
mov rcx, rbp
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x14024f239
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140255100
cmp rbx, r13
je 0x14024f1e5
mov r8, r13
lea rdx, [rsp + rbx + 0x40]
lea rcx, [rsp + rbx + 0x30]
sub r8, rbx
call fcn.140255100
xor ecx, ecx
test rbx, rbx
je 0x14024f205
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x30]
inc rcx
xor al, byte [rsp + rcx + 0x3f]
mov byte [rsi + rcx + 0xf], al
cmp rcx, rbx
jb 0x14024f1f0
mov rax, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
mov r9, r13
mov qword [rbp + 0x94], rax
mov rax, qword [rsp + 0x20]
mov rdx, rsi
mov qword [rbp + 0x9c], rax
mov rax, qword [rbp + 0xa8]
mov rcx, rbp
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
jne 0x14024f23d
xor eax, eax
jmp 0x14024f250
mov qword [rbp + 0x94], r14
lea rax, [rdi + rbx + 0x10]
mov qword [rbp + 0x9c], r15
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140254fb0
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402536a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
mov eax, 0x78
call fcn.1402563f0
sub rsp, rax
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r12, rdx
mov rsi, rcx
test eax, eax
je 0x1402537d8
dec eax
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x10]
mov dword [rcx + 0x3c], eax
mov rax, qword [rbx]
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x68], r13
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x40], rax
and byte [rsp + 0x40], 0x7f
and byte [rsp + 0x44], 0x7f
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call fcn.1400dcaf0
test eax, eax
je 0x1402537cc
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r12
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], eax
call fcn.1400d9ee0
test eax, eax
je 0x1402537cc
lea rdx, [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rcx, rsi
call fcn.140253080
test eax, eax
je 0x1402537cc
lea rax, [rsp + 0x48]
xor r9d, r9d
sub rbx, rax
nop dword [rax + rax]
lea r8, [rsp + r9 + 0x48]
add r9, 4
movzx eax, byte [rbx + r8]
xor byte [r8], al
movzx eax, byte [rbx + r8 + 1]
xor byte [r8 + 1], al
movzx eax, byte [rbx + r8 + 2]
xor byte [r8 + 2], al
movzx eax, byte [rbx + r8 + 3]
xor byte [r8 + 3], al
cmp r9, 0x10
jl 0x140253780
mov rax, qword [rsp + 0x50]
or rax, qword [rsp + 0x48]
je 0x1402537ef
mov rdx, rdi
mov rcx, rbp
call fcn.1400f5f80
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140254fb0
add rsp, 0x78
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsi + 0x38], 0
mov eax, edi
jmp 0x1402537ce

Function at 0x140256edc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140256d4c
Function at 0x14025eb83
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1403bb2d8]
jne 0x140254fca
rol rcx, 0x10
test cx, 0xffff
jne 0x140254fc6
repz ret
ror rcx, 0x10
jmp 0x14025eadc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1403bf640]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1403bf738]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14025eb61
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1403bf640]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14025eb83
mov rax, qword [rsp + 0x88]
mov qword [0x1403bf738], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1403bf6d8], rax
mov rax, qword [0x1403bf738]
mov qword [0x1403bf5b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1403bf6c0], rax
mov dword [0x1403bf5a0], 0xc0000409
mov dword [0x1403bf5a4], 1
mov rax, qword [0x1403bb2d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1403bb2e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1403bf638], eax
mov ecx, 1
call fcn.14026844c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140393748]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1403bf638], 0
jne 0x14025ec0a
mov ecx, 1
call fcn.14026844c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140268040
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1403bb2d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14025ab70
xor ebx, ebx
cmp qword [0x1403bfe30], rbx
mov rdi, rax
jne 0x140268153
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14026822a
lea rdx, [0x140393d68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14026822a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1403bfe30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1403bfe38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140393d20]
mov rcx, rsi
mov qword [0x1403bfe40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1403bfe50], rax
test rax, rax
je 0x14026814a
lea rdx, [0x140393d08]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1403bfe48], rax
jmp 0x14026815a
mov rax, qword [0x1403bfe48]
jmp 0x140268161
mov rax, qword [0x1403bfe48]
mov r11, qword [0x1403bfe50]
cmp rax, rdi
je 0x1402681c8
cmp r11, rdi
je 0x1402681c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1403bfe50]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1402681c8
test rax, rax
je 0x1402681c8
call rsi
test rax, rax
je 0x1402681c2
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1402681c2
test byte [rsp + 0x40], 1
jne 0x1402681c8
bts ebp, 0x15
jmp 0x140268208
mov rcx, qword [0x1403bfe38]
cmp rcx, rdi
je 0x140268208
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140268208
call rax
mov rbx, rax
test rax, rax
je 0x140268208
mov rcx, qword [0x1403bfe40]
cmp rcx, rdi
je 0x140268208
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140268208
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1403bfe30]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14026822a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14026822c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140254fb0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001810
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x140001869
test rbx, rbx
je 0x14000185e
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 0x140005f60
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x140005f90
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 0x140005fa8
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 0x140005ff0
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
xor ebx, eax
imul ebx, ebx, 0x1000193
sub r8, 1
jne 0x140005fc0
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 0x140005ff0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140007070
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rcx + rdx*2], 0
jne 0x140007080
add rdx, rdx
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
add rsp, 0x28
jmp sym.ProcessHacker.exe_PhAutoDereferenceObject

Function at 0x1400070a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
add rsp, 0x28
jmp sym.ProcessHacker.exe_PhAutoDereferenceObject

Function at 0x1400070c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
add rsp, 0x28
jmp sym.ProcessHacker.exe_PhAutoDereferenceObject

Function at 0x140007110
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
add rsp, 0x28
jmp sym.ProcessHacker.exe_PhAutoDereferenceObject

Function at 0x1400071c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r9, rdx
lea rdx, [r8 + r8]
lea rcx, [rax + r9*2]
call sym.ProcessHacker.exe_PhCreateStringEx
mov rcx, rax
add rsp, 0x28
jmp sym.ProcessHacker.exe_PhAutoDereferenceObject
Function at 0x14000e390
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r9d, 0x100000
mov r8d, 0x200000
mov qword [rsp + 0x20], rbx
mov ecx, 0x1002
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [sym.ProcessHacker.exe_PhHeapHandle], rax
test rax, rax
jne 0x14000e3d2
mov eax, 0xc000009a
add rsp, 0x30
pop rbx
ret
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [sym.ProcessHacker.exe_PhLibImageBase], rax
call fcn.14000e5e0
xor r9d, r9d
lea rdx, [sym.ProcessHacker.exe_PhSystemBasicInformation]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor r9d, r9d
lea rcx, [0x14015bdc0]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x14000e47a
cmp byte [0x14015f3d8], 1
mov eax, 0xfa0
cmova ebx, eax
mov dword [0x140152eac], ebx
call fcn.140025330
test eax, eax
js 0x14000e47a
call fcn.1400012c0
test al, al
je 0x14000e47a
call fcn.14000e490
call fcn.140017cd0
test al, al
je 0x14000e47a
lea r8, case.0x14003b863.517
xor edx, edx
lea rcx, str.SymbolProvider
call sym.ProcessHacker.exe_PhCreateObjectType
mov qword [0x14015e988], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x14000e5e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x14000e610
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
add rsp, 0x148
ret
lea rcx, [sym.ProcessHacker.exe_PhOsVersion]
mov eax, 2
lea rdx, [rsp + 0x20]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x14000e621
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x14000e6f5
mov eax, dword [rsp + 0x28]
cmp eax, 1
jb 0x14000e6f7
jne 0x14000e6e0
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x33
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x400
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f0fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x40
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x20
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f03ff
add rsp, 0x148
ret
cmp eax, 2
jne 0x14000e776
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x34
jmp 0x14000e6a6
jae 0x14000e703
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0
jmp 0x14000e6a6
cmp eax, 6
jne 0x14000e74f
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14000e71c
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jmp 0x14000e783
cmp eax, 1
jne 0x14000e72d
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3d
jmp 0x14000e783
cmp eax, 2
jne 0x14000e73e
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3e
jmp 0x14000e783
cmp eax, 3
jne 0x14000e776
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
jmp 0x14000e783
cmp eax, 0xa
jne 0x14000e768
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14000e76a
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
jmp 0x14000e783
jbe 0x14000e776
mov dword [sym.ProcessHacker.exe_WindowsVersion], 0x7fffffff
jmp 0x14000e783
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14000e6a6
mov dword [sym.ProcessHacker.exe_ProcessQueryAccess], 0x1000
mov dword [sym.ProcessHacker.exe_ProcessAllAccess], 0x1f1fff
mov dword [sym.ProcessHacker.exe_ThreadQueryAccess], 0x800
mov dword [sym.ProcessHacker.exe_ThreadSetAccess], 0x400
mov dword [sym.ProcessHacker.exe_ThreadAllAccess], 0x1f0fff
add rsp, 0x148
ret
Function at 0x1400104b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.shlwapi.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.uxtheme.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [sym.ProcessHacker.exe_WindowsVersion]
mov rbx, rax
cmp ecx, 0x3c
jb 0x140010529
lea rcx, [0x140122488]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001051c
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.ProcessHacker.exe_WindowsVersion]
mov qword [0x14015f210], rax
cmp ecx, 0x3e
jb 0x140010557
lea rcx, [0x140122488]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010550
lea rdx, str.IsImmersiveProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015f200], rax
mov edx, 0x3d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetWindowTheme
mov rcx, rbx
mov qword [0x14015f1d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsThemeActive
mov rcx, rbx
mov qword [0x14015f1c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OpenThemeData
mov rcx, rbx
mov qword [0x14015f238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CloseThemeData
mov rcx, rbx
mov qword [0x14015f218], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsThemePartDefined
mov rcx, rbx
mov qword [0x14015f228], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DrawThemeBackground
mov rcx, rbx
mov qword [0x14015f1e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DrawThemeText
mov rcx, rbx
mov qword [0x14015f208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetThemeInt
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnableThemeDialogTexture
mov rcx, rbx
mov qword [0x14015f1d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHAutoComplete
mov rcx, rsi
mov qword [0x14015f240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHCreateShellItem
mov rcx, rdi
mov qword [0x14015f230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHOpenFolderAndSelectItems
mov rcx, rdi
mov qword [0x14015f220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SHParseDisplayName
mov rcx, rdi
mov qword [0x14015f1f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.comctl32.dll
mov qword [0x14015f1f8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400106c9
lea rdx, str.TaskDialogIndirect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14015f1e8], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov qword [0x14015f1e8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140010e30
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r8
mov ebx, edx
mov r14, rcx
test dl, 1
je 0x140010f1d
test dl, 2
je 0x140010e77
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [0x14015f3f8]
mov edx, 0x212
mov rcx, rbx
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], 0x200
mov word [rax + 0x200], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rsi, rsi
je 0x140010ef4
mov qword [rsi], rbx
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140010f0a
call fcn.1400258b0
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x80], rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
je 0x140010fe0
test bl, 2
jne 0x140010fe0
mov rbx, qword [0x14015f3f8]
mov edi, ebp
add rdi, rdi
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400257d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x140010fb9
test rsi, rsi
je 0x140010fa1
mov qword [rsi], rbx
jmp 0x140010fed
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140010fed
call fcn.1400258b0
jmp 0x140010fed
test rsi, rsi
je 0x140010fc6
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140010fdc
call fcn.1400258b0
xor eax, eax
jmp 0x140010fef
test rsi, rsi
je 0x140010fed
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret