joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140090b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
jne 0x140090bad
lea edx, [rcx + 0x3b]
lea rcx, str.base_stor_blbutil_networkutils.cpp
lea r8, str.wszNetworkShare
call fcn.1400906e0
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbx
mov qword [rsp + 0x58], rdi
or rsi, 0xffffffffffffffff
call fcn.140091f50
mov ebx, eax
test eax, eax
js 0x140090ca4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140090c1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140090c06
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070005
jne 0x140090ca4
mov ebx, 0x80780047
jmp 0x140090ca4
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, str.TempFile.tmp
call fcn.140091810
mov ebx, eax
test eax, eax
js 0x140090c9f
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov rdi, qword [rsp + 0x58]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x4000080
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140090ca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140090c8e
movzx eax, ax
or eax, 0x80070000
mov ebx, 0x80780047
cmp eax, 0x80070005
cmove eax, ebx
mov ebx, eax
jmp 0x140090ca4
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rsi, 0xffffffffffffffff
je 0x140090cd9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14009432c
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 [0x140173708]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
lea r12, [0x140156aa0]
mov ebp, 1
cmp rcx, r14
je 0x140094390
test byte [rcx + 0x1c], bpl
je 0x140094390
cmp byte [rcx + 0x19], 4
jb 0x140094390
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.14000c328
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
xor ebx, ebx
xor r9d, r9d
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
lea r8d, [rbx + 0x20]
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
jns 0x140094401
mov ecx, eax
call fcn.14002a840
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400944a4
test byte [rcx + 0x1c], 8
je 0x140094482
cmp byte [rcx + 0x19], 2
jb 0x140094482
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov r9d, eax
mov r8, r12
call fcn.14000c354
jmp 0x14009447b
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140094436
test byte [rcx + 0x1c], bpl
je 0x140094436
cmp byte [rcx + 0x19], 4
jb 0x140094436
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.1400155dc
mov rcx, qword [0x140173048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x140094478
test byte [rcx + 0x1c], bpl
je 0x140094478
cmp byte [rcx + 0x19], 4
jb 0x140094478
mov rcx, qword [rcx + 0x10]
lea rax, [0x140151488]
test dil, dil
lea r9, [0x140151480]
mov edx, 0x1b
mov r8, r12
cmove r9, rax
call fcn.140015150
mov byte [rsi], dil
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400944a4
test byte [rcx + 0x1c], bpl
je 0x1400944a4
cmp byte [rcx + 0x19], 4
jb 0x1400944a4
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007410
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 0x140094ca8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rsp + 0x68]
mov qword [rdx], r15
mov r14, rdx
xor edx, edx
mov dword [rsp + 0x70], r15d
xor r8d, r8d
mov rbp, rcx
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140094d12
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x140094d12
test eax, eax
jg 0x140094d04
mov ebx, eax
jmp 0x140094de9
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140094de9
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140094d37
mov ebx, 0x8007000e
jmp 0x140094ded
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140094d74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140094dda
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140094dda
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x140094d78
test edi, edi
je 0x140094dda
lea eax, [rdi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x140094daa
mov ebx, 0x8007000e
jmp 0x140094dda
mov r8, rsi
mov rdx, rbx
mov rcx, r11
call fcn.140006530
mov ebx, eax
test eax, eax
js 0x140094dcb
lea ecx, [rdi - 1]
mov word [r11 + rcx*2], r15w
mov qword [r14], r11
jmp 0x140094dda
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x140094e28
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140094e28
test byte [rcx + 0x1c], 1
je 0x140094e28
cmp byte [rcx + 0x19], 3
jb 0x140094e28
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156aa0]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400151b8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009504c
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.140091dd8
lea r13, [0x140173048]
mov ebx, eax
test eax, eax
js 0x1400951dc
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 0x140095120
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009510a
test byte [rcx + 0x1c], 1
je 0x14009510a
cmp byte [rcx + 0x19], 2
jb 0x14009510a
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156aa0]
mov dword [rsp + 0x20], eax
call fcn.14003fe00
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x1400951e3
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400951e3
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 0x1400951c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x1400951b3
test byte [rcx + 0x1c], 1
je 0x1400951b3
cmp byte [rcx + 0x19], 2
jb 0x1400951b3
mov r9, qword [rsp + 0x80]
lea r8, [0x140156aa0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.14003fe00
test ebx, ebx
jle 0x1400951cd
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400951cd
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 [0x140173048]
cmp qword [rsp + 0x80], 0
je 0x140095209
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x14009523d
cmp rcx, r13
je 0x14009523d
test dword [rcx + 0x1c], 0x200
je 0x14009523d
cmp byte [rcx + 0x19], 2
jb 0x14009523d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156aa0]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.1400151b8
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009583c
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 0x140095868
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.1400906e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140095903
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.140097e3c
test eax, eax
js 0x140095905
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x140095903
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400958f2
test byte [rcx + 0x1c], 2
je 0x1400958f2
cmp byte [rcx + 0x19], 2
jb 0x1400958f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156cb8]
mov edx, 0x40
mov r9d, ebx
call fcn.1400155dc
test ebx, ebx
jle 0x1400958ff
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x140095905
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140096fe4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14009702d
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.1400906e0
test rsi, rsi
jne 0x14009704a
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.1400906e0
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 0x1400970b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140097131
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140097131
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 0x140097137
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400970f6
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
jne 0x140097133
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14009712c
test byte [rcx + 0x1c], 1
je 0x14009712c
cmp byte [rcx + 0x19], 2
jb 0x14009712c
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x140156cb8]
call fcn.14000c328
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x140097170
jmp 0x140097161
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.140091bf0
mov ebx, eax
test eax, eax
js 0x14009715c
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
jmp 0x140097170
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.140007410
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140098920
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 [0x140173048]
lea r12, [0x140173048]
lea r13, [0x140157088]
cmp rcx, r12
je 0x14009897a
test byte [rcx + 0x1c], 1
je 0x14009897a
cmp byte [rcx + 0x19], 4
jb 0x14009897a
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r13
call fcn.14000c328
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 0x1400989f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x1400989ac
mov ebx, eax
jmp 0x1400989b5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140098aa9
test byte [rcx + 0x1c], 1
je 0x140098aa9
cmp byte [rcx + 0x19], 2
jb 0x140098aa9
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
mov r9, rbp
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.1400151b8
jmp 0x140098aa9
mov rcx, rsi
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140098a1a
mov ebx, 0x8007000e
jmp 0x140098aa9
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140098a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140098a47
mov ebx, eax
jmp 0x140098a50
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140098aa9
test byte [rcx + 0x1c], 1
je 0x140098aa9
cmp byte [rcx + 0x19], 2
jb 0x140098aa9
mov edx, 0xc
jmp 0x1400989de
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140098aa3
test byte [rcx + 0x1c], 1
je 0x140098aa3
cmp byte [rcx + 0x19], 4
jb 0x140098aa3
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rbp
mov qword [rsp + 0x20], rdi
mov r8, r13
call fcn.140015238
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r12
je 0x140098ae1
test byte [rcx + 0x1c], 1
je 0x140098ae1
cmp byte [rcx + 0x19], 4
jb 0x140098ae1
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r13
call fcn.14000c328
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 0x140098b0c
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 0x140098b54
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.1400906e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140098b6f
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800700ea
jne 0x140098c02
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 0x140098ba1
mov ebx, 0x8007000e
jmp 0x140098c02
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 0x140098bff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140098bee
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140098c02
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 0x140099824
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 0x14009985f
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.1400906e0
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 0x140099884
mov edi, 0x8007000e
jmp 0x1400998f0
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 0x1400998cd
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140091f50
mov edi, eax
test eax, eax
js 0x1400998c8
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x1400998cd
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rbx, rbx
je 0x1400998f0
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 0x140099f4c
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 [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140099fa2
test byte [rcx + 0x1c], 1
je 0x140099fa2
cmp byte [rcx + 0x19], 4
jb 0x140099fa2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x18
call fcn.14000c328
mov r15, qword [rsp + 0x90]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x80], ebx
test r14, r14
je 0x140099fcb
test rbp, rbp
je 0x140099fcb
test r12, r12
je 0x140099fcb
test r15, r15
jne 0x140099fe3
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.1400906e0
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 0x14009a06f
jg 0x14009a01a
mov ebx, eax
jmp 0x14009a023
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14009a19f
test byte [rcx + 0x1c], 1
je 0x14009a179
cmp byte [rcx + 0x19], 3
jb 0x14009a179
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400151b8
jmp 0x14009a172
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14009a099
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.1400906e0
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 0x14009a0b9
mov ebx, 0x8007000e
jmp 0x14009a16b
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 0x14009a156
jle 0x14009a108
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x14009a143
test byte [rcx + 0x1c], 1
je 0x14009a143
cmp byte [rcx + 0x19], 2
jb 0x14009a143
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x1a
mov dword [rsp + 0x20], edi
mov r9, rbp
call fcn.1400151b8
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ebx, edi
jmp 0x14009a172
mov eax, dword [rsp + 0x30]
mov dword [r12], eax
mov eax, dword [rsp + 0x80]
mov dword [r15], eax
mov qword [r14], rsi
lea r14, [0x140173048]
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14009a19f
test byte [rcx + 0x1c], 1
je 0x14009a19f
cmp byte [rcx + 0x19], 4
jb 0x14009a19f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x1b
call fcn.14000c328
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 0x14009a1c0
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 [0x140173048]
lea r13, [0x140173048]
cmp rcx, r13
je 0x14009a210
test byte [rcx + 0x1c], 1
je 0x14009a210
cmp byte [rcx + 0x19], 4
jb 0x14009a210
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x26
call fcn.14000c328
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
test rsi, rsi
jne 0x14009a239
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.1400906e0
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 0x14009a27d
cmp eax, 2
jne 0x14009a27d
lea ebx, [rax - 1]
jmp 0x14009a2e8
test eax, eax
je 0x14009a2c6
jg 0x14009a287
mov ebx, eax
jmp 0x14009a290
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009a315
test byte [rcx + 0x1c], 1
je 0x14009a2ef
cmp byte [rcx + 0x19], 3
jb 0x14009a2ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400151b8
jmp 0x14009a2e8
cmp dword [rsp + 0x78], 4
je 0x14009a2d4
mov ebx, 0x8007065d
jmp 0x14009a2e8
cmp dword [rsp + 0x68], 4
je 0x14009a2e2
mov ebx, 0x80004005
jmp 0x14009a2e8
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
mov rcx, qword [0x140173048]
cmp rcx, r13
je 0x14009a315
test byte [rcx + 0x1c], 1
je 0x14009a315
cmp byte [rcx + 0x19], 4
jb 0x14009a315
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x28
call fcn.14000c328
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret