joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ca80
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 [0x1400da318]
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 0x14001cac0
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.140002cf4
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001bfe4
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14001c428
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14001cb5c
test al, al
je 0x1400390ac
mov rcx, qword [rsp + 0x108]
call fcn.14001cb5c
test al, al
je 0x1400391b2
lea rcx, [rsp + 0x100]
call fcn.1400147bc
nop
mov rcx, r14
call fcn.1400147bc
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a310
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.140015f44
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.140055970
mov rcx, qword [rsp + 0x1a8]
call fcn.14001cb5c
test al, al
jne 0x14003917b
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 0x14003917b
test ebx, ebx
js 0x14003917b
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 0x140039142
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.14004a3d4
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.1400147bc
test rdi, rdi
je 0x14001cb08
cmp word [rdi], r15w
jne 0x1400390c3
jmp 0x14001cb08
test rsi, rsi
je 0x1400391ba
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.140057b88
nop
jmp 0x14001cb1d

Function at 0x14001cb5c
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 0x14001cbaf
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 0x14001cbaf
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 0x14001cbaf
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 0x14001cd00
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14001cd3a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140039232
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 0x14001cd26
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 0x14001cd34
Function at 0x14001cd48
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 [0x1400da318]
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 0x14003924a
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14001cdc7
add rax, 2
sub rcx, 1
jne 0x14001cdb8
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x14003925b
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14001ce50
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14001ce32
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14001ce32
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001ce32
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14001ce13
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 0x140039263
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 0x140039274
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001c2c4
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.140027ca0
test eax, eax
je 0x140039285
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 0x140039285
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.140014250
nop
mov al, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002a310
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.140053e64
mov rax, rbx
jmp 0x14001cde9
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.140057b54
lea r8, str.onecoreuap_base_appmodel_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140053e64
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14001cf08
Function at 0x14001d040
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 0x14001d0d7
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 0x1400392ba
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 0x14001d0c7
test rdi, rdi
je 0x1400392ce
mov eax, dword [rbp + 0x30]
mov dword [rdi], eax
mov ebx, 1
jmp 0x14001d0c7

Function at 0x14001d2d8
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400d9af0]
mov rcx, rdi
call fcn.140002ea8
test eax, eax
jne 0x14001d3d4
mov rcx, qword [0x1400d9af0]
lea edx, [rax + 2]
call fcn.140002cf4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
call fcn.14001d4a0
mov ebx, eax
test eax, eax
js 0x1400392d8
call fcn.14001a660
mov ebx, eax
test eax, eax
js 0x1400392ff
mov rcx, qword [0x1400d9af0]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x1400244c5.0]
mov ebx, eax
test eax, eax
js 0x140039306
mov rcx, qword [0x1400d9af0]
mov edx, 4
call fcn.140002cf4
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x1400244c5.0]
mov ebx, eax
test eax, eax
js 0x1400392df
mov r8d, SafeArrayGetLBound
lea rdx, [0x1400a5390]
lea rcx, [rsp + 0x38]
call fcn.14001d418
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.14001d3e8
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x220
jmp 0x1400392e4
mov edx, 0x22a
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140041884
mov eax, ebx
jmp 0x14001d3d6
mov edx, 0x222
jmp 0x1400392e4
mov edx, 0x226
jmp 0x1400392e4
Function at 0x14001e968
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.14000a928
mov ebx, eax
test eax, eax
jg 0x140039dcc
test ebx, ebx
js 0x140039dda
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 0x140039df8
js 0x14001ea7f
cmp dword [rbp + 0x38], 1
jne 0x14001ea7f
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.14001eb9c
test eax, eax
js 0x14001ea7f
cmp byte [rbp + 0x28], 0
je 0x140039e4c
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 0x140039e07
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 0x14001eaa1
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005876c
jmp 0x14001ea95
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001e9b8
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.1400427b0
nop
jmp 0x14001ea95
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x14001ea09
cmp dword [rbp + 0x40], 4
jne 0x140039e2f
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x140039e2f
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 0xa
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x14001ea7f
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 0x14001ea7f
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x14001ea7f
Function at 0x14001eab0
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.14000a928
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x140039e5e
test ebx, ebx
js 0x14001eb8a
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 0x140039e6c
test ebx, ebx
js 0x14001eb79
cmp dword [rsp + 0x50], 1
jne 0x14001eb79
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 0x14001eb70
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 0x14001eae8
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001eb3e
Function at 0x140020064
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400da318]
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 0x140020134
lea rsi, [rsp + 0x260]
cmp byte [rdi + 0x35], bl
jne 0x14003a4b4
lea rdx, [0x1400a5860]
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.140020148
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002a310
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000b310
test eax, eax
jns 0x1400200d0
mov byte [rdi + 0x34], bl
jmp 0x14002010e
mov rcx, qword [rdi + 0x18]
call fcn.14005bdf0
test al, al
je 0x14003a4d8
lea rdx, [0x1400a5860]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003a4d8
mov bl, 1
mov rsi, qword [rdi + 0x18]
jmp 0x1400200f7
Function at 0x140020148
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.14000a594
test eax, eax
jne 0x1400201e5
test dil, dil
jne 0x14003a4e2
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 0x1400201e5
test bl, 1
jne 0x14002020e
inc edi
shr ebx, 1
jne 0x1400201da
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400201fa
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.140020224
jmp 0x1400201df
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 0x14003a5d2
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, [0x1400a5860]
mov rcx, qword [rbp + 0x6f]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003a5d2
mov rcx, qword [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003a57a
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 0x1400201e5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400201e5
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400201b4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400201b4
Function at 0x140020224
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400b13a0]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400b13a4]
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 0x140020339
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, [0x1400a5860]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140020339
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400202ff
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 0x14002034f
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.14002a310
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140020454
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbp, rcx
and qword [rdx], 0
lea rdx, [0x1400a6224]
mov ecx, 0x208
call fcn.14002a7bc
mov rbx, rax
lea r9, [rsp + 0x48]
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
je 0x14003a5f2
xor edi, edi
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rcx, rbx
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14000b310
mov edi, eax
cmp eax, 0x800700ea
jne 0x14003a677
mov ecx, dword [rsp + 0x48]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x1400a6224]
mov rcx, rax
call fcn.14002a7bc
mov rdi, rax
mov rcx, rbx
mov rax, qword [0x14009d348]
call qword [case.0x1400244c5.0]
nop
mov rbx, rdi
test rdi, rdi
jne 0x14003a64c
mov edi, 0x8007000e
jmp 0x1400204bd
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400204b3
call fcn.14000b310
mov edi, eax
test edi, edi
js 0x1400204bd
jmp 0x1400204b5

Function at 0x140020f1c
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.14000a928
test eax, eax
jg 0x14003a88a
js 0x140020fba
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, str.EnableDefaultScope
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 0x140020fa4
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14003a899
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
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140020f53
cmp dword [rbp + 0x18], 4
je 0x14003a8a4
call fcn.14009743c
cmp dword [rbp + 0x20], 4
je 0x14003a8af
call fcn.14009743c
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x140020faa