joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ab8c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 3
mov dword [rdx], 0x65
xor r14d, r14d
mov byte [rbp + 0x40], r14b
mov qword [rbp - 8], r14
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea r15d, [r14 + 1]
mov dword [rsp + 0x20], r15d
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x14004abef
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x38]
test ebx, ebx
jns 0x14004ac10
mov r9d, ebx
lea r8, [0x1400b5a18]
mov edx, 0xb0
call fcn.14002061c
jmp 0x14004ad65
mov r12d, 4
mov dword [rbp - 0x10], r12d
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x50], r14d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
lea r8, [0x1400b5ad8]
xor edx, edx
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x14004ac5f
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004ad65
lea rcx, [0x1400df610]
call fcn.140027b28
test al, al
je 0x14004ad25
cmp dword [rbp + 0x50], r15d
jne 0x14004ad65
mov dword [rsi], r14d
mov dword [rdi], r14d
mov dword [rbp + 0x48], 2
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x40]
call fcn.140027c7c
test eax, eax
js 0x14004ad59
mov eax, dword [rbp + 0x48]
test eax, eax
jne 0x14004ad15
mov dword [rbp + 0x58], r12d
mov dword [rbp + 0x50], r14d
mov dword [rbp - 0x10], r12d
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
lea r8, str.RebuildIndex
xor edx, edx
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14004ad59
cmp dword [rbp + 0x58], r12d
jne 0x14004ad8c
mov edx, dword [rbp + 0x50]
test edx, edx
je 0x14004ad8c
mov dword [rsi], r15d
lea eax, [rdx - 1]
mov ecx, 0x68
cmp eax, 0xb
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x14004ad59
cmp eax, r15d
jne 0x14004ad50
mov dword [rsi], r12d
mov dword [rdi], 0x63
jmp 0x14004ad59
cmp dword [rbp + 0x50], r15d
jne 0x14004ad65
mov dword [rsi], r14d
mov dword [rdi], r14d
mov byte [rbp + 0x48], r14b
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x40]
call fcn.140067fec
test eax, eax
js 0x14004ad59
cmp byte [rbp + 0x48], r14b
jne 0x14004acac
mov dword [rsi], r15d
mov dword [rdi], 0x64
cmp byte [rbp + 0x40], r14b
je 0x14004ad65
call fcn.1400684b0
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14004ad7a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.RebuildIndex
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
jmp 0x14004ad59
Function at 0x14004c6f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x348]
sub rsp, 0x440
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov rdi, rcx
xor esi, esi
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
test eax, eax
js 0x14004c89f
mov edx, 0x104
mov r8d, edx
lea rax, [rbp + 0x120]
cmp word [rax], si
je 0x14004c76d
add rax, 2
sub r8, 1
jne 0x14004c75e
mov rax, r8
mov rcx, rdx
sub rcx, r8
neg rax
sbb r9, r9
and r9, rcx
mov rax, r8
neg rax
sbb eax, eax
not eax
and eax, 0x80070057
test r8, r8
je 0x14004c7ed
sub rdx, r9
lea rcx, [rbp + 0x120]
lea rcx, [rcx + r9*2]
je 0x14004c7d3
mov eax, 0x7ffffffe
lea r8, str.MicrosoftSearchCatalogCorruptionLogData_
sub r8, rcx
test rax, rax
je 0x14004c7d3
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x14004c7d3
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x14004c7b2
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
neg rdx
sbb eax, eax
not eax
and eax, 0x8007007a
test eax, eax
js 0x14004c89f
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x40]
call fcn.14000e5c8
mov rdx, rax
mov rcx, rdi
call fcn.140063b4c
xor r8d, r8d
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
nop dword [rax + rax]
test eax, eax
je 0x14004c849
cmp eax, 0x50
je 0x14004c849
cmp eax, 0xb7
je 0x14004c849
test eax, eax
jle 0x14004c847
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14004c89f
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x20]
call fcn.14000e5c8
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.140049db0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.140063494
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.1400635b8
test eax, eax
js 0x14004c89f
call fcn.1400539f8
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14004c8dc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
lea r8, str.SOFTWAREMicrosoftWindows_SearchCatalogListApplicationsWindowsCatalogs
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x14004c93b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x14004c95f
mov r9d, ebx
lea r8, [0x1400b5a18]
mov edx, 0x937
call fcn.14002061c
jmp 0x14004cad3
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 + 0x60]
mov edx, edi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
cmp eax, 0x103
je 0x14004cac2
test eax, eax
jne 0x14004ca98
lea rdx, str.SystemIndex
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14004ca8c
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b5a88]
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp + 0x178]
test eax, eax
jns 0x14004ca22
mov r9d, eax
lea r8, [0x1400b5a18]
mov edx, 0x952
call fcn.14002061c
and qword [rsp + 0x50], 0
test ebx, ebx
js 0x14004ca77
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
movabs r10, 0xe28da7167cd64970
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x80]
call qword [case.0x140001f80.0]
mov ebx, eax
mov rcx, qword [rbp + 0x178]
test eax, eax
jns 0x14004ca77
mov r9d, eax
lea r8, [0x1400b5a18]
mov edx, 0x959
call fcn.14002061c
nop
lea rcx, [rsp + 0x50]
call fcn.14000376c
nop
lea rcx, [rsp + 0x48]
call fcn.14000376c
inc edi
test ebx, ebx
jns 0x14004c961
jmp 0x14004cac2
jg 0x14004ca9e
mov ebx, eax
jmp 0x14004caa7
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
mov r9d, ebx
lea r8, [0x1400b5a18]
mov edx, 0x948
call fcn.140051364
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140050180
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov byte [r8], 0
call fcn.140026240
test al, al
jne 0x1400501c7
mov ebx, 0x80004001
jmp 0x14005031b
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea rcx, str.IndexUserProfilesRoot
call fcn.140044098
lea rcx, [rsp + 0x20]
test al, al
je 0x140050226
call fcn.140046ef0
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
lea rcx, [0x1400b50a8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
xor al, al
jmp 0x14005025a
call fcn.140046ef0
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x20]
mov edx, 0x4400
lea rcx, [0x1400b50b8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
mov al, 1
mov byte [rdi], al
mov edi, 0x104
test ebx, ebx
js 0x1400502ab
mov r8, qword [rsp + 0x20]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14000b8b0
mov ebx, eax
test eax, eax
js 0x1400502ab
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rsi], rax
test rax, rax
jne 0x140050311
mov ebx, 0x8007000e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, edi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1400509cc
mov r9d, dword [r14 + 0x10]
mov r8, qword [r14 + 8]
mov edx, 0x7de
lea rcx, [rsp + 0x38]
call fcn.1400512dc
mov dword [r14 + 0x14], eax
lea rcx, [rsp + 0x38]
call fcn.140023ba0
nop
lea rcx, [rsp + 0x20]
call fcn.140046ef0
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14005078c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400de7a8]
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]
nop dword [rax + rax]
test eax, eax
je 0x1400507c8
xor eax, eax
jmp 0x1400507d1
call fcn.14001be00
test eax, eax
js 0x1400507d9
movzx ecx, word [rsp + 0x20]
mov word [rbx], cx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140024c10
add rsp, 0x240
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
cmp dword [0x1400dff7c], ebx
je 0x140050829
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, dword [0x1400dff78]
cmp eax, 0x4e20
jbe 0x1400508c7
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rax
lea r8, [0x1400bb598]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov r9d, SafeArrayPutElement
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400508ab
mov dword [rsp + 0x50], 1
call fcn.1400508dc
cmp ebx, 0x44
jae 0x1400508ab
mov ecx, ebx
lea rdx, [0x1400bc560]
cmp ax, word [rdx + rcx*2]
je 0x14005089e
inc ebx
jmp 0x140050886
mov eax, dword [rsp + 0x50]
or eax, 2
mov dword [rsp + 0x50], eax
jmp 0x1400508af
mov eax, dword [rsp + 0x50]
mov dword [0x1400dff7c], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov dword [0x1400dff78], eax
mov eax, dword [0x1400dff7c]
add rsp, 0x40
pop rbx
ret
Function at 0x140050fc0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x1400ac888]
mov qword [rsp + 0x68], rax
lea rax, [0x1400ac7e8]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManagerWindows
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.140010e54
test eax, eax
js 0x1400511b4
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400511b4
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ebx, [r14 + 4]
mov edx, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x1400511b4
mov ecx, dword [rsp + 0x30]
lea rdx, [0x1400b45f2]
call fcn.1400252fc
mov rdi, rax
test rax, rax
je 0x1400511b4
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400510cc
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
test eax, eax
jg 0x1400510d1
jmp 0x1400510d9
mov eax, 6
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1400511ab
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
jne 0x140051115
call fcn.14001be00
test eax, eax
js 0x1400511ab
cmp dword [rsp + 0x34], r14d
je 0x1400511ab
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x14005114f
call fcn.14001be00
test eax, eax
js 0x1400511ab
mov ebx, r14d
mov sil, r14b
lea r8, [rsp + 0x48]
mov edx, ebx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x1400511ab
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x1400511a4
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
cmp ecx, 0xf003f
je 0x1400511a8
inc ebx
jmp 0x140051152
mov sil, 1
mov rcx, rdi
call fcn.14002532c
nop
lea rcx, [rsp + 0x60]
call fcn.140012244
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140051754
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 8], ecx
push rbp
mov rbp, rsp
sub rsp, 0x40
test byte [0x1400dfdc1], 8
je 0x14005178a
mov r8d, ecx
lea rdx, [0x1400bcb88]
lea rcx, [0x1400dd9b0]
call fcn.14002e716
nop
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf003f
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
mov edi, 0x80070000
test eax, eax
jle 0x1400517c3
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x1400517d8
mov r9d, ebx
mov edx, 0x5f6
jmp 0x1400518d7
cmp dword [rbp + 0x10], 1
jne 0x14005183d
call fcn.1400684b0
mov ebx, eax
mov rcx, qword [rbp + 8]
test eax, eax
jns 0x1400517fa
mov r9d, eax
mov edx, 0x5ff
jmp 0x1400518d7
lea rdx, str.RebuildIndex
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x14005181f
xor ebx, ebx
jmp 0x140051828
test ebx, ebx
jle 0x140051828
movzx ebx, bx
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x14005183d
mov r9d, ebx
mov edx, 0x60a
jmp 0x1400518d7
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, [0x1400b5ad8]
xor edx, edx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140051875
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x140051887
mov r9d, ebx
mov edx, 0x612
jmp 0x1400518d7
lea rcx, [rbp - 0x10]
call fcn.140049fd4
cmp byte [rbp - 8], 0
je 0x1400518c5
and dword [rbp - 0x10], 0
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140053c10
mov edi, eax
test eax, eax
jns 0x1400518c5
mov rcx, qword [rbp + 8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexerexeSetupErrorThresholdHelper.h
mov edx, 0x31
call fcn.1400205f4
jmp 0x1400518c7
xor edi, edi
mov rcx, qword [rbp + 8]
test edi, edi
jns 0x1400518e4
mov r9d, edi
mov edx, 0x616
lea r8, [0x1400b5a18]
call fcn.14002061c
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400518f9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
Function at 0x140052c90
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftInputPersonalization
mov dword [rsp + 0x20], 2
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x140052cca
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140052d25
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052d14
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]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140052d80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400de7a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rdx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf003f
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
call fcn.14001ec70
mov ebx, eax
test eax, eax
jle 0x140052de6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x140052e07
mov r9d, ebx
lea r8, [0x1400b5a18]
mov edx, 0x1aa
call fcn.14002061c
jmp 0x140052e7e
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400bb598]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052e46
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x140052e65
mov r9d, ebx
lea r8, [0x1400b5a18]
mov edx, 0x1b0
call fcn.14002061c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jns 0x140052f0f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.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]
nop dword [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400509cc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.1400512dc
mov r8d, eax
mov dword [rdi + 0x14], eax
mov rax, qword [rdi]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
lea rdx, [0x1400bb968]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x40]
call fcn.140023ba0
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024c10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140053558
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
lea rax, [rbp + 0x30]
mov ebx, 1
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call fcn.14001ec70
test eax, eax
jle 0x140053595
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14005361b
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, [0x1400bc4d0]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x1400535ea
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x14005360b
cmp dword [rbp + 0x18], 4
je 0x1400535f7
call fcn.1400a92dc
cmp dword [rbp + 0x20], 4
je 0x140053602
call fcn.1400a92dc
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x14005362c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov byte [rcx], 0
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 1
mov rbx, rcx
call fcn.14001ec70
test eax, eax
jle 0x14005366b
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1400536dd
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]
nop dword [rax + rax]
test eax, eax
jle 0x1400536c0
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1400536cc
cmp dword [rsp + 0x40], 1
jne 0x1400536cc
mov byte [rbx], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x30
pop rbx
ret