joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001be6c
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.14001c074
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 0x14001bf15
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.14001c0f4
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.0x140024555.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 0x14001bf53
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.0x140024555.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14001c074
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14001be00
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.0x140024555.0]
nop
lea rcx, [rbp + 0x10]
call fcn.14001484c
mov eax, dword [rbx + 0x14]
mov r8d, SafeArrayGetDim
cmp eax, r8d
jb 0x14001bfc2
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001c0c0
lea rdx, [0x1400a5fc0]
mov rcx, rax
call fcn.1400156a4
test eax, eax
je 0x14001c01f
mov eax, dword [rbx + 0x14]
mov r8d, 6
cmp eax, r8d
jb 0x14001bff1
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001c0c0
lea rdx, [0x1400a5f60]
mov rcx, rax
call fcn.1400156a4
test eax, eax
je 0x14003a054
mov rcx, rdi
call fcn.14001484c
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14002a3f0
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.14001c074
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001be00
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.0x140024555.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001484c
jmp 0x14001bff1
mov edx, dword [rbx + 0x14]
add edx, 0xfffffffa
mov rcx, rbx
call fcn.140014be8
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001c074
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001be00
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.0x140024555.0]
nop
jmp 0x14001c062
Function at 0x14001c6dc
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 0x14001c81d
cmp word [rcx], si
je 0x14001c81d
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 0x14001c747
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.14001875c
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.140018724
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.0x140024555.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.0x140024555.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 0x14003a5d4
lea rcx, [rsp + 0x40]
call fcn.14001c528
xor eax, eax
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14002a3f0
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.140058954
int3
Function at 0x14001cb10
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 0x14001cb50
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140003184
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001c074
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14001c4b8
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14001cbec
test al, al
je 0x14003a642
mov rcx, qword [rsp + 0x108]
call fcn.14001cbec
test al, al
je 0x14003a748
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.14002a3f0
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.140056770
mov rcx, qword [rsp + 0x1a8]
call fcn.14001cbec
test al, al
jne 0x14003a711
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 0x14003a711
test ebx, ebx
js 0x14003a711
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 0x14003a6d8
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.14004b1d4
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 0x14001cb98
cmp word [rdi], r15w
jne 0x14003a659
jmp 0x14001cb98
test rsi, rsi
je 0x14003a750
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.140058988
nop
jmp 0x14001cbad

Function at 0x14001cbec
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 0x14001cc3f
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 0x14001cc3f
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 0x14001cc3f
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 0x14001cd90
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14001cdca
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x14003a7c8
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 0x14001cdb6
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 0x14001cdc4
Function at 0x14001cdd8
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 0x14003a7e0
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14001ce57
add rax, 2
sub rcx, 1
jne 0x14001ce48
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x14003a7f1
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14001cee0
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14001cec2
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14001cec2
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001cec2
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14001cea3
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 0x14003a7f9
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 0x14003a80a
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001c354
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.140027df8
test eax, eax
je 0x14003a81b
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 0x14003a81b
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.14002a3f0
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.140054c64
mov rax, rbx
jmp 0x14001ce79
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.140058954
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140054c64
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14001cf98
Function at 0x14001d0d0
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 0x14001d167
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 0x14003a850
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 0x14001d157
test rdi, rdi
je 0x14003a864
mov eax, dword [rbp + 0x30]
mov dword [rdi], eax
mov ebx, 1
jmp 0x14001d157

Function at 0x14001d368
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 0x14001d464
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.14001d530
mov ebx, eax
test eax, eax
js 0x14003a86e
call fcn.14001a6f0
mov ebx, eax
test eax, eax
js 0x14003a895
mov rcx, qword [0x1400dab28]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x140024555.0]
mov ebx, eax
test eax, eax
js 0x14003a89c
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.0x140024555.0]
mov ebx, eax
test eax, eax
js 0x14003a875
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400a6400]
lea rcx, [rsp + 0x38]
call fcn.14001d4a8
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.14001d478
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x220
jmp 0x14003a87a
mov edx, 0x22a
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140042654
mov eax, ebx
jmp 0x14001d466
mov edx, 0x222
jmp 0x14003a87a
mov edx, 0x226
jmp 0x14003a87a
Function at 0x14001e9f8
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 0x14003b362
test ebx, ebx
js 0x14003b370
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 0x14003b38e
js 0x14001eb0f
cmp dword [rbp + 0x38], 1
jne 0x14001eb0f
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.14001ec2c
test eax, eax
js 0x14001eb0f
cmp byte [rbp + 0x28], 0
je 0x14003b3e2
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 0x14003b39d
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 0x14001eb31
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005956c
jmp 0x14001eb25
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001ea48
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.140043580
nop
jmp 0x14001eb25
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x14001ea99
cmp dword [rbp + 0x40], 4
jne 0x14003b3c5
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x14003b3c5
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 0xa
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x14001eb0f
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 0x14001eb0f
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x14001eb0f
Function at 0x14001eb40
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 0x14003b3f4
test ebx, ebx
js 0x14001ec1a
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 0x14003b402
test ebx, ebx
js 0x14001ec09
cmp dword [rsp + 0x50], 1
jne 0x14001ec09
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 0x14001ec00
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 0x14001eb78
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001ebce
Function at 0x1400200f4
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 0x1400201c4
lea rsi, [rsp + 0x260]
cmp byte [rdi + 0x35], bl
jne 0x14003ba4a
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.1400201d8
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002a3f0
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 0x140020160
mov byte [rdi + 0x34], bl
jmp 0x14002019e
mov rcx, qword [rdi + 0x18]
call fcn.14005cbf0
test al, al
je 0x14003ba6e
lea rdx, [0x1400a68d0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003ba6e
mov bl, 1
mov rsi, qword [rdi + 0x18]
jmp 0x140020187
Function at 0x1400201d8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov dil, r9b
mov ebx, ecx
xor esi, esi
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 7]
mov qword [r11 - 0x60], rax
lea rax, [rbp + 0x17]
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], esi
lea r8, str.SOFTWAREMicrosoftWindows_SearchVolumeInfoCache
mov rdx, 0xffffffff80000002
call fcn.14000a628
test eax, eax
jne 0x140020275
test dil, dil
jne 0x14003ba78
lea rax, [rbp + 0x17]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 7]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x37], rax
lea rax, [rbp + 0x77]
mov qword [rbp + 0x3f], rax
mov edi, esi
test ebx, ebx
je 0x140020275
test bl, 1
jne 0x14002029e
inc edi
shr ebx, 1
jne 0x14002026a
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14002028a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x27]
call fcn.1400202b4
jmp 0x14002026f
mov qword [rbp + 0xf], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003bb68
mov dword [rbp + 0xb], 3
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0xb]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DriveType
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
lea rdx, [0x1400a68d0]
mov rcx, qword [rbp + 0x6f]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003bb68
mov rcx, qword [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003bb10
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.VolumeLabel
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140020275
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140020275
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140020244
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140020244
Function at 0x1400202b4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400b23f0]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400b23f4]
xor r9d, r9d
mov word [rsp + 0x60], ax
xor r8d, r8d
mov rax, qword [rcx]
mov word [rsp + 0x5c], dx
lea rdx, [r11 - 0x1c]
mov qword [r11 - 0x28], rdi
mov rcx, qword [rax]
mov rax, qword [rbx + 8]
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400203c9
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rsp + 0x58], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400a68d0]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400203c9
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14002038f
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.VolumeLabel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400203df
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002a3f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret