joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008bc74
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x1401720a0]
lea r13, [0x1401720a0]
lea r12, [0x140150128]
cmp rcx, r13
je 0x14008bcce
test byte [rcx + 0x1c], 1
je 0x14008bcce
cmp byte [rcx + 0x19], 4
jb 0x14008bcce
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r12
call fcn.140004b74
xor ebx, ebx
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x14008bd3c
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 [0x1401720a0]
cmp rcx, r13
je 0x14008bdda
test byte [rcx + 0x1c], 1
je 0x14008bdda
cmp byte [rcx + 0x19], 2
jb 0x14008bdda
lea edx, [rdi + 0xb]
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005b60
jmp 0x14008bdda
mov rcx, rbp
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008bd5a
mov ebx, 0x8007000e
jmp 0x14008bdda
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14008bda3
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 [0x1401720a0]
cmp rcx, r13
je 0x14008bdda
test byte [rcx + 0x1c], 1
je 0x14008bdda
cmp byte [rcx + 0x19], 2
jb 0x14008bdda
mov edx, 0xc
jmp 0x14008bd24
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x14008bdd4
test byte [rcx + 0x1c], 1
je 0x14008bdd4
cmp byte [rcx + 0x19], 4
jb 0x14008bdd4
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov r8, r12
call fcn.140005bdc
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x14008be0c
test byte [rcx + 0x1c], 1
je 0x14008be0c
cmp byte [rcx + 0x19], 4
jb 0x14008be0c
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.140004b74
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 0x14008be34
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]
test eax, eax
je 0x14008be76
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x14008bf07
mov ecx, dword [rsp + 0x38]
xor ebx, ebx
inc ecx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008beb2
mov ebx, 0x8007000e
jmp 0x14008bf07
mov r8d, dword [rsp + 0x38]
xor edx, edx
inc r8d
mov rcx, rax
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]
test eax, eax
jne 0x14008bef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008bef9
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x14008bf07
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008bf20
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 [0x140172608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x1401720a0]
lea rbp, [0x1401720a0]
cmp rcx, rbp
je 0x14008bf83
test dword [rcx + 0x1c], 0x200
je 0x14008bf83
cmp byte [rcx + 0x19], 4
jb 0x14008bf83
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0xf
call fcn.140004b74
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x14008bfa5
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
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 0x14008c033
cmp eax, ebx
je 0x14008c033
cmp eax, 0x80000005
je 0x14008c033
cmp eax, 0xc0000004
je 0x14008c033
mov ecx, eax
call fcn.14003ab64
mov ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x14008c173
test byte [rcx + 0x1c], 8
je 0x14008c14a
cmp byte [rcx + 0x19], 2
jb 0x14008c14a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x10
mov r9d, eax
call fcn.140004b98
jmp 0x14008c143
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008c04f
mov ebx, 0x8007000e
jmp 0x14008c143
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14008c0c1
mov ecx, eax
call fcn.14003ab64
mov ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x14008c13a
test byte [rcx + 0x1c], 8
je 0x14008c13a
cmp byte [rcx + 0x19], 2
jb 0x14008c13a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x11
mov r9d, eax
call fcn.140004b98
jmp 0x14008c13a
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008c0d9
mov ecx, ebx
call fcn.14003ab64
jmp 0x14008c138
test dl, 1
je 0x14008c0f6
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
movzx ecx, word [rdi]
lea eax, [rcx + 8]
cmp eax, dword [rsp + 0x20]
jbe 0x14008c109
mov ebx, 0x8000ffff
jmp 0x14008c13a
mov r8, qword [rdi + 8]
mov r9, rcx
shr r9, 1
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1400841e0
mov ebx, eax
test eax, eax
js 0x14008c13a
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140084ef8
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x14008c173
test dword [rcx + 0x1c], 0x200
je 0x14008c173
cmp byte [rcx + 0x19], 4
jb 0x14008c173
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x12
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140141cf0
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 0x14008c4d4
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008c52a
test byte [rcx + 0x1c], 1
je 0x14008c52a
cmp byte [rcx + 0x19], 4
jb 0x14008c52a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x18
call fcn.140004b74
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x14008c553
test rsi, rsi
je 0x14008c553
test rbp, rbp
je 0x14008c553
test r15, r15
jne 0x14008c56b
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
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 0x14008c5f0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rbp, [0x1401720a0]
cmp rcx, rbp
je 0x14008c721
test byte [rcx + 0x1c], 1
je 0x14008c6fb
cmp byte [rcx + 0x19], 3
jb 0x14008c6fb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
jmp 0x14008c6f4
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14008c61a
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008c63b
mov ebx, 0x8007000e
lea rbp, [0x1401720a0]
jmp 0x14008c6f4
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008c6c2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
lea rbp, [0x1401720a0]
cmp rcx, rbp
je 0x14008c6e6
test byte [rcx + 0x1c], 1
je 0x14008c6e6
cmp byte [rcx + 0x19], 2
jb 0x14008c6e6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
jmp 0x14008c6df
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x1401720a0]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x1401720a0]
test rdi, rdi
je 0x14008c6fb
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x14008c721
test byte [rcx + 0x1c], 1
je 0x14008c721
cmp byte [rcx + 0x19], 4
jb 0x14008c721
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x1b
call fcn.140004b74
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 0x14008c8f4
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 [0x140172608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x14008c94a
test byte [rcx + 0x1c], 1
je 0x14008c94a
cmp byte [rcx + 0x19], 4
jb 0x14008c94a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x1f
call fcn.140004b74
xor ebx, ebx
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x3c], rax
mov rcx, rdi
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], ebx
lea r9d, [rbx + 0xc]
mov dword [rsp + 0x34], ebx
lea edx, [rbx + 5]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x14008c9ae
mov ecx, eax
call fcn.14003ab64
mov ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14008ca3b
test byte [rcx + 0x1c], 1
je 0x14008ca15
cmp byte [rcx + 0x19], 2
jb 0x14008ca15
mov edx, 0x20
jmp 0x14008c9fb
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 0x14008ca0e
mov ecx, eax
call fcn.14003ab64
mov ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14008ca3b
test byte [rcx + 0x1c], 1
je 0x14008ca15
cmp byte [rcx + 0x19], 2
jb 0x14008ca15
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov r9d, eax
call fcn.140004b98
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14008ca3b
test byte [rcx + 0x1c], 1
je 0x14008ca3b
cmp byte [rcx + 0x19], 4
jb 0x14008ca3b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x22
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008ca64
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 [0x1401720a0]
lea r12, [0x1401720a0]
cmp rcx, r12
je 0x14008cabc
test byte [rcx + 0x1c], 1
je 0x14008cabc
cmp byte [rcx + 0x19], 4
jb 0x14008cabc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x23
call fcn.140004b74
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 0x14008cb28
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x14008cb18
test byte [rcx + 0x1c], 1
je 0x14008cb18
cmp byte [rcx + 0x19], 2
jb 0x14008cb18
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x140150128]
call fcn.140004b98
mov rcx, qword [0x1401720a0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008cb2f
mov rcx, qword [0x1401720a0]
cmp rcx, r12
je 0x14008cb55
test byte [rcx + 0x1c], 1
je 0x14008cb55
cmp byte [rcx + 0x19], 4
jb 0x14008cb55
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x25
call fcn.140004b74
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 0x14008cb78
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008cbc3
test byte [rcx + 0x1c], 1
je 0x14008cbc3
cmp byte [rcx + 0x19], 4
jb 0x14008cbc3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x26
call fcn.140004b74
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 0x14008cbf0
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
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 0x14008cc30
cmp eax, 2
jne 0x14008cc30
lea ebx, [rax - 1]
jmp 0x14008cca6
test eax, eax
je 0x14008cc84
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008ccda
test byte [rcx + 0x1c], 1
je 0x14008ccb4
cmp byte [rcx + 0x19], 3
jb 0x14008ccb4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x27
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
jmp 0x14008ccad
cmp dword [rsp + 0x68], 4
je 0x14008cc92
mov ebx, 0x8007065d
jmp 0x14008cca6
cmp dword [rsp + 0x78], 4
je 0x14008cca0
mov ebx, 0x80004005
jmp 0x14008cca6
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x1401720a0]
mov rcx, qword [0x1401720a0]
cmp rcx, rdi
je 0x14008ccda
test byte [rcx + 0x1c], 1
je 0x14008ccda
cmp byte [rcx + 0x19], 4
jb 0x14008ccda
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x28
call fcn.140004b74
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008ccf0
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008cd42
test byte [rcx + 0x1c], 1
je 0x14008cd42
cmp byte [rcx + 0x19], 4
jb 0x14008cd42
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x2c
call fcn.140004b74
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 0x14008cdd1
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008cd90
test byte [rcx + 0x1c], 1
je 0x14008cd90
cmp byte [rcx + 0x19], 4
jb 0x14008cd90
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x2d
mov r9d, esi
call fcn.140004b98
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 0x14008ce8b
cmp eax, 0xea
jne 0x14008ce41
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 0x14008cd59
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008ce2e
test byte [rcx + 0x1c], 1
je 0x14008ce2e
cmp byte [rcx + 0x19], 4
jb 0x14008ce2e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x2f
call fcn.140004b74
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 [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14008cdf1
test byte [rcx + 0x1c], 1
je 0x14008cdf1
cmp byte [rcx + 0x19], 2
jb 0x14008cdf1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x2e
mov r9d, ebx
call fcn.140004b98
jmp 0x14008cdf1
cmp dword [rsp + 0x70], 7
je 0x14008ce9c
mov ebx, 0x8000ffff
jmp 0x14008cdf1
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14008cdf1
Function at 0x14008cf4c
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 0x14008cf87
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
and qword [r14], rbx
mov edi, 0x208
mov ecx, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14008cfa6
mov edi, 0x8007000e
jmp 0x14008d000
mov r8, rdi
xor edx, edx
mov rcx, rax
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 0x14008cfe9
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140084cd4
mov edi, eax
test eax, eax
js 0x14008cfe4
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x14008cfe9
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x14008d000
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 0x14008d650
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 [0x140172608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, r8d
mov rdi, rcx
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
lea r12, [0x140150128]
cmp rcx, r15
je 0x14008d6b4
test byte [rcx + 0x1c], 1
je 0x14008d6b4
cmp byte [rcx + 0x19], 4
jb 0x14008d6b4
mov rcx, qword [rcx + 0x10]
mov edx, 0x5f
mov r8, r12
call fcn.140004b74
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
test rdi, rdi
jne 0x14008d6dc
lea r8, str.phService
mov edx, 0x78f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008d742
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 [0x1401720a0]
cmp rcx, r15
je 0x14008d87e
test byte [rcx + 0x1c], 1
je 0x14008d85c
cmp byte [rcx + 0x19], 2
jb 0x14008d85c
mov rcx, qword [rcx + 0x10]
mov edx, 0x60
mov r9d, eax
mov r8, r12
call fcn.140004b98
jmp 0x14008d855
mov ecx, dword [rsp + 0x24]
cmp ecx, 1
jne 0x14008d78c
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14008d87e
test byte [rcx + 0x1c], 1
je 0x14008d85c
cmp byte [rcx + 0x19], 4
jb 0x14008d85c
mov edx, 0x61
mov rcx, qword [rcx + 0x10]
lea r9, str.Stopped
mov r8, r12
call fcn.140005afc
jmp 0x14008d855
lea eax, [rcx - 3]
mov edx, 0x1388
cmp eax, 1
ja 0x14008d84b
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 0x14008d835
cmp dword [rsp + 0x24], 1
je 0x14008d813
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
sub rcx, rsi
cmp rcx, rbp
ja 0x14008d7dc
mov ecx, dword [rsp + 0x24]
jmp 0x14008d78c
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14008d80c
test byte [rcx + 0x1c], 1
je 0x14008d80c
cmp byte [rcx + 0x19], 2
jb 0x14008d80c
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, r12
call fcn.140004b74
mov rcx, qword [0x1401720a0]
mov ebx, 0x800705b4
jmp 0x14008d85c
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14008d87e
test byte [rcx + 0x1c], 1
je 0x14008d85c
cmp byte [rcx + 0x19], 4
jb 0x14008d85c
mov edx, 0x62
jmp 0x14008d774
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008d855
cmp ecx, 1
je 0x14008d855
mov ebx, 0x80780129
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x14008d87e
test byte [rcx + 0x1c], 1
je 0x14008d87e
cmp byte [rcx + 0x19], 4
jb 0x14008d87e
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r12
call fcn.140004b74
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140141cf0
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