joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x30], 0
lea r8, [rbp - 0x30]
and qword [rbp - 0x28], 0
mov r14, rdx
and dword [rbp - 0x20], 0
lea rdx, str.MediaId
mov r15, rcx
or rsi, 0xffffffffffffffff
call fcn.14008bdcc
mov ebx, eax
test eax, eax
js 0x14011a5b1
and qword [rsp + 0x30], 0
lea r8d, [rsi + 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 rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011a513
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
cmp rcx, r14
je 0x14011a4fd
test byte [rcx + 0x1c], 1
je 0x14011a4fd
cmp byte [rcx + 0x19], 2
jb 0x14011a4fd
mov r9, qword [rbp - 0x30]
lea edx, [rsi + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov dword [rsp + 0x20], eax
call fcn.140011330
mov rcx, qword [0x14017a048]
test ebx, ebx
jle 0x14011a5bf
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14011a5bf
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 0x14011a589
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
cmp rcx, r14
je 0x14011a4fd
test byte [rcx + 0x1c], 1
je 0x14011a4fd
cmp byte [rcx + 0x19], 2
jb 0x14011a4fd
mov r9, qword [rbp - 0x30]
lea r8, [0x140167c80]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.14003d060
jmp 0x14011a4f6
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
je 0x14011a5a8
mov ebx, 0x8007000e
jmp 0x14011a5b1
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [r14], xmm0
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
cmp qword [rbp - 0x30], 0
je 0x14011a5dd
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp qword [rbp - 0x28], 0
je 0x14011a600
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
and qword [rbp - 0x28], 0
mov rcx, qword [0x14017a048]
cmp rsi, 0xffffffffffffffff
je 0x14011a61c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14011a64d
cmp rcx, r14
je 0x14011a64d
test byte [rcx + 0x1c], 1
je 0x14011a64d
cmp byte [rcx + 0x19], 2
jb 0x14011a64d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140011330
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001d90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14011bccc
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, 0xfffffffd
test eax, 0xfffffffd
je 0x14011bdcb
cmp r8d, 2
jne 0x14011bdce
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.140115f7c
lea r14, [0x14017a048]
mov ebx, eax
test eax, eax
jns 0x14011bd6a
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14011bd64
test byte [rcx + 0x1c], 1
je 0x14011bd64
cmp byte [rcx + 0x19], 3
jb 0x14011bd64
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140011330
xor al, al
xor ebx, ebx
jmp 0x14011bd6e
mov al, byte [rsp + 0x48]
test al, al
jne 0x14011bdce
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.14012d1f8
mov ebx, eax
test eax, eax
jns 0x14011bdc3
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14011bdbd
test byte [rcx + 0x1c], 1
je 0x14011bdbd
cmp byte [rcx + 0x19], 3
jb 0x14011bdbd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140011330
mov al, 1
xor ebx, ebx
jmp 0x14011bdc7
mov al, byte [rsp + 0x48]
test al, al
je 0x14011bdce
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 0x14011bdf0
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 0x14011be30
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
lea r13, [0x14017a048]
sub eax, 2
je 0x14011bef2
sub eax, 1
je 0x14011be8b
cmp eax, 2
jne 0x14011bfe3
test rdi, rdi
je 0x14011be62
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.14012c8dc
mov ebx, eax
test eax, eax
js 0x14011bfaf
cmp byte [rbp + 0x48], r15b
je 0x14011bfe3
jmp 0x14011bfa7
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140139f4c
mov ebx, eax
test eax, eax
js 0x14011bfaf
cmp byte [rbp + 0x50], r15b
je 0x14011bfe3
test rdi, rdi
je 0x14011beb3
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.14013b0c4
mov ebx, eax
test eax, eax
jns 0x14011bee3
cmp eax, 0x80780076
jne 0x14011bfaf
mov byte [r14], r15b
test rdi, rdi
je 0x14011bedb
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x14011bfab
cmp byte [rbp + 0x58], r15b
jne 0x14011bfe3
jmp 0x14011bfa7
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140115f7c
mov ebx, eax
test eax, eax
jns 0x14011bf40
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14011bf38
test byte [rcx + 0x1c], 1
je 0x14011bf38
cmp byte [rcx + 0x19], 3
jb 0x14011bf38
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140011330
mov al, r15b
mov ebx, r15d
jmp 0x14011bf43
mov al, byte [rbp - 0x10]
test al, al
jne 0x14011bfe3
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.14012d1f8
mov ebx, eax
test eax, eax
jns 0x14011bf98
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14011bf91
test byte [rcx + 0x1c], 1
je 0x14011bf91
cmp byte [rcx + 0x19], 3
jb 0x14011bf91
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140011330
mov al, 1
mov ebx, r15d
jmp 0x14011bf9b
mov al, byte [rbp - 0xf]
test al, al
je 0x14011bfe3
test rdi, rdi
je 0x14011bfa7
mov byte [rdi], 1
mov byte [r14], 1
test ebx, ebx
jns 0x14011bfe3
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14011bfe3
test byte [rcx + 0x1c], 1
je 0x14011bfe3
cmp byte [rcx + 0x19], 2
jb 0x14011bfe3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140167c80]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140011330
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14012aa28
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 0x14012aa58
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008ac24
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 0x14012ab0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012aac2
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14012ac74
test byte [rcx + 0x1c], 1
je 0x14012ac74
cmp byte [rcx + 0x19], 2
jb 0x14012ac74
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168960]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140011330
jmp 0x14012ac74
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14012adf0
mov ebx, eax
test eax, eax
jns 0x14012ab69
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14012ac74
test byte [rcx + 0x1c], 1
je 0x14012ac74
cmp byte [rcx + 0x19], 2
jb 0x14012ac74
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168960]
call fcn.140006bc4
jmp 0x14012ac74
cmp qword [rsp + 0x70], 0
lea rdi, [0x14017a048]
jne 0x14012ac44
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 0x14012abf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14012abc0
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14012ac74
test byte [rcx + 0x1c], 1
je 0x14012ac74
cmp byte [rcx + 0x19], 2
jb 0x14012ac74
mov edx, 0xd
mov r9d, ebx
jmp 0x14012ab54
cmp dword [rsp + 0x68], 2
je 0x14012ac17
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, str.base_stor_blbengine_blbengutils_filelogger.cpp
call fcn.14008ac24
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x14012ac74
test byte [rcx + 0x1c], 1
je 0x14012ac4b
cmp byte [rcx + 0x19], 4
jb 0x14012ac4b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168960]
mov edx, 0xe
call fcn.140006b98
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x14012ac74
test byte [rcx + 0x1c], 1
je 0x14012ac74
cmp byte [rcx + 0x19], 4
jb 0x14012ac74
mov rcx, qword [rcx + 0x10]
lea r8, [0x140168960]
mov edx, 0xf
mov r9, rsi
call fcn.1400112c8
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140138e40
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, 0x20
mov rbp, r9
mov r12b, r8b
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140138e9c
test byte [rcx + 0x1c], 1
je 0x140138e9c
cmp byte [rcx + 0x19], 4
jb 0x140138e9c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169d38]
mov edx, 0xc
call fcn.140006b98
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
xor edi, edi
mov rcx, qword [r15]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140138eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140138feb
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140138feb
mov rax, rbx
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140138fe6
mov ecx, eax
mov r14d, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140138f25
mov ebx, 0x8007000e
jmp 0x140138feb
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rcx, qword [r15]
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140138f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140138fc1
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140138fc1
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14008bae4
mov ebx, eax
test eax, eax
js 0x140138fbc
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdi, qword [rsp + 0x50]
mov rdx, rbp
mov rcx, rdi
call fcn.14008c48c
mov ebx, eax
test eax, eax
js 0x140138fd0
mov rcx, qword [r13]
lea rdx, [rbp + 8]
xor r8d, r8d
call fcn.14008c1cc
mov ebx, eax
test eax, eax
js 0x140138fd0
mov byte [rbp + 0x10], r12b
jmp 0x140138fd0
mov rdi, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rdi, rdi
je 0x140138feb
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140138feb
mov ebx, 0x80070216
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14013901f
test byte [rcx + 0x1c], 1
je 0x14013901f
cmp byte [rcx + 0x19], 4
jb 0x14013901f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169d38]
mov edx, 0xd
call fcn.140006b98
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140139d00
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 [0x14017a608]
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 0x140139e30
lea rcx, [rsp + 0x30]
call fcn.140093b04
mov ebx, eax
test eax, eax
jns 0x140139d83
mov ecx, 0xc0000452
call fcn.140026c9c
cmp ebx, eax
je 0x140139d7f
mov ecx, 0xc0000451
call fcn.140026c9c
cmp ebx, eax
je 0x140139d7f
mov ecx, 0xc000003a
call fcn.140026c9c
cmp ebx, eax
jne 0x140139da1
xor ebx, ebx
jmp 0x140139d9e
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140139d9e
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14017a048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x140139dce
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x140139e06
mov rcx, qword [0x14017a048]
cmp rcx, rsi
je 0x140139e06
test byte [rcx + 0x1c], 1
je 0x140139e06
cmp byte [rcx + 0x19], 2
jb 0x140139e06
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140011330
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001d90
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]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140139ec5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x140139e94
test byte [rcx + 0x1c], 1
je 0x140139e94
cmp byte [rcx + 0x19], 2
jb 0x140139e94
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x16]
mov r9d, eax
lea r8, [0x140169ec8]
call fcn.140006cec
test ebx, ebx
jle 0x140139da8
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140139da8
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x140139ee2
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140139eaa
jmp 0x140139d9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x140139d9e
mov rcx, qword [0x14017a048]
lea rsi, [0x14017a048]
cmp rcx, rsi
je 0x140139f30
test byte [rcx + 0x1c], 1
je 0x140139f30
cmp byte [rcx + 0x19], 2
jb 0x140139f30
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0x16
mov r9d, eax
call fcn.140006cec
test edi, edi
jg 0x140139f3b
mov ebx, edi
jmp 0x140139da8
movzx ebx, di
jmp 0x140139e9f
Function at 0x14013a284
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor ebp, ebp
mov rsi, r8
mov byte [rsp + 0x60], bpl
mov ebx, edx
mov byte [r8], bpl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
je 0x14013a2c0
mov ebx, ebp
jmp 0x14013a37f
lea r15, [0x14017a048]
test bl, 1
jne 0x14013a320
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140139f4c
mov ebx, eax
test eax, eax
jns 0x14013a319
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14013a37f
test byte [rcx + 0x1c], 1
je 0x14013a346
cmp byte [rcx + 0x19], 2
jb 0x14013a346
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0x18
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140011330
jmp 0x14013a33f
cmp byte [rsp + 0x68], bpl
je 0x14013a37f
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14013b0c4
mov ebx, eax
test eax, eax
jns 0x14013a375
cmp eax, 0x80780076
cmove ebx, ebp
test ebx, ebx
jns 0x14013a37f
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x14013a37f
test byte [rcx + 0x1c], 1
je 0x14013a37f
cmp byte [rcx + 0x19], 2
jb 0x14013a37f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140011330
jmp 0x14013a37f
cmp byte [rsp + 0x60], bpl
jne 0x14013a37f
mov byte [rsi], 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x14013abb8
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 [0x14017a608]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
lea r15, [0x140169ec8]
cmp rcx, r14
je 0x14013ac1a
test byte [rcx + 0x1c], 1
je 0x14013ac1a
cmp byte [rcx + 0x19], 4
jb 0x14013ac1a
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.140006b98
movups xmm0, xmmword [0x14015f068]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
movdqu xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14013ac98
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14013ac82
test byte [rcx + 0x1c], 1
je 0x14013ac82
cmp byte [rcx + 0x19], 2
jb 0x14013ac82
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.140006cec
mov rcx, qword [0x14017a048]
test ebx, ebx
jle 0x14013ad9b
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013ad9b
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14013acfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14013ac82
test byte [rcx + 0x1c], 1
je 0x14013ac82
cmp byte [rcx + 0x19], 2
jb 0x14013ac82
mov edx, 0xd
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.14003d060
jmp 0x14013ac7b
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14013ad5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14013ac82
test byte [rcx + 0x1c], 1
je 0x14013ac82
cmp byte [rcx + 0x19], 2
jb 0x14013ac82
mov edx, 0xe
lea r9, [rsp + 0x250]
jmp 0x14013ace8
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x14013ad6a
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.14008f390
mov ebx, eax
test eax, eax
js 0x14013ad94
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14013adbd
test byte [rcx + 0x1c], 1
je 0x14013adbd
cmp byte [rcx + 0x19], 4
jb 0x14013adbd
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.140006b98
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140001d90
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 0x14013b868
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rsp + 0x68]
mov qword [rdx], r15
mov r14, rdx
xor edx, edx
mov dword [rsp + 0x70], r15d
xor r8d, r8d
mov rbp, rcx
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14013b8d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14013b8d2
test eax, eax
jg 0x14013b8c4
mov ebx, eax
jmp 0x14013b9a9
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14013b9a9
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14013b8f7
mov ebx, 0x8007000e
jmp 0x14013b9ad
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14013b934
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14013b99a
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14013b99a
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x14013b938
test edi, edi
je 0x14013b99a
lea eax, [rdi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x14013b96a
mov ebx, 0x8007000e
jmp 0x14013b99a
mov r8, rsi
mov rdx, rbx
mov rcx, r11
call fcn.140038040
mov ebx, eax
test eax, eax
js 0x14013b98b
lea ecx, [rdi - 1]
mov word [r11 + rcx*2], r15w
mov qword [r14], r11
jmp 0x14013b99a
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14013b9e8
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14013b9e8
test byte [rcx + 0x1c], 1
je 0x14013b9e8
cmp byte [rcx + 0x19], 3
jb 0x14013b9e8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140169ec8]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140011330
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret