joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140089764
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 [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
cmp rcx, rbp
je 0x1400897c7
test dword [rcx + 0x1c], 0x200
je 0x1400897c7
cmp byte [rcx + 0x19], 4
jb 0x1400897c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0xf
call fcn.140004968
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x1400897e9
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
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 0x140089877
cmp eax, ebx
je 0x140089877
cmp eax, 0x80000005
je 0x140089877
cmp eax, 0xc0000004
je 0x140089877
mov ecx, eax
call fcn.1400399fc
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x1400899b7
test byte [rcx + 0x1c], 8
je 0x14008998e
cmp byte [rcx + 0x19], 2
jb 0x14008998e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x10
mov r9d, eax
call fcn.140004988
jmp 0x140089987
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089893
mov ebx, 0x8007000e
jmp 0x140089987
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 0x140089905
mov ecx, eax
call fcn.1400399fc
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x14008997e
test byte [rcx + 0x1c], 8
je 0x14008997e
cmp byte [rcx + 0x19], 2
jb 0x14008997e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x11
mov r9d, eax
call fcn.140004988
jmp 0x14008997e
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008991d
mov ecx, ebx
call fcn.1400399fc
jmp 0x14008997c
test dl, 1
je 0x14008993a
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
movzx ecx, word [rdi]
lea eax, [rcx + 8]
cmp eax, dword [rsp + 0x20]
jbe 0x14008994d
mov ebx, 0x8000ffff
jmp 0x14008997e
mov r8, qword [rdi + 8]
mov r9, rcx
shr r9, 1
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140081c2c
mov ebx, eax
test eax, eax
js 0x14008997e
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14008290c
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x1400899b7
test dword [rcx + 0x1c], 0x200
je 0x1400899b7
cmp byte [rcx + 0x19], 4
jb 0x1400899b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x12
call fcn.140004968
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14013cc00
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 0x140089d04
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 [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140089d5a
test byte [rcx + 0x1c], 1
je 0x140089d5a
cmp byte [rcx + 0x19], 4
jb 0x140089d5a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x18
call fcn.140004968
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x140089d83
test rsi, rsi
je 0x140089d83
test rbp, rbp
je 0x140089d83
test r15, r15
jne 0x140089d9b
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
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 0x140089e20
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
cmp rcx, rbp
je 0x140089f51
test byte [rcx + 0x1c], 1
je 0x140089f2b
cmp byte [rcx + 0x19], 3
jb 0x140089f2b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400058c8
jmp 0x140089f24
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x140089e4a
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089e6b
mov ebx, 0x8007000e
lea rbp, [0x14016d090]
jmp 0x140089f24
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 0x140089ef2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
cmp rcx, rbp
je 0x140089f16
test byte [rcx + 0x1c], 1
je 0x140089f16
cmp byte [rcx + 0x19], 2
jb 0x140089f16
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400058c8
jmp 0x140089f0f
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x14016d090]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x14016d090]
test rdi, rdi
je 0x140089f2b
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x140089f51
test byte [rcx + 0x1c], 1
je 0x140089f51
cmp byte [rcx + 0x19], 4
jb 0x140089f51
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x1b
call fcn.140004968
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 0x14008a118
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 [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x14008a16e
test byte [rcx + 0x1c], 1
je 0x14008a16e
cmp byte [rcx + 0x19], 4
jb 0x14008a16e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x1f
call fcn.140004968
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 0x14008a1d2
mov ecx, eax
call fcn.1400399fc
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14008a25f
test byte [rcx + 0x1c], 1
je 0x14008a239
cmp byte [rcx + 0x19], 2
jb 0x14008a239
mov edx, 0x20
jmp 0x14008a21f
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 0x14008a232
mov ecx, eax
call fcn.1400399fc
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14008a25f
test byte [rcx + 0x1c], 1
je 0x14008a239
cmp byte [rcx + 0x19], 2
jb 0x14008a239
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov r9d, eax
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x14008a25f
test byte [rcx + 0x1c], 1
je 0x14008a25f
cmp byte [rcx + 0x19], 4
jb 0x14008a25f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x22
call fcn.140004968
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008a280
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 [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x14008a2d8
test byte [rcx + 0x1c], 1
je 0x14008a2d8
cmp byte [rcx + 0x19], 4
jb 0x14008a2d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x23
call fcn.140004968
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 0x14008a344
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x14008a334
test byte [rcx + 0x1c], 1
je 0x14008a334
cmp byte [rcx + 0x19], 2
jb 0x14008a334
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x14014b438]
call fcn.140004988
mov rcx, qword [0x14016d090]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008a34b
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x14008a371
test byte [rcx + 0x1c], 1
je 0x14008a371
cmp byte [rcx + 0x19], 4
jb 0x14008a371
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x25
call fcn.140004968
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 0x14008a38c
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 [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008a3d7
test byte [rcx + 0x1c], 1
je 0x14008a3d7
cmp byte [rcx + 0x19], 4
jb 0x14008a3d7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x26
call fcn.140004968
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 0x14008a404
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
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 0x14008a444
cmp eax, 2
jne 0x14008a444
lea ebx, [rax - 1]
jmp 0x14008a4ba
test ecx, ecx
je 0x14008a498
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14016d090]
lea rdi, [0x14016d090]
cmp rcx, rdi
je 0x14008a4ee
test byte [rcx + 0x1c], 1
je 0x14008a4c8
cmp byte [rcx + 0x19], 3
jb 0x14008a4c8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x27
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.1400058c8
jmp 0x14008a4c1
cmp dword [rsp + 0x68], 4
je 0x14008a4a6
mov ebx, 0x8007065d
jmp 0x14008a4ba
cmp dword [rsp + 0x78], 4
je 0x14008a4b4
mov ebx, 0x80004005
jmp 0x14008a4ba
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x14016d090]
mov rcx, qword [0x14016d090]
cmp rcx, rdi
je 0x14008a4ee
test byte [rcx + 0x1c], 1
je 0x14008a4ee
cmp byte [rcx + 0x19], 4
jb 0x14008a4ee
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x28
call fcn.140004968
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008a4fc
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 [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008a54e
test byte [rcx + 0x1c], 1
je 0x14008a54e
cmp byte [rcx + 0x19], 4
jb 0x14008a54e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x2c
call fcn.140004968
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 0x14008a5dd
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008a59c
test byte [rcx + 0x1c], 1
je 0x14008a59c
cmp byte [rcx + 0x19], 4
jb 0x14008a59c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x2d
mov r9d, esi
call fcn.140004988
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 0x14008a697
cmp eax, 0xea
jne 0x14008a64d
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 0x14008a565
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008a63a
test byte [rcx + 0x1c], 1
je 0x14008a63a
cmp byte [rcx + 0x19], 4
jb 0x14008a63a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x2f
call fcn.140004968
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 [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008a5fd
test byte [rcx + 0x1c], 1
je 0x14008a5fd
cmp byte [rcx + 0x19], 2
jb 0x14008a5fd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x2e
mov r9d, ebx
call fcn.140004988
jmp 0x14008a5fd
cmp dword [rsp + 0x70], 7
je 0x14008a6a8
mov ebx, 0x8000ffff
jmp 0x14008a5fd
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14008a5fd
Function at 0x14008a750
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 0x14008a78b
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
and qword [r14], rbx
mov edi, 0x208
mov ecx, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14008a7aa
mov edi, 0x8007000e
jmp 0x14008a804
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 0x14008a7ed
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400826fc
mov edi, eax
test eax, eax
js 0x14008a7e8
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x14008a7ed
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x14008a804
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 0x14008ae38
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x50
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, r8d
mov rdi, rcx
mov rcx, qword [0x14016d090]
lea r15, [0x14016d090]
lea r12, [0x14014b438]
cmp rcx, r15
je 0x14008ae9c
test byte [rcx + 0x1c], 1
je 0x14008ae9c
cmp byte [rcx + 0x19], 4
jb 0x14008ae9c
mov rcx, qword [rcx + 0x10]
mov edx, 0x5f
mov r8, r12
call fcn.140004968
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
test rdi, rdi
jne 0x14008aec4
lea r8, str.phService
mov edx, 0x78f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008af2a
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 [0x14016d090]
cmp rcx, r15
je 0x14008b066
test byte [rcx + 0x1c], 1
je 0x14008b044
cmp byte [rcx + 0x19], 2
jb 0x14008b044
mov rcx, qword [rcx + 0x10]
mov edx, 0x60
mov r9d, eax
mov r8, r12
call fcn.140004988
jmp 0x14008b03d
mov ecx, dword [rsp + 0x24]
cmp ecx, 1
jne 0x14008af74
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x14008b066
test byte [rcx + 0x1c], 1
je 0x14008b044
cmp byte [rcx + 0x19], 4
jb 0x14008b044
mov edx, 0x61
mov rcx, qword [rcx + 0x10]
lea r9, str.Stopped
mov r8, r12
call fcn.140005868
jmp 0x14008b03d
lea eax, [rcx - 3]
mov edx, 0x1388
cmp eax, 1
ja 0x14008b033
mov ecx, dword [rsp + 0x38]
cmp ecx, edx
cmovb ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14008b01d
cmp dword [rsp + 0x24], 1
je 0x14008affb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
sub rcx, rsi
cmp rcx, rbp
ja 0x14008afc4
mov ecx, dword [rsp + 0x24]
jmp 0x14008af74
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x14008aff4
test byte [rcx + 0x1c], 1
je 0x14008aff4
cmp byte [rcx + 0x19], 2
jb 0x14008aff4
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, r12
call fcn.140004968
mov rcx, qword [0x14016d090]
mov ebx, 0x800705b4
jmp 0x14008b044
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x14008b066
test byte [rcx + 0x1c], 1
je 0x14008b044
cmp byte [rcx + 0x19], 4
jb 0x14008b044
mov edx, 0x62
jmp 0x14008af5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b03d
cmp ecx, 1
je 0x14008b03d
mov ebx, 0x80780129
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x14008b066
test byte [rcx + 0x1c], 1
je 0x14008b066
cmp byte [rcx + 0x19], 4
jb 0x14008b066
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r12
call fcn.140004968
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013cc00
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14008b968
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
and qword [rax + 8], 0
mov r14, rcx
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14008b9b9
test byte [rcx + 0x1c], 1
je 0x14008b9b9
cmp byte [rcx + 0x19], 4
jb 0x14008b9b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, 0x8f
call fcn.140004968
test r14, r14
jne 0x14008b9d6
lea r8, str.pwszWindowsTempPath
mov edx, 0xa75
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140081b60
and qword [r14], 0
lea rcx, [rsp + 0x30]
mov edx, 0x14
lea r8d, [rdx - 0x12]
call fcn.14000f570
mov ebx, eax
test eax, eax
js 0x14008bafe
mov rdi, qword [rsp + 0x30]
mov ecx, 0x14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
cmp eax, 0x14
jbe 0x14008bab9
test rdi, rdi
je 0x14008ba29
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x30], 0
mov r8d, 2
lea rcx, [rsp + 0x30]
mov edx, esi
call fcn.14000f570
mov ebx, eax
test eax, eax
js 0x14008bafe
mov rdi, qword [rsp + 0x30]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x14008ba61
test eax, eax
jne 0x14008baf7
test eax, eax
jne 0x14008ba7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008ba80
mov ebx, 0x8007000e
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x14008bb11
test byte [rcx + 0x1c], 1
je 0x14008bb11
cmp byte [rcx + 0x19], 2
jb 0x14008bb11
mov edx, 0x90
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov r9d, ebx
call fcn.140004988
jmp 0x14008bb0a
test esi, esi
jne 0x14008baf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x14008bb11
test byte [rcx + 0x1c], 1
je 0x14008bb11
cmp byte [rcx + 0x19], 2
jb 0x14008bb11
mov edx, SysAllocStringByteLen
jmp 0x14008baa4
mov qword [r14], rdi
xor edi, edi
jmp 0x14008bb03
mov rdi, qword [rsp + 0x30]
lea rsi, [0x14016d090]
mov rcx, qword [0x14016d090]
test rdi, rdi
je 0x14008bb26
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x14008bb4c
test byte [rcx + 0x1c], 1
je 0x14008bb4c
cmp byte [rcx + 0x19], 4
jb 0x14008bb4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b438]
mov edx, SysAllocStringByteLen
call fcn.140004968
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14008c49c
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 0x14008c4d8
lea r8, str.hCryptHash
mov edx, 0x206
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.140081b60
test rdi, rdi
jne 0x14008c4f5
lea r8, [0x14014b4e8]
mov edx, 0x207
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.140081b60
test esi, esi
je 0x14008c551
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x14008c588
mov ecx, eax
call fcn.1400399fc
mov ebx, eax
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x14008c588
test byte [rcx + 0x1c], 1
je 0x14008c588
cmp byte [rcx + 0x19], 2
jb 0x14008c588
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b5b0]
mov edx, 0x13
mov r9d, eax
call fcn.140004988
jmp 0x14008c588
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x14008c588
test byte [rcx + 0x1c], 1
je 0x14008c588
cmp byte [rcx + 0x19], 5
jb 0x14008c588
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b5b0]
mov edx, 0x14
mov r9, rdi
call fcn.14000f8a4
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret