joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e2b4
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140170271], 0
mov qword [0x140170278], rcx
je 0x14005dc41
lea r8, [0x140145894]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
or eax, 0xffffffff
jmp 0x14005dc6a
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005e018
cmp al, 1
jne 0x14005dc66
add rsp, 0x28
jmp 0x14005e2b4
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
je 0x14005e320
mov dword [0x1401705bc], eax
jmp 0x14005e3e5
mov rdx, qword [rsp + 0x50]
lea r8, [0x140148fc0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
jne 0x14005e3cd
cmp qword [rsp + 0x38], r14
jne 0x14005e370
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e43e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005e41d
mov dword [0x1401705cc], r14d
lea rcx, [0x140170340]
call fcn.14005d718
mov ebx, eax
mov dword [0x1401705bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005e3e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005e3f7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005e436
test al, 1
jne 0x14005e3b8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005e43b
jmp 0x14005e3b8
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401705cc], r14d
test eax, eax
jne 0x14005e3bf
lea rax, [0x1401703a8]
mov dword [0x1401705cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005e570]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005e492
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e3cb
mov ebx, dword [0x1401705bc]
jmp 0x14005e3d3
Function at 0x140060258
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 0x50]
mov dword [r14], 7
lea r15, [rcx + 0x58]
mov rcx, r15
call fcn.140060184
lea r12, [rbx + 0x60]
mov rcx, r12
call fcn.140060184
lea rax, [rbx + 0x68]
mov rcx, rax
call fcn.140060184
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.140060184
mov byte [rbx + 0x4c], 0
test rsi, rsi
jne 0x1400602f3
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140082070
jmp 0x14006046d
and qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004908
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400603af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006042b
cmp dword [rsp + 0x44], 0x44
ja 0x140060496
cmp dword [rsp + 0x40], 0x80
jbe 0x140060383
mov edx, dword [rsp + 0x40]
add rdx, rdx
lea rcx, [rsp + 0x50]
call fcn.14005fda0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14006042b
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x1400603d6
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140082070
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14006042b
mov rdx, rdi
mov rcx, r12
call fcn.140060054
mov rdx, rsi
mov rcx, r15
call fcn.140060054
xor edx, edx
mov rcx, r13
call fcn.140060054
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x140060427
lea rcx, [rsp + 0x50]
call fcn.140004808
mov al, 1
jmp 0x14006046f
mov dword [r14], 7
mov rcx, r15
call fcn.140060184
mov rcx, r12
call fcn.140060184
lea rcx, [rbx + 0x68]
call fcn.140060184
mov rcx, r13
call fcn.140060184
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14006046d
lea rcx, [rsp + 0x50]
call fcn.140004808
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001b04
int3
Function at 0x140086548
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
lea r12, [0x14014bdf0]
mov ebp, 1
cmp rcx, r14
je 0x1400865ac
test byte [rcx + 0x1c], bpl
je 0x1400865ac
cmp byte [rcx + 0x19], 4
jb 0x1400865ac
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.1400049d8
xor ebx, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, edi
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140086619
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400866bc
test byte [rcx + 0x1c], 8
je 0x14008669a
cmp byte [rcx + 0x19], 2
jb 0x14008669a
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 7]
mov r9d, eax
mov r8, r12
call fcn.1400049f8
jmp 0x140086693
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008664e
test byte [rcx + 0x1c], bpl
je 0x14008664e
cmp byte [rcx + 0x19], 4
jb 0x14008664e
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x140086690
test byte [rcx + 0x1c], bpl
je 0x140086690
cmp byte [rcx + 0x19], 4
jb 0x140086690
mov rcx, qword [rcx + 0x10]
lea rax, [0x140146b80]
test dil, dil
lea r9, [0x140146b88]
mov edx, 0x1b
mov r8, r12
cmovne r9, rax
call fcn.1400058d8
mov byte [rsi], dil
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400866bc
test byte [rcx + 0x1c], bpl
je 0x1400866bc
cmp byte [rcx + 0x19], 4
jb 0x1400866bc
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013e2a0
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 0x1400891c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14008920b
lea r8, str.wszFilePath___NULL
mov edx, 0x7a0
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
test rsi, rsi
jne 0x140089228
lea r8, str.pwszVolumePath___NULL
mov edx, 0x7a1
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
and qword [rsi], 0
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x20], rdi
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]
test eax, eax
jne 0x14008928b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008931c
mov r8d, 0x104
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1400892f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x14008931e
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400892f2
test byte [rcx + 0x1c], 1
je 0x1400892f2
cmp byte [rcx + 0x19], 2
jb 0x1400892f2
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x3e]
lea r8, [0x14014c008]
call fcn.1400049d8
mov ebx, 0x8000ffff
jmp 0x14008931c
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
call fcn.140082e28
mov rdi, qword [rsp + 0x20]
mov ebx, eax
test eax, eax
js 0x140089320
mov qword [rsi], rdi
test ebx, ebx
jns 0x140089329
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400893cc
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 0x1400893f8
lea r8, str.wcsPath
mov edx, 0x817
lea rcx, str.base_stor_blbutil_fileutils.cpp
call fcn.140082070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008947b
xor r9d, r9d
xor r8d, r8d
mov dl, dil
mov rcx, rbx
call fcn.140086ba8
test eax, eax
js 0x14008947d
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008947b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14008946c
test byte [rcx + 0x1c], 2
je 0x14008946c
cmp byte [rcx + 0x19], 2
jb 0x14008946c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c008]
mov edx, 0x40
mov r9d, ebx
call fcn.1400049f8
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x14008947d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140089cac
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x140089d0f
test dword [rcx + 0x1c], 0x200
je 0x140089d0f
cmp byte [rcx + 0x19], 4
jb 0x140089d0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0xf
call fcn.1400049d8
and dword [rsp + 0x20], 0
test rsi, rsi
jne 0x140089d31
lea r8, str.pwszSystemDevicePath
mov edx, 0xbf
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
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 0x140089dbf
cmp eax, ebx
je 0x140089dbf
cmp eax, 0x80000005
je 0x140089dbf
cmp eax, 0xc0000004
je 0x140089dbf
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089f03
test byte [rcx + 0x1c], 8
je 0x140089eda
cmp byte [rcx + 0x19], 2
jb 0x140089eda
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x10
mov r9d, eax
call fcn.1400049f8
jmp 0x140089ed3
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140089ddb
mov ebx, 0x8007000e
jmp 0x140089ed3
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 0x140089e4d
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089eca
test byte [rcx + 0x1c], 8
je 0x140089eca
cmp byte [rcx + 0x19], 2
jb 0x140089eca
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x11
mov r9d, eax
call fcn.1400049f8
jmp 0x140089eca
movzx edx, word [rdi]
lea rax, [rdx + 2]
cmp rax, 0x208
jbe 0x140089e65
mov ecx, ebx
call fcn.140039d4c
jmp 0x140089ec8
test dl, 1
je 0x140089e85
lea r8, str.pSysInfo__SystemPartition.Length___sizeof_WCHAR___0
mov edx, 0xf0
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
movzx edx, word [rdi]
movzx eax, dx
add eax, 8
cmp eax, dword [rsp + 0x20]
jbe 0x140089e98
mov ebx, 0x8000ffff
jmp 0x140089eca
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x30]
movzx r9d, dx
mov edx, 0x104
shr r9, 1
call fcn.14008213c
mov ebx, eax
test eax, eax
js 0x140089eca
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140082e28
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140089f03
test dword [rcx + 0x1c], 0x200
je 0x140089f03
cmp byte [rcx + 0x19], 4
jb 0x140089f03
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x12
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14013e2a0
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 0x14008a664
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x14008a6ba
test byte [rcx + 0x1c], 1
je 0x14008a6ba
cmp byte [rcx + 0x19], 4
jb 0x14008a6ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x1f
call fcn.1400049d8
xor eax, eax
lea r8, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov rcx, rdi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 5]
call qword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jns 0x14008a71e
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a785
cmp byte [rcx + 0x19], 2
jb 0x14008a785
mov edx, 0x20
jmp 0x14008a76b
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 0x14008a77e
mov ecx, eax
call fcn.140039d4c
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a785
cmp byte [rcx + 0x19], 2
jb 0x14008a785
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov r9d, eax
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14008a7ab
test byte [rcx + 0x1c], 1
je 0x14008a7ab
cmp byte [rcx + 0x19], 4
jb 0x14008a7ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014c448]
mov edx, 0x22
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14008b384
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, r8d
mov rdi, rcx
mov rcx, qword [0x14016f048]
lea r15, [0x14016f048]
lea r12, [0x14014c448]
cmp rcx, r15
je 0x14008b3e8
test byte [rcx + 0x1c], 1
je 0x14008b3e8
cmp byte [rcx + 0x19], 4
jb 0x14008b3e8
mov rcx, qword [rcx + 0x10]
mov edx, 0x5f
mov r8, r12
call fcn.1400049d8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rsi, rax
test rdi, rdi
jne 0x14008b410
lea r8, str.phService
mov edx, 0x78f
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.140082070
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14008b476
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 [0x14016f048]
cmp rcx, r15
je 0x14008b5b2
test byte [rcx + 0x1c], 1
je 0x14008b590
cmp byte [rcx + 0x19], 2
jb 0x14008b590
mov rcx, qword [rcx + 0x10]
mov edx, 0x60
mov r9d, eax
mov r8, r12
call fcn.1400049f8
jmp 0x14008b589
mov ecx, dword [rsp + 0x24]
cmp ecx, 1
jne 0x14008b4c0
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14008b5b2
test byte [rcx + 0x1c], 1
je 0x14008b590
cmp byte [rcx + 0x19], 4
jb 0x14008b590
mov edx, 0x61
mov rcx, qword [rcx + 0x10]
lea r9, str.Stopped
mov r8, r12
call fcn.1400058d8
jmp 0x14008b589
lea eax, [rcx - 3]
mov edx, 0x1388
cmp eax, 1
ja 0x14008b57f
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 0x14008b569
cmp dword [rsp + 0x24], 1
je 0x14008b547
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
sub rcx, rsi
cmp rcx, rbp
ja 0x14008b510
mov ecx, dword [rsp + 0x24]
jmp 0x14008b4c0
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14008b540
test byte [rcx + 0x1c], 1
je 0x14008b540
cmp byte [rcx + 0x19], 2
jb 0x14008b540
mov rcx, qword [rcx + 0x10]
mov edx, 0x63
mov r8, r12
call fcn.1400049d8
mov rcx, qword [0x14016f048]
mov ebx, 0x800705b4
jmp 0x14008b590
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14008b5b2
test byte [rcx + 0x1c], 1
je 0x14008b590
cmp byte [rcx + 0x19], 4
jb 0x14008b590
mov edx, 0x62
jmp 0x14008b4a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008b589
cmp ecx, 1
je 0x14008b589
mov ebx, 0x80780129
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14008b5b2
test byte [rcx + 0x1c], 1
je 0x14008b5b2
cmp byte [rcx + 0x19], 4
jb 0x14008b5b2
mov rcx, qword [rcx + 0x10]
mov edx, 0x64
mov r8, r12
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013e2a0
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 0x140090c50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x140090c94
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.140082070
and qword [rdi], 0
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x140090ccc
test byte [rcx + 0x1c], 1
je 0x140090ccc
cmp byte [rcx + 0x19], 4
jb 0x140090ccc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014cbe8]
mov edx, 0x23
call fcn.1400049d8
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.140039dd4
mov ebx, eax
test eax, eax
js 0x140090d56
mov r8d, 0x104
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140090d41
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140090d56
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.140082e28
mov ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, rsi
je 0x140090d83
test byte [rcx + 0x1c], 1
je 0x140090d83
cmp byte [rcx + 0x19], 4
jb 0x140090d83
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014cbe8]
mov edx, 0x24
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a0e7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x78], rax
and dword [rsp + 0x30], 0
mov edi, edx
mov rsi, rcx
mov ebx, 0x20
mov r8d, ebx
lea rcx, [rsp + 0x58]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x58]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a0f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400a0f19
test byte [rcx + 0x1c], 2
je 0x1400a0f19
cmp byte [rcx + 0x19], 2
jb 0x1400a0f19
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x43]
mov r9d, edi
lea r8, [0x14014db08]
call fcn.1400049f8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a0fca
mov r9d, dword [rsp + 0x30]
cmp r9d, ebx
je 0x1400a0f70
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400a0fc0
test byte [rcx + 0x1c], 2
je 0x1400a0fc0
cmp byte [rcx + 0x19], 2
jb 0x1400a0fc0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014db08]
mov edx, 0x64
mov dword [rsp + 0x20], ebx
call fcn.14000fa80
jmp 0x1400a0fc0
mov rsi, qword [rsi + 0x10]
lea rcx, [rsp + 0x38]
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14008c704
mov ebx, eax
test eax, eax
js 0x1400a0faf
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
call fcn.14008cda4
test al, al
mov ecx, 0x80004005
cmove ebx, ecx
lea r8, [rsi + 0x10]
lea rdx, [rsi + 8]
call fcn.14008cef0
test ebx, ebx
jns 0x1400a0fca
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400a0ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x38]
call fcn.14008c704
mov ebx, eax
test eax, eax
js 0x1400a10cb
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a10ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400a109c
test byte [rcx + 0x1c], 2
je 0x1400a109c
cmp byte [rcx + 0x19], 2
jb 0x1400a109c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014db08]
mov edx, 0x65
mov r9d, edi
call fcn.1400049f8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a10cb
cmp dword [rsp + 0x30], 0x20
je 0x1400a10cb
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, [0x14014d288]
call fcn.140082070
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret