joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400502c0
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 [0x1400dc7b8]
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, [0x1400ab888]
mov qword [rsp + 0x68], rax
lea rax, [0x1400ab7e8]
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.140010e14
test eax, eax
js 0x1400504b4
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400504b4
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 0x1400504b4
mov ecx, dword [rsp + 0x30]
lea rdx, [0x1400b35f2]
call fcn.14002507c
mov rdi, rax
test rax, rax
je 0x1400504b4
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400503cc
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 0x1400503d1
jmp 0x1400503d9
mov eax, 6
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1400504ab
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 0x140050415
call fcn.14001bdc0
test eax, eax
js 0x1400504ab
cmp dword [rsp + 0x34], r14d
je 0x1400504ab
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 0x14005044f
call fcn.14001bdc0
test eax, eax
js 0x1400504ab
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 0x1400504ab
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 0x1400504a4
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
cmp ecx, 0xf003f
je 0x1400504a8
inc ebx
jmp 0x140050452
mov sil, 1
mov rcx, rdi
call fcn.1400250ac
nop
lea rcx, [rsp + 0x60]
call fcn.140012204
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140024990
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 0x140050a54
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 [0x1400ddd81], 8
je 0x140050a8a
mov r8d, ecx
lea rdx, [0x1400bb4e8]
lea rcx, [0x1400db600]
call fcn.14002daf6
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.14001ec30
mov ebx, eax
mov edi, 0x80070000
test eax, eax
jle 0x140050ac3
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x140050ad8
mov r9d, ebx
mov edx, 0x5bd
jmp 0x140050bd7
cmp dword [rbp + 0x10], 1
jne 0x140050b3d
call fcn.140067660
mov ebx, eax
mov rcx, qword [rbp + 8]
test eax, eax
jns 0x140050afa
mov r9d, eax
mov edx, 0x5c6
jmp 0x140050bd7
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 0x140050b1f
xor ebx, ebx
jmp 0x140050b28
test ebx, ebx
jle 0x140050b28
movzx ebx, bx
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x140050b3d
mov r9d, ebx
mov edx, 0x5d1
jmp 0x140050bd7
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r8, str.SetupCompletedSuccessfully
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 0x140050b75
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 8]
test ebx, ebx
jns 0x140050b87
mov r9d, ebx
mov edx, 0x5d9
jmp 0x140050bd7
lea rcx, [rbp - 0x10]
call fcn.140049324
cmp byte [rbp - 8], 0
je 0x140050bc5
and dword [rbp - 0x10], 0
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140052e68
mov edi, eax
test eax, eax
jns 0x140050bc5
mov rcx, qword [rbp + 8]
mov r9d, eax
lea r8, str.onecoreuap_base_appmodel_search_searchindexerexeSetupErrorThresholdHelper.h
mov edx, 0x31
call fcn.1400205b4
jmp 0x140050bc7
xor edi, edi
mov rcx, qword [rbp + 8]
test edi, edi
jns 0x140050be4
mov r9d, edi
mov edx, 0x5dd
lea r8, [0x1400ba1f0]
call fcn.1400205dc
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140050bf9
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 0x140051ee8
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.14001ec30
mov ebx, eax
test eax, eax
jle 0x140051f22
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140051f7d
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 0x140051f6c
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 0x140051fd8
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 [0x1400dc7b8]
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.14001ec30
mov ebx, eax
test eax, eax
jle 0x14005203e
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x14005205f
mov r9d, ebx
lea r8, [0x1400ba1f0]
mov edx, 0x171
call fcn.1400205dc
jmp 0x1400520d6
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400b9e38]
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 0x14005209e
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x178]
test ebx, ebx
jns 0x1400520bd
mov r9d, ebx
lea r8, [0x1400ba1f0]
mov edx, 0x177
call fcn.1400205dc
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 0x140052167
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.14004fccc
nop
mov r9d, dword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov edx, 0x7d0
lea rcx, [rsp + 0x40]
call fcn.1400505dc
mov r8d, eax
mov dword [rdi + 0x14], eax
mov rax, qword [rdi]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
lea rdx, [0x1400ba268]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x140001f80.0]
nop
lea rcx, [rsp + 0x40]
call fcn.140023920
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140024990
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400527b0
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.14001ec30
test eax, eax
jle 0x1400527ed
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052873
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, [0x1400badd0]
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 0x140052842
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052863
cmp dword [rbp + 0x18], 4
je 0x14005284f
call fcn.1400a84cc
cmp dword [rbp + 0x20], 4
je 0x14005285a
call fcn.1400a84cc
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 0x140052884
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.14001ec30
test eax, eax
jle 0x1400528c3
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052935
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 0x140052918
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x140052924
cmp dword [rsp + 0x40], 1
jne 0x140052924
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
Function at 0x140052ad0
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 [0x1400dc7b8]
xor rax, rsp
mov qword [rbp + 0x370], rax
lea rax, [rsp + 0x48]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_SearchGathering_ManagerApplicationsWindowsPluginManagers
mov dword [rsp + 0x20], 9
call fcn.14001ec30
xor esi, esi
mov ecx, eax
test eax, eax
jne 0x140052be5
mov edi, esi
xor edx, edx
jmp 0x140052b86
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0x208
mov qword [rsp + 0x30], rax
lea r8, str.ProgId
lea rax, [rbp + 0x160]
mov r9d, 2
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140052b82
mov word [rbp + 0x366], si
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
je 0x140052b36
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
cmp ebx, 0x103
mov ecx, esi
cmovne ecx, ebx
jmp 0x140052bed
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140052bfc
test ecx, ecx
jle 0x140052bfe
movzx ecx, cx
or ecx, 0x80070000
jmp 0x140052bfe
mov ecx, esi
mov eax, ecx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140024990
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 0x140052c50
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 [0x1400dc7b8]
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]
nop dword [rax + rax]
xor esi, esi
mov ebx, eax
test eax, eax
js 0x140052e39
mov edx, 0x104
lea rax, [rsp + 0x50]
mov r8d, edx
cmp word [rax], si
je 0x140052cbe
add rax, 2
sub r8, 1
jne 0x140052caf
mov rcx, rdx
mov rax, r8
sub rcx, r8
neg rax
mov rax, r8
sbb r9, r9
and r9, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test r8, r8
je 0x140052d3e
lea rcx, [rsp + 0x50]
lea rcx, [rcx + r9*2]
sub rdx, r9
je 0x140052d23
lea r8, str.MicrosoftSearchCatalogCorruptionLoglogdata.txt
mov eax, 0x7ffffffe
sub r8, rcx
test rax, rax
je 0x140052d23
movzx r9d, word [r8 + rcx]
test r9w, r9w
je 0x140052d23
mov word [rcx], r9w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140052d02
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
neg rdx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], si
test ebx, ebx
js 0x140052e39
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140052d8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052d76
movzx ebx, ax
or ebx, 0x80070000
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
jbe 0x140052d8b
test ebx, ebx
js 0x140052e39
jmp 0x140052d8d
mov ebx, esi
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]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140052de0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052e39
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140052e39
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
jne 0x140052e2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140052e2a
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024990
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14005a4a8
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
or ebx, 0xffffffff
cmp dword [0x1400dc890], ebx
je 0x14005a4be
call fcn.1400a84cc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
nop dword [rax + rax]
cmp eax, ebx
mov dword [0x1400dc890], eax
sete bl
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14005a4ed
movzx eax, ax
or eax, 0x80070000
test bl, bl
je 0x14005a50a
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodelSearchcommonincludePerUserCatalogResetHelper.h
mov r9d, eax
mov edx, 0x24
call fcn.1400205dc
add rsp, 0x20
pop rbx
ret

Function at 0x14005c8f8
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 [0x1400dc7b8]
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.14005b1b8
jmp 0x14005c95a
lea rdx, [rsp + 0x70]
call fcn.14005c8f8
mov ebx, eax
test eax, eax
jne 0x14005c9bc
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]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
je 0x14005c950
call fcn.140058130
mov rdx, rsi
mov rcx, rdi
call fcn.1400592c8
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140058130
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x1400dc7b8]
xor rax, rsp
mov qword [rsp + 0x470], 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 + 0x60], 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]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14005cbef
call fcn.14002da70
mov ebx, eax
jmp 0x14005cd27
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14005cc19
call fcn.14002da70
jmp 0x14005cd15
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14005cc0f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14005cc76
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14005cc6c
lea rcx, [rsp + 0x60]
call fcn.140059578
mov ebx, 0x8007000e
jmp 0x14005cd3e
mov ecx, eax
mov edx, 2
call fcn.1400543a4
cmp rax, 0x400
jbe 0x14005cc9e
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140057a54
mov rax, qword [rsp + 0x60]
jmp 0x14005cca8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14005ccbf
test rax, rax
jne 0x14005cccb
mov ebx, 0x8007000e
jmp 0x14005cd17
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]
nop dword [rax + rax]
test eax, eax
je 0x14005cc0f
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4c0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14005c9f4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14005cd3e
lea rcx, [rsp + 0x60]
call fcn.140059578
nop
lea rcx, [rsp + 0x48]
call fcn.1400560a8
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140024990
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop r14
pop rdi
pop rsi
ret
Function at 0x14005dd48
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x14005dd66
mov ecx, 0x80004005
call fcn.14004a254
int3
mov r9d, ebx
mov rdx, r8
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bx
jne 0x14005dd70
inc ecx
lea rdx, [rdx + rcx*2]
lea r9d, [r9 + rcx*2]
cmp ecx, 1
jne 0x14005dd6c
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]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x14005f00c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x14005f095
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14005f095
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14005f082
cmp rbx, rcx
jae 0x14005f095
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14005f06d
cmp rbx, rcx
jae 0x14005f095
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x14005f097
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140060bf8
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov dword [rsp + 0x20], 0xf003f
call fcn.14001ec30
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x140060c35
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140060cdc
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov eax, 4
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea r8, str.SetupCompletedSuccessfully
mov dword [rsp + 0x58], eax
xor edx, edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140060c90
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140060ccb
cmp dword [rsp + 0x50], 1
jne 0x140060ccb
mov rcx, qword [rsp + 0x68]
lea rdx, str.PreviousSettings
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140060cc2
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070002
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret