joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d158
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 0x14010d194
lea r8, str.wszTargetVolume___NULL
mov edx, 0x108a
mov rcx, rdi
call fcn.140082070
test rbx, rbx
jne 0x14010d1ad
lea r8, str.rgVolumeMountedVhdPaths
mov edx, 0x108b
mov rcx, rdi
call fcn.140082070
test r14, r14
jne 0x14010d1c6
lea r8, str.pullSizeToReclaim
mov edx, 0x108c
mov rcx, rdi
call fcn.140082070
and qword [r14], 0
mov edx, ebp
and qword [rsp + 0x50], 0
mov rcx, rbx
xor edi, edi
call fcn.14010d9e0
mov ebx, eax
test eax, eax
jns 0x14010d22a
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14010d2ae
test byte [rcx + 0x1c], 1
je 0x14010d2ae
cmp byte [rcx + 0x19], 2
jb 0x14010d2ae
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, ebx
call fcn.1400049f8
jmp 0x14010d2ae
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140082c18
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14010d2a0
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 0x14010d26c
mov rcx, rsi
call fcn.14012aed4
mov ebx, eax
jmp 0x14010d273
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x14010d2a0
call fcn.14010d110
cmp rax, rbp
mov r15, rax
cmova r15, rbp
call fcn.14010bba8
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x14010d29d
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x14010d2ae
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
Function at 0x140119cc8
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 0x140119cf8
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.140082070
and dword [rsp + 0x68], 0
mov eax, 0xfeff
mov word [rsp + 0x60], ax
xor r9d, r9d
xor eax, eax
mov edx, 0x40000000
and qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x70], rax
lea r8d, [rax + 3]
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x140119da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x140119efa
test byte [rcx + 0x1c], 1
je 0x140119efa
cmp byte [rcx + 0x19], 2
jb 0x140119efa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156570]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
jmp 0x140119efa
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140119c4c
mov ebx, eax
test eax, eax
jns 0x140119dfc
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x140119efa
test byte [rcx + 0x1c], 1
je 0x140119efa
cmp byte [rcx + 0x19], 2
jb 0x140119efa
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156570]
call fcn.1400049f8
jmp 0x140119efa
cmp qword [rsp + 0x70], 0
lea rdi, [0x14016f048]
jne 0x140119eca
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]
test eax, eax
jne 0x140119e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rdi, [0x14016f048]
cmp rcx, rdi
je 0x140119efa
test byte [rcx + 0x1c], 1
je 0x140119efa
cmp byte [rcx + 0x19], 2
jb 0x140119efa
mov edx, 0xd
mov r9d, ebx
jmp 0x140119de7
cmp dword [rsp + 0x68], 2
je 0x140119e9d
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.140082070
mov rcx, qword [0x14016f048]
cmp rcx, rdi
je 0x140119efa
test byte [rcx + 0x1c], 1
je 0x140119ed1
cmp byte [rcx + 0x19], 4
jb 0x140119ed1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156570]
mov edx, 0xe
call fcn.1400049d8
mov rcx, qword [0x14016f048]
cmp rcx, rdi
je 0x140119efa
test byte [rcx + 0x1c], 1
je 0x140119efa
cmp byte [rcx + 0x19], 4
jb 0x140119efa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156570]
mov edx, 0xf
mov r9, rsi
call fcn.1400058d8
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140126114
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov bpl, r8b
mov r12, rdx
mov r15, rcx
mov rcx, qword [0x14016f048]
lea r13, [0x14016f048]
cmp rcx, r13
je 0x140126170
test byte [rcx + 0x1c], 1
je 0x140126170
cmp byte [rcx + 0x19], 4
jb 0x140126170
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157938]
mov edx, 0xc
call fcn.1400049d8
and qword [rsp + 0x20], 0
xor eax, eax
mov qword [r14], rax
xor esi, esi
mov qword [r14 + 8], rax
xor r8d, r8d
mov qword [r14 + 0x10], rax
xor edx, edx
mov rcx, qword [r15]
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x1401261b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012627e
mov r8d, 2
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.14000f99c
mov ebx, eax
test eax, eax
js 0x14012625d
mov rcx, qword [r15]
mov r8d, edi
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140126201
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140126262
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400832fc
mov ebx, eax
test eax, eax
js 0x140126256
test rdi, rdi
je 0x140126224
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
mov rsi, qword [rsp + 0x60]
mov rdx, r14
mov rcx, rsi
call fcn.140082c18
mov ebx, eax
test eax, eax
js 0x140126262
mov rcx, qword [r12]
lea rdx, [r14 + 8]
xor r8d, r8d
call fcn.140082e28
mov ebx, eax
test eax, eax
js 0x140126262
mov byte [r14 + 0x10], bpl
jmp 0x140126262
mov rsi, qword [rsp + 0x60]
jmp 0x140126262
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140126270
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x14012627e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x1401262ab
test byte [rcx + 0x1c], 1
je 0x1401262ab
cmp byte [rcx + 0x19], 4
jb 0x1401262ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157938]
mov edx, 0xd
call fcn.1400049d8
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140127d78
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
lea r9, [rax + 0x10]
mov qword [rdx], r12
mov r15, rdx
xor edx, edx
mov dword [rax + 0x18], r12d
xor r8d, r8d
mov r14, rcx
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140127dd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140127dd5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140127e8e
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x140127df4
mov ebx, 0x8007000e
jmp 0x140127e92
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140127e24
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140127e85
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x140127e28
test esi, esi
je 0x140127e85
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x140127e55
mov ebx, 0x8007000e
jmp 0x140127e85
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140039dd4
mov ebx, eax
test eax, eax
js 0x140127e77
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x140127e85
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x140127ecd
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140127ecd
test byte [rcx + 0x1c], 1
je 0x140127ecd
cmp byte [rcx + 0x19], 3
jb 0x140127ecd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140127ee8
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
lea r15, [0x140157ac8]
cmp rcx, r14
je 0x140127f4a
test byte [rcx + 0x1c], 1
je 0x140127f4a
cmp byte [rcx + 0x19], 4
jb 0x140127f4a
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.1400049d8
movups xmm0, xmmword [0x140157cb8]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
movdqu xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
jne 0x140127fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140127fa6
test byte [rcx + 0x1c], 1
je 0x140127fa6
cmp byte [rcx + 0x19], 2
jb 0x140127fa6
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.1400049f8
mov rcx, qword [0x14016f048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401280a4
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14012800f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140127fa6
test byte [rcx + 0x1c], 1
je 0x140127fa6
cmp byte [rcx + 0x19], 2
jb 0x140127fa6
mov edx, 0xd
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], edi
call fcn.140005938
jmp 0x140127f9f
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140128067
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140127fa6
test byte [rcx + 0x1c], 1
je 0x140127fa6
cmp byte [rcx + 0x19], 2
jb 0x140127fa6
mov edx, 0xe
lea r9, [rsp + 0x250]
jmp 0x140127ffd
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x140128073
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.140085764
mov ebx, eax
test eax, eax
js 0x14012809d
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1401280c6
test byte [rcx + 0x1c], 1
je 0x1401280c6
cmp byte [rcx + 0x19], 4
jb 0x1401280c6
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140128314
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or rbp, 0xffffffffffffffff
and qword [rsp + 0x30], rbx
xor sil, sil
mov byte [r8], bl
mov r14, r8
mov r15, rcx
test dl, 1
je 0x140128435
lea rcx, [rsp + 0x30]
call fcn.140089f30
mov ebx, eax
test eax, eax
jns 0x14012839b
mov ecx, 0xc0000452
call fcn.140039d4c
cmp ebx, eax
je 0x140128393
mov ecx, 0xc0000451
call fcn.140039d4c
cmp ebx, eax
je 0x140128393
mov ecx, 0xc000003a
call fcn.140039d4c
cmp ebx, eax
jne 0x1401283b3
mov byte [r14], 0
xor ebx, ebx
jmp 0x1401283b3
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1401283b0
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14016f048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rbp, 0xffffffffffffffff
je 0x1401283d4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x14012840c
mov rcx, qword [0x14016f048]
cmp rcx, rsi
je 0x14012840c
test byte [rcx + 0x1c], 1
je 0x14012840c
cmp byte [rcx + 0x19], 2
jb 0x14012840c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005938
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edi, 0x104
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1401284b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x14012848d
test byte [rcx + 0x1c], 1
je 0x14012848d
cmp byte [rcx + 0x19], 2
jb 0x14012848d
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov r9d, edi
call fcn.1400049f8
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401283ba
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x1401284cc
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x1401284a0
jmp 0x1401283ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x1401283b0
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
cmp rcx, rsi
je 0x14012848d
test byte [rcx + 0x1c], 1
je 0x14012848d
cmp byte [rcx + 0x19], 2
jb 0x14012848d
mov edx, 0x16
jmp 0x14012847a
Function at 0x140128508
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r14, r8
mov byte [rsp + 0x70], bpl
mov esi, edx
mov byte [r8], bpl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x14012860a
lea r12, [0x14016f048]
test r15b, sil
jne 0x1401285aa
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140128770
mov ebx, eax
test eax, eax
jns 0x1401285a3
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x1401285d9
test byte [rcx + 0x1c], r15b
je 0x1401285d9
cmp byte [rcx + 0x19], 2
jb 0x1401285d9
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140157ac8]
call fcn.140005938
jmp 0x1401285d2
cmp byte [rsp + 0x78], bpl
je 0x1401285d2
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140128894
mov ebx, eax
test eax, eax
jns 0x1401285c8
cmp eax, 0x80780076
jne 0x1401285d2
mov ebx, ebp
jmp 0x1401285d2
cmp byte [rsp + 0x70], bpl
jne 0x1401285d2
mov byte [r14], r15b
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x14012860a
cmp rcx, r12
je 0x14012860a
test byte [rcx + 0x1c], r15b
je 0x14012860a
cmp byte [rcx + 0x19], 2
jb 0x14012860a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005938
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140128b50
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140082ccc
lea r13, [0x14016f048]
mov ebx, eax
test eax, eax
js 0x140128cc0
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140128c15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140128c02
test byte [rcx + 0x1c], 1
je 0x140128c02
cmp byte [rcx + 0x19], 2
jb 0x140128c02
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov dword [rsp + 0x20], eax
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140128cc7
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140128cac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140128c9c
test byte [rcx + 0x1c], 1
je 0x140128c9c
cmp byte [rcx + 0x19], 2
jb 0x140128c9c
mov r9, qword [rsp + 0x80]
lea r8, [0x140157ac8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.140005938
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140128cb7
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f048]
cmp qword [rsp + 0x80], 0
je 0x140128ce7
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x140128d1b
cmp rcx, r13
je 0x140128d1b
test dword [rcx + 0x1c], 0x200
je 0x140128d1b
cmp byte [rcx + 0x19], 2
jb 0x140128d1b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140129a30
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov esi, 0x208
and qword [rdx], rbx
mov ecx, esi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x14016f048]
test rax, rax
jne 0x140129a84
mov rcx, qword [0x14016f048]
mov ebx, 0x8007000e
jmp 0x140129bc9
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x140129b87
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.140129c70
test eax, eax
jns 0x140129b2a
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140129b17
test byte [rcx + 0x1c], 1
je 0x140129b17
cmp byte [rcx + 0x19], 3
jb 0x140129b17
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140129bb0
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x140129c09
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140129b69
test byte [rcx + 0x1c], 1
je 0x140129b69
cmp byte [rcx + 0x19], 4
jb 0x140129b69
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x41
mov r9, rbp
call fcn.1400058d8
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.140129f6c
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x140129ba9
test rdi, rdi
jne 0x140129ba4
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140082070
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x14016f048]
test rdi, rdi
je 0x140129bc5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x140129bf6
cmp rcx, r13
je 0x140129bf6
test byte [rcx + 0x1c], 1
je 0x140129bf6
cmp byte [rcx + 0x19], 3
jb 0x140129bf6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005938
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
cmp esi, 0x3ed
je 0x140129c2e
cmp esi, 1
je 0x140129c2e
cmp esi, 0x57
je 0x140129c2e
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140129ba9
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x140129bb0
test byte [rcx + 0x1c], 1
je 0x140129bb0
cmp byte [rcx + 0x19], 5
jb 0x140129bb0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x43
mov r9, rbp
call fcn.1400058d8
jmp 0x140129ba9
Function at 0x14012a8b0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x20a
xor ebx, ebx
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x226
call sub.msvcrt.dll_memset
mov eax, dword [0x140157a0c]
or r14, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movzx eax, word [0x140157a10]
mov word [rsp + 0x54], ax
test rsi, rsi
jne 0x14012a943
lea r8, str.pwszDrive
mov edx, 0x817
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140082070
test rdi, rdi
jne 0x14012a960
lea r8, str.pVolumeInfo___NULL
mov edx, 0x818
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140082070
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
movzx ecx, word [rsi]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14012a991
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14012a991
lea r8, str._Volume_s
jmp 0x14012a9d9
mov word [rsp + 0x50], cx
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x14012a9cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012ab08
lea r8, str._GLOBALROOT_s
lea rsi, [rbp + 0x190]
mov r9, rsi
lea rcx, [rsp + 0x60]
mov edx, VarUI4FromDisp
call fcn.14000f924
mov r8d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14012aa7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14012ab08
test byte [rcx + 0x1c], 4
je 0x14012ab08
cmp byte [rcx + 0x19], 2
jb 0x14012ab08
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x69]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], ebx
lea r8, [0x140157ac8]
call fcn.140005938
jmp 0x14012ab08
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
mov edx, 0x9023c
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], 0x60
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14012ab08
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov r9d, eax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14012ab08
test byte [rcx + 0x1c], 4
je 0x14012ab08
cmp byte [rcx + 0x19], 2
jb 0x14012ab08
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ac8]
mov edx, 0x69
call fcn.1400049f8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret