joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045c84
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x358]
sub rsp, 0x450
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rcx
lea rax, [rbp + 0x130]
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]
mov ebx, eax
xor esi, esi
test eax, eax
js 0x140045e40
mov ecx, 0x104
mov edx, ecx
lea rax, [rbp + 0x130]
cmp word [rax], si
je 0x140045d06
add rax, 2
sub rdx, 1
jne 0x140045cf7
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x140045d23
mov rax, rcx
sub rax, rdx
jmp 0x140045d26
mov rax, rsi
test rdx, rdx
je 0x140045d8b
sub rcx, rax
lea rdx, [rbp + 0x130]
lea rdx, [rdx + rax*2]
je 0x140045d70
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea rax, str.MicrosoftSearchCatalogCorruptionLogData_
sub rax, rdx
test r8, r8
je 0x140045d70
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x140045d70
mov word [rdx], r9w
add rdx, 2
dec r8
sub rcx, 1
jne 0x140045d4f
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], si
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test ebx, ebx
js 0x140045e40
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x48]
call fcn.14001e2f4
mov rdx, rax
mov rcx, rdi
call fcn.140053618
xor r8d, r8d
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
test eax, eax
je 0x140045de2
cmp eax, 0x50
je 0x140045de2
cmp eax, 0xb7
je 0x140045de2
test eax, eax
jg 0x140045dd9
mov ebx, eax
jmp 0x140045de2
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140045e40
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.14001e2f4
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001e27c
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001cfa4
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400532d8
mov ebx, eax
test eax, eax
js 0x140045e40
call fcn.14004c76c
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140045e7c
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 [0x1400c5228]
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.14000b3f8
mov ebx, eax
test eax, eax
jle 0x140045ee2
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x140045f06
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9de
call fcn.14002af8c
jmp 0x140046072
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 0x140046067
test eax, eax
jne 0x14004603d
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140046031
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x140097048]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, str._l_t_b
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 0x140045fb7
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9f8
call fcn.14002af8c
xor ecx, ecx
mov qword [rsp + 0x48], rcx
test ebx, ebx
js 0x140046007
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.0x140002c98.0]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x140046002
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x9ff
call fcn.14002af8c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004601a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140002c98.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140046031
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140002c98.0]
inc edi
test ebx, ebx
jns 0x140045f08
jmp 0x140046067
jg 0x140046043
mov ebx, eax
jmp 0x14004604c
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, 0x9ef
call fcn.14004a838
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.14002c9c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140049fdc
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 [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, rdx
mov rdi, rcx
call fcn.14002d67c
test al, al
jne 0x14004a027
mov ebx, 0x80004001
jmp 0x14004a13c
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea rcx, str.IndexUserProfilesRoot
call fcn.14001f828
lea rcx, [rsp + 0x20]
test al, al
je 0x14004a05e
call fcn.14002b540
lea rcx, [0x140096818]
jmp 0x14004a06a
call fcn.14002b540
lea rcx, [0x140096828]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x14004a0d0
mov r8, qword [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14001706c
mov ebx, eax
test eax, eax
js 0x14004a0d0
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 0x14004a132
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.14004a77c
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.14004a7c0
mov dword [rsi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.14002bf90
nop
lea rcx, [rsp + 0x20]
call fcn.14002b540
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a55c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004a592
xor eax, eax
jmp 0x14004a59b
call fcn.140019964
test eax, eax
js 0x14004a5a3
movzx ecx, word [rsp + 0x20]
mov word [rbx], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002c9c0
add rsp, 0x240
pop rbx
ret

Function at 0x14004a5c4
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [0x1400c77fc], 0
je 0x14004a5ea
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [0x1400c77f8]
cmp eax, 0x4e20
jbe 0x14004a68c
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r8, str.SystemIndexNormalization
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
and qword [rsp + 0x20], 0
mov r9d, SafeArrayPutElement
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x14004a676
mov edi, 1
mov dword [rsp + 0x50], edi
call fcn.14004a6a0
xor edx, edx
xor r8d, r8d
cmp r8d, 0x44
jae 0x14004a665
lea r9, [0x1400a2df0]
cmp ax, word [r9 + r8*2]
cmove edx, edi
add r8d, edi
test edx, edx
je 0x14004a649
test edx, edx
je 0x14004a676
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
jmp 0x14004a67a
mov eax, dword [rsp + 0x50]
mov dword [0x1400c77fc], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [0x1400c77f8], eax
mov eax, dword [0x1400c77fc]
add rsp, 0x40
pop rdi
ret
Function at 0x14004a8f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
test byte [0x1400c7701], 8
je 0x14004a91d
mov r8d, ecx
lea rdx, [0x1400a3208]
lea rcx, [0x1400c4a30]
call fcn.14004d1d0
lea rax, [rsp + 0x48]
xor edi, edi
mov r9d, 0xf003f
mov qword [rsp + 0x48], rdi
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
mov ebx, eax
test eax, eax
jle 0x14004a956
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14004a964
mov edx, 0x6ff
jmp 0x14004aa0f
cmp dword [rsp + 0x40], 1
jne 0x14004a9ca
call fcn.14004c94c
mov ebx, eax
test eax, eax
jns 0x14004a983
mov r9d, eax
mov edx, 0x708
jmp 0x14004aa12
mov rcx, qword [rsp + 0x48]
lea rdx, str.RebuildIndex
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov ebx, eax
add eax, 0xfffffffe
cmp eax, 1
cmovbe ebx, edi
test ebx, ebx
jle 0x14004a9af
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x14004a9ce
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov r9d, ebx
mov edx, 0x713
call fcn.14002af8c
test ebx, ebx
js 0x14004aa23
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 4
lea r8, [0x140093d48]
mov dword [rsp + 0x28], r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov ebx, eax
test eax, eax
jle 0x14004aa06
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x14004aa23
mov edx, 0x71b
mov r9d, ebx
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.14002af8c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004aa33
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004b56c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov r9d, 2
lea rdx, str.SOFTWAREMicrosoftInputPersonalization
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
mov ebx, eax
test eax, eax
jle 0x14004b5a4
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004b5f3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x28], r9d
lea r8, str.Installed
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov ebx, eax
test eax, eax
jle 0x14004b5e8
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14004b64c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
mov ebx, eax
test eax, eax
jle 0x14004b6b9
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x14004b6da
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x2e1
call fcn.14002af8c
jmp 0x14004b745
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemIndexNormalization
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jle 0x14004b713
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x14004b732
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x2e6
call fcn.14002af8c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jns 0x14004b7c9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14004a77c
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.14004a7c0
mov dword [rdi + 0x14], eax
mov rdx, qword [rdi]
mov r10, qword [rdx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400a22f8]
mov rcx, rdi
mov rax, r10
call qword [case.0x140002c98.0]
nop
lea rcx, [rsp + 0x40]
call fcn.14002bf90
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14004c38c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov byte [rcx], 0
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov r9d, 1
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
call fcn.14000b3f8
test eax, eax
jle 0x14004c3c9
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004c42f
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
and dword [rsp + 0x40], 0
lea r8, str.IndexEntireSystemVolume
mov eax, 4
xor edx, edx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
jle 0x14004c418
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004c424
cmp dword [rsp + 0x40], 1
jne 0x14004c424
mov byte [rbx], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14004c5c4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x370], rax
lea rax, [rsp + 0x48]
mov r9d, 9
lea rdx, str.SOFTWAREMicrosoftWindows_SearchGathering_ManagerApplicationsWindowsPluginManagers
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
xor esi, esi
mov ecx, eax
test eax, eax
jne 0x14004c6fd
mov edi, esi
xor edx, edx
jmp 0x14004c68f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, str.ProgId
lea rax, [rbp + 0x160]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14004c68b
lea rdx, str.MSSearch.IpsPi
mov word [rbp + 0x366], si
lea rcx, [rbp + 0x160]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14004c6cc
inc edi
mov edx, edi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x14004c628
jmp 0x14004c6e5
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x20], rax
call fcn.1400587b8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp ebx, 0x103
mov ecx, esi
cmovne ecx, ebx
jmp 0x14004c706
add eax, 0xfffffffe
cmp eax, 1
cmovbe ecx, esi
test ecx, ecx
jle 0x14004c713
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004c76c
Capabilities:
Delete file
Get common file path
Timestomp file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
xor esi, esi
mov ebx, eax
test eax, eax
js 0x14004c91c
mov ecx, 0x104
lea rax, [rsp + 0x50]
mov edx, ecx
cmp word [rax], si
je 0x14004c7d3
add rax, 2
sub rdx, 1
jne 0x14004c7c4
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x14004c7f0
mov rax, rcx
sub rax, rdx
jmp 0x14004c7f3
mov rax, rsi
test rdx, rdx
je 0x14004c854
lea rdx, [rsp + 0x50]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x14004c839
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea r9, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r9, rdx
test r8, r8
je 0x14004c839
movzx eax, word [r9 + rdx]
test ax, ax
je 0x14004c839
mov word [rdx], ax
dec r8
add rdx, 2
sub rcx, 1
jne 0x14004c81a
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], si
test ebx, ebx
js 0x14004c91c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14004c88c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004c880
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
cmovbe ebx, esi
test ebx, ebx
js 0x14004c91c
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004c8db
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004c91c
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14004c91c
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
test eax, eax
jne 0x14004c913
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004c913
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14004c94c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea rax, [rsp + 0x40]
xor edi, edi
mov r9d, 0xf003f
mov qword [rsp + 0x40], rdi
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14000b3f8
mov ebx, eax
test eax, eax
jle 0x14004c9b0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004caab
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 0x20
lea rdx, str._x_sys_default_locale
mov ecx, 1
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetNLSVersionEx]
test eax, eax
je 0x14004ca8b
mov r8d, 0x32
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov ebx, eax
test eax, eax
js 0x14004caa0
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0xc8
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov r9d, 6
mov qword [rsp + 0x30], rax
lea r8, str._d._x._x._s
mov eax, dword [rsp + 0x50]
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
lea edx, [r9 + 0x5e]
mov dword [rsp + 0x20], eax
call fcn.14001ee64
mov ebx, eax
test eax, eax
js 0x14004caa0
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14004ca52
mov rcx, qword [rsp + 0x40]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea r8, str.IndexerCatalogVersion
lea rax, [rbp - 0x20]
mov r9d, 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
jmp 0x14004ca91
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004caa0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005019c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
or ebx, 0xffffffff
cmp dword [0x1400c52a0], ebx
je 0x1400501b2
call fcn.14008874c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
cmp eax, ebx
mov dword [0x1400c52a0], eax
sete bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1400501d5
movzx eax, ax
or eax, 0x80070000
test bl, bl
je 0x1400501f2
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommonincludeperusercatalogresethelper.h
mov r9d, eax
mov edx, 0x22
call fcn.14002af8c
add rsp, 0x20
pop rbx
ret

Function at 0x1400514f4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.14002a2cc
jmp 0x140051556
lea rdx, [rsp + 0x70]
call fcn.1400514f4
mov ebx, eax
test eax, eax
jne 0x1400515b2
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
lea rcx, [rsp + 0x48]
test eax, eax
je 0x14005154c
call fcn.14002a320
mov rdx, rsi
mov rcx, rdi
call fcn.14002a3b4
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.14002a320
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400519fc
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x140051a1a
mov ecx, 0x80004005
call fcn.1400451cc
int3
mov r9d, ebx
mov rdx, r8
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bx
jne 0x140051a24
inc ecx
lea rdx, [rdx + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x140051a20
mov dword [rsp + 0x28], r9d
mov rdx, r10
mov qword [rsp + 0x20], r8
lea r9d, [rcx + 6]
mov rcx, qword [r11]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret