joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008a884
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
lea r12, [0x1401558c0]
mov ebp, 1
cmp rcx, r14
je 0x14008a8e8
test byte [rcx + 0x1c], bpl
je 0x14008a8e8
cmp byte [rcx + 0x19], 4
jb 0x14008a8e8
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.140004c6c
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, edi
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14008a955
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008a9f8
test byte [rcx + 0x1c], 8
je 0x14008a9d6
cmp byte [rcx + 0x19], 2
jb 0x14008a9d6
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 7]
mov r9d, eax
mov r8, r12
call fcn.140004c90
jmp 0x14008a9cf
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008a98a
test byte [rcx + 0x1c], bpl
je 0x14008a98a
cmp byte [rcx + 0x19], 4
jb 0x14008a98a
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x14008a9cc
test byte [rcx + 0x1c], bpl
je 0x14008a9cc
cmp byte [rcx + 0x19], 4
jb 0x14008a9cc
mov rcx, qword [rcx + 0x10]
lea rax, [0x1401504b0]
test dil, dil
lea r9, [0x1401504b8]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.140005c6c
mov byte [rsi], dil
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008a9f8
test byte [rcx + 0x1c], bpl
je 0x14008a9f8
cmp byte [rcx + 0x19], 4
jb 0x14008a9f8
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14008d590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008d5d7
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008624c
test rsi, rsi
jne 0x14008d5f4
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008624c
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14008d657
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008d6e8
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14008d6c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008d6ea
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008d6be
test byte [rcx + 0x1c], 1
je 0x14008d6be
cmp byte [rcx + 0x19], 2
jb 0x14008d6be
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x140155ad8]
call fcn.140004c6c
mov ebx, 0x8000ffff
jmp 0x14008d6e8
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.14008704c
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x14008d6ec
mov qword [rsi], rdi
test ebx, ebx
jns 0x14008d6f5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14008d7a8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x14008d7d4
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.14008624c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008d857
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.14008af2c
test eax, eax
js 0x14008d859
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008d857
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008d848
test byte [rcx + 0x1c], 2
je 0x14008d848
cmp byte [rcx + 0x19], 2
jb 0x14008d848
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ad8]
mov edx, 0x40
mov r9d, ebx
call fcn.140004c90
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008d859
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008de10
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x1401782b0]
lea r13, [0x1401782b0]
lea r12, [0x140155ec8]
cmp rcx, r13
je 0x14008de6a
test byte [rcx + 0x1c], 1
je 0x14008de6a
cmp byte [rcx + 0x19], 4
jb 0x14008de6a
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r12
call fcn.140004c6c
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x14008dec2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008df73
test byte [rcx + 0x1c], 1
je 0x14008df73
cmp byte [rcx + 0x19], 2
jb 0x14008df73
lea edx, [rdi + 0xb]
jmp 0x14008df27
mov rcx, rbp
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008dee0
mov ebx, 0x8007000e
jmp 0x14008df73
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14008df3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008df73
test byte [rcx + 0x1c], 1
je 0x14008df73
cmp byte [rcx + 0x19], 2
jb 0x14008df73
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005ce8
jmp 0x14008df73
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008df6d
test byte [rcx + 0x1c], 1
je 0x14008df6d
cmp byte [rcx + 0x19], 4
jb 0x14008df6d
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov r8, r12
call fcn.140005d7c
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008dfa5
test byte [rcx + 0x1c], 1
je 0x14008dfa5
cmp byte [rcx + 0x19], 4
jb 0x14008dfa5
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.140004c6c
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x14008e0b8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e11b
test dword [rcx + 0x1c], 0x200
je 0x14008e11b
cmp byte [rcx + 0x19], 4
jb 0x14008e11b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0xf
call fcn.140004c6c
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x14008e13d
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea r9, [rsp + 0x20]
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, 0xc0000023
test eax, eax
jns 0x14008e1cb
cmp eax, ebx
je 0x14008e1cb
cmp eax, 0x80000005
je 0x14008e1cb
cmp eax, 0xc0000004
je 0x14008e1cb
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e30b
test byte [rcx + 0x1c], 8
je 0x14008e2e2
cmp byte [rcx + 0x19], 2
jb 0x14008e2e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x10
mov r9d, eax
call fcn.140004c90
jmp 0x14008e2db
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008e1e7
mov ebx, 0x8007000e
jmp 0x14008e2db
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14008e259
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e2d2
test byte [rcx + 0x1c], 8
je 0x14008e2d2
cmp byte [rcx + 0x19], 2
jb 0x14008e2d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x11
mov r9d, eax
call fcn.140004c90
jmp 0x14008e2d2
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008e271
mov ecx, ebx
call fcn.14003b824
jmp 0x14008e2d0
test dl, 1
je 0x14008e28e
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
movzx ecx, word [rdi]
lea eax, [rcx + 8]
cmp eax, dword [rsp + 0x20]
jbe 0x14008e2a1
mov ebx, 0x8000ffff
jmp 0x14008e2d2
mov r8, qword [rdi + 8]
mov r9, rcx
shr r9, 1
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140086320
mov ebx, eax
test eax, eax
js 0x14008e2d2
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14008704c
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e30b
test dword [rcx + 0x1c], 0x200
je 0x14008e30b
cmp byte [rcx + 0x19], 4
jb 0x14008e30b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x12
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008e66c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008e6c2
test byte [rcx + 0x1c], 1
je 0x14008e6c2
cmp byte [rcx + 0x19], 4
jb 0x14008e6c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x18
call fcn.140004c6c
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x14008e6eb
test rsi, rsi
je 0x14008e6eb
test rbp, rbp
je 0x14008e6eb
test r15, r15
jne 0x14008e703
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
and qword [r14], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008e788
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e8b9
test byte [rcx + 0x1c], 1
je 0x14008e893
cmp byte [rcx + 0x19], 3
jb 0x14008e893
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14008e88c
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14008e7b2
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008e7d3
mov ebx, 0x8007000e
lea rbp, [0x1401782b0]
jmp 0x14008e88c
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008e85a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e87e
test byte [rcx + 0x1c], 1
je 0x14008e87e
cmp byte [rcx + 0x19], 2
jb 0x14008e87e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14008e877
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x1401782b0]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x1401782b0]
test rdi, rdi
je 0x14008e893
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e8b9
test byte [rcx + 0x1c], 1
je 0x14008e8b9
cmp byte [rcx + 0x19], 4
jb 0x14008e8b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x1b
call fcn.140004c6c
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008ea8c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x14008eae2
test byte [rcx + 0x1c], 1
je 0x14008eae2
cmp byte [rcx + 0x19], 4
jb 0x14008eae2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x1f
call fcn.140004c6c
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x3c], rax
mov rcx, rdi
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], ebx
lea r9d, [rbx + 0xc]
mov dword [rsp + 0x34], ebx
lea edx, [rbx + 5]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x14008eb46
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebad
cmp byte [rcx + 0x19], 2
jb 0x14008ebad
mov edx, 0x20
jmp 0x14008eb93
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov r9d, 4
or eax, 0xe
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea edx, [r9 - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
test eax, eax
jns 0x14008eba6
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebad
cmp byte [rcx + 0x19], 2
jb 0x14008ebad
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebd3
cmp byte [rcx + 0x19], 4
jb 0x14008ebd3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x22
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008ebfc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov r14, rcx
mov rcx, qword [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14008ec54
test byte [rcx + 0x1c], 1
je 0x14008ec54
cmp byte [rcx + 0x19], 4
jb 0x14008ec54
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x23
call fcn.140004c6c
mov eax, dword [rsp + 0x70]
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, r14
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x14008ecc0
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14008ecb0
test byte [rcx + 0x1c], 1
je 0x14008ecb0
cmp byte [rcx + 0x19], 2
jb 0x14008ecb0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x140155ec8]
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008ecc7
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14008eced
test byte [rcx + 0x1c], 1
je 0x14008eced
cmp byte [rcx + 0x19], 4
jb 0x14008eced
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x25
call fcn.140004c6c
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x14008ed10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ed5b
test byte [rcx + 0x1c], 1
je 0x14008ed5b
cmp byte [rcx + 0x19], 4
jb 0x14008ed5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x26
call fcn.140004c6c
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
test rsi, rsi
jne 0x14008ed88
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
lea rax, [rsp + 0x78]
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ebp, ebp
je 0x14008edc8
cmp eax, 2
jne 0x14008edc8
lea ebx, [rax - 1]
jmp 0x14008ee3e
test eax, eax
je 0x14008ee1c
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14008ee72
test byte [rcx + 0x1c], 1
je 0x14008ee4c
cmp byte [rcx + 0x19], 3
jb 0x14008ee4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x27
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005ce8
jmp 0x14008ee45
cmp dword [rsp + 0x68], 4
je 0x14008ee2a
mov ebx, 0x8007065d
jmp 0x14008ee3e
cmp dword [rsp + 0x78], 4
je 0x14008ee38
mov ebx, 0x80004005
jmp 0x14008ee3e
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x14008ee72
test byte [rcx + 0x1c], 1
je 0x14008ee72
cmp byte [rcx + 0x19], 4
jb 0x14008ee72
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x28
call fcn.140004c6c
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008ee88
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov r15, r8
mov rbp, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008eeda
test byte [rcx + 0x1c], 1
je 0x14008eeda
cmp byte [rcx + 0x19], 4
jb 0x14008eeda
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x2c
call fcn.140004c6c
xor ebx, ebx
mov dword [rsp + 0x70], ebx
xor ecx, ecx
mov qword [r15], rbx
mov dword [r14], ebx
lea esi, [rbx + 0x40]
mov dword [rsp + 0x68], esi
jmp 0x14008ef69
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ef28
test byte [rcx + 0x1c], 1
je 0x14008ef28
cmp byte [rcx + 0x19], 4
jb 0x14008ef28
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x2d
mov r9d, esi
call fcn.140004c90
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.RestoredVolumes
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008f023
cmp eax, 0xea
jne 0x14008efd9
mov esi, dword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008eef1
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008efc6
test byte [rcx + 0x1c], 1
je 0x14008efc6
cmp byte [rcx + 0x19], 4
jb 0x14008efc6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x2f
call fcn.140004c6c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ef89
test byte [rcx + 0x1c], 1
je 0x14008ef89
cmp byte [rcx + 0x19], 2
jb 0x14008ef89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x2e
mov r9d, ebx
call fcn.140004c90
jmp 0x14008ef89
cmp dword [rsp + 0x70], 7
je 0x14008f034
mov ebx, 0x8000ffff
jmp 0x14008ef89
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14008ef89