joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011cf18
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 r13
push r14
sub rsp, 0x30
xor r12d, r12d
lea r9, [rax + 0x10]
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov ebx, r12d
mov rsi, r12
mov dword [rax + 0x10], r12d
mov dword [rax + 0x18], r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea r14, [0x100002f60]
lea r13, [0x1001653b8]
cmp eax, r12d
jne 0x10011cfcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x10011d02f
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x10011cfa1
mov ebx, 0x80070216
jmp 0x10011d12e
mov ecx, eax
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r12
jne 0x10011cfbd
mov ebx, 0x8007000e
jmp 0x10011d119
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ebx, r12d
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, r12d
jne 0x10011d070
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d120
test byte [rcx + 0x1c], 1
je 0x10011d120
cmp byte [rcx + 0x19], 2
jb 0x10011d120
mov edx, 0x33
jmp 0x10011d106
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d157
test byte [rcx + 0x1c], 1
je 0x10011d135
cmp byte [rcx + 0x19], 2
jb 0x10011d135
mov rcx, qword [rcx + 0x10]
mov edx, 0x32
mov r9, rbp
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x10011d12e
mov rbp, rsi
cmp word [rsi], r12w
je 0x10011d119
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d0a9
test byte [rcx + 0x1c], 1
je 0x10011d0a9
cmp byte [rcx + 0x19], 4
jb 0x10011d0a9
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r9, rbp
mov r8, r14
call fcn.10001da24
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
cmp eax, r12d
je 0x10011d0d4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rbp, [rbp + rcx*2]
cmp word [rbp], r12w
jne 0x10011d07d
jmp 0x10011d119
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d120
test byte [rcx + 0x1c], 1
je 0x10011d120
cmp byte [rcx + 0x19], 2
jb 0x10011d120
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
mov r9, rbp
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
cmp rsi, r12
je 0x10011d135
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d157
test byte [rcx + 0x1c], 1
je 0x10011d157
cmp byte [rcx + 0x19], 4
jb 0x10011d157
mov rcx, qword [rcx + 0x10]
mov edx, 0x36
mov r8, r14
call fcn.10001c7b8
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100120da4
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x70
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [r11 - 0x48], 0
and qword [r11 - 0x40], 0
and dword [rsp + 0x50], 0
mov rdi, rdx
lea r8, [r11 - 0x48]
lea rdx, [0x100004ad0]
mov r12, rcx
or rbp, 0xffffffffffffffff
call fcn.10009b5b0
mov ebx, eax
test eax, eax
js 0x100120f1d
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
and dword [rsp + 0x28], 0
lea r8d, [rbp + 2]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x100120e79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100120ee8
test byte [rcx + 0x1c], 1
je 0x100120ee8
cmp byte [rcx + 0x19], 2
jb 0x100120ee8
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0xb]
lea r8, [0x100002f40]
mov dword [rsp + 0x20], edi
call fcn.10001daa4
jmp 0x100120ee1
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov r8d, 0x10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100120ef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100120ee8
test byte [rcx + 0x1c], 1
je 0x100120ee8
cmp byte [rcx + 0x19], 2
jb 0x100120ee8
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0xb
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100120f24
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x100120f13
mov ebx, 0x8007000e
jmp 0x100120f1d
movdqu xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x40], 0
je 0x100120f3e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x48], 0
je 0x100120f5e
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rsp + 0x48], 0
mov rcx, qword [0x1001653b8]
cmp rbp, 0xffffffffffffffff
je 0x100120f74
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100120fac
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100120fac
test byte [rcx + 0x1c], 1
je 0x100120fac
cmp byte [rcx + 0x19], 2
jb 0x100120fac
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0xc
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rbp
ret
Function at 0x100124260
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
mov byte [rdx], bl
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100124298
cmp eax, 5
je 0x100124298
cmp eax, 2
jne 0x10012435d
cmp eax, 2
jne 0x10012435a
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], bl
call fcn.10011bbf4
lea r12, [0x1001653b8]
mov ebx, eax
test eax, eax
jns 0x1001242f9
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1001242f3
test byte [rcx + 0x1c], 1
je 0x1001242f3
cmp byte [rcx + 0x19], 3
jb 0x1001242f3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x51
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
xor al, al
xor ebx, ebx
jmp 0x1001242fd
mov al, byte [rsp + 0x48]
test al, al
jne 0x10012435d
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], al
call fcn.1001266e0
mov ebx, eax
test eax, eax
jns 0x100124352
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10012434c
test byte [rcx + 0x1c], 1
je 0x10012434c
cmp byte [rcx + 0x19], 3
jb 0x10012434c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x52
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov al, 1
xor ebx, ebx
jmp 0x100124356
mov al, byte [rsp + 0x48]
test al, al
je 0x10012435d
mov byte [rsi], 1
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret
Function at 0x10012437c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor r12d, r12d
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov ebx, r12d
mov byte [rax + 0x18], r12b
mov byte [rax + 0x10], r12b
mov byte [rax + 0x20], r12b
mov byte [rax - 0x38], r12b
mov byte [rax - 0x37], r12b
mov byte [rdx], r12b
cmp r8, r12
je 0x1001243bc
mov byte [r8], r12b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x1001653b8]
sub eax, 2
je 0x10012449a
sub eax, 1
je 0x100124418
cmp eax, 2
jne 0x1001245ac
cmp rdi, r12
je 0x1001243e8
mov byte [rdi], 1
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1001284d8
cmp eax, r12d
mov ebx, eax
jl 0x10012448e
cmp byte [rsp + 0x78], r12b
je 0x100124573
jmp 0x10012456f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.100135894
cmp eax, r12d
mov ebx, eax
jl 0x10012448e
cmp byte [rsp + 0x80], r12b
je 0x100124573
cmp rdi, r12
je 0x100124445
mov byte [rdi], 1
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.100135998
cmp eax, r12d
mov ebx, eax
jge 0x10012447b
cmp eax, 0x80780076
jne 0x100124573
mov byte [rbp], r12b
cmp rdi, r12
je 0x100124473
mov byte [rdi], r12b
mov ebx, r12d
jmp 0x100124573
cmp byte [rsp + 0x88], r12b
je 0x10012456f
jmp 0x100124573
mov rcx, qword [0x1001653b8]
jmp 0x10012457f
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.10011bbf4
cmp eax, r12d
mov ebx, eax
jge 0x1001244f1
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1001244e9
test byte [rcx + 0x1c], 1
je 0x1001244e9
cmp byte [rcx + 0x19], 3
jb 0x1001244e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x53
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
mov al, r12b
mov ebx, r12d
jmp 0x1001244fc
mov al, byte [rsp + 0x30]
mov rcx, qword [0x1001653b8]
cmp al, r12b
jne 0x10012457a
lea rdx, [rsp + 0x31]
mov rcx, rsi
call fcn.1001266e0
cmp eax, r12d
mov ebx, eax
jge 0x100124557
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100124550
test byte [rcx + 0x1c], 1
je 0x100124550
cmp byte [rcx + 0x19], 3
jb 0x100124550
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x54
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
mov al, 1
mov ebx, r12d
jmp 0x100124562
mov al, byte [rsp + 0x31]
mov rcx, qword [0x1001653b8]
cmp al, r12b
je 0x10012457a
cmp rdi, r12
je 0x10012456f
mov byte [rdi], 1
mov byte [rbp], 1
mov rcx, qword [0x1001653b8]
cmp ebx, r12d
jge 0x1001245ac
cmp rcx, r13
je 0x1001245ac
test byte [rcx + 0x1c], 1
je 0x1001245ac
cmp byte [rcx + 0x19], 2
jb 0x1001245ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f40]
mov edx, 0x55
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100134eb4
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 r13
push r14
sub rsp, 0x30
xor r14d, r14d
mov r12, rdx
lea r9, [rax + 0x10]
mov qword [rdx], r14
xor r8d, r8d
xor edx, edx
mov r13, rcx
mov ebx, r14d
mov dword [rax + 0x18], r14d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, r14d
jne 0x100134f13
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x100134f13
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x100134fdc
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r14
jne 0x100134f32
mov ebx, 0x8007000e
jmp 0x100134fce
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
cmp eax, r14d
jne 0x100134f64
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x100134fce
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rbp, rcx
cmp ecx, r14d
je 0x100134fce
lea eax, [rcx + 1]
mov ebx, eax
lea rcx, [rax + rax]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
cmp rax, r14
jne 0x100134f9c
mov ebx, 0x8007000e
jmp 0x100134fc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.100043e4c
cmp eax, r14d
mov ebx, eax
jl 0x100134fc0
lea ecx, [rbp - 1]
mov word [rdi + rcx*2], r14w
mov qword [r12], rdi
mov rdi, r14
cmp rdi, r14
je 0x100134fce
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, r14
je 0x100134fdc
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r14d
jge 0x10013501c
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10013501c
test byte [rcx + 0x1c], 1
je 0x10013501c
cmp byte [rcx + 0x19], 3
jb 0x10013501c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0xa
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10013503c
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x680
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
lea rbp, [0x100002e50]
cmp rcx, rsi
je 0x10013509f
test byte [rcx + 0x1c], 1
je 0x10013509f
cmp byte [rcx + 0x19], 4
jb 0x10013509f
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, rbp
call fcn.10001c7b8
movdqu xmm0, xmmword [0x100001fe0]
mov edi, 0x104
lea rcx, [rsp + 0x40]
mov edx, edi
movdqu xmmword [rbx], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100135106
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351ad
test byte [rcx + 0x1c], 1
je 0x1001351ad
cmp byte [rcx + 0x19], 2
jb 0x1001351ad
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov r9d, eax
mov r8, rbp
call fcn.10001c7dc
jmp 0x1001351a6
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10013514c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351ad
test byte [rcx + 0x1c], 1
je 0x1001351ad
cmp byte [rcx + 0x19], 2
jb 0x1001351ad
mov edx, 0xd
lea r9, [rsp + 0x40]
jmp 0x100135196
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1001351bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351ad
test byte [rcx + 0x1c], 1
je 0x1001351ad
cmp byte [rcx + 0x19], 2
jb 0x1001351ad
mov edx, 0xe
lea r9, [rsp + 0x250]
mov rcx, qword [rcx + 0x10]
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x1001351fe
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x460]
repne scasw ax, word [rdi]
lea r8, [rsp + 0x30]
not rcx
lea rdx, [rcx - 1]
lea rcx, [rsp + 0x460]
call fcn.10009c2e4
mov edi, eax
test eax, eax
js 0x1001351f7
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx], xmm0
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100135220
test byte [rcx + 0x1c], 1
je 0x100135220
cmp byte [rcx + 0x19], 4
jb 0x100135220
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, rbp
call fcn.10001c7b8
mov eax, edi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.10014e480
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100135490
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or r12, 0xffffffffffffffff
xor sil, sil
and qword [rsp + 0x30], rbx
mov rbp, r8
mov r13, rcx
mov byte [r8], bl
test dl, 1
je 0x10013559c
lea rcx, [rsp + 0x30]
call fcn.1000a0aac
mov ebx, eax
test eax, eax
jns 0x100135502
cmp eax, 0xd0000452
je 0x1001354fa
cmp eax, 0xd0000451
je 0x1001354fa
cmp eax, 0xd000003a
jne 0x10013551a
mov byte [rbp], 0
xor ebx, ebx
jmp 0x10013551a
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x100135516
mov sil, 1
mov byte [rbp], sil
lea rsi, [0x1001653b8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp r12, 0xffffffffffffffff
je 0x10013553b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x100135573
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100135573
test byte [rcx + 0x1c], 1
je 0x100135573
cmp byte [rcx + 0x19], 2
jb 0x100135573
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x17
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r13
pop r12
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 r12, rax
cmp rax, 0xffffffffffffffff
jne 0x10013561e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x1001355f6
test byte [rcx + 0x1c], 1
je 0x1001355f6
cmp byte [rcx + 0x19], 2
jb 0x1001355f6
lea edx, [r12 + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov r9d, eax
call fcn.10001c7dc
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100135521
lea rdx, [rsp + 0x40]
mov r8d, edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x100135634
lea rcx, [rsp + 0x40]
mov rdx, r13
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x100135609
jmp 0x100135513
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x100135516
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x1001355f6
test byte [rcx + 0x1c], 1
je 0x1001355f6
cmp byte [rcx + 0x19], 2
jb 0x1001355f6
mov edx, 0x16
jmp 0x1001355e3
Function at 0x100135674
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor r12d, r12d
mov rbp, r8
mov esi, edx
mov byte [rsp + 0x70], r12b
mov byte [r8], r12b
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13d, [r12 + 1]
movzx r9d, r12b
cmp eax, 3
mov ebx, r12d
cmove r9d, r13d
cmp r9b, r12b
je 0x100135780
lea r14, [0x1001653b8]
test r13b, sil
jne 0x10013571c
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.100135894
cmp eax, r12d
mov ebx, eax
jge 0x100135715
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10013574e
test byte [rcx + 0x1c], r13b
je 0x10013574e
cmp byte [rcx + 0x19], 2
jb 0x10013574e
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x18]
lea r8, [0x100002e50]
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x100135747
cmp byte [rsp + 0x78], r12b
je 0x100135747
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.100135998
cmp eax, r12d
mov ebx, eax
jge 0x10013573c
cmp eax, 0x80780076
jne 0x100135747
mov ebx, r12d
jmp 0x100135747
cmp byte [rsp + 0x70], r12b
jne 0x100135747
mov byte [rbp], r13b
mov rcx, qword [0x1001653b8]
cmp ebx, r12d
jge 0x100135780
cmp rcx, r14
je 0x100135780
test byte [rcx + 0x1c], r13b
je 0x100135780
cmp byte [rcx + 0x19], 2
jb 0x100135780
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x19
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100135c50
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r12
push r15
sub rsp, 0x40
and qword [rdx], 0
and qword [rax + 0x18], 0
mov rsi, rdx
lea rdx, [rax + 0x18]
mov r12, rcx
call fcn.10009b438
lea r15, [0x1001653b8]
mov ebx, eax
test eax, eax
js 0x100135dac
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x28], 0
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x100135ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100135d7b
test byte [rcx + 0x1c], 1
je 0x100135d7b
cmp byte [rcx + 0x19], 2
jb 0x100135d7b
lea edx, [rbp + 0x25]
jmp 0x100135d58
xor eax, eax
xor r9d, r9d
xor r8d, r8d
and qword [rsp + 0x38], rax
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov edx, 0x7405c
mov rcx, rbp
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100135d8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100135d7b
test byte [rcx + 0x1c], 1
je 0x100135d7b
cmp byte [rcx + 0x19], 2
jb 0x100135d7b
mov edx, 0x25
mov r9, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100135d9d
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, qword [0x1001653b8]
cmp rbp, 0xffffffffffffffff
je 0x100135db3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x80], 0
je 0x100135dd3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100135e05
cmp rcx, r15
je 0x100135e05
bt dword [rcx + 0x1c], 9
jae 0x100135e05
cmp byte [rcx + 0x19], 2
jb 0x100135e05
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x26
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
add rsp, 0x40
pop r15
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x100136af8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
mov edi, 0x208
and dword [rsp + 0x78], ebx
and qword [rdx], rbx
mov rcx, rdi
mov r12, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea r14, [0x1001653b8]
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x100136b4d
mov rcx, qword [0x1001653b8]
mov ebx, 0x8007000e
jmp 0x100136c86
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
and qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100136c4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x78]
mov rcx, rbp
mov edi, eax
call fcn.100136d34
test eax, eax
jns 0x100136bee
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136bde
test byte [rcx + 0x1c], 1
je 0x100136bde
cmp byte [rcx + 0x19], 3
jb 0x100136bde
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x3e
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100136c6d
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x100136cc6
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136c2d
test byte [rcx + 0x1c], 1
je 0x100136c2d
cmp byte [rcx + 0x19], 4
jb 0x100136c2d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x3f
mov r9, rbp
call fcn.10001da24
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.100136fdc
mov rsi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x100136c66
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100136c66
mov qword [r12], rsi
xor esi, esi
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x100136c82
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100136cb3
cmp rcx, r14
je 0x100136cb3
test byte [rcx + 0x1c], 1
je 0x100136cb3
cmp byte [rcx + 0x19], 3
jb 0x100136cb3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x42
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, 0x3ed
je 0x100136ceb
cmp edi, 1
je 0x100136ceb
cmp edi, 0x57
je 0x100136ceb
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100136c66
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136c6d
test byte [rcx + 0x1c], 1
je 0x100136c6d
cmp byte [rcx + 0x19], 5
jb 0x100136c6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e50]
mov edx, 0x41
mov r9, rbp
call fcn.10001da24
jmp 0x100136c66