joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010bd44
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rdi, r9
mov r12, r8
and qword [rax + 0x10], rbx
and qword [rdx], rbx
mov rbp, rdx
mov r15, rcx
test r9, r9
je 0x10010bd7d
and qword [r9], rbx
mov r13d, 0x250
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
lea rax, [0x1001653b8]
test rsi, rsi
jne 0x10010bdac
mov rcx, qword [0x1001653b8]
mov ebx, 0x8007000e
jmp 0x10010bf14
mov r8, r13
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x10010be3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x10010bed7
cmp eax, 3
je 0x10010bed7
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010be29
test byte [rcx + 0x1c], 1
je 0x10010be29
cmp byte [rcx + 0x19], 3
jb 0x10010be29
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x1e]
lea r8, [0x100002f60]
mov r9, r15
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010bede
lea r13, [rsi + 0x2c]
lea r8, [rsp + 0x68]
mov rcx, r15
mov rdx, r13
call fcn.10010bbd4
mov ebx, eax
test eax, eax
jns 0x10010bea4
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010be9d
test byte [rcx + 0x1c], 1
je 0x10010be9d
cmp byte [rcx + 0x19], 2
jb 0x10010be9d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x1e
mov r9, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
call fcn.10001e39c
mov r11, qword [rsp + 0x68]
jmp 0x10010bec2
mov r11, qword [rsp + 0x68]
jmp 0x10010bec9
mov rax, qword [rsp + 0x68]
xor r11d, r11d
mov qword [rbp], rax
mov qword [r12], r14
or r14, 0xffffffffffffffff
test rdi, rdi
je 0x10010beed
mov qword [rdi], rsi
xor esi, esi
mov rcx, qword [0x1001653b8]
test r11, r11
je 0x10010bede
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp r14, 0xffffffffffffffff
je 0x10010bef4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10010bf09
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10010bf41
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010bf41
test byte [rcx + 0x1c], 1
je 0x10010bf41
cmp byte [rcx + 0x19], 3
jb 0x10010bf41
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x1f
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x10010d668
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x30
mov rdi, r9
mov r12b, r8b
mov r13b, dl
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010d6d9
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10010d6cf
test byte [rcx + 0x1c], 1
je 0x10010d6cf
cmp byte [rcx + 0x19], 4
jb 0x10010d6cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x49
mov r9, rbp
call fcn.10001db08
mov edi, 1
jmp 0x10010d7ee
mov rax, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rax, rbx
je 0x10010d71d
test byte [rax + 0x1c], 1
je 0x10010d71d
cmp byte [rax + 0x19], 3
jb 0x10010d71d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100002f60]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x4a
call fcn.10001c878
mov r9, rdi
mov r8b, r12b
mov dl, r13b
mov rcx, rbp
call fcn.10009dbf8
mov edi, eax
test eax, eax
jns 0x10010d76a
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10010d7bd
test byte [rcx + 0x1c], 1
je 0x10010d7bd
cmp byte [rcx + 0x19], 2
jb 0x10010d7bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x4b
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x10010d7b6
mov edx, 0x2000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10010d7b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10010d7bd
test byte [rcx + 0x1c], 1
je 0x10010d7bd
cmp byte [rcx + 0x19], 3
jb 0x10010d7bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x4c
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
test edi, edi
jns 0x10010d7ee
cmp rcx, rbx
je 0x10010d7ee
test byte [rcx + 0x1c], 1
je 0x10010d7ee
cmp byte [rcx + 0x19], 2
jb 0x10010d7ee
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x4d
mov r9, rbp
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret

Function at 0x10010d814
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 0x10010d86a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x10010d871
test byte [rcx + 0x1c], 1
je 0x10010d871
cmp byte [rcx + 0x19], 3
jb 0x10010d871
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x4e
mov r9d, eax
call fcn.10001c878
jmp 0x10010d871
test al, 0x10
je 0x10010d871
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x10011b7a8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
and dword [rdx], ebx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x10011b802
sub eax, 1
je 0x10011b7de
cmp eax, 2
jne 0x10011b848
mov dword [rdi], 1
jmp 0x10011b848
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.10011b43c
mov ebx, eax
test eax, eax
js 0x10011b80c
mov cl, byte [rsp + 0x48]
neg cl
sbb edx, edx
neg edx
add edx, 2
mov dword [rdi], edx
jmp 0x10011b808
mov dword [rdi], 5
test ebx, ebx
jns 0x10011b848
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10011b848
bt dword [rcx + 0x1c], 9
jae 0x10011b848
cmp byte [rcx + 0x19], 3
jb 0x10011b848
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f20]
mov edx, 0xe
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10011cb2c
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x10], 0
lea rdx, [rax + 0x10]
mov rdi, rcx
call fcn.10011c934
lea rsi, [0x1001653b8]
mov ebx, eax
test eax, eax
js 0x10011cbad
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10011cbad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10011cbad
test byte [rcx + 0x1c], 1
je 0x10011cbad
cmp byte [rcx + 0x19], 2
jb 0x10011cbad
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f20]
mov edx, 0x2c
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x10011cbf0
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10011cbf0
test byte [rcx + 0x1c], 1
je 0x10011cbf0
cmp byte [rcx + 0x19], 2
jb 0x10011cbf0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f20]
mov edx, 0x2d
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x10011cfbc
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, [0x100002f20]
lea r13, [0x1001653b8]
cmp eax, r12d
jne 0x10011d071
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x10011d0d3
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x10011d045
mov ebx, 0x80070216
jmp 0x10011d1d2
mov ecx, eax
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r12
jne 0x10011d061
mov ebx, 0x8007000e
jmp 0x10011d1bd
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 0x10011d114
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 0x10011d1c4
test byte [rcx + 0x1c], 1
je 0x10011d1c4
cmp byte [rcx + 0x19], 2
jb 0x10011d1c4
mov edx, 0x33
jmp 0x10011d1aa
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d1fb
test byte [rcx + 0x1c], 1
je 0x10011d1d9
cmp byte [rcx + 0x19], 2
jb 0x10011d1d9
mov rcx, qword [rcx + 0x10]
mov edx, 0x32
mov r9, rbp
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
jmp 0x10011d1d2
mov rbp, rsi
cmp word [rsi], r12w
je 0x10011d1bd
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d14d
test byte [rcx + 0x1c], 1
je 0x10011d14d
cmp byte [rcx + 0x19], 4
jb 0x10011d14d
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r9, rbp
mov r8, r14
call fcn.10001db08
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
cmp eax, r12d
je 0x10011d178
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 0x10011d121
jmp 0x10011d1bd
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 0x10011d1c4
test byte [rcx + 0x1c], 1
je 0x10011d1c4
cmp byte [rcx + 0x19], 2
jb 0x10011d1c4
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
mov r9, rbp
mov r8, r14
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
cmp rsi, r12
je 0x10011d1d9
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10011d1fb
test byte [rcx + 0x1c], 1
je 0x10011d1fb
cmp byte [rcx + 0x19], 4
jb 0x10011d1fb
mov rcx, qword [rcx + 0x10]
mov edx, 0x36
mov r8, r14
call fcn.10001c854
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 0x100120e48
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, [0x100004a70]
mov r12, rcx
or rbp, 0xffffffffffffffff
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x100120fc1
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 0x100120f1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100120f8c
test byte [rcx + 0x1c], 1
je 0x100120f8c
cmp byte [rcx + 0x19], 2
jb 0x100120f8c
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0xb]
lea r8, [0x100002f00]
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
jmp 0x100120f85
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 0x100120f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100120f8c
test byte [rcx + 0x1c], 1
je 0x100120f8c
cmp byte [rcx + 0x19], 2
jb 0x100120f8c
mov r9, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0xb
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100120fc8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x100120fb7
mov ebx, 0x8007000e
jmp 0x100120fc1
movdqu xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rdi], xmm0
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x40], 0
je 0x100120fe2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x48], 0
je 0x100121002
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and qword [rsp + 0x48], 0
mov rcx, qword [0x1001653b8]
cmp rbp, 0xffffffffffffffff
je 0x100121018
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100121050
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100121050
test byte [rcx + 0x1c], 1
je 0x100121050
cmp byte [rcx + 0x19], 2
jb 0x100121050
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0xc
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rbp
ret
Function at 0x100124304
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 0x10012433c
cmp eax, 5
je 0x10012433c
cmp eax, 2
jne 0x100124401
cmp eax, 2
jne 0x1001243fe
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], bl
call fcn.10011bc98
lea r12, [0x1001653b8]
mov ebx, eax
test eax, eax
jns 0x10012439d
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100124397
test byte [rcx + 0x1c], 1
je 0x100124397
cmp byte [rcx + 0x19], 3
jb 0x100124397
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x51
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
xor al, al
xor ebx, ebx
jmp 0x1001243a1
mov al, byte [rsp + 0x48]
test al, al
jne 0x100124401
lea rdx, [rsp + 0x48]
mov rcx, rdi
mov byte [rsp + 0x48], al
call fcn.100126784
mov ebx, eax
test eax, eax
jns 0x1001243f6
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1001243f0
test byte [rcx + 0x1c], 1
je 0x1001243f0
cmp byte [rcx + 0x19], 3
jb 0x1001243f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x52
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov al, 1
xor ebx, ebx
jmp 0x1001243fa
mov al, byte [rsp + 0x48]
test al, al
je 0x100124401
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 0x100124420
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 0x100124460
mov byte [r8], r12b
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13, [0x1001653b8]
sub eax, 2
je 0x10012453e
sub eax, 1
je 0x1001244bc
cmp eax, 2
jne 0x100124650
cmp rdi, r12
je 0x10012448c
mov byte [rdi], 1
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.10012857c
cmp eax, r12d
mov ebx, eax
jl 0x100124532
cmp byte [rsp + 0x78], r12b
je 0x100124617
jmp 0x100124613
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.1001358e0
cmp eax, r12d
mov ebx, eax
jl 0x100124532
cmp byte [rsp + 0x80], r12b
je 0x100124617
cmp rdi, r12
je 0x1001244e9
mov byte [rdi], 1
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.1001359e4
cmp eax, r12d
mov ebx, eax
jge 0x10012451f
cmp eax, 0x80780076
jne 0x100124617
mov byte [rbp], r12b
cmp rdi, r12
je 0x100124517
mov byte [rdi], r12b
mov ebx, r12d
jmp 0x100124617
cmp byte [rsp + 0x88], r12b
je 0x100124613
jmp 0x100124617
mov rcx, qword [0x1001653b8]
jmp 0x100124623
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.10011bc98
cmp eax, r12d
mov ebx, eax
jge 0x100124595
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10012458d
test byte [rcx + 0x1c], 1
je 0x10012458d
cmp byte [rcx + 0x19], 3
jb 0x10012458d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x53
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
mov al, r12b
mov ebx, r12d
jmp 0x1001245a0
mov al, byte [rsp + 0x30]
mov rcx, qword [0x1001653b8]
cmp al, r12b
jne 0x10012461e
lea rdx, [rsp + 0x31]
mov rcx, rsi
call fcn.100126784
cmp eax, r12d
mov ebx, eax
jge 0x1001245fb
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1001245f4
test byte [rcx + 0x1c], 1
je 0x1001245f4
cmp byte [rcx + 0x19], 3
jb 0x1001245f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x54
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
mov al, 1
mov ebx, r12d
jmp 0x100124606
mov al, byte [rsp + 0x31]
mov rcx, qword [0x1001653b8]
cmp al, r12b
je 0x10012461e
cmp rdi, r12
je 0x100124613
mov byte [rdi], 1
mov byte [rbp], 1
mov rcx, qword [0x1001653b8]
cmp ebx, r12d
jge 0x100124650
cmp rcx, r13
je 0x100124650
test byte [rcx + 0x1c], 1
je 0x100124650
cmp byte [rcx + 0x19], 2
jb 0x100124650
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f00]
mov edx, 0x55
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100134f00
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 0x100134f5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x100134f5f
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x100135028
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
cmp rax, r14
jne 0x100134f7e
mov ebx, 0x8007000e
jmp 0x10013501a
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 0x100134fb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
jmp 0x10013501a
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 0x10013501a
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 0x100134fe8
mov ebx, 0x8007000e
jmp 0x10013500c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1000c23ac
cmp eax, r14d
mov ebx, eax
jl 0x10013500c
lea ecx, [rbp - 1]
mov word [rdi + rcx*2], r14w
mov qword [r12], rdi
mov rdi, r14
cmp rdi, r14
je 0x10013501a
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rsi, r14
je 0x100135028
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, r14d
jge 0x100135068
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100135068
test byte [rcx + 0x1c], 1
je 0x100135068
cmp byte [rcx + 0x19], 3
jb 0x100135068
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0xa
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
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 0x100135088
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, [0x100002e10]
cmp rcx, rsi
je 0x1001350eb
test byte [rcx + 0x1c], 1
je 0x1001350eb
cmp byte [rcx + 0x19], 4
jb 0x1001350eb
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r8, rbp
call fcn.10001c854
movdqu xmm0, xmmword [0x10000f0f8]
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 0x100135152
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351f9
test byte [rcx + 0x1c], 1
je 0x1001351f9
cmp byte [rcx + 0x19], 2
jb 0x1001351f9
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov r9d, eax
mov r8, rbp
call fcn.10001c878
jmp 0x1001351f2
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x100135198
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351f9
test byte [rcx + 0x1c], 1
je 0x1001351f9
cmp byte [rcx + 0x19], 2
jb 0x1001351f9
mov edx, 0xd
lea r9, [rsp + 0x40]
jmp 0x1001351e2
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x100135209
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001351f9
test byte [rcx + 0x1c], 1
je 0x1001351f9
cmp byte [rcx + 0x19], 2
jb 0x1001351f9
mov edx, 0xe
lea r9, [rsp + 0x250]
mov rcx, qword [rcx + 0x10]
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x10013524a
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.10009c8bc
mov edi, eax
test eax, eax
js 0x100135243
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx], xmm0
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10013526c
test byte [rcx + 0x1c], 1
je 0x10013526c
cmp byte [rcx + 0x19], 4
jb 0x10013526c
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, rbp
call fcn.10001c854
mov eax, edi
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.10014e600
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