joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010db1c
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, [0x1401782b0]
lea r12, [0x14015f1f0]
test eax, eax
jne 0x14010dbc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x14010dc24
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x14010db99
mov ebx, 0x80070216
jmp 0x14010dd1f
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14010dbb5
mov ebx, 0x8007000e
jmp 0x14010dd1f
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 0x14010dc65
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14010dd11
test byte [rcx + 0x1c], 1
je 0x14010dd11
cmp byte [rcx + 0x19], 2
jb 0x14010dd11
mov edx, 0x39
jmp 0x14010dcf7
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14010dd48
test byte [rcx + 0x1c], 1
je 0x14010dd26
cmp byte [rcx + 0x19], 2
jb 0x14010dd26
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005ce8
jmp 0x14010dd1f
mov rsi, rdi
cmp word [rdi], bp
je 0x14010dd0a
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14010dc9d
test byte [rcx + 0x1c], 1
je 0x14010dc9d
cmp byte [rcx + 0x19], 4
jb 0x14010dc9d
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rsi
mov r8, r12
call fcn.140005c6c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x14010dcc6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14010dcae
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14010dc71
jmp 0x14010dd0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14010dd11
test byte [rcx + 0x1c], 1
je 0x14010dd11
cmp byte [rcx + 0x19], 2
jb 0x14010dd11
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
test rdi, rdi
je 0x14010dd26
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp rcx, r15
je 0x14010dd48
test byte [rcx + 0x1c], 1
je 0x14010dd48
cmp byte [rcx + 0x19], 4
jb 0x14010dd48
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.140004c6c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140110854
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 [0x140178010]
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.140087120
mov ebx, eax
test eax, eax
js 0x1401109ca
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 0x14011092d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140110999
test byte [rcx + 0x1c], 1
je 0x140110999
cmp byte [rcx + 0x19], 2
jb 0x140110999
mov r9, qword [rbp - 0x30]
lea edx, [r14 + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov dword [rsp + 0x20], edi
call fcn.140005ce8
jmp 0x140110992
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 0x1401109a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140110999
test byte [rcx + 0x1c], 1
je 0x140110999
cmp byte [rcx + 0x19], 2
jb 0x140110999
mov r9, qword [rbp - 0x30]
lea r8, [0x14015f210]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], edi
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401109d1
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x18]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x1401109c2
mov ebx, 0x8007000e
jmp 0x1401109ca
movups xmm0, xmmword [rbp - 0x18]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x1401782b0]
cmp qword [rbp - 0x30], 0
je 0x1401109e9
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
cmp qword [rbp - 0x28], 0
je 0x140110a06
lea rcx, [rbp - 0x28]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rbp - 0x28], 0
mov rcx, qword [0x1401782b0]
cmp r14, 0xffffffffffffffff
je 0x140110a1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x140110a54
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140110a54
test byte [rcx + 0x1c], 1
je 0x140110a54
cmp byte [rcx + 0x19], 2
jb 0x140110a54
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005ce8
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401474d0
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 0x140113768
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 0x14011386e
cmp r8d, 4
je 0x14011386e
cmp r8d, 2
jne 0x14011386b
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], bl
mov rcx, rdi
call fcn.14010c584
lea r14, [0x1401782b0]
mov ebx, eax
test eax, eax
jns 0x14011380a
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x140113804
test byte [rcx + 0x1c], 1
je 0x140113804
cmp byte [rcx + 0x19], 3
jb 0x140113804
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0x52
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005ce8
xor al, al
xor ebx, ebx
jmp 0x14011380e
mov al, byte [rsp + 0x48]
test al, al
jne 0x14011386e
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], al
mov rcx, rdi
call fcn.140123324
mov ebx, eax
test eax, eax
jns 0x140113863
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x14011385d
test byte [rcx + 0x1c], 1
je 0x14011385d
cmp byte [rcx + 0x19], 3
jb 0x14011385d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0x53
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140005ce8
mov al, 1
xor ebx, ebx
jmp 0x140113867
mov al, byte [rsp + 0x48]
test al, al
je 0x14011386e
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 0x14011388c
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 0x1401138cc
mov byte [r8], r15b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x1401782b0]
sub eax, 2
je 0x14011398c
sub eax, 1
je 0x14011391d
cmp eax, 2
jne 0x140113a95
test rdi, rdi
je 0x1401138f8
mov byte [rdi], 1
lea r8, [rbp + 0x50]
mov rcx, rsi
lea rdx, [rbp + 0x48]
call fcn.140125140
mov ebx, eax
test eax, eax
js 0x140113980
cmp byte [rbp + 0x48], r15b
je 0x140113a5d
jmp 0x140113a59
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140131254
mov ebx, eax
test eax, eax
js 0x140113980
cmp byte [rbp + 0x50], r15b
je 0x140113a5d
test rdi, rdi
je 0x140113941
mov byte [rdi], 1
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.140131380
mov ebx, eax
test eax, eax
jns 0x140113971
cmp eax, 0x80780076
jne 0x140113a5d
mov byte [r14], r15b
test rdi, rdi
je 0x140113969
mov byte [rdi], r15b
mov ebx, r15d
jmp 0x140113a5d
cmp byte [rbp + 0x58], r15b
je 0x140113a59
jmp 0x140113a5d
mov rcx, qword [0x1401782b0]
jmp 0x140113a68
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14010c584
mov ebx, eax
test eax, eax
jns 0x1401139e1
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x1401139d9
test byte [rcx + 0x1c], 1
je 0x1401139d9
cmp byte [rcx + 0x19], 3
jb 0x1401139d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0x54
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
mov al, r15b
mov ebx, r15d
jmp 0x1401139eb
mov al, byte [rbp - 0x10]
mov rcx, qword [0x1401782b0]
test al, al
jne 0x140113a64
lea rdx, [rbp - 0xf]
mov rcx, rsi
call fcn.140123324
mov ebx, eax
test eax, eax
jns 0x140113a43
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x140113a3c
test byte [rcx + 0x1c], 1
je 0x140113a3c
cmp byte [rcx + 0x19], 3
jb 0x140113a3c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0x55
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
mov al, 1
mov ebx, r15d
jmp 0x140113a4d
mov al, byte [rbp - 0xf]
mov rcx, qword [0x1401782b0]
test al, al
je 0x140113a64
test rdi, rdi
je 0x140113a59
mov byte [rdi], 1
mov byte [r14], 1
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x140113a95
cmp rcx, r13
je 0x140113a95
test byte [rcx + 0x1c], 1
je 0x140113a95
cmp byte [rcx + 0x19], 2
jb 0x140113a95
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140115648
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 0x140115684
lea r8, str.wszTargetVolume___NULL
mov edx, 0x108a
mov rcx, rdi
call fcn.14008624c
test rbx, rbx
jne 0x14011569d
lea r8, str.rgVolumeMountedVhdPaths
mov edx, 0x108b
mov rcx, rdi
call fcn.14008624c
test r14, r14
jne 0x1401156b6
lea r8, str.pullSizeToReclaim
mov edx, 0x108c
mov rcx, rdi
call fcn.14008624c
and qword [r14], 0
mov edx, ebp
and qword [rsp + 0x50], 0
mov rcx, rbx
xor edi, edi
call fcn.140115f30
mov ebx, eax
test eax, eax
jns 0x14011571a
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14011579e
test byte [rcx + 0x1c], 1
je 0x14011579e
cmp byte [rcx + 0x19], 2
jb 0x14011579e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015f210]
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov r9d, ebx
call fcn.140004c90
jmp 0x14011579e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140086e28
mov rsi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140115790
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 0x14011575c
mov rcx, rsi
call fcn.140133a1c
mov ebx, eax
jmp 0x140115763
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
test ebx, ebx
js 0x140115790
call fcn.1401155f8
cmp rax, rbp
mov r15, rax
cmova r15, rbp
call fcn.140114020
lea rcx, [rax + r15]
cmp rcx, rbp
jbe 0x14011578d
mov rdi, rax
sub rdi, rbp
add rdi, r15
mov qword [r14], rdi
test rsi, rsi
je 0x14011579e
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 0x140122500
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 0x140122530
lea r8, str.wszfilePath___NULL
mov edx, 0xac
lea rcx, [0x1401602c8]
call fcn.14008624c
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 0x1401225d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14012272c
test byte [rcx + 0x1c], 1
je 0x14012272c
cmp byte [rcx + 0x19], 2
jb 0x14012272c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401602b8]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ce8
jmp 0x14012272c
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140122480
mov ebx, eax
test eax, eax
jns 0x140122621
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14012272c
test byte [rcx + 0x1c], 1
je 0x14012272c
cmp byte [rcx + 0x19], 2
jb 0x14012272c
mov edx, 0xc
mov r9d, eax
jmp 0x14012269e
cmp qword [rsp + 0x70], 0
lea rdi, [0x1401782b0]
jne 0x1401226fc
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 0x1401226b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1401782b0]
lea rdi, [0x1401782b0]
cmp rcx, rdi
je 0x14012272c
test byte [rcx + 0x1c], 1
je 0x14012272c
cmp byte [rcx + 0x19], 2
jb 0x14012272c
mov edx, 0xd
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401602b8]
call fcn.140004c90
jmp 0x14012272c
cmp dword [rsp + 0x68], 2
je 0x1401226cf
lea r8, str.dwBytesWritten__sizeof_wchUnicodeBOM_
mov edx, 0xe4
lea rcx, [0x1401602c8]
call fcn.14008624c
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x14012272c
test byte [rcx + 0x1c], 1
je 0x140122703
cmp byte [rcx + 0x19], 4
jb 0x140122703
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401602b8]
mov edx, 0xe
call fcn.140004c6c
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x14012272c
test byte [rcx + 0x1c], 1
je 0x14012272c
cmp byte [rcx + 0x19], 4
jb 0x14012272c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401602b8]
mov edx, 0xf
mov r9, rsi
call fcn.140005c6c
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14012eaa8
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 r14, r9
mov r12b, r8b
mov r13, rdx
mov r15, rcx
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14012eb04
test byte [rcx + 0x1c], 1
je 0x14012eb04
cmp byte [rcx + 0x19], 4
jb 0x14012eb04
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161878]
mov edx, 0xc
call fcn.140004c6c
xor eax, eax
xor esi, esi
mov qword [r14], rax
xor r8d, r8d
mov qword [r14 + 8], rax
xor edx, edx
mov qword [r14 + 0x10], rax
mov rcx, qword [r15]
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x14012eb45
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012ec22
mov rax, rbx
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x14012eb5f
mov ebx, 0x80070216
jmp 0x14012ec22
mov ecx, eax
mov ebp, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x14012eb7b
mov ebx, 0x8007000e
jmp 0x14012ec22
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r15]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14012ebb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14012ec06
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140087538
mov ebx, eax
test eax, eax
js 0x14012ec01
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
xor edi, edi
call fcn.140086e28
mov ebx, eax
test eax, eax
js 0x14012ec14
mov rcx, qword [r13]
lea rdx, [r14 + 8]
xor r8d, r8d
call fcn.14008704c
mov ebx, eax
test eax, eax
js 0x14012ec14
mov byte [r14 + 0x10], r12b
jmp 0x14012ec06
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x14012ec14
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x14012ec22
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14012ec56
test byte [rcx + 0x1c], 1
je 0x14012ec56
cmp byte [rcx + 0x19], 4
jb 0x14012ec56
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161878]
mov edx, 0xd
call fcn.140004c6c
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 0x14013083c
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 0x140130899
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140130899
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140130952
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x1401308b8
mov ebx, 0x8007000e
jmp 0x140130956
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1401308e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140130949
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x1401308ec
test esi, esi
je 0x140130949
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 0x140130919
mov ebx, 0x8007000e
jmp 0x140130949
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14003b8c0
mov ebx, eax
test eax, eax
js 0x14013093b
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x140130949
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x140130991
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x140130991
test byte [rcx + 0x1c], 1
je 0x140130991
cmp byte [rcx + 0x19], 3
jb 0x140130991
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161888]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ce8
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 0x1401309b0
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 [0x140178010]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rdi, rcx
mov rcx, qword [0x1401782b0]
lea r14, [0x1401782b0]
lea r15, [0x140161888]
cmp rcx, r14
je 0x140130a12
test byte [rcx + 0x1c], 1
je 0x140130a12
cmp byte [rcx + 0x19], 4
jb 0x140130a12
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, r15
call fcn.140004c6c
movups xmm0, xmmword [0x140161c08]
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 0x140130a78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x140130b1f
test byte [rcx + 0x1c], 1
je 0x140130b1f
cmp byte [rcx + 0x19], 2
jb 0x140130b1f
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xc]
mov r9d, eax
mov r8, r15
call fcn.140004c90
jmp 0x140130b18
mov r8d, ebx
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x140130abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x140130b1f
test byte [rcx + 0x1c], 1
je 0x140130b1f
cmp byte [rcx + 0x19], 2
jb 0x140130b1f
mov edx, 0xd
lea r9, [rsp + 0x40]
jmp 0x140130b08
mov r8d, ebx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140130b2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x140130b1f
test byte [rcx + 0x1c], 1
je 0x140130b1f
cmp byte [rcx + 0x19], 2
jb 0x140130b1f
mov edx, 0xe
lea r9, [rsp + 0x250]
mov rcx, qword [rcx + 0x10]
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140130b6c
lea rax, [rsp + 0x460]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], si
jne 0x140130b3b
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x460]
call fcn.140089a5c
mov ebx, eax
test eax, eax
js 0x140130b65
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x1401782b0]
cmp rcx, r14
je 0x140130b8e
test byte [rcx + 0x1c], 1
je 0x140130b8e
cmp byte [rcx + 0x19], 4
jb 0x140130b8e
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, r15
call fcn.140004c6c
mov eax, ebx
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret