joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f530
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14001f55d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x14003cd18
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov ecx, 6
jmp 0x14001f550
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
jmp 0x14001f558

Function at 0x14001f564
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003cd2a
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x14003cd40
test eax, eax
jne 0x14003cd31
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x14003cd33
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14001f5cf
mov ecx, 0x7a
jmp 0x14003cd33

Function at 0x14001f888
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]
test eax, eax
jne 0x14001f8c9
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x14001f8c9
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f8c9
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 0x140020600
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 [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14002072f
cmp word [rcx], si
je 0x14002072f
xor r8d, r8d
xor edx, edx
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x140020665
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, [0x14008c350]
mov qword [rsp + 0x40], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x40]
call fcn.14001459c
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]
lea rcx, [rsp + 0x40]
call fcn.140014568
mov rax, qword [rsp + 0x40]
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x54]
lea rdx, [0x140095274]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140006f84.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.0x140006f84.0]
mov rdx, qword [rsp + 0x48]
lea rcx, str.PATH
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14003de88
lea rcx, [rsp + 0x40]
call fcn.1400282e4
xor eax, eax
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14002cdb0
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_search_searchcommonpkmutill_ssfsutil.cxx
mov edx, 0x8f
call fcn.14005a4d8
int3
Function at 0x140020a00
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c9158]
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.140006ce0
test eax, eax
js 0x140020a83
lea rax, [rsp + 0x30]
mov rdx, rdi
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14001e334
test eax, eax
jne 0x140020a83
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
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]
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140020db0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x360
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x378], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rdi, rcx
mov byte [rsp + 0x30], 0
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x140]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003e536
xor al, al
mov rcx, qword [rsp + 0x368]
test al, al
jne 0x14003e53d
mov rcx, rbx
lea rax, [rsp + 0x140]
nop
cmp word [rax], 0
je 0x140020e35
add rax, 2
sub rcx, 1
jne 0x140020e20
jmp 0x14003e55d
test rcx, rcx
je 0x14003e55d
sub rbx, rcx
lea rax, [rsp + 0x140]
lea rax, [rax + rbx*2]
xor ebx, ebx
mov r10d, ebx
test rcx, rcx
je 0x14003e54e
mov edx, 0x7ffffffe
lea r9, str.propsys.dll
sub r9, rax
nop word [rax + rax]
test rdx, rdx
je 0x140020e96
movzx r8d, word [r9 + rax]
test r8w, r8w
je 0x140020e96
mov word [rax], r8w
add rax, 2
dec rdx
sub rcx, 1
jne 0x140020e70
jmp 0x14003e54e
test rcx, rcx
je 0x14003e54e
mov word [rax], bx
mov rcx, qword [rsp + 0x368]
test r10d, r10d
js 0x14003e56a
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]
mov rcx, qword [rsp + 0x368]
test eax, eax
je 0x14003e57e
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14001f440
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.14001f564
test eax, eax
je 0x14003e58f
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]
test eax, eax
jne 0x14003e58f
xor bl, bl
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.140013e30
nop
movzx eax, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x378]
add rsp, 0x360
pop rdi
ret
mov al, 1
jmp 0x140020e03
lea r8, [0x140098b20]
mov edx, 0xdd
call fcn.14005ec38
sub rax, 2
mov r10d, 0x8007007a
jmp 0x140020e9f
xor ebx, ebx
mov r10d, 0x80070057
jmp 0x140020ea2
mov r9d, r10d
lea r8, [0x140098b20]
mov edx, 0xde
call fcn.14005a4d8
lea r8, [0x140098b20]
mov edx, 0xe1
call fcn.14005ec38
mov eax, dword [rsp + 0x64]
mov dword [rdi], eax
mov eax, dword [rsp + 0x68]
mov dword [rdi + 4], eax
mov bl, 1
jmp 0x140020f50
Function at 0x140021054
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rbp + 0x38], rbx
lea rdx, str.SystemSetup
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea edi, [rbx + 1]
mov r9d, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400210d8
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14003e5c2
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x1400210ce
cmp dword [rbp + 0x28], edi
cmove ebx, edi
jmp 0x1400210ce
Function at 0x140021644
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 r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.14001e334
test eax, eax
jg 0x14003fd5e
js 0x1400216d5
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]
test eax, eax
jle 0x1400216c5
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14003fd6d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x14002167a
cmp dword [rbp + 0x18], 4
je 0x14003fd78
call fcn.1400887c0
cmp dword [rbp + 0x20], 4
je 0x14003fd83
call fcn.1400887c0
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x1400216cb
Function at 0x1400219f8
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
mov rdi, rdx
mov rsi, rcx
mov byte [rbp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rcx, 0xffffffff80000002
call fcn.14001e334
mov ebx, eax
test eax, eax
jg 0x1400405ee
test ebx, ebx
js 0x1400405fc
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]
test eax, eax
jg 0x14004061a
js 0x140021b01
cmp dword [rbp + 0x38], 1
jne 0x140021b01
and dword [rsi], 0
lea r8, [rbp + 0x28]
and dword [rdi], 0
lea rdx, [rbp + 0x30]
mov byte [rbp + 0x28], 0
call fcn.140021c78
test eax, eax
js 0x140021b01
cmp byte [rbp + 0x28], 0
je 0x140040668
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]
test eax, eax
je 0x140040629
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp byte [rbp + 0x30], 0
jne 0x140021b1c
mov eax, ebx
add rsp, 0x48
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005b01c
jmp 0x140021b11
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140021a46
mov rcx, qword [rbp + 0x20]
lea r8, str.onecoreuap_base_appmodel_search_search_search_service_setup.cxx
mov r9d, ebx
mov edx, 0x117
call fcn.14002c058
nop
jmp 0x140021b11
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140021a91
cmp dword [rbp + 0x40], 4
jne 0x140040651
mov edx, dword [rbp + 0x38]
test edx, edx
je 0x140040651
lea eax, [rdx - 1]
mov dword [rsi], 1
cmp eax, 8
mov ecx, 0x68
cmovbe ecx, edx
mov dword [rdi], ecx
jmp 0x140021b01
mov rcx, qword [rbp - 0x10]
lea rdx, str.RebuildIndex
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop
jmp 0x140021b01
mov dword [rsi], 1
mov dword [rdi], 0x64
jmp 0x140021b01
Function at 0x140021b24
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.14001e334
xor edi, edi
mov ebx, eax
test eax, eax
jg 0x14004067a
test ebx, ebx
js 0x140021bea
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]
mov ebx, eax
test eax, eax
jg 0x140040688
test ebx, ebx
js 0x140021bdf
cmp dword [rsp + 0x50], 1
jne 0x140021bdf
mov rcx, qword [rsp + 0x68]
lea rdx, str.PreviousSettings
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
mov ebx, eax
test eax, eax
jle 0x140021bd6
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]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140021b5a
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140021baa
Function at 0x140022e8c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov r9d, 0x7cf
lea r12, [0x1400ca210]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.14002527c
xor r15d, r15d
test eax, eax
js 0x14002309e
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140022f65
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140022f14
movzx ecx, word [rbx]
test cx, cx
je 0x140022f0f
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140023083
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140022f65
movzx ecx, word [rbx]
test cx, cx
je 0x140022f65
cmp cx, dx
je 0x140040d88
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140022f50
cmp word [rbx], r15w
je 0x140022f50
add rbx, 2
movzx ecx, word [rbx]
jmp 0x140022f37
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x140022ee5
cmp dword [rdi], r15d
je 0x14002309e
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14008e048]
call qword [case.0x140006f84.0]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002309e
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x140023061
cmp ebp, dword [rdi]
jge 0x140023061
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x140022fe6
movzx ecx, word [rbx]
test cx, cx
je 0x140022fe6
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140040daa
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
je 0x140023061
cmp word [rbx], r15w
je 0x140023061
cmp word [rbx], si
lea rax, [rbx + 2]
cmovne rax, rbx
inc ebp
mov qword [r14], rax
add r14, 8
cmp word [rbx], si
je 0x140040db3
cmp rcx, r13
jae 0x140023041
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
jne 0x140023041
cmp word [rbx], r15w
je 0x14002304f
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x14002301c
cmp word [rbx], r15w
je 0x14002304f
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x140022fb0
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140022ef9
jmp 0x140022f0f
xor eax, eax
jmp 0x140023066
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140040da3
add rbx, 2
jmp 0x140022f50
inc dword [rdi]
jmp 0x140022f65
add rbx, 2
jmp 0x140022fc2
mov edx, esi
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x140023061
jmp 0x140023041
Function at 0x140023a0c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, qword [rcx + 0x18]
lea rdx, [0x140096844]
mov r15, rcx
xor r12d, r12d
mov ecx, 0x208
mov ebp, r12d
mov ebx, r12d
call fcn.14002d21c
lea r9, [rsp + 0x50]
mov r8d, 0x104
mov rdx, rax
mov rcx, r14
mov rdi, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
or r13, 0xffffffffffffffff
test eax, eax
je 0x1400410aa
mov esi, r12d
mov rbx, rdi
mov rdi, r12
mov rcx, rdi
call fcn.14000abd8
test esi, esi
js 0x140023ad2
mov rdi, rbx
cmp word [rbx], r12w
je 0x140023ace
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsRootW]
test eax, eax
je 0x140023ab3
movzx edx, word [rdi]
mov eax, 1
cmp edx, 0x5a
lea ecx, [rdx - 0x20]
cmovbe cx, dx
sub ecx, 0x41
shl eax, cl
or ebp, eax
mov rax, r13
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140023ab6
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], r12w
jne 0x140023a8d
mov dword [r15 + 0x30], ebp
mov rcx, rbx
call fcn.14000abd8
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14001e28c
mov esi, eax
cmp eax, 0x800700ea
jne 0x140041119
mov ecx, dword [rsp + 0x50]
mov eax, 2
mul rcx
lea rdx, [0x140096844]
cmovo rax, r13
mov rcx, rax
call fcn.14002d21c
mov rcx, rdi
mov rsi, rax
call fcn.14000abd8
mov rdi, rsi
test rsi, rsi
jne 0x1400410f4
mov esi, 0x8007000e
jmp 0x140023a78
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140023a6f
call fcn.14001e28c
mov esi, eax
test esi, esi
js 0x140023a78
jmp 0x140023a72
Function at 0x140025ce8
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400c8ab0]
mov rcx, rdi
call fcn.140025de8
test eax, eax
jne 0x140025dd8
mov rcx, qword [0x1400c8ab0]
lea edx, [rax + 2]
call fcn.140028c4c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140026720
mov ebx, eax
test eax, eax
js 0x1400425e4
call fcn.14001e578
mov ebx, eax
test eax, eax
js 0x14004260b
mov rcx, qword [0x1400c8ab0]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x140006f84.0]
mov ebx, eax
test eax, eax
js 0x140042612
mov rcx, qword [0x1400c8ab0]
mov edx, 4
call fcn.140028c4c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x140006f84.0]
mov ebx, eax
test eax, eax
js 0x1400425eb
mov r8d, SafeArrayGetLBound
lea rdx, [0x140095e80]
lea rcx, [rsp + 0x38]
call fcn.140026690
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]
lea rcx, [rsp + 0x38]
call fcn.1400266fc
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x218
jmp 0x1400425f0
mov edx, 0x222
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_search_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.1400069dc
mov eax, ebx
jmp 0x140025dda
mov edx, 0x21a
jmp 0x1400425f0
mov edx, 0x21e
jmp 0x1400425f0
Function at 0x14002720c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c9158]
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, fcn.140019f80
mov qword [rsp + 0x68], rax
lea rax, [0x14008bba0]
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.140013ea0
test eax, eax
js 0x1400273c2
mov eax, r14d
mov dword [rsp + 0x30], eax
lea edi, [r14 + 6]
lea r15d, [r14 + 4]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14004321e
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov ecx, eax
mov eax, dword [rsp + 0x30]
cmp ecx, 0x7a
jne 0x1400273c2
mov ecx, eax
lea rdx, [0x140096844]
call fcn.14002d21c
mov rbx, rax
test rax, rax
je 0x1400273b9
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14002731d
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov edi, eax
test edi, edi
jg 0x140043225
js 0x1400273b9
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x140043235
cmp dword [rsp + 0x34], r14d
je 0x1400273b9
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]
test eax, eax
je 0x140043247
mov edi, r14d
mov r15d, 1
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
je 0x1400273b9
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]
test eax, eax
jne 0x1400273f8
add edi, r15d
test sil, sil
je 0x140027384
mov rcx, rbx
call fcn.14000abd8
nop
lea rcx, [rsp + 0x60]
call fcn.140013e30
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
movzx esi, sil
cmp ecx, 0xf003f
cmove esi, r15d
jmp 0x1400273b1
mov ecx, edi
jmp 0x1400272de
movzx edi, di
or edi, 0x80070000
test edi, edi
jmp 0x140027325
call fcn.14001e28c
test eax, eax
js 0x1400273b9
jmp 0x140027350
call fcn.14001e28c
test eax, eax
js 0x1400273b9
jmp 0x14002737b