joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008d8cc
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.14008a658
lea r13, [0x14016a048]
mov ebx, eax
test eax, eax
js 0x14008da5c
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14008d9a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14008d98a
test byte [rcx + 0x1c], 1
je 0x14008d98a
cmp byte [rcx + 0x19], 2
jb 0x14008d98a
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e400]
mov dword [rsp + 0x20], eax
call fcn.14003fbc0
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x14008da63
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14008da63
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
and qword [rsp + 0x88], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14008da42
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14008da33
test byte [rcx + 0x1c], 1
je 0x14008da33
cmp byte [rcx + 0x19], 2
jb 0x14008da33
mov r9, qword [rsp + 0x80]
lea r8, [0x14014e400]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.14003fbc0
test ebx, ebx
jle 0x14008da4d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14008da4d
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp qword [rsp + 0x80], 0
je 0x14008da89
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x14008dabd
cmp rcx, r13
je 0x14008dabd
test dword [rcx + 0x1c], 0x200
je 0x14008dabd
cmp byte [rcx + 0x19], 2
jb 0x14008dabd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e400]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140014f78
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008e0bc
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 0x14008e0e8
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140088f60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14008e183
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.1400906bc
test eax, eax
js 0x14008e185
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14008e183
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008e172
test byte [rcx + 0x1c], 2
je 0x14008e172
cmp byte [rcx + 0x19], 2
jb 0x14008e172
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e618]
mov edx, 0x40
mov r9d, ebx
call fcn.14001539c
test ebx, ebx
jle 0x14008e17f
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x14008e185
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008f864
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008f8ad
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140088f60
test rsi, rsi
jne 0x14008f8ca
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140088f60
xor edx, edx
mov qword [rsi], rdi
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x30]
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]
nop dword [rax + rax]
test eax, eax
jne 0x14008f938
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008f9b1
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14008f9b1
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14008f9b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008f976
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jne 0x14008f9b3
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008f9ac
test byte [rcx + 0x1c], 1
je 0x14008f9ac
cmp byte [rcx + 0x19], 2
jb 0x14008f9ac
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14014e618]
call fcn.14000c0e8
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x14008f9f0
jmp 0x14008f9e1
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.14008a470
mov ebx, eax
test eax, eax
js 0x14008f9dc
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
jmp 0x14008f9f0
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400911a0
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 rbp, rcx
mov rcx, qword [0x14016a048]
lea r12, [0x14016a048]
lea r13, [0x14014e9e8]
cmp rcx, r12
je 0x1400911fa
test byte [rcx + 0x1c], 1
je 0x1400911fa
cmp byte [rcx + 0x19], 4
jb 0x1400911fa
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r13
call fcn.14000c0e8
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x140091276
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x14009122c
mov ebx, eax
jmp 0x140091235
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140091329
test byte [rcx + 0x1c], 1
je 0x140091329
cmp byte [rcx + 0x19], 2
jb 0x140091329
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
mov r9, rbp
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.140014f78
jmp 0x140091329
mov rcx, rsi
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14009129a
mov ebx, 0x8007000e
jmp 0x140091329
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400912f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400912c7
mov ebx, eax
jmp 0x1400912d0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140091329
test byte [rcx + 0x1c], 1
je 0x140091329
cmp byte [rcx + 0x19], 2
jb 0x140091329
mov edx, 0xc
jmp 0x14009125e
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140091323
test byte [rcx + 0x1c], 1
je 0x140091323
cmp byte [rcx + 0x19], 4
jb 0x140091323
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rbp
mov qword [rsp + 0x20], rdi
mov r8, r13
call fcn.140014ff8
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140091361
test byte [rcx + 0x1c], 1
je 0x140091361
cmp byte [rcx + 0x19], 4
jb 0x140091361
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r13
call fcn.14000c0e8
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 0x14009138c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1400913d4
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140088f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400913ef
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800700ea
jne 0x140091482
mov ecx, dword [rsp + 0x38]
xor ebx, ebx
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140091421
mov ebx, 0x8007000e
jmp 0x140091482
mov r8d, dword [rsp + 0x38]
xor edx, edx
inc r8d
mov rcx, rdi
add r8, r8
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x14009147f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009146e
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140091482
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400920a4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, rcx
mov qword [rax + 8], rbx
test rcx, rcx
jne 0x1400920df
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140088f60
and qword [r14], rbx
mov edi, 0x208
mov ecx, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140092104
mov edi, 0x8007000e
jmp 0x140092170
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x14009214d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14008a7d0
mov edi, eax
test eax, eax
js 0x140092148
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x14009214d
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rbx, rbx
je 0x140092170
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400927cc
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 r12, r9
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x140092822
test byte [rcx + 0x1c], 1
je 0x140092822
cmp byte [rcx + 0x19], 4
jb 0x140092822
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x18
call fcn.14000c0e8
mov r15, qword [rsp + 0x90]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x80], ebx
test r14, r14
je 0x14009284b
test rbp, rbp
je 0x14009284b
test r12, r12
je 0x14009284b
test r15, r15
jne 0x140092863
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140088f60
lea rax, [rsp + 0x80]
mov qword [r14], rbx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400928ef
jg 0x14009289a
mov ebx, eax
jmp 0x1400928a3
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x140092a1f
test byte [rcx + 0x1c], 1
je 0x1400929f9
cmp byte [rcx + 0x19], 3
jb 0x1400929f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140014f78
jmp 0x1400929f2
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x140092919
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140088f60
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140092939
mov ebx, 0x8007000e
jmp 0x1400929eb
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400929d6
jle 0x140092988
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x1400929c3
test byte [rcx + 0x1c], 1
je 0x1400929c3
cmp byte [rcx + 0x19], 2
jb 0x1400929c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x1a
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.140014f78
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ebx, edi
jmp 0x1400929f2
mov eax, dword [rsp + 0x30]
mov dword [r12], eax
mov eax, dword [rsp + 0x80]
mov dword [r15], eax
mov qword [r14], rsi
lea r14, [0x14016a048]
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140092a1f
test byte [rcx + 0x1c], 1
je 0x140092a1f
cmp byte [rcx + 0x19], 4
jb 0x140092a1f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x1b
call fcn.14000c0e8
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 0x140092a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x30
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x140092a90
test byte [rcx + 0x1c], 1
je 0x140092a90
cmp byte [rcx + 0x19], 4
jb 0x140092a90
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x26
call fcn.14000c0e8
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
test rsi, rsi
jne 0x140092ab9
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140088f60
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
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]
nop dword [rax + rax]
test ebp, ebp
je 0x140092afd
cmp eax, 2
jne 0x140092afd
lea ebx, [rax - 1]
jmp 0x140092b68
test eax, eax
je 0x140092b46
jg 0x140092b07
mov ebx, eax
jmp 0x140092b10
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140092b95
test byte [rcx + 0x1c], 1
je 0x140092b6f
cmp byte [rcx + 0x19], 3
jb 0x140092b6f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
jmp 0x140092b68
cmp dword [rsp + 0x78], 4
je 0x140092b54
mov ebx, 0x8007065d
jmp 0x140092b68
cmp dword [rsp + 0x68], 4
je 0x140092b62
mov ebx, 0x80004005
jmp 0x140092b68
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140092b95
test byte [rcx + 0x1c], 1
je 0x140092b95
cmp byte [rcx + 0x19], 4
jb 0x140092b95
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x28
call fcn.14000c0e8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140092bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov r15, r8
mov rbp, rcx
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x140092c08
test byte [rcx + 0x1c], 1
je 0x140092c08
cmp byte [rcx + 0x19], 4
jb 0x140092c08
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x2c
call fcn.14000c0e8
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x70], ebx
mov qword [r15], rbx
mov dword [r14], ebx
lea esi, [rbx + 0x40]
mov dword [rsp + 0x68], esi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, esi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140092d1b
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140092c76
test byte [rcx + 0x1c], 1
je 0x140092c76
cmp byte [rcx + 0x19], 4
jb 0x140092c76
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x2d
mov r9d, esi
call fcn.14001539c
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]
nop dword [rax + rax]
test eax, eax
je 0x140092cfe
cmp eax, 0xea
jne 0x140092cbb
mov esi, dword [rsp + 0x68]
jmp 0x140092c1d
test eax, eax
jg 0x140092cc3
mov ebx, eax
jmp 0x140092ccc
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140092d20
test byte [rcx + 0x1c], 1
je 0x140092d20
cmp byte [rcx + 0x19], 2
jb 0x140092d20
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x2e
mov r9d, ebx
call fcn.14000c114
jmp 0x140092d20
cmp dword [rsp + 0x70], 7
je 0x140092d0c
mov ebx, 0x8000ffff
jmp 0x140092d20
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x140092d20
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140092d5c
test byte [rcx + 0x1c], 1
je 0x140092d5c
cmp byte [rcx + 0x19], 4
jb 0x140092d5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x2f
call fcn.14000c0e8
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140092d7c
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 [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x140092dd2
test byte [rcx + 0x1c], 1
je 0x140092dd2
cmp byte [rcx + 0x19], 4
jb 0x140092dd2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x1f
call fcn.14000c0e8
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x34]
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]
nop dword [rax + rax]
test eax, eax
jns 0x140092e3c
mov ecx, eax
call fcn.14002a600
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140092ecf
test byte [rcx + 0x1c], 1
je 0x140092ea9
cmp byte [rcx + 0x19], 2
jb 0x140092ea9
mov edx, 0x20
jmp 0x140092e8f
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]
nop dword [rax + rax]
test eax, eax
jns 0x140092ea2
mov ecx, eax
call fcn.14002a600
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140092ecf
test byte [rcx + 0x1c], 1
je 0x140092ea9
cmp byte [rcx + 0x19], 2
jb 0x140092ea9
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov r9d, eax
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140092ecf
test byte [rcx + 0x1c], 1
je 0x140092ecf
cmp byte [rcx + 0x19], 4
jb 0x140092ecf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x22
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1400936e0
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 [0x14016a048]
lea r12, [0x14016a048]
cmp rcx, r12
je 0x140093738
test byte [rcx + 0x1c], 1
je 0x140093738
cmp byte [rcx + 0x19], 4
jb 0x140093738
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x23
call fcn.14000c0e8
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]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400937ad
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x14009379a
test byte [rcx + 0x1c], 1
je 0x14009379a
cmp byte [rcx + 0x19], 2
jb 0x14009379a
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x14014e9e8]
call fcn.14000c114
mov rcx, qword [0x14016a048]
test edi, edi
jg 0x1400937a2
mov ebx, edi
jmp 0x1400937b4
movzx ebx, di
or ebx, 0x80070000
jmp 0x1400937b4
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400937da
test byte [rcx + 0x1c], 1
je 0x1400937da
cmp byte [rcx + 0x19], 4
jb 0x1400937da
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x25
call fcn.14000c0e8
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 0x140093be4
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r9d
mov rdi, r8
mov rbp, rdx
test rdx, rdx
jne 0x140093c20
lea r8, str.hCryptHash
mov edx, 0x206
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.140088f60
test rdi, rdi
jne 0x140093c3d
lea r8, [0x14014ea98]
mov edx, 0x207
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.140088f60
test esi, esi
je 0x140093c9f
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
test eax, eax
jns 0x140093cd6
mov ecx, eax
call fcn.14002a600
mov ebx, eax
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x140093cd6
test byte [rcx + 0x1c], 1
je 0x140093cd6
cmp byte [rcx + 0x19], 2
jb 0x140093cd6
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014eb60]
mov edx, 0x13
mov r9d, eax
call fcn.14000c114
jmp 0x140093cd6
mov rcx, qword [0x14016a048]
lea rdx, [0x14016a048]
cmp rcx, rdx
je 0x140093cd6
test byte [rcx + 0x1c], 1
je 0x140093cd6
cmp byte [rcx + 0x19], 5
jb 0x140093cd6
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014eb60]
mov edx, 0x14
mov r9, rdi
call fcn.140040a74
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret