joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400096c0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x480
mov rax, qword [0x1400c5228]
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 0x140009763
lea rdx, [0x140094190]
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.140009778
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002c9c0
add rsp, 0x480
pop rbx
ret
call fcn.140019964
test eax, eax
jns 0x14000971c
mov byte [rbx + 0x34], 0
jmp 0x14000974a

Function at 0x140009878
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x14009ff48]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x14009ff4c]
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 0x14000997b
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, [0x140094190]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14000997b
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140009947
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 0x14000998b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14000b47c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, qword [rsp + 0x2b8]
mov rbp, r8
mov rbx, qword [rsp + 0x2c0]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov r14d, r9d
mov rsi, rdx
call fcn.14000c640
test al, al
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
cmove rdx, rsi
mov r9d, r14d
and qword [rsp + 0x20], 0
mov r8, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002c9c0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000b7a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
movzx ebx, dl
mov dword [rsp + 0x30], 0
lea rdx, [r8 + 0x10]
mov rdi, r8
movzx r11d, cl
mov r8d, 8
lea rcx, [rsp + 0x30]
call fcn.14000b864
mov r8d, dword [rsp + 0x30]
add r11b, 2
cmp r11b, bl
jae 0x14000b83f
mov qword [rsp + 0x38], rsi
movzx esi, r11b
shl rsi, 4
add rsi, rdi
sub bl, r11b
movzx r11d, bl
nop word [rax + rax]
mov r9d, dword [rsi + 8]
xor eax, eax
mov r10, qword [rsi]
test r9, r9
je 0x14000b830
nop
movzx ecx, byte [rax + r10]
inc rax
add ecx, r8d
imul edx, ecx, 0x401
mov r8d, edx
shr r8d, 6
xor r8d, edx
cmp rax, r9
jb 0x14000b810
add rsi, 0x10
sub r11, 1
jne 0x14000b800
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
lea eax, [r8 + r8*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
add rsp, 0x20
pop rdi
ret

Function at 0x14000b864
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r8, r8
je 0x14000b88d
movzx eax, byte [r10 + rdx]
inc r10
add eax, dword [rcx]
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor eax, r9d
mov dword [rcx], eax
cmp r10, r8
jb 0x14000b86c
ret
Function at 0x14000d224
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbx + 0xb0]
mov dword [rsp + 0x50], 4
test rcx, rcx
je 0x14000d2af
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d2a3
cmp dword [rsp + 0x68], 4
jne 0x14000d2a3
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x14000d293
mov ecx, 6
jmp 0x14000d2a5
Function at 0x1400126a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
mov eax, dword [rcx + 0x1d8]
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + 0x1dc]
mov dword [rsp + 0x2c], eax
mov rax, qword [rcx + 0x1e0]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x1c8]
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 0x1cc]
mov dword [rsp + 0x3c], eax
mov rax, qword [rcx + 0x1d0]
mov qword [rsp + 0x40], rax
mov ebx, 0x7c
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.1400128fc
cmp eax, 0xffffffff
jne 0x1400128ed
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.1400128fc
cmp eax, 0xffffffff
jne 0x1400128ed
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x10]
call fcn.14000c8b0
nop
lea ecx, [rbx - 0x14]
mov rax, qword [0x14008d248]
call qword [case.0x140002c98.0]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400385aa
mov qword [rsp + 0x28], rax
mov rdx, qword [rbp - 8]
mov rcx, rax
call fcn.140012a20
nop
mov eax, dword [rbx + 4]
lea rcx, [rbx + 0x30]
and qword [rcx + 8], 0
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
add rax, 0x20
shr rax, 5
mov dword [rcx], eax
call fcn.140012960
nop
mov eax, dword [rbx + 4]
mov dword [rbx + 0x4c], eax
and qword [rbx + 0x50], 0
and qword [rbx + 0x58], 0
mov dword [rbx + 0x60], 0xbb8
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, rbx
call fcn.140012dc0
nop
mov qword [rdi], rbx
mov edx, 0x2a
lea rcx, [rsp + 0x38]
call fcn.1400128fc
cmp eax, 0xffffffff
je 0x1400385b1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000c8b0
nop
mov edx, 0x5c
lea r8d, [rdx - 0x2d]
lea rcx, [rsp + 0x50]
call fcn.140014740
mov ecx, 0x68
mov rax, qword [0x14008d248]
call qword [case.0x140002c98.0]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400128f1
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.140012a20
nop
mov eax, dword [rbx + 4]
lea rcx, [rbx + 0x30]
and qword [rcx + 8], 0
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
add rax, 0x20
shr rax, 5
mov dword [rcx], eax
call fcn.140012960
nop
mov eax, dword [rbx + 4]
mov dword [rbx + 0x4c], eax
and qword [rbx + 0x50], 0
and qword [rbx + 0x58], 0
mov dword [rbx + 0x60], 0xbb8
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x64], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rbx + 0x64], eax
mov rcx, rbx
call fcn.140012dc0
nop
mov qword [rdi + 8], rbx
lea rcx, [rsp + 0x50]
call fcn.14001222c
nop
lea rcx, [rbp - 0x10]
call fcn.14001222c
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002c9c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor eax, eax
jmp 0x1400128c9
xor ebx, ebx
jmp 0x1400128ac
xor ebx, ebx
jmp 0x1400127e4
mov edx, 0x3f
lea rcx, [rsp + 0x38]
call fcn.1400128fc
cmp eax, 0xffffffff
je 0x1400128bb
jmp 0x1400127ff
Function at 0x140019c08
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, [0x140095c74]
mov ecx, 0x208
call fcn.14002ce6c
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 0x14003ae7c
xor edi, edi
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rcx, rbx
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.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.140019964
mov edi, eax
cmp eax, 0x800700ea
jne 0x14003aefb
mov ecx, dword [rsp + 0x48]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x140095c74]
mov rcx, rax
call fcn.14002ce6c
mov rdi, rax
mov rcx, rbx
mov rax, qword [0x14008d258]
call qword [case.0x140002c98.0]
nop
mov rbx, rdi
test rdi, rdi
jne 0x14003aed6
mov edi, 0x8007000e
jmp 0x140019c6b
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 0x140019c61
call fcn.140019964
mov edi, eax
test edi, edi
js 0x140019c6b
jmp 0x140019c63
Function at 0x14001a348
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 [0x1400c5228]
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.14001706c
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14001a3af
add rax, 2
sub rcx, 1
jne 0x14001a39f
test rcx, rcx
je 0x14003b14c
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14001a418
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x14001a409
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x140094898]
sub rax, rcx
test r8, r8
je 0x14001a409
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x14001a409
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x14001a3e8
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 0x14003b154
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.14001a568
mov esi, eax
test eax, eax
js 0x14003b189
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14001a46f
add rax, 2
sub rcx, 1
jne 0x14001a45f
test rcx, rcx
je 0x14003b1aa
mov rax, rbx
sub rax, rcx
test rcx, rcx
je 0x14001a4d3
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rbx, rax
je 0x14001a4c4
lea rcx, [rax + 0x7ffffefa]
add rcx, rbx
lea r8, [0x140094890]
sub r8, rdx
test rcx, rcx
je 0x14001a4c4
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14001a4c4
mov word [rdx], ax
dec rcx
add rdx, 2
sub rbx, 1
jne 0x14001a4a5
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 0x14003b16a
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14001a568
mov esi, eax
test eax, eax
js 0x14003b1b2
mov rcx, rbx
call fcn.14002605c
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 0x14001a534
mov rcx, rdi
call fcn.14002605c
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14002c9c0
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 0x14001a3be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14001a524
mov edx, 0xc0
jmp 0x14003b16f
mov edx, 0xcc
mov rcx, qword [rbp + 0x168]
lea r8, [0x140096e30]
call fcn.1400433c4
mov esi, eax
jmp 0x14001a527
mov rcx, qword [rbp + 0x168]
lea r8, [0x140096e30]
mov r9d, eax
mov edx, 0xc6
call fcn.1400433e4
nop
jmp 0x14001a527
mov rax, r15
jmp 0x14001a47e
mov rcx, qword [rbp + 0x168]
lea r8, [0x140096e30]
mov r9d, eax
mov edx, 0xce
call fcn.1400433e4
mov rcx, rbx
call fcn.14002605c
nop
jmp 0x14001a527
Function at 0x14001ca24
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 [0x1400c5228]
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 0x14001ca64
mov byte [r8], r15b
mov edx, 2
mov rcx, qword [rcx + 8]
call fcn.14001fb5c
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.14001e27c
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14001cfa4
nop
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsp + 0x108]
call fcn.14001cb00
test al, al
je 0x14003bcd6
mov rcx, qword [rsp + 0x108]
call fcn.14001cb00
test al, al
je 0x14003bdc4
lea rcx, [rsp + 0x100]
call fcn.14001222c
nop
mov rcx, r14
call fcn.14001222c
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c9c0
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.14000b988
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1a0]
call fcn.14000c8b0
mov rcx, qword [rsp + 0x1a8]
call fcn.14001cb00
test al, al
jne 0x14003bd93
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 0x14003bd93
test ebx, ebx
js 0x14003bd93
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14003bd5a
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.14004a874
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.14001222c
test rdi, rdi
je 0x14001caac
cmp word [rdi], r15w
jne 0x14003bce7
jmp 0x14001caac
test rsi, rsi
je 0x14003bdcc
mov byte [rsi], 1
mov rcx, qword [rsp + 0x108]
call fcn.14005516c
nop
jmp 0x14001cac1

Function at 0x14001cb00
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 0x14001cb41
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x14001cb41
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001cb41
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 0x14001cd18
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 [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rdi, rcx
xor esi, esi
test rcx, rcx
je 0x14001ce47
cmp word [rcx], si
je 0x14001ce47
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 0x14001cd7d
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, [0x14008b5d8]
mov qword [rsp + 0x40], rax
lea edx, [rbx + 0x104]
lea rcx, [rsp + 0x40]
call fcn.14000a708
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.14000a6d0
mov rax, qword [rsp + 0x40]
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x54]
lea rdx, [0x140094ac4]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.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.0x140002c98.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 0x14003be36
lea rcx, [rsp + 0x40]
call fcn.14001e6a8
xor eax, eax
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14002c9c0
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.140043ca0
int3
Function at 0x14001e080
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 [0x1400c5228]
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.14001e27c
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 0x14001e123
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.14001e2f4
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.0x140002c98.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001222c
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 0x14001e15b
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.0x140002c98.0]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14001e27c
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14001e014
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.0x140002c98.0]
nop
lea rcx, [rbp + 0x10]
call fcn.14001222c
mov eax, dword [rbx + 0x14]
mov r8d, SafeArrayGetDim
cmp eax, r8d
jb 0x14001e1ca
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001e2c4
lea rdx, str.SearchData
mov rcx, rax
call fcn.140011cc0
test eax, eax
je 0x14001e226
mov eax, dword [rbx + 0x14]
mov r8d, 6
cmp eax, r8d
jb 0x14001e1f9
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001e2c4
lea rdx, [0x140094840]
mov rcx, rax
call fcn.140011cc0
test eax, eax
je 0x14003c4a0
mov rcx, rdi
call fcn.14001222c
mov rax, rbx
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.14002c9c0
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.14000d1f4
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001e27c
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001e014
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.0x140002c98.0]
nop
lea rcx, [rsp + 0x70]
call fcn.14001222c
jmp 0x14001e1f9
mov edx, dword [rbx + 0x14]
add edx, 0xfffffffa
mov rcx, rbx
call fcn.14000d1f4
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.14001e27c
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001e014
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.0x140002c98.0]
nop
jmp 0x14001e269
Function at 0x14001e6ec
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 [0x1400c7810], 0
mov esi, r9d
movzx ebp, r8w
mov edi, edx
mov rbx, rcx
jne 0x14001e76b
call fcn.14001e7f4
test al, al
jne 0x14001e76b
mov rcx, rbx
call fcn.14001e790
test eax, eax
je 0x14001e785
call fcn.14002ece8
test al, al
je 0x14001e76b
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 0x14001e770

Function at 0x14001e9c8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c5228]
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.14001ee64
test eax, eax
js 0x14001ea63
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
call fcn.14000b3f8
test eax, eax
jne 0x14001ea63
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.14002c9c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret