joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008be0
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x140008be0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140008c94
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140008c94
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov r9, qword [rax]
mov r8d, 0x40000001
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140008c94
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x1400f8774
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rsi, rdx
mov byte [rdx], r14b
mov rbp, rcx
lea rdx, [rax + 0x10]
mov qword [rax + 0x10], r14
call fcn.14008aff0
mov ebx, eax
test eax, eax
js 0x1400f87e2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f87bd
mov byte [rsi], 1
jmp 0x1400f87de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
cmovbe ebx, r14d
test ebx, ebx
jns 0x1400f881d
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f881d
test byte [rcx + 0x1c], 1
je 0x1400f881d
cmp byte [rcx + 0x19], 2
jb 0x1400f881d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005b60
cmp qword [rsp + 0x48], r14
je 0x1400f882f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov byte [rdx], bl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f887d
test al, 0x10
jne 0x1400f88d0
mov byte [rdi], 1
jmp 0x1400f88d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f88d0
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x1400f88d0
test byte [rcx + 0x1c], 1
je 0x1400f88d0
cmp byte [rcx + 0x19], 2
jb 0x1400f88d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f88e8
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 [0x1401720a0]
lea r14, [0x1401720a0]
cmp rcx, r14
je 0x1400f8937
test byte [rcx + 0x1c], 1
je 0x1400f8937
cmp byte [rcx + 0x19], 5
jb 0x1400f8937
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0xc
call fcn.140004b74
test rdi, rdi
jne 0x1400f8954
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008410c
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f89a8
bt eax, 0xa
jae 0x1400f89f4
mov byte [rdi], 1
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x1400f8a21
test byte [rcx + 0x1c], 1
je 0x1400f89fb
cmp byte [rcx + 0x19], 4
jb 0x1400f89fb
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140157e10]
call fcn.140005afc
jmp 0x1400f89f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f89f4
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x1400f8a21
test byte [rcx + 0x1c], 1
je 0x1400f89fb
cmp byte [rcx + 0x19], 2
jb 0x1400f89fb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x1400f8a21
test byte [rcx + 0x1c], 1
je 0x1400f8a21
cmp byte [rcx + 0x19], 5
jb 0x1400f8a21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0xf
call fcn.140004b74
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 0x1400f9988
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 [0x1401720a0]
lea r15, [0x1401720a0]
lea r12, [0x140157e10]
cmp rcx, r15
je 0x1400f99e1
test byte [rcx + 0x1c], 1
je 0x1400f99e1
cmp byte [rcx + 0x19], 4
jb 0x1400f99e1
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.140004b74
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400f9a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1400f9a62
test byte [rcx + 0x1c], 1
je 0x1400f9a40
cmp byte [rcx + 0x19], 2
jb 0x1400f9a40
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005b60
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1400f9a62
test byte [rcx + 0x1c], 1
je 0x1400f9a62
cmp byte [rcx + 0x19], 4
jb 0x1400f9a62
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.140004b74
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
lea rcx, [rsp + 0x68]
mov byte [rsp + 0x68], 0
call fcn.14008e084
mov ebx, eax
test eax, eax
js 0x1400f9a39
test bpl, bpl
je 0x1400f9ada
bt edi, 0xb
jae 0x1400f9b11
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1400f9ad0
test byte [rcx + 0x1c], 1
je 0x1400f9ad0
cmp byte [rcx + 0x19], 2
jb 0x1400f9ad0
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov ebx, 0x80780066
jmp 0x1400f9a40
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1400f9b18
test byte [rcx + 0x1c], 1
je 0x1400f9b18
cmp byte [rcx + 0x19], 4
jb 0x1400f9b18
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.140005b60
mov rcx, qword [0x1401720a0]
bt edi, 0xe
jae 0x1400f9a40
cmp rcx, r15
je 0x1400f9b4e
test byte [rcx + 0x1c], 1
je 0x1400f9b4e
cmp byte [rcx + 0x19], 2
jb 0x1400f9b4e
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140005afc
mov rcx, qword [0x1401720a0]
mov ebx, 0x80780067
jmp 0x1400f9a40
Function at 0x1400fa6a4
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]
cmp eax, 0xffffffff
je 0x1400fa715
mov rcx, qword [0x1401720a0]
lea rbx, [0x1401720a0]
cmp rcx, rbx
je 0x1400fa70b
test byte [rcx + 0x1c], 1
je 0x1400fa70b
cmp byte [rcx + 0x19], 4
jb 0x1400fa70b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0x48
mov r9, rsi
call fcn.140005afc
mov edi, 1
jmp 0x1400fa82a
mov rax, qword [0x1401720a0]
lea rbx, [0x1401720a0]
cmp rax, rbx
je 0x1400fa759
test byte [rax + 0x1c], 1
je 0x1400fa759
cmp byte [rax + 0x19], 3
jb 0x1400fa759
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401720a0]
lea r8, [0x140157e10]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.140004b98
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.140088d94
mov edi, eax
test eax, eax
jns 0x1400fa7a6
mov rcx, qword [0x1401720a0]
cmp rcx, rbx
je 0x1400fa7f9
test byte [rcx + 0x1c], 1
je 0x1400fa7f9
cmp byte [rcx + 0x19], 2
jb 0x1400fa7f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
jmp 0x1400fa7f2
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400fa7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401720a0]
cmp rcx, rbx
je 0x1400fa7f9
test byte [rcx + 0x1c], 1
je 0x1400fa7f9
cmp byte [rcx + 0x19], 3
jb 0x1400fa7f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
test edi, edi
jns 0x1400fa82a
cmp rcx, rbx
je 0x1400fa82a
test byte [rcx + 0x1c], 1
je 0x1400fa82a
cmp byte [rcx + 0x19], 2
jb 0x1400fa82a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.140005b60
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 0x1400fa850
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]
cmp eax, 0xffffffff
jne 0x1400fa8a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401720a0]
lea rdx, [0x1401720a0]
cmp rcx, rdx
je 0x1400fa8ad
test byte [rcx + 0x1c], 1
je 0x1400fa8ad
cmp byte [rcx + 0x19], 3
jb 0x1400fa8ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157e10]
mov edx, 0x4d
mov r9d, eax
call fcn.140004b98
jmp 0x1400fa8ad
test al, 0x10
je 0x1400fa8ad
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401077cc
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]
lea rbp, [0x1401720a0]
sub eax, 2
je 0x140107876
sub eax, 1
je 0x140107818
cmp eax, 2
jne 0x1401078b7
mov dword [rdi], 1
jmp 0x1401078b7
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.1401074d8
mov ebx, eax
test eax, eax
jns 0x140107865
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x14010785f
test byte [rcx + 0x1c], 1
je 0x14010785f
cmp byte [rcx + 0x19], 3
jb 0x14010785f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159050]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
xor ebx, ebx
xor al, al
jmp 0x140107869
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
mov dword [rdi], eax
jmp 0x14010787c
mov dword [rdi], 5
test ebx, ebx
jns 0x1401078b7
mov rcx, qword [0x1401720a0]
cmp rcx, rbp
je 0x1401078b7
test dword [rcx + 0x1c], 0x200
je 0x1401078b7
cmp byte [rcx + 0x19], 3
jb 0x1401078b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159050]
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
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 0x140109290
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 ebx, ebp
mov edi, ebp
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea r15, [0x1401720a0]
lea r12, [0x140159050]
test eax, eax
jne 0x140109338
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x140109398
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x14010930d
mov ebx, 0x80070216
jmp 0x140109493
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140109329
mov ebx, 0x8007000e
jmp 0x140109493
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ebx, ebp
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1401093d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140109485
test byte [rcx + 0x1c], 1
je 0x140109485
cmp byte [rcx + 0x19], 2
jb 0x140109485
mov edx, 0x39
jmp 0x14010946b
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1401094bc
test byte [rcx + 0x1c], 1
je 0x14010949a
cmp byte [rcx + 0x19], 2
jb 0x14010949a
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005b60
jmp 0x140109493
mov rsi, rdi
cmp word [rdi], bp
je 0x14010947e
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140109411
test byte [rcx + 0x1c], 1
je 0x140109411
cmp byte [rcx + 0x19], 4
jb 0x140109411
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rsi
mov r8, r12
call fcn.140005afc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x14010943a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140109422
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401093e5
jmp 0x14010947e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x140109485
test byte [rcx + 0x1c], 1
je 0x140109485
cmp byte [rcx + 0x19], 2
jb 0x140109485
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.140005b60
mov rcx, qword [0x1401720a0]
test rdi, rdi
je 0x14010949a
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp rcx, r15
je 0x1401094bc
test byte [rcx + 0x1c], 1
je 0x1401094bc
cmp byte [rcx + 0x19], 4
jb 0x1401094bc
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.140004b74
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010bf68
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 [0x140172608]
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.140084fcc
mov ebx, eax
test eax, eax
js 0x14010c0d8
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]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14010c04d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14010c03a
test byte [rcx + 0x1c], 1
je 0x14010c03a
cmp byte [rcx + 0x19], 2
jb 0x14010c03a
mov r9, qword [rbp - 0x30]
lea edx, [r14 + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov dword [rsp + 0x20], edi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14010c0df
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]
test eax, eax
jne 0x14010c0b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14010c03a
test byte [rcx + 0x1c], 1
je 0x14010c03a
cmp byte [rcx + 0x19], 2
jb 0x14010c03a
mov r9, qword [rbp - 0x30]
lea r8, [0x140159640]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005b60
jmp 0x14010c033
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x14010c0d0
mov ebx, 0x8007000e
jmp 0x14010c0d8
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x1401720a0]
cmp qword [rbp - 0x30], 0
je 0x14010c0f7
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401720a0]
cmp qword [rbp - 0x28], 0
je 0x14010c114
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rbp - 0x28], 0
mov rcx, qword [0x1401720a0]
cmp r14, 0xffffffffffffffff
je 0x14010c12a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x14010c162
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x14010c162
test byte [rcx + 0x1c], 1
je 0x14010c162
cmp byte [rcx + 0x19], 2
jb 0x14010c162
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005b60
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140141cf0
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 0x14010ee54
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]
mov r8d, eax
add eax, 0xfffffffe
test eax, 0xfffffffc
jne 0x14010ef5a
cmp r8d, 4
je 0x14010ef5a
cmp r8d, 2
jne 0x14010ef57
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.140107d14
lea r14, [0x1401720a0]
mov ebx, eax
test eax, eax
jns 0x14010eef6
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14010eef0
test byte [rcx + 0x1c], 1
je 0x14010eef0
cmp byte [rcx + 0x19], 3
jb 0x14010eef0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005b60
xor al, al
xor ebx, ebx
jmp 0x14010eefa
mov al, byte [rsp + 0x48]
test al, al
jne 0x14010ef5a
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.14011e908
mov ebx, eax
test eax, eax
jns 0x14010ef4f
mov rcx, qword [0x1401720a0]
cmp rcx, r14
je 0x14010ef49
test byte [rcx + 0x1c], 1
je 0x14010ef49
cmp byte [rcx + 0x19], 3
jb 0x14010ef49
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005b60
mov al, 1
xor ebx, ebx
jmp 0x14010ef53
mov al, byte [rsp + 0x48]
test al, al
je 0x14010ef5a
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 0x14010ef78
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 0x14010efb8
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x1401720a0]
sub eax, 2
je 0x14010f078
sub eax, 1
je 0x14010f009
cmp eax, 2
jne 0x14010f181
test rdi, rdi
je 0x14010efe4
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.140120700
mov ebx, eax
test eax, eax
js 0x14010f06c
cmp byte [rbp + 0x48], r15b
je 0x14010f149
jmp 0x14010f145
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.14012c444
mov ebx, eax
test eax, eax
js 0x14010f06c
cmp byte [rbp + 0x50], r15b
je 0x14010f149
test rdi, rdi
je 0x14010f02d
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14012c570
mov ebx, eax
test eax, eax
jns 0x14010f05d
cmp eax, 0x80780076
jne 0x14010f149
mov byte [r14], r15b
test rdi, rdi
je 0x14010f055
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14010f149
cmp byte [rbp + 0x58], r15b
je 0x14010f145
jmp 0x14010f149
mov rcx, qword [0x1401720a0]
jmp 0x14010f154
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140107d14
mov ebx, eax
test eax, eax
jns 0x14010f0cd
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x14010f0c5
test byte [rcx + 0x1c], 1
je 0x14010f0c5
cmp byte [rcx + 0x19], 3
jb 0x14010f0c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
mov al, r15b
mov ebx, r15d
jmp 0x14010f0d7
mov al, byte [rbp - 0x10]
mov rcx, qword [0x1401720a0]
test al, al
jne 0x14010f150
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.14011e908
mov ebx, eax
test eax, eax
jns 0x14010f12f
mov rcx, qword [0x1401720a0]
cmp rcx, r13
je 0x14010f128
test byte [rcx + 0x1c], 1
je 0x14010f128
cmp byte [rcx + 0x19], 3
jb 0x14010f128
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005b60
mov rcx, qword [0x1401720a0]
mov al, 1
mov ebx, r15d
jmp 0x14010f139
mov al, byte [rbp - 0xf]
mov rcx, qword [0x1401720a0]
test al, al
je 0x14010f150
test rdi, rdi
je 0x14010f145
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x1401720a0]
test ebx, ebx
jns 0x14010f181
cmp rcx, r13
je 0x14010f181
test byte [rcx + 0x1c], 1
je 0x14010f181
cmp byte [rcx + 0x19], 2
jb 0x14010f181
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005b60
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140110d34
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 0x140110d70
lea r8, str.wszTargetVolume___NULL
mov edx, 0x108a
mov rcx, rdi
call fcn.14008410c
test rbx, rbx
jne 0x140110d89
lea r8, str.rgVolumeMountedVhdPaths
mov edx, 0x108b
mov rcx, rdi
call fcn.14008410c
test r14, r14
jne 0x140110da2
lea r8, str.pullSizeToReclaim
mov edx, 0x108c
mov rcx, rdi
call fcn.14008410c
and qword [r14], 0
mov edx, ebp
and qword [rsp + 0x50], 0
mov rcx, rbx
xor edi, edi
call fcn.1401115e0
mov ebx, eax
test eax, eax
jns 0x140110e06
mov rcx, qword [0x1401720a0]
lea rax, [0x1401720a0]
cmp rcx, rax
je 0x140110e8a
test byte [rcx + 0x1c], 1
je 0x140110e8a
cmp byte [rcx + 0x19], 2
jb 0x140110e8a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159640]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, ebx
call fcn.140004b98
jmp 0x140110e8a
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140084cd4
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140110e7c
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]
test eax, eax
jne 0x140110e48
mov rcx, rsi
call fcn.14012ebe0
mov ebx, eax
jmp 0x140110e4f
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x140110e7c
call fcn.140110ce4
cmp rax, rbp
mov r15, rax
cmova r15, rbp
call fcn.14010f70c
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x140110e79
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x140110e8a
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret