joyce8/EMBER2024-capa huggingface dataset:
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, [0x140155ec8]
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
Function at 0x140090330
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 [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140090380
test byte [rcx + 0x1c], 1
je 0x140090380
cmp byte [rcx + 0x19], 4
jb 0x140090380
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, 0x8e
call fcn.140004c6c
test rsi, rsi
jne 0x14009039d
lea r8, str.pwszWindowsTempPath
mov edx, 0xa62
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008624c
and qword [rsi], 0
mov ebx, 0x28
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1400903c0
mov ebx, 0x8007000e
jmp 0x1400904e2
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor ebx, ebx
mov rdx, rdi
lea ecx, [rbx + 0x14]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
cmp eax, 0x14
jbe 0x140090491
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, ebp
mov eax, 0xffffffff
add rcx, rcx
cmp rcx, rax
jbe 0x140090408
mov ebx, 0x80070216
jmp 0x1400904e2
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x1400903b6
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rdx, rdi
mov ecx, ebp
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebp
ja 0x140090440
test eax, eax
jne 0x1400904c8
test eax, eax
jne 0x14009045a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14009045f
mov ebx, 0x8007000e
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400904d4
test byte [rcx + 0x1c], 1
je 0x1400904d4
cmp byte [rcx + 0x19], 2
jb 0x1400904d4
mov edx, 0x8f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov r9d, ebx
call fcn.140004c90
jmp 0x1400904cd
test eax, eax
jne 0x1400904c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400904d4
test byte [rcx + 0x1c], 1
je 0x1400904d4
cmp byte [rcx + 0x19], 2
jb 0x1400904d4
mov edx, 0x90
jmp 0x14009047c
mov qword [rsi], rdi
xor edi, edi
mov rcx, qword [0x1401782b0]
test rdi, rdi
je 0x1400904e9
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14009050f
test byte [rcx + 0x1c], 1
je 0x14009050f
cmp byte [rcx + 0x19], 4
jb 0x14009050f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155ec8]
mov edx, SysAllocStringByteLen
call fcn.140004c6c
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 0x140090e94
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 0x140090ed0
lea r8, str.hCryptHash
mov edx, 0x206
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.14008624c
test rdi, rdi
jne 0x140090eed
lea r8, [0x140155f78]
mov edx, 0x207
lea rcx, str.base_stor_blbutilchecksum.cpp
call fcn.14008624c
test esi, esi
je 0x140090f49
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x140090f80
mov ecx, eax
call fcn.14003b824
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x140090f80
test byte [rcx + 0x1c], 1
je 0x140090f80
cmp byte [rcx + 0x19], 2
jb 0x140090f80
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156040]
mov edx, 0x13
mov r9d, eax
call fcn.140004c90
jmp 0x140090f80
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x140090f80
test byte [rcx + 0x1c], 1
je 0x140090f80
cmp byte [rcx + 0x19], 5
jb 0x140090f80
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156040]
mov edx, 0x14
mov r9, rdi
call fcn.140010678
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 0x140092f24
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 0x140092fb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140093157
test byte [rcx + 0x1c], 1
je 0x140093157
cmp byte [rcx + 0x19], 2
jb 0x140093157
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x3e]
mov r9d, ebx
lea r8, [0x140156320]
call fcn.140004c90
jmp 0x140093157
or rbx, 0xffffffffffffffff
mov rdx, rbx
inc rdx
cmp word [r15 + rdx*2], r13w
jne 0x140092fbd
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 0x140092fef
mov ebx, 0x8007000e
jmp 0x140093173
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
ja 0x14009310d
test eax, eax
je 0x1400930f7
inc rbx
cmp word [rdi + rbx*2], r13w
jne 0x14009300a
mov eax, 0x5c
cmp ax, word [rdi + rbx*2 - 2]
je 0x14009306a
lea r8, [0x14014d7b8]
mov rdx, r14
mov rcx, rdi
call fcn.140052af4
mov ebx, eax
test eax, eax
jns 0x14009306a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140093149
test byte [rcx + 0x1c], 1
je 0x140093149
cmp byte [rcx + 0x19], 2
jb 0x140093149
mov edx, 0x40
jmp 0x1400930ae
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.140052af4
mov ebx, eax
test eax, eax
jns 0x1400930c6
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140093149
test byte [rcx + 0x1c], 1
je 0x140093149
cmp byte [rcx + 0x19], 2
jb 0x140093149
mov edx, 0x41
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156320]
mov r9d, ebx
call fcn.140004c90
jmp 0x140093149
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbp, rax
test rax, rax
jne 0x1400930f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140093149
mov ebx, r13d
jmp 0x140093149
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140093112
mov ebx, 0x8007006f
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140093149
test byte [rcx + 0x1c], 1
je 0x140093149
cmp byte [rcx + 0x19], 2
jb 0x140093149
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156320]
mov edx, 0x3f
mov r9d, ebx
call fcn.140004c90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
jne 0x14009317b
test ebx, ebx
jne 0x140093173
lea r8, str.S_OK___hr
mov edx, 0x649
lea rcx, str.base_stor_blbutil_blbutility.cpp
call fcn.14008624c
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 0x140095224
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
test rcx, rcx
jne 0x140095268
lea r8, str.pwszLogsDirectory
mov edx, 0x23c
lea rcx, str.base_stor_blbutil_blbtrace.cpp
call fcn.14008624c
and qword [rdi], 0
mov rcx, qword [0x1401782b0]
lea rsi, [0x1401782b0]
cmp rcx, rsi
je 0x1400952a0
test byte [rcx + 0x1c], 1
je 0x1400952a0
cmp byte [rcx + 0x19], 4
jb 0x1400952a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401566e0]
mov edx, 0x23
call fcn.140004c6c
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.14003b8c0
mov ebx, eax
test eax, eax
js 0x14009532a
mov r8d, 0x104
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140095315
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14009532a
xor r8d, r8d
lea rcx, [rsp + 0x230]
mov rdx, rdi
call fcn.14008704c
mov ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, rsi
je 0x140095357
test byte [rcx + 0x1c], 1
je 0x140095357
cmp byte [rcx + 0x19], 4
jb 0x140095357
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401566e0]
mov edx, 0x24
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a469c
Capabilities:
Move file

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, 0x30
mov rsi, rdx
lea r15, [0x1401782b0]
mov rbp, rcx
xor edi, edi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400a472c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
jne 0x1400a4763
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400a471a
test byte [rcx + 0x1c], 1
je 0x1400a471a
cmp byte [rcx + 0x19], 3
jb 0x1400a471a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x32]
mov r9, rbp
mov qword [rsp + 0x20], rsi
lea r8, [0x1401575f8]
call fcn.140005d7c
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jb 0x1400a46c4
cmp edi, 5
jne 0x1400a47ab
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400a475c
test byte [rcx + 0x1c], 1
je 0x1400a475c
cmp byte [rcx + 0x19], 2
jb 0x1400a475c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x4f]
lea r8, [0x1401575f8]
call fcn.140004c6c
mov eax, 0x80780163
jmp 0x1400a47ad
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x1400a479c
test byte [rcx + 0x1c], 1
je 0x1400a479c
cmp byte [rcx + 0x19], 2
jb 0x1400a479c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401575f8]
mov dword [rsp + 0x28], eax
mov edx, 0x53
mov r9, rbp
mov qword [rsp + 0x20], rsi
call fcn.140005e64
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400a47ad
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1400a5790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140178010]
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 0x1400a5840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a582d
test byte [rcx + 0x1c], 2
je 0x1400a582d
cmp byte [rcx + 0x19], 2
jb 0x1400a582d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x43]
mov r9d, edi
lea r8, [0x1401575f8]
call fcn.140004c90
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a58de
mov r9d, dword [rsp + 0x30]
cmp r9d, ebx
je 0x1400a5884
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a58d4
test byte [rcx + 0x1c], 2
je 0x1400a58d4
cmp byte [rcx + 0x19], 2
jb 0x1400a58d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401575f8]
mov edx, 0x64
mov dword [rsp + 0x20], ebx
call fcn.1400103bc
jmp 0x1400a58d4
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.140090b9c
mov ebx, eax
test eax, eax
js 0x1400a58c3
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
call fcn.140091248
test al, al
mov ecx, 0x80004005
cmove ebx, ecx
lea r8, [rsi + 0x10]
lea rdx, [rsi + 8]
call fcn.14009139c
test ebx, ebx
jns 0x1400a58de
neg edi
sbb ebx, ebx
add ebx, 0x80780002
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400a5908
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140178010]
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.140090b9c
mov ebx, eax
test eax, eax
js 0x1400a59e3
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 0x1400a59c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a59b4
test byte [rcx + 0x1c], 2
je 0x1400a59b4
cmp byte [rcx + 0x19], 2
jb 0x1400a59b4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401575f8]
mov edx, 0x65
mov r9d, edi
call fcn.140004c90
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400a59e3
cmp dword [rsp + 0x30], 0x20
je 0x1400a59e3
lea r8, str.dwWritten__sizeof_rgChecksum_
mov edx, 0xd2f
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b3f70
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, qword [rsp + 0x2f0]
mov r13b, r8b
mov r14, qword [rsp + 0x2f8]
mov r12b, dl
mov rsi, qword [rsp + 0x308]
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], rcx
mov r10, qword [0x1401782b0]
lea rbx, [0x1401782b0]
cmp r10, rbx
je 0x1400b4036
test byte [r10 + 0x1c], 4
je 0x1400b3ffb
cmp byte [r10 + 0x19], 4
jb 0x1400b3ffb
mov rcx, qword [r10 + 0x10]
lea r8, [0x140158c88]
mov edx, 0x60
call fcn.140004c6c
mov r10, qword [0x1401782b0]
cmp r10, rbx
je 0x1400b4036
test byte [r10 + 0x1c], 4
je 0x1400b4036
cmp byte [r10 + 0x19], 5
jb 0x1400b4036
movzx eax, r13b
lea r8, [0x140158c88]
movzx ecx, r12b
mov edx, 0x61
mov dword [rsp + 0x28], eax
mov r9, r14
mov dword [rsp + 0x20], ecx
mov rcx, qword [r10 + 0x10]
call fcn.140010c10
or rdx, 0xffffffffffffffff
mov rcx, rdx
xor eax, eax
inc rcx
cmp word [r15 + rcx*2], ax
jne 0x1400b403f
mov rdi, rdx
inc rdi
cmp word [r14 + rdi*2], ax
jne 0x1400b404c
lea ebp, [rdi + rcx]
lea eax, [rbp + 1]
cmp eax, 0x104
jbe 0x1400b4092
mov dword [rsi], 0x57
mov eax, 2
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401474d0
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, ecx
mov rdx, r15
lea rcx, [rsp + 0x60]
lea rbx, [rax + rax]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, edi
lea rcx, [rsp + 0x60]
add r8, r8
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov eax, ebp
add rax, rax
cmp rax, 0x208
jae 0x1400b41f3
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor edx, edx
mov word [rsp + rax + 0x60], cx
mov dword [rsp + 0x28], 0x2000080
lea r8d, [rcx + 7]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b4169
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400b411a
xor eax, eax
jmp 0x1400b406e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x1400b415f
test byte [rcx + 0x1c], 4
je 0x1400b415f
cmp byte [rcx + 0x19], 2
jb 0x1400b415f
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x60]
mov edx, 0x62
mov dword [rsp + 0x20], eax
lea r8, [0x140158c88]
call fcn.140005ce8
mov eax, 6
jmp 0x1400b406e
mov r8, qword [rsp + 0x300]
lea r9, [0x1400b3160]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
movzx eax, r12b
mov dword [rsp + 0x50], eax
movzx eax, r13b
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.1400b3200
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x1400b41ec
test byte [rcx + 0x1c], 4
je 0x1400b41ec
cmp byte [rcx + 0x19], 4
jb 0x1400b41ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c88]
mov edx, 0x63
call fcn.140004c6c
mov eax, edi
jmp 0x1400b406e
call fcn.140147808
int3
Function at 0x1400befdc
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x120]
xor ebp, ebp
mov r15, qword [rsp + 0x128]
mov rsi, rcx
mov r12, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x138]
mov dword [rsp + 0x40], ebp
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400bf064
test byte [rcx + 0x1c], 4
je 0x1400bf064
cmp byte [rcx + 0x19], 4
jb 0x1400bf064
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c88]
mov edx, 0x1f1
call fcn.140004c6c
mov qword [r15], rbp
mov r8d, 3
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov qword [r12], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rbx], ebp
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bf0ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x1400bf0e2
test byte [rcx + 0x1c], 4
je 0x1400bf0e2
cmp byte [rcx + 0x19], 2
jb 0x1400bf0e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c88]
mov edx, 0x1f2
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005ce8
mov eax, 0xd
jmp 0x1400bf219
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x60
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x90064
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400bf138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400bf0e2
mov rsi, qword [rsp + 0x98]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.14005c8f8
lea rcx, [r14 + 8]
call fcn.140005514
lea rcx, [rsp + 0x48]
mov bl, al
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
test bl, bl
jne 0x1400bf1b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x1400bf1ad
test byte [rcx + 0x1c], 4
je 0x1400bf1ad
cmp byte [rcx + 0x19], 2
jb 0x1400bf1ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c88]
mov edx, 0x1f3
call fcn.140004c6c
mov eax, 1
jmp 0x1400bf219
mov r8, rsi
mov rdx, rsi
mov rcx, r14
call fcn.14005c8f8
lea rcx, [r14 + 8]
call fcn.140005514
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], rsi
mov qword [r12], rsi
mov rcx, qword [0x1401782b0]
lea rdx, [0x1401782b0]
cmp rcx, rdx
je 0x1400bf217
test byte [rcx + 0x1c], 4
je 0x1400bf217
cmp byte [rcx + 0x19], 4
jb 0x1400bf217
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c88]
mov edx, 0x1f4
call fcn.140004c6c
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret