joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a10c
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.1400297c4
test eax, eax
jne 0x14004a354
cmp dword [rsp + 0x4c], ebp
je 0x14004a354
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 0x14004a304
mov ecx, 0x104
mov qword [rsp + 0x298], rbx
mov edx, ecx
lea rax, [rsp + 0x60]
cmp word [rax], bp
je 0x14004a1be
add rax, 2
sub rdx, 1
jne 0x14004a1af
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 0x14004a234
lea rdx, [rsp + 0x60]
lea rdx, [rdx + r8*2]
sub rcx, r8
je 0x14004a21e
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r8, rdx
test rax, rax
je 0x14004a21e
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x14004a21e
mov word [rdx], r9w
dec rax
add rdx, 2
sub rcx, 1
jne 0x14004a1fd
test rcx, rcx
lea rax, [rdx - 2]
mov ebx, 0x8007007a
cmovne rax, rdx
cmovne ebx, ebp
mov word [rax], bp
test ebx, ebx
js 0x14004a350
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 0x14004a325
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 0x14004a2a5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14004a2a5
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004a2e9
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 0x14004a2e9
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.14002dd40
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 0x14004a33a
movzx ecx, ax
or ecx, 0x80070000
lea eax, [rcx + 0x7ff8fffe]
cmp eax, 1
ja 0x14004a34c
mov byte [rsi], 1
mov eax, ebp
jmp 0x14004a2f4
mov eax, ecx
jmp 0x14004a2f4
mov eax, ebx
jmp 0x14004a2fc
mov eax, ebp
jmp 0x14004a304
Function at 0x14004ab94
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 0x14004ad49
mov ecx, 0x104
mov edx, ecx
lea rax, [rsp + 0x230]
cmp word [rax], 0
je 0x14004ac09
add rax, 2
sub rdx, 1
jne 0x14004abf9
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 0x14004ac88
sub rcx, r8
lea rdx, [rsp + 0x230]
lea rdx, [rdx + r8*2]
je 0x14004ac70
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rdx
test rax, rax
je 0x14004ac70
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x14004ac70
mov word [rdx], r9w
add rdx, 2
dec rax
sub rcx, 1
jne 0x14004ac4f
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], r10w
mov ebx, 0x8007007a
cmovne ebx, r10d
test ebx, ebx
js 0x14004ad47
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x48]
call fcn.140021704
mov rdx, rax
mov rcx, rdi
call fcn.140058818
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 0x14004ace1
cmp eax, 0x50
je 0x14004ace1
cmp eax, 0xb7
je 0x14004ace1
test eax, eax
jg 0x14004acd8
mov ebx, eax
jmp 0x14004ace1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14004ad47
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0xe8]
call fcn.140021704
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140021744
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x188]
call fcn.140020b8c
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400584f0
test eax, eax
js 0x14004ad49
call fcn.140052428
jmp 0x14004ad49
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
Function at 0x14004ad78
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.14001e414
mov ebx, eax
test eax, eax
jle 0x14004adde
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x14004ae02
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa18
call fcn.14002cfec
jmp 0x14004af6e
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 0x14004af63
test eax, eax
jne 0x14004af39
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14004af2d
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x140097cb8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400955c8]
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 0x14004aeb3
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa32
call fcn.14002cfec
xor ecx, ecx
mov qword [rsp + 0x48], rcx
test ebx, ebx
js 0x14004af03
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.0x14000702c.0]
mov ebx, eax
mov rcx, qword [rbp + 0x188]
test eax, eax
jns 0x14004aefe
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0xa39
call fcn.14002cfec
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004af16
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000702c.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004af2d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000702c.0]
inc edi
test ebx, ebx
jns 0x14004ae04
jmp 0x14004af63
jg 0x14004af3f
mov ebx, eax
jmp 0x14004af48
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.14001f2e8
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.14002dd40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004f8f4
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.14002e8dc
test al, al
jne 0x14004f93f
mov ebx, 0x80004001
jmp 0x14004fa4d
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
lea rcx, str.IndexUserProfilesRoot
call fcn.1400220ec
mov bl, al
lea rcx, [rsp + 0x20]
call fcn.14002cb80
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, [0x140097378]
jne 0x14004f993
lea rcx, [0x140097388]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
js 0x14004f9e1
mov r8, qword [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400258bc
mov ebx, eax
test eax, eax
js 0x14004f9e1
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 0x14004fa43
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.1400500b4
mov r9d, dword [rsi + 0x10]
mov r8, qword [rsi + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.1400500f4
mov dword [rsi + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.14002d080
nop
lea rcx, [rsp + 0x20]
call fcn.14002cb80
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004feb0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400c9158]
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 0x14004fee6
xor eax, eax
jmp 0x14004feef
call fcn.14001e36c
test eax, eax
js 0x14004fef7
movzx ecx, word [rsp + 0x20]
mov word [rbx], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x240
pop rbx
ret

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

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [0x1400cb7cc], 0
je 0x14004ff36
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [0x1400cb7c8]
cmp eax, 0x4e20
jbe 0x14004ffd8
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 0x14004ffc2
mov edi, 1
mov dword [rsp + 0x50], edi
call fcn.14004ffe4
xor edx, edx
xor r8d, r8d
cmp r8d, 0x44
jae 0x14004ffb1
lea r9, [0x1400a1f20]
cmp ax, word [r9 + r8*2]
cmove edx, edi
add r8d, edi
test edx, edx
je 0x14004ff95
test edx, edx
je 0x14004ffc2
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
jmp 0x14004ffc6
mov eax, dword [rsp + 0x50]
mov dword [0x1400cb7cc], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [0x1400cb7c8], eax
mov eax, dword [0x1400cb7cc]
add rsp, 0x40
pop rdi
ret
Function at 0x1400501dc
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
test dword [0x1400ca100], 0x800
je 0x14005020c
mov r8d, ecx
lea rdx, [0x1400a10e8]
lea rcx, [0x1400c8290]
call fcn.140052eb8
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.14001e414
mov ebx, eax
test eax, eax
jle 0x140050245
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140050253
mov edx, 0x73a
jmp 0x1400502fe
cmp dword [rsp + 0x40], 1
jne 0x1400502b9
call fcn.1400525fc
mov ebx, eax
test eax, eax
jns 0x140050272
mov r9d, eax
mov edx, 0x743
jmp 0x140050301
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 0x14005029e
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x1400502bd
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov r9d, ebx
mov edx, 0x74e
call fcn.14002cfec
test ebx, ebx
js 0x140050312
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 4
lea r8, str.SetupCompletedSuccessfully
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 0x1400502f5
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jns 0x140050312
mov edx, 0x756
mov r9d, ebx
mov rcx, qword [rsp + 0x38]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
call fcn.14002cfec
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140050322
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 0x140051268
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.14001e414
mov ebx, eax
test eax, eax
jle 0x1400512a0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400512ef
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 0x1400512e4
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 0x140051338
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 [0x1400c9158]
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.14001e414
mov ebx, eax
test eax, eax
jle 0x1400513a5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x1400513c6
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x2e0
call fcn.14002cfec
jmp 0x140051431
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 0x1400513ff
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x188]
test ebx, ebx
jns 0x14005141e
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov edx, 0x2e5
call fcn.14002cfec
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jns 0x1400514b5
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.1400500b4
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.1400500f4
mov dword [rdi + 0x14], eax
mov rdx, qword [rdi]
mov r10, qword [rdx + 0x20]
or r9d, 0xffffffff
mov r8d, eax
lea rdx, [0x1400a1428]
mov rcx, rdi
mov rax, r10
call qword [case.0x14000702c.0]
nop
lea rcx, [rsp + 0x40]
call fcn.14002d080
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002dd40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140052080
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.14001e414
test eax, eax
jle 0x1400520bd
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052123
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 0x14005210c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052118
cmp dword [rsp + 0x40], 1
jne 0x140052118
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 0x1400522ac
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 [0x1400c9158]
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.14001e414
xor esi, esi
mov ecx, eax
test eax, eax
jne 0x1400523e5
mov edi, esi
xor edx, edx
jmp 0x140052377
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 0x140052373
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 0x1400523b4
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 0x140052310
jmp 0x1400523cd
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x20], rax
call fcn.14005d824
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 0x1400523ee
add eax, 0xfffffffe
cmp eax, 1
cmovbe ecx, esi
test ecx, ecx
jle 0x1400523fb
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14002dd40
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 0x140052428
Capabilities:
Delete file
Get common file path
Timestomp file

Disassembly:
sub rsp, 0x278
mov rax, qword [0x1400c9158]
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]
test eax, eax
js 0x1400525e3
mov ecx, 0x104
mov qword [rsp + 0x280], rbx
mov edx, ecx
mov qword [rsp + 0x270], rdi
lea rax, [rsp + 0x50]
cmp word [rax], 0
je 0x140052491
add rax, 2
sub rdx, 1
jne 0x140052481
xor edi, edi
mov ebx, 0x80070057
test rdx, rdx
mov rax, rcx
mov r8d, edi
cmovne ebx, edi
sub rax, rdx
test rdx, rdx
cmovne r8, rax
je 0x140052509
lea rdx, [rsp + 0x50]
lea rdx, [rdx + r8*2]
sub rcx, r8
je 0x1400524f3
lea rax, [r8 + 0x7ffffefa]
add rax, rcx
lea r8, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
sub r8, rdx
test rax, rax
je 0x1400524f3
movzx r9d, word [r8 + rdx]
test r9w, r9w
je 0x1400524f3
mov word [rdx], r9w
dec rax
add rdx, 2
sub rcx, 1
jne 0x1400524d2
test rcx, rcx
lea rax, [rdx - 2]
mov ebx, 0x8007007a
cmovne rax, rdx
cmovne ebx, edi
mov word [rax], di
test ebx, ebx
js 0x1400525d1
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140052544
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x140052535
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
ja 0x140052544
mov ebx, edi
jmp 0x14005254c
test ebx, ebx
js 0x1400525d1
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edi
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 0x140052590
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x1400525d3
movzx eax, ax
or eax, 0x80070000
jmp 0x1400525d3
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 0x1400525c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400525c8
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 rbx, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002dd40
add rsp, 0x278
ret