joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b69c
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 [0x140170608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
cmp rcx, rbp
je 0x14008b6ff
test dword [rcx + 0x1c], 0x200
je 0x14008b6ff
cmp byte [rcx + 0x19], 4
jb 0x14008b6ff
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0xf
call fcn.140004c54
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x14008b721
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
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 0x14008b7af
cmp eax, ebx
je 0x14008b7af
cmp eax, 0x80000005
je 0x14008b7af
cmp eax, 0xc0000004
je 0x14008b7af
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8f3
test byte [rcx + 0x1c], 8
je 0x14008b8ca
cmp byte [rcx + 0x19], 2
jb 0x14008b8ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x10
mov r9d, eax
call fcn.140004c78
jmp 0x14008b8c3
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008b7cb
mov ebx, 0x8007000e
jmp 0x14008b8c3
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
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 0x14008b83d
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8ba
test byte [rcx + 0x1c], 8
je 0x14008b8ba
cmp byte [rcx + 0x19], 2
jb 0x14008b8ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x11
mov r9d, eax
call fcn.140004c78
jmp 0x14008b8ba
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008b855
mov ecx, ebx
call fcn.14003a444
jmp 0x14008b8b8
test dl, 1
je 0x14008b875
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, pe_nt_image_headers64
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
movzx edx, word [rdi]
movzx eax, dx
add eax, 8
cmp eax, dword [rsp + 0x20]
jbe 0x14008b888
mov ebx, 0x8000ffff
jmp 0x14008b8ba
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x30]
movzx r9d, dx
mov edx, 0x104
shr r9, 1
call fcn.140083960
mov ebx, eax
test eax, eax
js 0x14008b8ba
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14008468c
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008b8f3
test dword [rcx + 0x1c], 0x200
je 0x14008b8f3
cmp byte [rcx + 0x19], 4
jb 0x14008b8f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x12
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140141360
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 0x14008bc54
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 [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008bcaa
test byte [rcx + 0x1c], 1
je 0x14008bcaa
cmp byte [rcx + 0x19], 4
jb 0x14008bcaa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x18
call fcn.140004c54
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x14008bcd3
test rsi, rsi
je 0x14008bcd3
test rbp, rbp
je 0x14008bcd3
test r15, r15
jne 0x14008bceb
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
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 0x14008bd70
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
cmp rcx, rbp
je 0x14008bea1
test byte [rcx + 0x1c], 1
je 0x14008be7b
cmp byte [rcx + 0x19], 3
jb 0x14008be7b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
jmp 0x14008be74
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14008bd9a
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008bdbb
mov ebx, 0x8007000e
lea rbp, [0x140170048]
jmp 0x14008be74
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
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 0x14008be42
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
cmp rcx, rbp
je 0x14008be66
test byte [rcx + 0x1c], 1
je 0x14008be66
cmp byte [rcx + 0x19], 2
jb 0x14008be66
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
jmp 0x14008be5f
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x140170048]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x140170048]
test rdi, rdi
je 0x14008be7b
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14008bea1
test byte [rcx + 0x1c], 1
je 0x14008bea1
cmp byte [rcx + 0x19], 4
jb 0x14008bea1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x1b
call fcn.140004c54
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 0x14008c074
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 [0x140170608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14008c0ca
test byte [rcx + 0x1c], 1
je 0x14008c0ca
cmp byte [rcx + 0x19], 4
jb 0x14008c0ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x1f
call fcn.140004c54
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]
test eax, eax
jns 0x14008c12e
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c195
cmp byte [rcx + 0x19], 2
jb 0x14008c195
mov edx, 0x20
jmp 0x14008c17b
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 0x14008c18e
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c195
cmp byte [rcx + 0x19], 2
jb 0x14008c195
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov r9d, eax
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x14008c1bb
test byte [rcx + 0x1c], 1
je 0x14008c1bb
cmp byte [rcx + 0x19], 4
jb 0x14008c1bb
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x22
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140141360
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008c1e4
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 [0x140170048]
lea r12, [0x140170048]
cmp rcx, r12
je 0x14008c23c
test byte [rcx + 0x1c], 1
je 0x14008c23c
cmp byte [rcx + 0x19], 4
jb 0x14008c23c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x23
call fcn.140004c54
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 0x14008c2a8
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x14008c298
test byte [rcx + 0x1c], 1
je 0x14008c298
cmp byte [rcx + 0x19], 2
jb 0x14008c298
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x14014f4a8]
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008c2af
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x14008c2d5
test byte [rcx + 0x1c], 1
je 0x14008c2d5
cmp byte [rcx + 0x19], 4
jb 0x14008c2d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x25
call fcn.140004c54
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 0x14008c2f8
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 [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008c343
test byte [rcx + 0x1c], 1
je 0x14008c343
cmp byte [rcx + 0x19], 4
jb 0x14008c343
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x26
call fcn.140004c54
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x78], ebx
mov dword [rdi], ebx
test rsi, rsi
jne 0x14008c36c
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
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]
mov ecx, eax
test ebp, ebp
je 0x14008c3ac
cmp eax, 2
jne 0x14008c3ac
lea ebx, [rax - 1]
jmp 0x14008c422
test ecx, ecx
je 0x14008c400
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x140170048]
lea rdi, [0x140170048]
cmp rcx, rdi
je 0x14008c456
test byte [rcx + 0x1c], 1
je 0x14008c430
cmp byte [rcx + 0x19], 3
jb 0x14008c430
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x27
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
jmp 0x14008c429
cmp dword [rsp + 0x78], 4
je 0x14008c40e
mov ebx, 0x8007065d
jmp 0x14008c422
cmp dword [rsp + 0x68], 4
je 0x14008c41c
mov ebx, 0x80004005
jmp 0x14008c422
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x140170048]
mov rcx, qword [0x140170048]
cmp rcx, rdi
je 0x14008c456
test byte [rcx + 0x1c], 1
je 0x14008c456
cmp byte [rcx + 0x19], 4
jb 0x14008c456
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x28
call fcn.140004c54
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008c46c
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 [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008c4be
test byte [rcx + 0x1c], 1
je 0x14008c4be
cmp byte [rcx + 0x19], 4
jb 0x14008c4be
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x2c
call fcn.140004c54
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 0x14008c54d
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008c50c
test byte [rcx + 0x1c], 1
je 0x14008c50c
cmp byte [rcx + 0x19], 4
jb 0x14008c50c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x2d
mov r9d, esi
call fcn.140004c78
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 0x14008c607
cmp eax, 0xea
jne 0x14008c5bd
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 0x14008c4d5
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008c5aa
test byte [rcx + 0x1c], 1
je 0x14008c5aa
cmp byte [rcx + 0x19], 4
jb 0x14008c5aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x2f
call fcn.140004c54
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 [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14008c56d
test byte [rcx + 0x1c], 1
je 0x14008c56d
cmp byte [rcx + 0x19], 2
jb 0x14008c56d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x2e
mov r9d, ebx
call fcn.140004c78
jmp 0x14008c56d
cmp dword [rsp + 0x70], 7
je 0x14008c618
mov ebx, 0x8000ffff
jmp 0x14008c56d
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14008c56d
Function at 0x14008c6c8
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 0x14008c703
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
and qword [r14], rbx
mov edi, 0x208
mov ecx, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14008c722
mov edi, 0x8007000e
jmp 0x14008c77c
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]
mov edi, eax
test eax, eax
js 0x14008c765
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140084468
mov edi, eax
test eax, eax
js 0x14008c760
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x14008c765
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x14008c77c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
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 0x14008d664
Capabilities:
Get common file path

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 r15
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x14008d6b4
test byte [rcx + 0x1c], 1
je 0x14008d6b4
cmp byte [rcx + 0x19], 4
jb 0x14008d6b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, 0x8f
call fcn.140004c54
test rsi, rsi
jne 0x14008d6d1
lea r8, str.pwszWindowsTempPath
mov edx, 0xa75
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008388c
and qword [rsi], 0
mov ebx, 0x28
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008d6f4
mov ebx, 0x8007000e
jmp 0x14008d817
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rdx, rdi
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
cmp eax, 0x14
jbe 0x14008d7c4
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, ebx
mov eax, 0xffffffff
add rcx, rcx
cmp rcx, rax
ja 0x14008d7bd
mov ebp, ecx
mov ecx, ecx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x14008d6ea
mov r8d, ebp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
ja 0x14008d76c
test eax, eax
jne 0x14008d7fb
test eax, eax
jne 0x14008d786
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008d78b
mov ebx, 0x8007000e
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14008d809
test byte [rcx + 0x1c], 1
je 0x14008d809
cmp byte [rcx + 0x19], 2
jb 0x14008d809
mov edx, 0x90
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov r9d, ebx
call fcn.140004c78
jmp 0x14008d802
mov ebx, 0x80070216
jmp 0x14008d817
test eax, eax
jne 0x14008d7fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14008d809
test byte [rcx + 0x1c], 1
je 0x14008d809
cmp byte [rcx + 0x19], 2
jb 0x14008d809
mov edx, SysAllocStringByteLen
jmp 0x14008d7a8
mov qword [rsi], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [0x140170048]
test rdi, rdi
je 0x14008d81e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x14008d844
test byte [rcx + 0x1c], 1
je 0x14008d844
cmp byte [rcx + 0x19], 4
jb 0x14008d844
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f4a8]
mov edx, DllRegisterServer
call fcn.140004c54
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14008e1d0
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 0x14008e20c
lea r8, str.hCryptHash
mov edx, 0x206
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.14008388c
test rdi, rdi
jne 0x14008e229
lea r8, [0x14014f508]
mov edx, 0x207
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.14008388c
test esi, esi
je 0x14008e285
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x14008e2bc
mov ecx, eax
call fcn.14003a444
mov ebx, eax
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x14008e2bc
test byte [rcx + 0x1c], 1
je 0x14008e2bc
cmp byte [rcx + 0x19], 2
jb 0x14008e2bc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f5d0]
mov edx, 0x13
mov r9d, eax
call fcn.140004c78
jmp 0x14008e2bc
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x14008e2bc
test byte [rcx + 0x1c], 1
je 0x14008e2bc
cmp byte [rcx + 0x19], 5
jb 0x14008e2bc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f5d0]
mov edx, 0x14
mov r9, rdi
call fcn.140010084
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140090280
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
xor r13d, r13d
xor ecx, ecx
xor edx, edx
mov ebp, r13d
mov r12d, r8d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x140090312
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400904b3
test byte [rcx + 0x1c], 1
je 0x1400904b3
cmp byte [rcx + 0x19], 2
jb 0x1400904b3
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x3e]
mov r9d, ebx
lea r8, [0x14014f8b0]
call fcn.140004c78
jmp 0x1400904b3
or rbx, 0xffffffffffffffff
mov rdx, rbx
inc rdx
cmp word [r15 + rdx*2], r13w
jne 0x140090319
lea r14d, [rax + 1]
xor ecx, ecx
inc r14
add r14, rdx
lea rdx, [r14 + r14]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14009034b
mov ebx, 0x8007000e
jmp 0x1400904cf
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
ja 0x140090469
test eax, eax
je 0x140090453
inc rbx
cmp word [rdi + rbx*2], r13w
jne 0x140090366
mov eax, 0x5c
cmp ax, word [rdi + rbx*2 - 2]
je 0x1400903dc
lea r8, [0x1401487f8]
mov rdx, r14
mov rcx, rdi
call fcn.1400512d4
mov ebx, eax
test eax, eax
jns 0x1400903dc
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400904a5
test byte [rcx + 0x1c], 1
je 0x1400904a5
cmp byte [rcx + 0x19], 2
jb 0x1400904a5
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f8b0]
mov r9d, ebx
call fcn.140004c78
jmp 0x1400904a5
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.1400512d4
mov ebx, eax
test eax, eax
jns 0x140090422
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400904a5
test byte [rcx + 0x1c], 1
je 0x1400904a5
cmp byte [rcx + 0x19], 2
jb 0x1400904a5
mov edx, 0x41
jmp 0x1400903c4
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbp, rax
test rax, rax
jne 0x14009044e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400904a5
mov ebx, r13d
jmp 0x1400904a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14009046e
mov ebx, 0x8007006f
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400904a5
test byte [rcx + 0x1c], 1
je 0x1400904a5
cmp byte [rcx + 0x19], 2
jb 0x1400904a5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014f8b0]
mov edx, 0x3f
mov r9d, ebx
call fcn.140004c78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
jne 0x1400904d7
test ebx, ebx
jne 0x1400904cf
lea r8, str.S_OK___hr
mov edx, 0x64c
lea rcx, str.base_stor_blbutil_blbutility.cpp
call fcn.14008388c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400924c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x140092504
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.14008388c
and qword [rdi], 0
mov rcx, qword [0x140170048]
lea rsi, [0x140170048]
cmp rcx, rsi
je 0x14009253c
test byte [rcx + 0x1c], 1
je 0x14009253c
cmp byte [rcx + 0x19], 4
jb 0x14009253c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fc58]
mov edx, 0x23
call fcn.140004c54
mov ebx, 0x208
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, str._SystemRoot_Logs
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14003a4d0
mov ebx, eax
test eax, eax
js 0x1400925c6
mov r8d, 0x104
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400925b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400925c6
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.14008468c
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, rsi
je 0x1400925f3
test byte [rcx + 0x1c], 1
je 0x1400925f3
cmp byte [rcx + 0x19], 4
jb 0x1400925f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014fc58]
mov edx, 0x24
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret