joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028340
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [0x1400cb7d8], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x1400283bf
call fcn.140028440
test al, al
jne 0x1400283bf
mov rcx, rbx
call fcn.1400283e0
test eax, eax
je 0x1400283d9
call fcn.14002ef00
test al, al
je 0x1400283bf
and qword [rsp + 0x40], 0
mov r9d, edi
mov rax, qword [rsp + 0x80]
movzx edx, bp
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], si
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
jmp 0x1400283c4

Function at 0x1400285d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
lea edx, [rbx + 0x10]
call fcn.140006ce0
test eax, eax
js 0x140028673
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
call fcn.14001e334
test eax, eax
jne 0x140028673
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], SafeArrayPutElement
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14002882c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x2b8]
mov rbp, r8
mov rbx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov r14d, r9d
mov rsi, rdx
call fcn.140017440
test al, al
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
cmove rdx, rsi
mov r9d, r14d
and qword [rsp + 0x20], 0
mov r8, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002a92c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400428aa
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x14002aab3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14002aab3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jb 0x1400428b6
mov ecx, eax
lea edx, [rbx + 2]
call fcn.14002aee8
cmp rax, 0x400
jbe 0x1400428d6
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002aec4
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400428ff
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x14002aab3
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140029abc
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14002aa83
lea rcx, [rsp + 0x70]
call fcn.14002aeb8
nop
lea rcx, [rsp + 0x48]
call fcn.14002ab00
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
call fcn.140054c04
nop
jmp 0x14002aa60
call fcn.140054c04
mov ebx, eax
jmp 0x14002aa6c
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400428cc
lea rcx, [rsp + 0x70]
call fcn.14002aeb8
mov ebx, 0x8007000e
jmp 0x14002aa83
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14002aa17
mov ebx, 0x8007000e
jmp 0x14002aa62

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

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x14002bcec
movzx eax, byte [r9 + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x14002bcce
mov rax, r8
shr rax, 0x20
xor rax, r8
ret
Function at 0x14002cb54
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14002d670
add rsp, 0x28
jmp 0x14002cb54
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400c9b58], rbx
je 0x14002cb9e
cmp rax, rbx
jne 0x14002cbb3
mov edi, 1
mov eax, dword [0x1400c9b60]
cmp eax, 1
jne 0x14002cbc0
lea ecx, [rax + 0x1e]
call fcn.140195000
jmp 0x14002cc2d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002cb87
mov eax, dword [0x1400c9b60]
test eax, eax
jne 0x14002cc23
mov dword [0x1400c9b60], 1
lea r14, [0x140093760]
lea rbx, [0x140093748]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002cc15
test eax, eax
jne 0x14002cc19
cmp qword [rbx], 0
je 0x14002cc0a
mov rax, qword [rbx]
mov rcx, qword [case.0x140006f84.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002cbeb
test eax, eax
je 0x14002cc2d
mov eax, 0xff
jmp 0x14002cd82
mov dword [0x1400c9260], 1
mov eax, dword [0x1400c9b60]
cmp eax, 1
jne 0x14002cc55
lea rdx, [0x140093740]
lea rcx, [0x140093550]
call sub.msvcrt.dll__initterm
mov dword [0x1400c9b60], 2
test edi, edi
jne 0x14002cc62
xor eax, eax
xchg qword [0x1400c9b58], rax
cmp qword [0x1400c9b78], 0
je 0x14002cc96
lea rcx, [0x1400c9b78]
call fcn.14002d5f0
test eax, eax
je 0x14002cc96
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400c9b78]
mov r9, qword [case.0x140006f84.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x14002cd21
test cl, cl
je 0x14002ccb8
test edi, edi
jne 0x14002cd21
dec cl
cmp cl, 0x1f
ja 0x14002cccb
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002ccb8
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400245e0
mov dword [0x1400c925c], eax
cmp dword [0x1400c9280], 0
jne 0x14002cd0a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c9260], 0
jne 0x14002cd1f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c925c]
jmp 0x14002cd82
cmp cl, 0x22
jne 0x14002cd33
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002cd48
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002cca9
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002d500
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002d54c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d544
cmp dword [rcx + 0x3c], edx
jl 0x14002d544
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002d544
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14002d54c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14002d764
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d76c
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d7e9
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002d809
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x540
pop rbx
ret

Function at 0x14002d76c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d76c
push rbx
sub rsp, 0x540
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d7e9
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002d809
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x540
pop rbx
ret
Function at 0x14002f720
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
or ebx, 0xffffffff
cmp dword [0x1400c9180], ebx
je 0x14002f736
call fcn.1400887c0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
cmp eax, ebx
mov dword [0x1400c9180], eax
sete bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x14002f759
movzx eax, ax
or eax, 0x80070000
test bl, bl
je 0x14002f776
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommonincludeperusercatalogresethelper.h
mov r9d, eax
mov edx, 0x22
call fcn.14002c058
add rsp, 0x20
pop rbx
ret

Function at 0x140044cdc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov ebp, edx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
xor ebx, ebx
test rcx, rcx
jne 0x140044d1e
lea ecx, [rbx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x140044d52
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x38], rax
mov r8, rsi
mov qword [rsp + 0x30], rbx
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140044d4d
mov ecx, eax
jmp 0x140044d14
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14004a3cc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x280
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov byte [rcx], bpl
mov qword [rsp + 0x30], rax
lea r8, str.CatalogLogOnCorruption
lea rax, [rsp + 0x4c]
mov rsi, rcx
lea r9d, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
call fcn.14002882c
test eax, eax
jne 0x14004a614
cmp dword [rsp + 0x4c], ebp
je 0x14004a614
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbp + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
js 0x14004a5c4
mov ecx, 0x104
mov qword [rsp + 0x298], rbx
mov edx, ecx
lea rax, [rsp + 0x60]
cmp word [rax], bp
je 0x14004a47e
add rax, 2
sub rdx, 1
jne 0x14004a46f
test rdx, rdx
mov ebx, 0x80070057
mov rax, rcx
mov r8, rbp
cmovne ebx, ebp
sub rax, rdx
test rdx, rdx
cmovne r8, rax
je 0x14004a4f4
lea rdx, [rsp + 0x60]
lea rdx, [rdx + r8*2]
sub rcx, r8
je 0x14004a4de
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r8, rdx
test rax, rax
je 0x14004a4de
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x14004a4de
mov word [rdx], r9w
dec rax
add rdx, 2
sub rcx, 1
jne 0x14004a4bd
test rcx, rcx
lea rax, [rdx - 2]
mov ebx, 0x8007007a
cmovne rax, rdx
cmovne ebx, ebp
mov word [rax], bp
test ebx, ebx
js 0x14004a610
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], ebp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov qword [rsp + 0x2a0], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004a5e5
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
test eax, eax
jne 0x14004a565
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004a565
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004a5a9
mov rax, qword [rsp + 0x40]
movabs rcx, 0xc92a69c000
add rax, rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jns 0x14004a5a9
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002cdb0
mov rbp, qword [rsp + 0x2a8]
add rsp, 0x280
pop rsi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
test eax, eax
jle 0x14004a5fa
movzx ecx, ax
or ecx, 0x80070000
lea eax, [rcx + 0x7ff8fffe]
cmp eax, 1
ja 0x14004a60c
mov byte [rsi], 1
mov eax, ebp
jmp 0x14004a5b4
mov eax, ecx
jmp 0x14004a5b4
mov eax, ebx
jmp 0x14004a5bc
mov eax, ebp
jmp 0x14004a5c4
Function at 0x14004ae54
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x450
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x468], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
lea rax, [rsp + 0x230]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
js 0x14004b009
mov ecx, 0x104
mov edx, ecx
lea rax, [rsp + 0x230]
cmp word [rax], 0
je 0x14004aec9
add rax, 2
sub rdx, 1
jne 0x14004aeb9
mov ebx, 0x80070057
xor r10d, r10d
test rdx, rdx
cmovne ebx, r10d
mov rax, rcx
sub rax, rdx
mov r8d, r10d
test rdx, rdx
cmovne r8, rax
je 0x14004af48
sub rcx, r8
lea rdx, [rsp + 0x230]
lea rdx, [rdx + r8*2]
je 0x14004af30
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rdx
test rax, rax
je 0x14004af30
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x14004af30
mov word [rdx], r9w
add rdx, 2
dec rax
sub rcx, 1
jne 0x14004af0f
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], r10w
mov ebx, 0x8007007a
cmovne ebx, r10d
test ebx, ebx
js 0x14004b007
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x48]
call fcn.14001f204
mov rdx, rax
mov rcx, rdi
call fcn.1400589f8
xor r8d, r8d
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
test eax, eax
je 0x14004afa1
cmp eax, 0x50
je 0x14004afa1
cmp eax, 0xb7
je 0x14004afa1
test eax, eax
jg 0x14004af98
mov ebx, eax
jmp 0x14004afa1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004b007
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0xe8]
call fcn.14001f204
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001f244
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x188]
call fcn.14001e68c
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400586d0
test eax, eax
js 0x14004b009
call fcn.1400526e8
jmp 0x14004b009
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
Function at 0x14004b038
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 9
lea rdx, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogs
mov rcx, 0xffffffff80000002
call fcn.14001e334
mov ebx, eax
test eax, eax
jle 0x14004b09e
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x14004b0c2
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa18
call fcn.14002c058
jmp 0x14004b22e
xor edi, edi
mov dword [rsp + 0x40], 0xff
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14004b223
test eax, eax
jne 0x14004b1f9
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14004b1ed
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x140097c68]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400948c0]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x14004b173
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa32
call fcn.14002c058
xor ecx, ecx
mov qword [rsp + 0x48], rcx
test ebx, ebx
js 0x14004b1c3
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x80]
call qword [case.0x140006f84.0]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x14004b1be
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa39
call fcn.14002c058
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004b1d6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140006f84.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004b1ed
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140006f84.0]
inc edi
test ebx, ebx
jns 0x14004b0c4
jmp 0x14004b223
jg 0x14004b1ff
mov ebx, eax
jmp 0x14004b208
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa29
call fcn.140020c10
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004fbb4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rdx
mov rdi, rcx
call fcn.14002d94c
test al, al
jne 0x14004fbff
mov ebx, 0x80004001
jmp 0x14004fd0d
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
lea rcx, str.IndexUserProfilesRoot
call fcn.14001e5d8
mov bl, al
lea rcx, [rsp + 0x20]
call fcn.14002bbec
or r8, 0xffffffffffffffff
lea r9, [rsp + 0x20]
mov edx, 0x4400
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
test bl, bl
lea rcx, [0x140097438]
jne 0x14004fc53
lea rcx, [0x140097448]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x14004fca1
mov r8, qword [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400252d0
mov ebx, eax
test eax, eax
js 0x14004fca1
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
mov ecx, 0x8007000e
test rax, rax
cmove ebx, ecx
test ebx, ebx
jns 0x14004fd03
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.140050374
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.1400503b4
mov dword [rsi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.14002c0f0
nop
lea rcx, [rsp + 0x20]
call fcn.14002bbec
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret