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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp dword [0x1400dda64], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x140002c71
call fcn.140002d18
test al, al
jne 0x140002c71
mov rcx, rbx
call fcn.140002c98
test eax, eax
je 0x140002c8c
call fcn.14002c814
test al, al
je 0x140002c71
and qword [rsp + 0x40], 0
mov r9d, edi
mov rax, qword [rsp + 0x80]
movzx edx, bp
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], si
and qword [rsp + 0x20], 0
call qword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
nop dword [rax + rax]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
jmp 0x140002c76

Function at 0x140003828
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
lea edx, [rbx + 0x10]
call fcn.140003d10
test eax, eax
js 0x1400038d3
lea rax, [rsp + 0x30]
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
mov dword [rsp + 0x20], 2
call fcn.14000a9b8
test eax, eax
jne 0x1400038d3
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], SafeArrayPutElement
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002a3c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140003bbc
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 0x14]
lea r8, str._08x
mov rdi, rdx
lea rcx, [rsp + 0x38]
xor ebx, ebx
lea edx, [rbx + 0x10]
call fcn.140003d10
test eax, eax
js 0x140003c4f
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 2
call fcn.14000a9b8
test eax, eax
jne 0x140003c4f
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 1
test eax, eax
movzx ebx, bl
cmove ebx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002a3c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14000aa4c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x2b8]
mov rbp, r8
mov rbx, qword [rsp + 0x2c0]
mov r8, rdx
mov r14d, r9d
mov rsi, rdx
mov rdx, 0xffffffff80000002
lea r9, [rsp + 0x40]
call fcn.14000aaf4
test al, al
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
cmove rdx, rsi
mov r9d, r14d
and qword [rsp + 0x20], 0
mov r8, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002a3c0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001be3c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x4f8]
sub rsp, 0x5e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], rdx
and dword [rsp + 0x30], 0
call fcn.14001c044
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
nop dword [rax + rax]
or esi, 0xffffffff
test eax, eax
je 0x14001bee5
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.14001c0c4
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001484c
mov r8d, 0x104
lea rdx, [rbp + 0x2c0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14001bf23
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14001c044
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14001bdd0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
nop
lea rcx, [rbp + 0x10]
call fcn.14001484c
mov eax, dword [rbx + 0x14]
mov r8d, SafeArrayGetDim
cmp eax, r8d
jb 0x14001bf92
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001c090
lea rdx, [0x1400a5fc0]
mov rcx, rax
call fcn.1400156a4
test eax, eax
je 0x14001bfef
mov eax, dword [rbx + 0x14]
mov r8d, 6
cmp eax, r8d
jb 0x14001bfc1
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001c090
lea rdx, [0x1400a5f60]
mov rcx, rax
call fcn.1400156a4
test eax, eax
je 0x140039fe4
mov rcx, rdi
call fcn.14001484c
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14002a3c0
mov rbx, qword [rsp + 0x610]
add rsp, 0x5e0
pop rdi
pop rsi
pop rbp
ret
mov edx, dword [rbx + 0x14]
add edx, 0xfffffff5
mov rcx, rbx
call fcn.140014be8
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001c044
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001bdd0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001484c
jmp 0x14001bfc1
mov edx, dword [rbx + 0x14]
add edx, 0xfffffffa
mov rcx, rbx
call fcn.140014be8
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001c044
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001bdd0
nop
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
nop
jmp 0x14001c032
Function at 0x14001c6ac
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x778]
sub rsp, 0x870
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14001c7ed
cmp word [rcx], si
je 0x14001c7ed
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14001c717
lea ebx, [rcx + rax]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x401
mov word [rsp + 0x58], si
lea rax, [0x14009c538]
mov qword [rsp + 0x40], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x40]
call fcn.14001872c
mov rdx, rax
lea r8d, [rbx + 0x104]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400186f4
mov rax, qword [rsp + 0x40]
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400a6074]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
mov rax, qword [rsp + 0x40]
mov r9d, ebx
mov r8d, dword [rsp + 0x54]
mov rdx, rdi
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140024575.0]
mov rdx, qword [rsp + 0x48]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14003a564
lea rcx, [rsp + 0x40]
call fcn.14001c4f8
xor eax, eax
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14002a3c0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp + 0x778]
mov r9d, 0x8000ffff
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutill_ssfsutil.cxx
mov edx, SysAllocStringByteLen
call fcn.140058a60
int3
Function at 0x14001cae0
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r8
mov r14, rdx
mov qword [rsp + 0x40], rdx
xor r15d, r15d
test r8, r8
je 0x14001cb20
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140003184
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001c044
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14001c488
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14001cbbc
test al, al
je 0x14003a5d2
mov rcx, qword [rsp + 0x108]
call fcn.14001cbbc
test al, al
je 0x14003a6d8
lea rcx, [rsp + 0x100]
call fcn.14001484c
nop
mov rcx, r14
call fcn.14001484c
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a3c0
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
nop dword [rax + rax]
mov rdi, rax
mov r9, rdi
sub r9, qword [rsp + 0x108]
sar r9, 1
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x100]
call fcn.140015fd4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.140056880
mov rcx, qword [rsp + 0x1a8]
call fcn.14001cbbc
test al, al
jne 0x14003a6a1
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14003a6a1
test ebx, ebx
js 0x14003a6a1
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 0x14003a668
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x278]
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rax
lea rax, str.PathComponent:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.onecoreuap_base_appmodel_searchcommonpkmutillindexmove.cxx
mov edx, 0x187
call fcn.14004b2a4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
nop dword [rax + rax]
mov rdi, rax
lea rcx, [rsp + 0x1a0]
call fcn.14001484c
test rdi, rdi
je 0x14001cb68
cmp word [rdi], r15w
jne 0x14003a5e9
jmp 0x14001cb68
test rsi, rsi
je 0x14003a6e0
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.140058a94
nop
jmp 0x14001cb7d

Function at 0x14001cbbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cc0f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
nop dword [rax + rax]
test eax, eax
jne 0x14001cc0f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001cc0f
test al, 0x10
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001cd60
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14001cd9a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14003a758
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x28
ret
mov ecx, 6
jmp 0x14001cd86
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
jmp 0x14001cd94
Function at 0x14001cda8
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x360
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rsi, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov edi, 0x104
mov edx, edi
lea rcx, [r11 - 0x228]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
sete al
mov rcx, qword [rsp + 0x368]
test al, al
jne 0x14003a770
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14001ce27
add rax, 2
sub rcx, 1
jne 0x14001ce18
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x14003a781
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14001ceb0
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14001ce92
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14001ce92
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001ce92
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14001ce73
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
mov word [rax], bx
neg rdi
sbb r9d, r9d
not r9d
and r9d, 0x8007007a
mov rcx, qword [rsp + 0x368]
test r9d, r9d
js 0x14003a789
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x140]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x368]
test eax, eax
je 0x14003a79a
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001c324
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 8
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, str.SchemaCacheTimestamp
lea rcx, [rsp + 0x80]
call fcn.140027d64
test eax, eax
je 0x14003a7ab
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
test eax, eax
jne 0x14003a7ab
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.1400142e0
nop
mov al, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002a3c0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xdd
call fcn.140054d74
mov rax, rbx
jmp 0x14001ce49
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.140058a60
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140054d74
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14001cf68
Function at 0x14001d0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp - 0x10]
mov rdi, rcx
mov qword [rbp - 0x10], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemSetup
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d137
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x38], 4
mov dword [rbp + 0x28], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14003a7e0
mov rcx, qword [rbp - 0x10]
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 rdi
pop rbx
pop rbp
ret
cmp dword [rbp + 0x28], 4
jne 0x14001d127
test rdi, rdi
je 0x14003a7f4
mov eax, dword [rbp + 0x30]
mov dword [rdi], eax
mov ebx, 1
jmp 0x14001d127

Function at 0x14001d338
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400dab28]
mov rcx, rdi
call fcn.140003338
test eax, eax
jne 0x14001d434
mov rcx, qword [0x1400dab28]
lea edx, [rax + 2]
call fcn.140003184
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
call fcn.14001d500
mov ebx, eax
test eax, eax
js 0x14003a7fe
call fcn.14001a6c0
mov ebx, eax
test eax, eax
js 0x14003a825
mov rcx, qword [0x1400dab28]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x140024575.0]
mov ebx, eax
test eax, eax
js 0x14003a82c
mov rcx, qword [0x1400dab28]
mov edx, 4
call fcn.140003184
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x140024575.0]
mov ebx, eax
test eax, eax
js 0x14003a805
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400a6400]
lea rcx, [rsp + 0x38]
call fcn.14001d478
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
mov dword [rsp + 0x30], 1
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
call fcn.14001d448
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x220
jmp 0x14003a80a
mov edx, 0x22a
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140042724
mov eax, ebx
jmp 0x14001d436
mov edx, 0x222
jmp 0x14003a80a
mov edx, 0x226
jmp 0x14003a80a
Function at 0x14001e9c8
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x48
mov dword [rcx], 3
lea rax, [rbp - 0x10]
mov dword [rdx], 0x65
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdi, rdx
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], 1
mov rsi, rcx
mov byte [rbp + 0x30], 0
call fcn.14000a9b8
mov ebx, eax
test eax, eax
jg 0x14003b2f2
test ebx, ebx
js 0x14003b300
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.SetupCompletedSuccessfully
lea rax, [rbp + 0x38]
mov dword [rbp - 0x18], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x40], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jg 0x14003b31e
js 0x14001eadf
cmp dword [rbp + 0x38], 1
jne 0x14001eadf
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.14001ebfc
test eax, eax
js 0x14001eadf
cmp byte [rbp + 0x28], 0
je 0x14003b372
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
and dword [rbp + 0x38], 0
lea r9, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, str.RebuildIndex
lea rax, [rbp + 0x38]
mov dword [rbp + 0x40], 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
je 0x14003b32d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
cmp byte [rbp + 0x30], 0
jne 0x14001eb01
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140059678
jmp 0x14001eaf5
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001ea18
mov rcx, qword [rbp + 0x20]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov r9d, ebx
mov edx, 0x11a
call fcn.140043650
nop
jmp 0x14001eaf5
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x14001ea69
cmp dword [rbp + 0x40], 4
jne 0x14003b355
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x14003b355
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 0xa
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x14001eadf
mov rcx, qword [rbp - 0x10]
lea rdx, str.RebuildIndex
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
nop
jmp 0x14001eadf
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x14001eadf
Function at 0x14001eb10
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.14000a9b8
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x14003b384
test ebx, ebx
js 0x14001ebea
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
jg 0x14003b392
test ebx, ebx
js 0x14001ebd9
cmp dword [rsp + 0x50], 1
jne 0x14001ebd9
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 0x14001ebd0
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
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001eb48
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001eb9e
Function at 0x1400200c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r8d, 0x105
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], r8d
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x140020194
lea rsi, [rsp + 0x260]
cmp byte [rdi + 0x35], bl
jne 0x14003b9da
lea rdx, [0x1400a68d0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
test eax, eax
setne bl
mov byte [rdi + 0x34], bl
lea rdx, [rsp + 0x50]
mov r9b, byte [rdi + 0x35]
mov r8, rsi
mov ecx, dword [rdi + 0x30]
call fcn.1400201a8
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002a3c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000b3a0
test eax, eax
jns 0x140020130
mov byte [rdi + 0x34], bl
jmp 0x14002016e
mov rcx, qword [rdi + 0x18]
call fcn.14005cd00
test al, al
je 0x14003b9fe
lea rdx, [0x1400a68d0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003b9fe
mov bl, 1
mov rsi, qword [rdi + 0x18]
jmp 0x140020157