joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4e70
Capabilities:
Query environment variable

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 r14
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r14d, r14d
mov ebp, eax
test eax, eax
jne 0x1400e4eb8
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, 2
mov rsi, 0xffffffffffffffff
mul rbp
cmovo rax, rsi
mov rcx, rax
call fcn.14013ec3c
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400e4efe
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400e4f11
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400e4f3f
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400e4f11
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400ddea4
test eax, eax
jns 0x1400e4f3f
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
Function at 0x1400e7e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x60], 4
mov rdi, r8
test r8, r8
jne 0x1400e7e4b
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.140082070
mov ebx, 0x80004005
jmp 0x1400e7ea3
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400e7e5b
mov ebx, 0x8000ffff
jmp 0x1400e7ea3
and dword [r8], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400e7e96
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400e7ea3
cmp dword [rsp + 0x68], 4
jne 0x1400e7e44
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f50d0
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.140088dd0
mov ebx, eax
test eax, eax
js 0x1400f513e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f5119
mov byte [rsi], 1
jmp 0x1400f513a
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 0x1400f5179
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f5179
test byte [rcx + 0x1c], 1
je 0x1400f5179
cmp byte [rcx + 0x19], 2
jb 0x1400f5179
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005938
cmp qword [rsp + 0x48], r14
je 0x1400f518b
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 0x1400f51a4
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 0x1400f51d1
test al, 0x10
jne 0x1400f5224
mov byte [rdi], 1
jmp 0x1400f5224
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f5224
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400f5224
test byte [rcx + 0x1c], 1
je 0x1400f5224
cmp byte [rcx + 0x19], 2
jb 0x1400f5224
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f5238
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 [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x1400f5287
test byte [rcx + 0x1c], 1
je 0x1400f5287
cmp byte [rcx + 0x19], 5
jb 0x1400f5287
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0xc
call fcn.1400049d8
test rdi, rdi
jne 0x1400f52a4
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140082070
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f52f8
bt eax, 0xa
jae 0x1400f5344
mov byte [rdi], 1
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400f5371
test byte [rcx + 0x1c], 1
je 0x1400f534b
cmp byte [rcx + 0x19], 4
jb 0x1400f534b
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140154368]
call fcn.1400058d8
jmp 0x1400f5344
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f5344
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400f5371
test byte [rcx + 0x1c], 1
je 0x1400f534b
cmp byte [rcx + 0x19], 2
jb 0x1400f534b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x1400f5371
test byte [rcx + 0x1c], 1
je 0x1400f5371
cmp byte [rcx + 0x19], 5
jb 0x1400f5371
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0xf
call fcn.1400049d8
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 0x1400f62c8
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 [0x14016f048]
lea r15, [0x14016f048]
lea r12, [0x140154368]
cmp rcx, r15
je 0x1400f6321
test byte [rcx + 0x1c], 1
je 0x1400f6321
cmp byte [rcx + 0x19], 4
jb 0x1400f6321
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.1400049d8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400f63bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x1400f63a2
test byte [rcx + 0x1c], 1
je 0x1400f6380
cmp byte [rcx + 0x19], 2
jb 0x1400f6380
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005938
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x1400f63a2
test byte [rcx + 0x1c], 1
je 0x1400f63a2
cmp byte [rcx + 0x19], 4
jb 0x1400f63a2
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.1400049d8
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.14008bdac
mov ebx, eax
test eax, eax
js 0x1400f6379
test bpl, bpl
je 0x1400f641a
bt edi, 0xb
jae 0x1400f6451
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x1400f6410
test byte [rcx + 0x1c], 1
je 0x1400f6410
cmp byte [rcx + 0x19], 2
jb 0x1400f6410
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.1400058d8
mov rcx, qword [0x14016f048]
mov ebx, 0x80780066
jmp 0x1400f6380
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x1400f6458
test byte [rcx + 0x1c], 1
je 0x1400f6458
cmp byte [rcx + 0x19], 4
jb 0x1400f6458
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.140005938
mov rcx, qword [0x14016f048]
bt edi, 0xe
jae 0x1400f6380
cmp rcx, r15
je 0x1400f648e
test byte [rcx + 0x1c], 1
je 0x1400f648e
cmp byte [rcx + 0x19], 2
jb 0x1400f648e
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.1400058d8
mov rcx, qword [0x14016f048]
mov ebx, 0x80780067
jmp 0x1400f6380
Function at 0x1400f6fe4
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 0x1400f7055
mov rcx, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rcx, rbx
je 0x1400f704b
test byte [rcx + 0x1c], 1
je 0x1400f704b
cmp byte [rcx + 0x19], 4
jb 0x1400f704b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0x48
mov r9, rsi
call fcn.1400058d8
mov edi, 1
jmp 0x1400f716a
mov rax, qword [0x14016f048]
lea rbx, [0x14016f048]
cmp rax, rbx
je 0x1400f7099
test byte [rax + 0x1c], 1
je 0x1400f7099
cmp byte [rax + 0x19], 3
jb 0x1400f7099
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
lea r8, [0x140154368]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.1400049f8
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.140086ba8
mov edi, eax
test eax, eax
jns 0x1400f70e6
mov rcx, qword [0x14016f048]
cmp rcx, rbx
je 0x1400f7139
test byte [rcx + 0x1c], 1
je 0x1400f7139
cmp byte [rcx + 0x19], 2
jb 0x1400f7139
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005938
jmp 0x1400f7132
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400f7132
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
cmp rcx, rbx
je 0x1400f7139
test byte [rcx + 0x1c], 1
je 0x1400f7139
cmp byte [rcx + 0x19], 3
jb 0x1400f7139
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005938
mov rcx, qword [0x14016f048]
test edi, edi
jns 0x1400f716a
cmp rcx, rbx
je 0x1400f716a
test byte [rcx + 0x1c], 1
je 0x1400f716a
cmp byte [rcx + 0x19], 2
jb 0x1400f716a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.140005938
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 0x1400f7188
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 0x1400f71de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
lea rdx, [0x14016f048]
cmp rcx, rdx
je 0x1400f71e5
test byte [rcx + 0x1c], 1
je 0x1400f71e5
cmp byte [rcx + 0x19], 3
jb 0x1400f71e5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154368]
mov edx, 0x4d
mov r9d, eax
call fcn.1400049f8
jmp 0x1400f71e5
test al, 0x10
je 0x1400f71e5
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140103e40
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, [0x14016f048]
sub eax, 2
je 0x140103ee8
sub eax, 1
je 0x140103e8c
cmp eax, 2
jne 0x140103f2a
mov dword [rdi], 1
jmp 0x140103f2a
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140103b50
mov ebx, eax
test eax, eax
jns 0x140103ed9
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140103ed3
test byte [rcx + 0x1c], 1
je 0x140103ed3
cmp byte [rcx + 0x19], 3
jb 0x140103ed3
mov rcx, qword [rcx + 0x10]
lea r8, str._UV9
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005938
xor ebx, ebx
xor al, al
jmp 0x140103edd
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
jmp 0x140103eed
mov eax, 5
mov dword [rdi], eax
test ebx, ebx
jns 0x140103f2a
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x140103f2a
test dword [rcx + 0x1c], 0x200
je 0x140103f2a
cmp byte [rcx + 0x19], 3
jb 0x140103f2a
mov rcx, qword [rcx + 0x10]
lea r8, str._UV9
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
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 0x1401058cc
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rax + 0x10]
xor r8d, r8d
mov qword [rax + 0x20], r15
xor edx, edx
mov dword [rax + 0x10], r15d
mov ebx, r15d
mov dword [rax + 0x18], r15d
mov edi, r15d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea r12, str._UV9
lea r14, [0x14016f048]
test eax, eax
jne 0x140105959
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x1401059b9
mov edx, dword [rsp + 0x68]
lea r8d, [r15 + 2]
lea rcx, [rsp + 0x78]
call fcn.14000f99c
mov rdi, qword [rsp + 0x78]
mov ebx, eax
test eax, eax
js 0x140105aa9
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 0x140105a01
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140105ab0
test byte [rcx + 0x1c], 1
je 0x140105ab0
cmp byte [rcx + 0x19], 2
jb 0x140105ab0
mov edx, 0x39
jmp 0x140105a96
mov rcx, qword [0x14016f048]
lea r14, [0x14016f048]
cmp rcx, r14
je 0x140105ae7
test byte [rcx + 0x1c], 1
je 0x140105ac5
cmp byte [rcx + 0x19], 2
jb 0x140105ac5
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005938
jmp 0x140105abe
mov rsi, rdi
cmp word [rdi], r15w
je 0x140105aa9
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140105a3a
test byte [rcx + 0x1c], 1
je 0x140105a3a
cmp byte [rcx + 0x19], 4
jb 0x140105a3a
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rsi
mov r8, r12
call fcn.1400058d8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x140105a65
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140105a4b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r15w
jne 0x140105a0e
jmp 0x140105aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140105ab0
test byte [rcx + 0x1c], 1
je 0x140105ab0
cmp byte [rcx + 0x19], 2
jb 0x140105ab0
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.140005938
mov rcx, qword [0x14016f048]
test rdi, rdi
je 0x140105ac5
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x140105ae7
test byte [rcx + 0x1c], 1
je 0x140105ae7
cmp byte [rcx + 0x19], 4
jb 0x140105ae7
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.1400049d8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14010856c
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 [0x14016f608]
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.140082ef4
mov ebx, eax
test eax, eax
js 0x1401086dc
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 0x140108651
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14010863e
test byte [rcx + 0x1c], 1
je 0x14010863e
cmp byte [rcx + 0x19], 2
jb 0x14010863e
mov r9, qword [rbp - 0x30]
lea edx, [r14 + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov dword [rsp + 0x20], edi
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401086e3
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 0x1401086bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14010863e
test byte [rcx + 0x1c], 1
je 0x14010863e
cmp byte [rcx + 0x19], 2
jb 0x14010863e
mov r9, qword [rbp - 0x30]
lea r8, [0x140155310]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005938
jmp 0x140108637
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x1401086d4
mov ebx, 0x8007000e
jmp 0x1401086dc
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14016f048]
cmp qword [rbp - 0x30], 0
je 0x1401086fb
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp qword [rbp - 0x28], 0
je 0x140108718
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rbp - 0x28], 0
mov rcx, qword [0x14016f048]
cmp r14, 0xffffffffffffffff
je 0x14010872e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x140108766
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140108766
test byte [rcx + 0x1c], 1
je 0x140108766
cmp byte [rcx + 0x19], 2
jb 0x140108766
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005938
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14013e290
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 0x14010b30c
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 0x14010b412
cmp r8d, 4
je 0x14010b412
cmp r8d, 2
jne 0x14010b40f
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.14010437c
lea r14, [0x14016f048]
mov ebx, eax
test eax, eax
jns 0x14010b3ae
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14010b3a8
test byte [rcx + 0x1c], 1
je 0x14010b3a8
cmp byte [rcx + 0x19], 3
jb 0x14010b3a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
xor al, al
xor ebx, ebx
jmp 0x14010b3b2
mov al, byte [rsp + 0x48]
test al, al
jne 0x14010b412
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.14011aaa0
mov ebx, eax
test eax, eax
jns 0x14010b407
mov rcx, qword [0x14016f048]
cmp rcx, r14
je 0x14010b401
test byte [rcx + 0x1c], 1
je 0x14010b401
cmp byte [rcx + 0x19], 3
jb 0x14010b401
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005938
mov al, 1
xor ebx, ebx
jmp 0x14010b40b
mov al, byte [rsp + 0x48]
test al, al
je 0x14010b412
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 0x14010b42c
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 0x14010b46c
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x14016f048]
sub eax, 2
je 0x14010b52c
sub eax, 1
je 0x14010b4bd
cmp eax, 2
jne 0x14010b635
test rdi, rdi
je 0x14010b498
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.14011cb94
mov ebx, eax
test eax, eax
js 0x14010b520
cmp byte [rbp + 0x48], r15b
je 0x14010b5fd
jmp 0x14010b5f9
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140128770
mov ebx, eax
test eax, eax
js 0x14010b520
cmp byte [rbp + 0x50], r15b
je 0x14010b5fd
test rdi, rdi
je 0x14010b4e1
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.140128894
mov ebx, eax
test eax, eax
jns 0x14010b511
cmp eax, 0x80780076
jne 0x14010b5fd
mov byte [r14], r15b
test rdi, rdi
je 0x14010b509
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14010b5fd
cmp byte [rbp + 0x58], r15b
je 0x14010b5f9
jmp 0x14010b5fd
mov rcx, qword [0x14016f048]
jmp 0x14010b608
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14010437c
mov ebx, eax
test eax, eax
jns 0x14010b581
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x14010b579
test byte [rcx + 0x1c], 1
je 0x14010b579
cmp byte [rcx + 0x19], 3
jb 0x14010b579
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005938
mov rcx, qword [0x14016f048]
mov al, r15b
mov ebx, r15d
jmp 0x14010b58b
mov al, byte [rbp - 0x10]
mov rcx, qword [0x14016f048]
test al, al
jne 0x14010b604
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.14011aaa0
mov ebx, eax
test eax, eax
jns 0x14010b5e3
mov rcx, qword [0x14016f048]
cmp rcx, r13
je 0x14010b5dc
test byte [rcx + 0x1c], 1
je 0x14010b5dc
cmp byte [rcx + 0x19], 3
jb 0x14010b5dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005938
mov rcx, qword [0x14016f048]
mov al, 1
mov ebx, r15d
jmp 0x14010b5ed
mov al, byte [rbp - 0xf]
mov rcx, qword [0x14016f048]
test al, al
je 0x14010b604
test rdi, rdi
je 0x14010b5f9
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x14016f048]
test ebx, ebx
jns 0x14010b635
cmp rcx, r13
je 0x14010b635
test byte [rcx + 0x1c], 1
je 0x14010b635
cmp byte [rcx + 0x19], 2
jb 0x14010b635
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155310]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005938
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret