joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ab7c
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1400c6ac0]
mov rcx, rdi
call fcn.14000b5b0
test eax, eax
jne 0x14000ac6c
mov rcx, qword [0x1400c6ac0]
lea edx, [rax + 2]
call fcn.14000b40c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
call fcn.14000ae08
mov ebx, eax
test eax, eax
js 0x14003610e
call fcn.14000ad1c
mov ebx, eax
test eax, eax
js 0x140036135
mov rcx, qword [0x1400c6ac0]
mov rax, qword [rcx]
mov dword [rcx + 0xd0], 1
mov rax, qword [rax + 0x68]
call qword [case.0x1400022d4.0]
mov ebx, eax
test eax, eax
js 0x14003613c
mov rcx, qword [0x1400c6ac0]
mov edx, 4
call fcn.14000b40c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x80]
call qword [case.0x1400022d4.0]
mov ebx, eax
test eax, eax
js 0x140036115
mov r8d, SafeArrayGetLBound
lea rdx, [0x140095260]
lea rcx, [rsp + 0x38]
call fcn.14000aca8
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.14000ac80
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 0x218
jmp 0x14003611a
mov edx, 0x222
mov rcx, qword [rsp + 0x28]
lea r8, str.onecoreuap_base_appmodel_search_searchcommondcomsvcdcomsvc.cxx
mov r9d, ebx
call fcn.140043d14
mov eax, ebx
jmp 0x14000ac6e
mov edx, 0x21a
jmp 0x14003611a
mov edx, 0x21e
jmp 0x14003611a

Function at 0x14000baac
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 0x14000bb30
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 0x1400363c8
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 0x14000bb26
cmp dword [rbp + 0x28], edi
cmove ebx, edi
jmp 0x14000bb26
Function at 0x14000bb40
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 [0x1400c7228]
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]
test eax, eax
sete al
mov rcx, qword [rsp + 0x368]
test al, al
jne 0x1400363de
mov ecx, edi
lea rax, [rsp + 0x140]
cmp word [rax], bx
je 0x14000bbb9
add rax, 2
sub rcx, 1
jne 0x14000bbaa
mov rax, rcx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rcx, rcx
je 0x1400363ef
mov rax, rdi
sub rax, rcx
test rcx, rcx
je 0x14000bc42
sub rdi, rax
lea rcx, [rsp + 0x140]
lea rcx, [rcx + rax*2]
je 0x14000bc24
lea rdx, [rax + 0x7ffffefa]
add rdx, rdi
lea r8, str.propsys.dll
sub r8, rcx
test rdx, rdx
je 0x14000bc24
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000bc24
mov word [rcx], ax
add rcx, 2
dec rdx
sub rdi, 1
jne 0x14000bc05
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 0x1400363f7
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 0x140036408
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call fcn.14000d2ac
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.140008d70
test eax, eax
je 0x140036419
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 0x140036419
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x80]
call fcn.14001a87c
nop
mov al, bl
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002c150
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_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xdd
call fcn.140052bc4
mov rax, rbx
jmp 0x14000bbdb
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xde
call fcn.1400445d0
lea r8, str.onecoreuap_base_appmodel_search_searchcommonpropertyschemainspectionpropertyschemainspection.cpp
mov edx, 0xe1
call fcn.140052bc4
mov eax, dword [rsp + 0x64]
mov dword [rsi], eax
mov eax, dword [rsp + 0x68]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14000bcee
Function at 0x14000be94
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 [0x1400c7228]
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 0x14000bed4
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.14000b40c
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14000cf58
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14000c414
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14000bf70
test al, al
je 0x140036460
mov rcx, qword [rsp + 0x108]
call fcn.14000bf70
test al, al
je 0x14003654e
lea rcx, [rsp + 0x100]
call fcn.14001acc4
nop
mov rcx, r14
call fcn.14001acc4
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
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]
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.14001dac4
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.140014f60
mov rcx, qword [rsp + 0x1a8]
call fcn.14000bf70
test al, al
jne 0x14003651d
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14003651d
test ebx, ebx
js 0x14003651d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400364e4
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_search_searchcommonpkmutillindexmove.cxx
mov edx, 0x187
call fcn.14004b1a4
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
mov rdi, rax
lea rcx, [rsp + 0x1a0]
call fcn.14001acc4
test rdi, rdi
je 0x14000bf1c
cmp word [rdi], r15w
jne 0x140036471
jmp 0x14000bf1c
test rsi, rsi
je 0x140036556
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.14005646c
nop
jmp 0x14000bf31

Function at 0x14000bf70
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 0x14000bfb1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x14000bfb1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000bfb1
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 0x14000c188
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 [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14000c2b7
cmp word [rcx], si
je 0x14000c2b7
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 0x14000c1ed
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, [0x14008bb20]
mov qword [rsp + 0x40], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x40]
call fcn.1400128e0
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.1400128a8
mov rax, qword [rsp + 0x40]
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1400956e4]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x1400022d4.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.0x1400022d4.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 0x1400365c0
lea rcx, [rsp + 0x40]
call fcn.14000d384
xor eax, eax
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14002c150
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.1400445d0
int3
Function at 0x14000cd5c
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 [0x1400c7228]
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.14000cf58
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]
or esi, 0xffffffff
test eax, eax
je 0x14000cdff
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.14000cfd0
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.0x1400022d4.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001acc4
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]
test eax, eax
je 0x14000ce37
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.0x1400022d4.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000cf58
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14000ccf0
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.0x1400022d4.0]
nop
lea rcx, [rbp + 0x10]
call fcn.14001acc4
mov eax, dword [rbx + 0x14]
mov r8d, SafeArrayGetDim
cmp eax, r8d
jb 0x14000cea6
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000cfa0
lea rdx, str.SearchData
mov rcx, rax
call fcn.14001a6e0
test eax, eax
je 0x14000cf02
mov eax, dword [rbx + 0x14]
mov r8d, 6
cmp eax, r8d
jb 0x14000ced5
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000cfa0
lea rdx, [0x140096380]
mov rcx, rax
call fcn.14001a6e0
test eax, eax
je 0x1400376ac
mov rcx, rdi
call fcn.14001acc4
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14002c150
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.1400158e4
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14000cf58
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000ccf0
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.0x1400022d4.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001acc4
jmp 0x14000ced5
mov edx, dword [rbx + 0x14]
add edx, 0xfffffffa
mov rcx, rbx
call fcn.1400158e4
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14000cf58
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000ccf0
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.0x1400022d4.0]
nop
jmp 0x14000cf45
Function at 0x14000d3c8
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 [0x1400c9850], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x14000d447
call fcn.14000d4d0
test al, al
jne 0x14000d447
mov rcx, rbx
call fcn.14000d46c
test eax, eax
je 0x14000d461
call fcn.14002e478
test al, al
je 0x14000d447
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]
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 0x14000d44c

Function at 0x14000d6a4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c7228]
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.14000db40
test eax, eax
js 0x14000d73f
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
call fcn.1400140d4
test eax, eax
jne 0x14000d73f
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]
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.14002c150
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14000da08
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c7228]
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.14000db40
test eax, eax
js 0x14000da8b
lea rax, [rsp + 0x30]
mov rdx, rdi
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call fcn.1400140d4
test eax, eax
jne 0x14000da8b
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.14002c150
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14000de40
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x14000de6d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
je 0x140037d94
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 0x14000de60
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 1
jmp 0x14000de68
Function at 0x14000e99c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140013294
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14000ea03
add rax, 2
sub rcx, 1
jne 0x14000e9f3
test rcx, rcx
je 0x140038636
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14000ea6c
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x14000ea5d
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x140095a10]
sub rax, rcx
test r8, r8
je 0x14000ea5d
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x14000ea5d
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x14000ea3c
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
je 0x14003863e
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.14000ebbc
mov esi, eax
test eax, eax
js 0x140038673
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14000eac3
add rax, 2
sub rcx, 1
jne 0x14000eab3
test rcx, rcx
je 0x140038694
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14000eb27
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rbx, rax
je 0x14000eb18
lea rcx, [rax + 0x7ffffefa]
add rcx, rbx
lea r8, [0x140095a18]
sub r8, rdx
test rcx, rcx
je 0x14000eb18
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14000eb18
mov word [rdx], ax
dec rcx
add rdx, 2
sub rbx, 1
jne 0x14000eaf9
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
je 0x140038654
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000ebbc
mov esi, eax
test eax, eax
js 0x14003869c
mov rcx, rbx
call fcn.14000877c
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14000eb88
mov rcx, rdi
call fcn.14000877c
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, r15
jmp 0x14000ea12
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000eb78
mov edx, 0xc0
jmp 0x140038659
mov edx, 0xcc
mov rcx, qword [rbp + 0x168]
lea r8, [0x140097ec0]
call fcn.140043cf4
mov esi, eax
jmp 0x14000eb7b
mov rcx, qword [rbp + 0x168]
lea r8, [0x140097ec0]
mov r9d, eax
mov edx, 0xc6
call fcn.140043d14
nop
jmp 0x14000eb7b
mov rax, r15
jmp 0x14000ead2
mov rcx, qword [rbp + 0x168]
lea r8, [0x140097ec0]
mov r9d, eax
mov edx, 0xce
call fcn.140043d14
mov rcx, rbx
call fcn.14000877c
nop
jmp 0x14000eb7b
Function at 0x14000f0fc
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, [0x140096d04]
mov ecx, 0x208
call fcn.14002c5fc
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]
test eax, eax
je 0x14003898c
xor edi, edi
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rcx, rbx
mov rax, qword [0x14008e038]
call qword [case.0x1400022d4.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.14000f970
mov edi, eax
cmp eax, 0x800700ea
jne 0x140038a0b
mov ecx, dword [rsp + 0x48]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x140096d04]
mov rcx, rax
call fcn.14002c5fc
mov rdi, rax
mov rcx, rbx
mov rax, qword [0x14008e038]
call qword [case.0x1400022d4.0]
nop
mov rbx, rdi
test rdi, rdi
jne 0x1400389e6
mov edi, 0x8007000e
jmp 0x14000f15f
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]
test eax, eax
jne 0x14000f155
call fcn.14000f970
mov edi, eax
test edi, edi
js 0x14000f15f
jmp 0x14000f157
Function at 0x140010544
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x1400c7228]
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 rbx, rcx
mov rcx, qword [rcx + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x1400105e7
lea rdx, [0x140095b90]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_wcscmp
mov ecx, dword [rbx + 0x30]
lea r8, [rsp + 0x260]
test eax, eax
lea rdx, [rsp + 0x50]
setne al
mov byte [rbx + 0x34], al
call fcn.1400105fc
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x480
pop rbx
ret
call fcn.14000f970
test eax, eax
jns 0x1400105a0
mov byte [rbx + 0x34], 0
jmp 0x1400105ce

Function at 0x1400106fc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400a0c88]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400a0c8c]
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]
test eax, eax
jne 0x1400107ff
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]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140095b90]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400107ff
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400107cb
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]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001080f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret