joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140105ee4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x140183048]
lea r14, [0x140183048]
cmp rcx, r14
je 0x140105f33
test byte [rcx + 0x1c], 1
je 0x140105f33
cmp byte [rcx + 0x19], 5
jb 0x140105f33
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0xc
call fcn.140004e50
test rdi, rdi
jne 0x140105f50
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008f4c8
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140105faa
bt eax, 0xa
jae 0x140105ffc
mov byte [rdi], 1
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x140106029
test byte [rcx + 0x1c], 1
je 0x140106003
cmp byte [rcx + 0x19], 4
jb 0x140106003
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140169cd8]
call fcn.140005f10
jmp 0x140105ffc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140105ffc
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x140106029
test byte [rcx + 0x1c], 1
je 0x140106003
cmp byte [rcx + 0x19], 2
jb 0x140106003
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005f80
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x140106029
test byte [rcx + 0x1c], 1
je 0x140106029
cmp byte [rcx + 0x19], 5
jb 0x140106029
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0xf
call fcn.140004e50
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1401070a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], r9b
push rdi
push r12
push r15
sub rsp, 0x30
mov bpl, r8b
mov rsi, rcx
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
lea r12, [0x140169cd8]
cmp rcx, r15
je 0x140107101
test byte [rcx + 0x1c], 1
je 0x140107101
cmp byte [rcx + 0x19], 4
jb 0x140107101
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.140004e50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1401071aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14010718e
test byte [rcx + 0x1c], 1
je 0x14010716c
cmp byte [rcx + 0x19], 2
jb 0x14010716c
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005f80
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14010718e
test byte [rcx + 0x1c], 1
je 0x14010718e
cmp byte [rcx + 0x19], 4
jb 0x14010718e
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.140004e50
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
lea rcx, [rsp + 0x68]
mov byte [rsp + 0x68], 0
call fcn.140099a48
mov ebx, eax
test eax, eax
js 0x140107165
test bpl, bpl
je 0x140107207
bt edi, 0xb
jae 0x14010723e
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1401071fd
test byte [rcx + 0x1c], 1
je 0x1401071fd
cmp byte [rcx + 0x19], 2
jb 0x1401071fd
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140005f10
mov rcx, qword [0x140183048]
mov ebx, 0x80780066
jmp 0x14010716c
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x140107245
test byte [rcx + 0x1c], 1
je 0x140107245
cmp byte [rcx + 0x19], 4
jb 0x140107245
mov rcx, qword [rcx + 0x10]
mov eax, edi
and eax, 0x800
mov edx, 0x32
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140005f80
mov rcx, qword [0x140183048]
bt edi, 0xe
jae 0x14010716c
cmp rcx, r15
je 0x14010727b
test byte [rcx + 0x1c], 1
je 0x14010727b
cmp byte [rcx + 0x19], 2
jb 0x14010727b
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140005f10
mov rcx, qword [0x140183048]
mov ebx, 0x80780067
jmp 0x14010716c
Function at 0x140107e44
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov rdi, r9
mov r14b, r8b
mov r15b, dl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140107ebb
mov rcx, qword [0x140183048]
lea rbx, [0x140183048]
cmp rcx, rbx
je 0x140107eb1
test byte [rcx + 0x1c], 1
je 0x140107eb1
cmp byte [rcx + 0x19], 4
jb 0x140107eb1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0x48
mov r9, rsi
call fcn.140005f10
mov edi, 1
jmp 0x140107fea
mov rax, qword [0x140183048]
lea rbx, [0x140183048]
cmp rax, rbx
je 0x140107f05
test byte [rax + 0x1c], 1
je 0x140107f05
cmp byte [rax + 0x19], 3
jb 0x140107f05
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
lea r8, [0x140169cd8]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.140004e7c
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.14009454c
mov edi, eax
test eax, eax
jns 0x140107f5a
mov rcx, qword [0x140183048]
cmp rcx, rbx
je 0x140107fb9
test byte [rcx + 0x1c], 1
je 0x140107fb9
cmp byte [rcx + 0x19], 2
jb 0x140107fb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005f80
jmp 0x140107fb2
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x140107fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, rbx
je 0x140107fb9
test byte [rcx + 0x1c], 1
je 0x140107fb9
cmp byte [rcx + 0x19], 3
jb 0x140107fb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005f80
mov rcx, qword [0x140183048]
test edi, edi
jns 0x140107fea
cmp rcx, rbx
je 0x140107fea
test byte [rcx + 0x1c], 1
je 0x140107fea
cmp byte [rcx + 0x19], 2
jb 0x140107fea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.140005f80
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140108010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov byte [rdx], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140108072
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
lea rdx, [0x140183048]
cmp rcx, rdx
je 0x140108079
test byte [rcx + 0x1c], 1
je 0x140108079
cmp byte [rcx + 0x19], 3
jb 0x140108079
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169cd8]
mov edx, 0x4d
mov r9d, eax
call fcn.140004e7c
jmp 0x140108079
test al, 0x10
je 0x140108079
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140115758
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
and dword [rdx], ebx
mov rsi, rcx
mov byte [rax + 0x10], bl
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
lea rbp, [0x140183048]
sub eax, 2
je 0x140115806
sub eax, 1
je 0x1401157aa
cmp eax, 2
jne 0x140115848
mov dword [rdi], 1
jmp 0x140115848
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140115424
mov ebx, eax
test eax, eax
jns 0x1401157f7
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x1401157f1
test byte [rcx + 0x1c], 1
je 0x1401157f1
cmp byte [rcx + 0x19], 3
jb 0x1401157f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016ac60]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005f80
xor ebx, ebx
xor al, al
jmp 0x1401157fb
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
jmp 0x14011580b
mov eax, 5
mov dword [rdi], eax
test ebx, ebx
jns 0x140115848
mov rcx, qword [0x140183048]
cmp rcx, rbp
je 0x140115848
test dword [rcx + 0x1c], 0x200
je 0x140115848
cmp byte [rcx + 0x19], 3
jb 0x140115848
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016ac60]
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005f80
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14011736c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
xor ebp, ebp
lea r9, [rax + 0x10]
xor r8d, r8d
mov dword [rax + 0x10], ebp
xor edx, edx
mov dword [rax + 0x18], ebp
mov esi, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
lea r15, [0x140183048]
lea r12, [0x14016ac60]
test eax, eax
jne 0x14011741c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x140117492
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140117488
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14011740f
mov ebx, 0x8007000e
jmp 0x1401175a1
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1401174d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14011758d
test byte [rcx + 0x1c], 1
je 0x14011758d
cmp byte [rcx + 0x19], 2
jb 0x14011758d
mov edx, 0x39
jmp 0x140117573
mov ebx, 0x80070216
jmp 0x1401175a1
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1401175ca
test byte [rcx + 0x1c], 1
je 0x1401175a8
cmp byte [rcx + 0x19], 2
jb 0x1401175a8
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005f80
jmp 0x1401175a1
mov rdi, rsi
mov ebx, ebp
cmp word [rsi], bp
je 0x140117586
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14011750d
test byte [rcx + 0x1c], 1
je 0x14011750d
cmp byte [rcx + 0x19], 4
jb 0x14011750d
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rdi
mov r8, r12
call fcn.140005f10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14011753c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x140117524
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x1401174e1
jmp 0x140117586
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14011758d
test byte [rcx + 0x1c], 1
je 0x14011758d
cmp byte [rcx + 0x19], 2
jb 0x14011758d
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.140005f80
mov rcx, qword [0x140183048]
test rsi, rsi
je 0x1401175a8
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x1401175ca
test byte [rcx + 0x1c], 1
je 0x1401175ca
cmp byte [rcx + 0x19], 4
jb 0x1401175ca
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.140004e50
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011a1d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x30], 0
lea r8, [rbp - 0x30]
and qword [rbp - 0x28], 0
mov rdi, rdx
and dword [rbp - 0x20], 0
lea rdx, str.MediaId
mov r15, rcx
or r14, 0xffffffffffffffff
call fcn.14009047c
mov ebx, eax
test eax, eax
js 0x14011a366
and qword [rsp + 0x30], 0
lea r8d, [r14 + 2]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14011a2c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14011a2b6
test byte [rcx + 0x1c], 1
je 0x14011a2b6
cmp byte [rcx + 0x19], 2
jb 0x14011a2b6
mov r9, qword [rbp - 0x30]
lea edx, [r14 + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov dword [rsp + 0x20], edi
call fcn.140005f80
mov rcx, qword [0x140183048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011a36d
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
mov r8d, 0x10
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14011a33f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14011a2b6
test byte [rcx + 0x1c], 1
je 0x14011a2b6
cmp byte [rcx + 0x19], 2
jb 0x14011a2b6
mov r9, qword [rbp - 0x30]
lea r8, [0x14016b250]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005f80
jmp 0x14011a2af
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x14011a35e
mov ebx, 0x8007000e
jmp 0x14011a366
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x140183048]
cmp qword [rbp - 0x30], 0
je 0x14011a38b
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp qword [rbp - 0x28], 0
je 0x14011a3ae
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
and qword [rbp - 0x28], 0
mov rcx, qword [0x140183048]
cmp r14, 0xffffffffffffffff
je 0x14011a3ca
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
test ebx, ebx
jns 0x14011a402
lea rax, [0x140183048]
cmp rcx, rax
je 0x14011a402
test byte [rcx + 0x1c], 1
je 0x14011a402
cmp byte [rcx + 0x19], 2
jb 0x14011a402
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005f80
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14011d284
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov byte [rdx], bl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
mov r8d, eax
add eax, 0xfffffffe
test eax, 0xfffffffc
jne 0x14011d390
cmp r8d, 4
je 0x14011d390
cmp r8d, 2
jne 0x14011d38d
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.140115ccc
lea r14, [0x140183048]
mov ebx, eax
test eax, eax
jns 0x14011d32c
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x14011d326
test byte [rcx + 0x1c], 1
je 0x14011d326
cmp byte [rcx + 0x19], 3
jb 0x14011d326
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005f80
xor al, al
xor ebx, ebx
jmp 0x14011d330
mov al, byte [rsp + 0x48]
test al, al
jne 0x14011d390
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.14012e10c
mov ebx, eax
test eax, eax
jns 0x14011d385
mov rcx, qword [0x140183048]
cmp rcx, r14
je 0x14011d37f
test byte [rcx + 0x1c], 1
je 0x14011d37f
cmp byte [rcx + 0x19], 3
jb 0x14011d37f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005f80
mov al, 1
xor ebx, ebx
jmp 0x14011d389
mov al, byte [rsp + 0x48]
test al, al
je 0x14011d390
mov byte [rsi], 1
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14011d3b0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov rdi, r8
mov byte [rbp + 0x50], r15b
mov r14, rdx
mov byte [rbp + 0x48], r15b
mov rsi, rcx
mov byte [rbp + 0x58], r15b
mov ebx, r15d
mov byte [rbp - 0x10], r15b
mov byte [rbp - 0xf], r15b
mov byte [rdx], r15b
test r8, r8
je 0x14011d3f0
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
lea r13, [0x140183048]
sub eax, 2
je 0x14011d4b6
sub eax, 1
je 0x14011d447
cmp eax, 2
jne 0x14011d5bf
test rdi, rdi
je 0x14011d422
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.1401303d8
mov ebx, eax
test eax, eax
js 0x14011d4aa
cmp byte [rbp + 0x48], r15b
je 0x14011d587
jmp 0x14011d583
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14013c810
mov ebx, eax
test eax, eax
js 0x14011d4aa
cmp byte [rbp + 0x50], r15b
je 0x14011d587
test rdi, rdi
je 0x14011d46b
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14013c960
mov ebx, eax
test eax, eax
jns 0x14011d49b
cmp eax, 0x80780076
jne 0x14011d587
mov byte [r14], r15b
test rdi, rdi
je 0x14011d493
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14011d587
cmp byte [rbp + 0x58], r15b
je 0x14011d583
jmp 0x14011d587
mov rcx, qword [0x140183048]
jmp 0x14011d592
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140115ccc
mov ebx, eax
test eax, eax
jns 0x14011d50b
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14011d503
test byte [rcx + 0x1c], 1
je 0x14011d503
cmp byte [rcx + 0x19], 3
jb 0x14011d503
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005f80
mov rcx, qword [0x140183048]
mov al, r15b
mov ebx, r15d
jmp 0x14011d515
mov al, byte [rbp - 0x10]
mov rcx, qword [0x140183048]
test al, al
jne 0x14011d58e
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.14012e10c
mov ebx, eax
test eax, eax
jns 0x14011d56d
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14011d566
test byte [rcx + 0x1c], 1
je 0x14011d566
cmp byte [rcx + 0x19], 3
jb 0x14011d566
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005f80
mov rcx, qword [0x140183048]
mov al, 1
mov ebx, r15d
jmp 0x14011d577
mov al, byte [rbp - 0xf]
mov rcx, qword [0x140183048]
test al, al
je 0x14011d58e
test rdi, rdi
je 0x14011d583
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x140183048]
test ebx, ebx
jns 0x14011d5bf
cmp rcx, r13
je 0x14011d5bf
test byte [rcx + 0x1c], 1
je 0x14011d5bf
cmp byte [rcx + 0x19], 2
jb 0x14011d5bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005f80
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14011f30c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rdi, str.base_stor_blbengine_blbengutils_blbbackuptargetutils.cpp
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
jne 0x14011f348
lea r8, str.wszTargetVolume___NULL
mov edx, 0x108a
mov rcx, rdi
call fcn.14008f4c8
test rbx, rbx
jne 0x14011f361
lea r8, str.rgVolumeMountedVhdPaths
mov edx, 0x108b
mov rcx, rdi
call fcn.14008f4c8
test r14, r14
jne 0x14011f37a
lea r8, str.pullSizeToReclaim
mov edx, 0x108c
mov rcx, rdi
call fcn.14008f4c8
and qword [r14], 0
mov edx, ebp
and qword [rsp + 0x50], 0
mov rcx, rbx
xor edi, edi
call fcn.14011fba4
mov ebx, eax
test eax, eax
jns 0x14011f3de
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14011f46e
test byte [rcx + 0x1c], 1
je 0x14011f46e
cmp byte [rcx + 0x19], 2
jb 0x14011f46e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016b250]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, ebx
call fcn.140004e7c
jmp 0x14011f46e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140090160
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14011f45a
lea r9, [rsp + 0x58]
mov rcx, rsi
lea r8, [rsp + 0x50]
xor ebp, ebp
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14011f426
mov rcx, rsi
call fcn.14013f1f4
mov ebx, eax
jmp 0x14011f42d
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x14011f45a
call fcn.14011f2bc
cmp rax, rbp
mov r15, rax
cmova r15, rbp
call fcn.14011dc8c
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x14011f457
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x14011f46e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012d260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
test rdx, rdx
jne 0x14012d290
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008f4c8
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x68], 0
mov eax, 0xfeff
and qword [rsp + 0x70], 0
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
lea r8d, [r9 + 3]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x14012d345
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x14012d4aa
test byte [rcx + 0x1c], 1
je 0x14012d4aa
cmp byte [rcx + 0x19], 2
jb 0x14012d4aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bf30]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005f80
jmp 0x14012d4aa
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14012d1d0
mov ebx, eax
test eax, eax
jns 0x14012d3a0
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x14012d4aa
test byte [rcx + 0x1c], 1
je 0x14012d4aa
cmp byte [rcx + 0x19], 2
jb 0x14012d4aa
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bf30]
call fcn.140004e7c
jmp 0x14012d4aa
cmp qword [rsp + 0x70], 0
lea rdi, [0x140183048]
jne 0x14012d47a
mov rcx, qword [r14]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x60]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14012d42e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
lea rdi, [0x140183048]
cmp rcx, rdi
je 0x14012d4aa
test byte [rcx + 0x1c], 1
je 0x14012d4aa
cmp byte [rcx + 0x19], 2
jb 0x14012d4aa
mov edx, 0xd
mov r9d, ebx
jmp 0x14012d38b
cmp dword [rsp + 0x68], 2
je 0x14012d44d
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008f4c8
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x14012d4aa
test byte [rcx + 0x1c], 1
je 0x14012d481
cmp byte [rcx + 0x19], 4
jb 0x14012d481
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bf30]
mov edx, 0xe
call fcn.140004e50
mov rcx, qword [0x140183048]
cmp rcx, rdi
je 0x14012d4aa
test byte [rcx + 0x1c], 1
je 0x14012d4aa
cmp byte [rcx + 0x19], 4
jb 0x14012d4aa
mov rcx, qword [rcx + 0x10]
lea r8, [0x14016bf30]
mov edx, 0xf
mov r9, rsi
call fcn.140005f10
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret