joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008de10
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 [0x1401782b0]
lea r13, [0x1401782b0]
lea r12, [0x140155ed8]
cmp rcx, r13
je 0x14008de6a
test byte [rcx + 0x1c], 1
je 0x14008de6a
cmp byte [rcx + 0x19], 4
jb 0x14008de6a
mov rcx, qword [rcx + 0x10]
mov edx, 0xa
mov r8, r12
call fcn.140004c6c
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 0x14008dec2
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 [0x1401782b0]
cmp rcx, r13
je 0x14008df73
test byte [rcx + 0x1c], 1
je 0x14008df73
cmp byte [rcx + 0x19], 2
jb 0x14008df73
lea edx, [rdi + 0xb]
jmp 0x14008df27
mov rcx, rbp
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008dee0
mov ebx, 0x8007000e
jmp 0x14008df73
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14008df3c
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 [0x1401782b0]
cmp rcx, r13
je 0x14008df73
test byte [rcx + 0x1c], 1
je 0x14008df73
cmp byte [rcx + 0x19], 2
jb 0x14008df73
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005ce8
jmp 0x14008df73
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008df6d
test byte [rcx + 0x1c], 1
je 0x14008df6d
cmp byte [rcx + 0x19], 4
jb 0x14008df6d
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
mov r9, rsi
mov qword [rsp + 0x20], rdi
mov r8, r12
call fcn.140005d7c
mov qword [r14], rdi
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008dfa5
test byte [rcx + 0x1c], 1
je 0x14008dfa5
cmp byte [rcx + 0x19], 4
jb 0x14008dfa5
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.140004c6c
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 0x14008dfcc
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 0x14008e00e
lea r8, str._fRet
mov edx, 0x78
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x14008e09f
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 0x14008e04a
mov ebx, 0x8007000e
jmp 0x14008e09f
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 0x14008e08c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008e091
mov qword [rsi], rdi
xor edi, edi
test rdi, rdi
je 0x14008e09f
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 0x14008e0b8
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 [0x140178010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e11b
test dword [rcx + 0x1c], 0x200
je 0x14008e11b
cmp byte [rcx + 0x19], 4
jb 0x14008e11b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0xf
call fcn.140004c6c
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x14008e13d
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
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 0x14008e1cb
cmp eax, ebx
je 0x14008e1cb
cmp eax, 0x80000005
je 0x14008e1cb
cmp eax, 0xc0000004
je 0x14008e1cb
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e30b
test byte [rcx + 0x1c], 8
je 0x14008e2e2
cmp byte [rcx + 0x19], 2
jb 0x14008e2e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x10
mov r9d, eax
call fcn.140004c90
jmp 0x14008e2db
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008e1e7
mov ebx, 0x8007000e
jmp 0x14008e2db
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 0x14008e259
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e2d2
test byte [rcx + 0x1c], 8
je 0x14008e2d2
cmp byte [rcx + 0x19], 2
jb 0x14008e2d2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x11
mov r9d, eax
call fcn.140004c90
jmp 0x14008e2d2
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x14008e271
mov ecx, ebx
call fcn.14003b824
jmp 0x14008e2d0
test dl, 1
je 0x14008e28e
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
movzx ecx, word [rdi]
lea eax, [rcx + 8]
cmp eax, dword [rsp + 0x20]
jbe 0x14008e2a1
mov ebx, 0x8000ffff
jmp 0x14008e2d2
mov r8, qword [rdi + 8]
mov r9, rcx
shr r9, 1
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140086320
mov ebx, eax
test eax, eax
js 0x14008e2d2
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14008704c
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e30b
test dword [rcx + 0x1c], 0x200
je 0x14008e30b
cmp byte [rcx + 0x19], 4
jb 0x14008e30b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x12
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401474d0
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 0x14008e66c
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 [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008e6c2
test byte [rcx + 0x1c], 1
je 0x14008e6c2
cmp byte [rcx + 0x19], 4
jb 0x14008e6c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x18
call fcn.140004c6c
mov r15, qword [rsp + 0x90]
xor ebx, ebx
and dword [rsp + 0x30], ebx
and dword [rsp + 0x80], ebx
test r14, r14
je 0x14008e6eb
test rsi, rsi
je 0x14008e6eb
test rbp, rbp
je 0x14008e6eb
test r15, r15
jne 0x14008e703
lea r8, str.ppbValue___NULL__wszValueName___NULL__lpType___NULL__lpSize___NULL
mov edx, 0x1c0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
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 0x14008e788
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e8b9
test byte [rcx + 0x1c], 1
je 0x14008e893
cmp byte [rcx + 0x19], 3
jb 0x14008e893
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14008e88c
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x14008e7b2
lea r8, str.cbSize___0
mov edx, 0x1ce
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
mov eax, dword [rsp + 0x80]
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14008e7d3
mov ebx, 0x8007000e
lea rbp, [0x1401782b0]
jmp 0x14008e88c
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 0x14008e85a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rbp, [0x1401782b0]
cmp rcx, rbp
je 0x14008e87e
test byte [rcx + 0x1c], 1
je 0x14008e87e
cmp byte [rcx + 0x19], 2
jb 0x14008e87e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14008e877
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
lea rbp, [0x1401782b0]
mov eax, dword [rsp + 0x80]
mov qword [r14], rdi
xor edi, edi
mov dword [r15], eax
mov rcx, qword [0x1401782b0]
test rdi, rdi
je 0x14008e893
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, rbp
je 0x14008e8b9
test byte [rcx + 0x1c], 1
je 0x14008e8b9
cmp byte [rcx + 0x19], 4
jb 0x14008e8b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x1b
call fcn.140004c6c
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 0x14008ea8c
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 [0x140178010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
cmp rcx, r14
je 0x14008eae2
test byte [rcx + 0x1c], 1
je 0x14008eae2
cmp byte [rcx + 0x19], 4
jb 0x14008eae2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x1f
call fcn.140004c6c
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 0x14008eb46
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebad
cmp byte [rcx + 0x19], 2
jb 0x14008ebad
mov edx, 0x20
jmp 0x14008eb93
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 0x14008eba6
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebad
cmp byte [rcx + 0x19], 2
jb 0x14008ebad
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov r9d, eax
call fcn.140004c90
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14008ebd3
test byte [rcx + 0x1c], 1
je 0x14008ebd3
cmp byte [rcx + 0x19], 4
jb 0x14008ebd3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x22
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008ebfc
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 [0x1401782b0]
lea r12, [0x1401782b0]
cmp rcx, r12
je 0x14008ec54
test byte [rcx + 0x1c], 1
je 0x14008ec54
cmp byte [rcx + 0x19], 4
jb 0x14008ec54
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x23
call fcn.140004c6c
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 0x14008ecc0
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14008ecb0
test byte [rcx + 0x1c], 1
je 0x14008ecb0
cmp byte [rcx + 0x19], 2
jb 0x14008ecb0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x24]
xor r9d, r9d
lea r8, [0x140155ed8]
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14008ecc7
mov rcx, qword [0x1401782b0]
cmp rcx, r12
je 0x14008eced
test byte [rcx + 0x1c], 1
je 0x14008eced
cmp byte [rcx + 0x19], 4
jb 0x14008eced
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x25
call fcn.140004c6c
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 0x14008ed10
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 [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ed5b
test byte [rcx + 0x1c], 1
je 0x14008ed5b
cmp byte [rcx + 0x19], 4
jb 0x14008ed5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x26
call fcn.140004c6c
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 0x14008ed88
lea r8, str.wszValueName
mov edx, 0x2d5
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
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 0x14008edc8
cmp eax, 2
jne 0x14008edc8
lea ebx, [rax - 1]
jmp 0x14008ee3e
test eax, eax
je 0x14008ee1c
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14008ee72
test byte [rcx + 0x1c], 1
je 0x14008ee4c
cmp byte [rcx + 0x19], 3
jb 0x14008ee4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x27
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005ce8
jmp 0x14008ee45
cmp dword [rsp + 0x68], 4
je 0x14008ee2a
mov ebx, 0x8007065d
jmp 0x14008ee3e
cmp dword [rsp + 0x78], 4
je 0x14008ee38
mov ebx, 0x80004005
jmp 0x14008ee3e
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
lea rdi, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x14008ee72
test byte [rcx + 0x1c], 1
je 0x14008ee72
cmp byte [rcx + 0x19], 4
jb 0x14008ee72
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x28
call fcn.140004c6c
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008ee88
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 [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008eeda
test byte [rcx + 0x1c], 1
je 0x14008eeda
cmp byte [rcx + 0x19], 4
jb 0x14008eeda
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x2c
call fcn.140004c6c
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 0x14008ef69
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ef28
test byte [rcx + 0x1c], 1
je 0x14008ef28
cmp byte [rcx + 0x19], 4
jb 0x14008ef28
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x2d
mov r9d, esi
call fcn.140004c90
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 0x14008f023
cmp eax, 0xea
jne 0x14008efd9
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 0x14008eef1
mov ebx, 0x8007000e
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008efc6
test byte [rcx + 0x1c], 1
je 0x14008efc6
cmp byte [rcx + 0x19], 4
jb 0x14008efc6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x2f
call fcn.140004c6c
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 [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008ef89
test byte [rcx + 0x1c], 1
je 0x14008ef89
cmp byte [rcx + 0x19], 2
jb 0x14008ef89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ed8]
mov edx, 0x2e
mov r9d, ebx
call fcn.140004c90
jmp 0x14008ef89
cmp dword [rsp + 0x70], 7
je 0x14008f034
mov ebx, 0x8000ffff
jmp 0x14008ef89
mov eax, dword [rsp + 0x68]
mov qword [r15], rdi
mov rdi, rbx
mov dword [r14], eax
jmp 0x14008ef89
Function at 0x14008f0e4
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 0x14008f11f
lea r8, str.pwszBlbWindowsDirectoryPath___NULL
mov edx, 0x63c
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
and qword [r14], rbx
mov edi, 0x208
mov ecx, edi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14008f13e
mov edi, 0x8007000e
jmp 0x14008f198
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 0x14008f181
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140086e28
mov edi, eax
test eax, eax
js 0x14008f17c
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
jmp 0x14008f181
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x14008f198
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 0x14008f7e8
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 [0x140178010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, r8d
mov rdi, rcx
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
lea r12, [0x140155ed8]
cmp rcx, r15
je 0x14008f84c
test byte [rcx + 0x1c], 1
je 0x14008f84c
cmp byte [rcx + 0x19], 4
jb 0x14008f84c
mov rcx, qword [rcx + 0x10]
mov edx, 0x5f
mov r8, r12
call fcn.140004c6c
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
test rdi, rdi
jne 0x14008f874
lea r8, str.phService
mov edx, 0x78f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008f8da
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 [0x1401782b0]
cmp rcx, r15
je 0x14008fa16
test byte [rcx + 0x1c], 1
je 0x14008f9f4
cmp byte [rcx + 0x19], 2
jb 0x14008f9f4
mov rcx, qword [rcx + 0x10]
mov edx, 0x60
mov r9d, eax
mov r8, r12
call fcn.140004c90
jmp 0x14008f9ed
mov ecx, dword [rsp + 0x24]
cmp ecx, 1
jne 0x14008f924
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14008fa16
test byte [rcx + 0x1c], 1
je 0x14008f9f4
cmp byte [rcx + 0x19], 4
jb 0x14008f9f4
mov edx, 0x61
mov rcx, qword [rcx + 0x10]
lea r9, str.Stopped
mov r8, r12
call fcn.140005c6c
jmp 0x14008f9ed
lea eax, [rcx - 3]
mov edx, 0x1388
cmp eax, 1
ja 0x14008f9e3
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 0x14008f9cd
cmp dword [rsp + 0x24], 1
je 0x14008f9ab
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
sub rcx, rsi
cmp rcx, rbp
ja 0x14008f974
mov ecx, dword [rsp + 0x24]
jmp 0x14008f924
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14008f9a4
test byte [rcx + 0x1c], 1
je 0x14008f9a4
cmp byte [rcx + 0x19], 2
jb 0x14008f9a4
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, r12
call fcn.140004c6c
mov rcx, qword [0x1401782b0]
mov ebx, 0x800705b4
jmp 0x14008f9f4
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14008fa16
test byte [rcx + 0x1c], 1
je 0x14008f9f4
cmp byte [rcx + 0x19], 4
jb 0x14008f9f4
mov edx, 0x62
jmp 0x14008f90c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008f9ed
cmp ecx, 1
je 0x14008f9ed
mov ebx, 0x80780129
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14008fa16
test byte [rcx + 0x1c], 1
je 0x14008fa16
cmp byte [rcx + 0x19], 4
jb 0x14008fa16
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r12
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401474d0
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