joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1608
Capabilities:
Encode data using xor

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 r12
sub rsp, 0x60
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x140170048]
lea r12, [0x140170048]
cmp rcx, r12
je 0x1400c1661
test byte [rcx + 0x1c], 4
je 0x1400c1661
cmp byte [rcx + 0x19], 4
jb 0x1400c1661
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0xc4
call fcn.140004c54
mov r8d, dword [rbx + 0x48]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbx + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rax, qword [0x140170048]
cmp rax, r12
je 0x1400c16b6
test byte [rax + 0x1c], 4
je 0x1400c16b6
cmp byte [rax + 0x19], 4
jb 0x1400c16b6
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x140170048]
lea r8, [0x1401521b8]
mov r9d, eax
mov edx, 0xc5
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
cmp byte [rbx + 0x10], 0
je 0x1400c17c6
mov r8d, dword [rbx + 0x48]
lea rcx, [rsp + 0x50]
mov rdx, qword [rbx + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rax, 0x1f
mov rdx, qword [rsp + 0x58]
shr rax, 5
test eax, eax
je 0x1400c1702
mov r8d, eax
mov eax, dword [rdx]
lea rdx, [rdx + 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x1400c16f0
cmp dword [rbx + 0x4c], 1
je 0x1400c1712
cmp dword [rbx + 0x4c], 4
jne 0x1400c17bf
mov rdi, qword [rsp + 0x90]
lea rax, str.pagefile.sys
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
or qword [rsp + 0x30], 0xffffffffffffffff
mov r9d, esi
mov qword [rsp + 0x28], rax
mov r8b, 1
xor edx, edx
mov qword [rsp + 0x20], rbp
call fcn.1400b0a84
test eax, eax
jne 0x1400c1857
mov qword [rsp + 0x38], rdi
lea rax, str.hiberfil.sys
or qword [rsp + 0x30], 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r9d, esi
mov r8b, 1
mov qword [rsp + 0x20], rbp
xor edx, edx
call fcn.1400b0a84
test eax, eax
jne 0x1400c1857
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov r8b, 1
xor edx, edx
call fcn.1400b1280
test eax, eax
jne 0x1400c1857
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.1400c2f18
test eax, eax
jne 0x1400c1857
xor eax, eax
jmp 0x1400c1857
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400c359c
mov ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x1400c1855
test byte [rcx + 0x1c], 4
je 0x1400c182f
cmp byte [rcx + 0x19], 4
jb 0x1400c182f
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x140170048]
lea r8, [0x1401521b8]
mov r9d, eax
mov edx, 0xc6
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, r12
je 0x1400c1855
test byte [rcx + 0x1c], 4
je 0x1400c1855
cmp byte [rcx + 0x19], 4
jb 0x1400c1855
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401521b8]
mov edx, 0xc7
call fcn.140004c54
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400d01b4
Capabilities:
Resolve function by parsing pe exports

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 r15
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
cmp rcx, r15
je 0x1400d020d
test byte [rcx + 0x1c], 4
je 0x1400d020d
cmp byte [rcx + 0x19], 4
jb 0x1400d020d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152708]
mov edx, 0xa
call fcn.140004c54
mov rax, qword [rsp + 0x70]
mov ecx, 0xffff
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x78]
movdqu xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rax]
mov rax, rdi
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
xor ecx, ecx
sub rax, rdx
mov dword [rbx + 0x30], eax
mov r8, rax
movdqu xmmword [rbx + 0x20], xmm1
test eax, eax
jne 0x1400d025b
mov eax, 0x10000
mov dword [rbx + 0x30], eax
mov r8d, eax
mov rax, qword [rsp + 0x80]
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x58], eax
mov al, byte [rsp + 0x90]
mov byte [rbx + 0x5c], al
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x68], rax
mov al, byte [rsp + 0xa8]
mov byte [rbx + 0x70], al
mov qword [rbx + 0x34], rcx
mov qword [rbx + 0x48], rcx
mov dword [rbx + 0x3c], r9d
mov dword [rbx + 0x40], r10d
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400d038f
test byte [rcx + 0x1c], 4
je 0x1400d02fc
cmp byte [rcx + 0x19], 4
jb 0x1400d02fc
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x140152708]
call fcn.1400ad820
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400d038f
test byte [rcx + 0x1c], 4
je 0x1400d0337
cmp byte [rcx + 0x19], 4
jb 0x1400d0337
mov rax, qword [rbx]
movzx r9d, byte [rbx + 0x5c]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.1400d0090
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400d038f
test byte [rcx + 0x1c], 4
je 0x1400d0369
cmp byte [rcx + 0x19], 4
jb 0x1400d0369
movzx r9d, byte [rbx + 0x70]
lea r8, [0x140152708]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400d038f
test byte [rcx + 0x1c], 4
je 0x1400d038f
cmp byte [rcx + 0x19], 4
jb 0x1400d038f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140152708]
mov edx, 0xe
call fcn.140004c54
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1400e6258
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 0x1400e62a0
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.140141dd0
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 0x1400e62e6
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400e62f9
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400e6327
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400e62f9
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400df164
test eax, eax
jns 0x1400e6327
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 0x1400e92b0
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 0x1400e92eb
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.14008388c
mov ebx, 0x80004005
jmp 0x1400e9343
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400e92fb
mov ebx, 0x8000ffff
jmp 0x1400e9343
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 0x1400e9336
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400e9343
cmp dword [rsp + 0x68], 4
jne 0x1400e92e4
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 0x1400f6644
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.14008a778
mov ebx, eax
test eax, eax
js 0x1400f66b2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f668d
mov byte [rsi], 1
jmp 0x1400f66ae
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 0x1400f66ed
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f66ed
test byte [rcx + 0x1c], 1
je 0x1400f66ed
cmp byte [rcx + 0x19], 2
jb 0x1400f66ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005c44
cmp qword [rsp + 0x48], r14
je 0x1400f66ff
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 0x1400f6720
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 0x1400f674d
test al, 0x10
jne 0x1400f67a0
mov byte [rdi], 1
jmp 0x1400f67a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f67a0
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x1400f67a0
test byte [rcx + 0x1c], 1
je 0x1400f67a0
cmp byte [rcx + 0x19], 2
jb 0x1400f67a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f67b8
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 [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x1400f6807
test byte [rcx + 0x1c], 1
je 0x1400f6807
cmp byte [rcx + 0x19], 5
jb 0x1400f6807
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0xc
call fcn.140004c54
test rdi, rdi
jne 0x1400f6824
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.14008388c
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f6878
bt eax, 0xa
jae 0x1400f68c4
mov byte [rdi], 1
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x1400f68f1
test byte [rcx + 0x1c], 1
je 0x1400f68cb
cmp byte [rcx + 0x19], 4
jb 0x1400f68cb
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x1401573e8]
call fcn.140005bdc
jmp 0x1400f68c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f68c4
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x1400f68f1
test byte [rcx + 0x1c], 1
je 0x1400f68cb
cmp byte [rcx + 0x19], 2
jb 0x1400f68cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
mov rcx, qword [0x140170048]
cmp rcx, r14
je 0x1400f68f1
test byte [rcx + 0x1c], 1
je 0x1400f68f1
cmp byte [rcx + 0x19], 5
jb 0x1400f68f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0xf
call fcn.140004c54
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 0x1400f7874
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 [0x140170048]
lea r15, [0x140170048]
lea r12, [0x1401573e8]
cmp rcx, r15
je 0x1400f78cd
test byte [rcx + 0x1c], 1
je 0x1400f78cd
cmp byte [rcx + 0x19], 4
jb 0x1400f78cd
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.140004c54
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400f7969
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400f794e
test byte [rcx + 0x1c], 1
je 0x1400f792c
cmp byte [rcx + 0x19], 2
jb 0x1400f792c
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005c44
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400f794e
test byte [rcx + 0x1c], 1
je 0x1400f794e
cmp byte [rcx + 0x19], 4
jb 0x1400f794e
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.140004c54
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.14008d554
mov ebx, eax
test eax, eax
js 0x1400f7925
test bpl, bpl
je 0x1400f79c6
bt edi, 0xb
jae 0x1400f79fd
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400f79bc
test byte [rcx + 0x1c], 1
je 0x1400f79bc
cmp byte [rcx + 0x19], 2
jb 0x1400f79bc
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140005bdc
mov rcx, qword [0x140170048]
mov ebx, 0x80780066
jmp 0x1400f792c
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1400f7a04
test byte [rcx + 0x1c], 1
je 0x1400f7a04
cmp byte [rcx + 0x19], 4
jb 0x1400f7a04
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.140005c44
mov rcx, qword [0x140170048]
bt edi, 0xe
jae 0x1400f792c
cmp rcx, r15
je 0x1400f7a3a
test byte [rcx + 0x1c], 1
je 0x1400f7a3a
cmp byte [rcx + 0x19], 2
jb 0x1400f7a3a
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140005bdc
mov rcx, qword [0x140170048]
mov ebx, 0x80780067
jmp 0x1400f792c
Function at 0x1400f85a8
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 0x1400f8619
mov rcx, qword [0x140170048]
lea rbx, [0x140170048]
cmp rcx, rbx
je 0x1400f860f
test byte [rcx + 0x1c], 1
je 0x1400f860f
cmp byte [rcx + 0x19], 4
jb 0x1400f860f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x48
mov r9, rsi
call fcn.140005bdc
mov edi, 1
jmp 0x1400f872e
mov rax, qword [0x140170048]
lea rbx, [0x140170048]
cmp rax, rbx
je 0x1400f865d
test byte [rax + 0x1c], 1
je 0x1400f865d
cmp byte [rax + 0x19], 3
jb 0x1400f865d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
lea r8, [0x1401573e8]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.140004c78
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.140088518
mov edi, eax
test eax, eax
jns 0x1400f86aa
mov rcx, qword [0x140170048]
cmp rcx, rbx
je 0x1400f86fd
test byte [rcx + 0x1c], 1
je 0x1400f86fd
cmp byte [rcx + 0x19], 2
jb 0x1400f86fd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
jmp 0x1400f86f6
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400f86f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
cmp rcx, rbx
je 0x1400f86fd
test byte [rcx + 0x1c], 1
je 0x1400f86fd
cmp byte [rcx + 0x19], 3
jb 0x1400f86fd
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
mov rcx, qword [0x140170048]
test edi, edi
jns 0x1400f872e
cmp rcx, rbx
je 0x1400f872e
test byte [rcx + 0x1c], 1
je 0x1400f872e
cmp byte [rcx + 0x19], 2
jb 0x1400f872e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.140005c44
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 0x1400f8754
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 0x1400f87aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140170048]
lea rdx, [0x140170048]
cmp rcx, rdx
je 0x1400f87b1
test byte [rcx + 0x1c], 1
je 0x1400f87b1
cmp byte [rcx + 0x19], 3
jb 0x1400f87b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401573e8]
mov edx, 0x4d
mov r9d, eax
call fcn.140004c78
jmp 0x1400f87b1
test al, 0x10
je 0x1400f87b1
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140105804
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, [0x140170048]
sub eax, 2
je 0x1401058ac
sub eax, 1
je 0x140105850
cmp eax, 2
jne 0x1401058ee
mov dword [rdi], 1
jmp 0x1401058ee
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140105510
mov ebx, eax
test eax, eax
jns 0x14010589d
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x140105897
test byte [rcx + 0x1c], 1
je 0x140105897
cmp byte [rcx + 0x19], 3
jb 0x140105897
mov rcx, qword [rcx + 0x10]
lea r8, str._UV9
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005c44
xor ebx, ebx
xor al, al
jmp 0x1401058a1
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
jmp 0x1401058b1
mov eax, 5
mov dword [rdi], eax
test ebx, ebx
jns 0x1401058ee
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x1401058ee
test dword [rcx + 0x1c], 0x200
je 0x1401058ee
cmp byte [rcx + 0x19], 3
jb 0x1401058ee
mov rcx, qword [rcx + 0x10]
lea r8, str._UV9
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005c44
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 0x14010737c
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 esi, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea r15, [0x140170048]
lea r12, str._UV9
test eax, eax
jne 0x14010741a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700ea
jne 0x140107484
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x14010747a
mov ecx, eax
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x14010740d
mov ebx, 0x8007000e
jmp 0x140107581
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1401074c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140107573
test byte [rcx + 0x1c], 1
je 0x140107573
cmp byte [rcx + 0x19], 2
jb 0x140107573
mov edx, 0x39
jmp 0x140107559
mov ebx, 0x80070216
jmp 0x140107581
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1401075aa
test byte [rcx + 0x1c], 1
je 0x140107588
cmp byte [rcx + 0x19], 2
jb 0x140107588
mov rcx, qword [rcx + 0x10]
mov edx, 0x38
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005c44
jmp 0x140107581
mov rdi, rsi
mov ebx, ebp
cmp word [rsi], bp
je 0x14010756c
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1401074ff
test byte [rcx + 0x1c], 1
je 0x1401074ff
cmp byte [rcx + 0x19], 4
jb 0x1401074ff
mov rcx, qword [rcx + 0x10]
mov edx, 0x3a
mov r9, rdi
mov r8, r12
call fcn.140005bdc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x140107528
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x140107510
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], bp
jne 0x1401074d3
jmp 0x14010756c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140107573
test byte [rcx + 0x1c], 1
je 0x140107573
cmp byte [rcx + 0x19], 2
jb 0x140107573
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
mov r9, rdi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.140005c44
mov rcx, qword [0x140170048]
test rsi, rsi
je 0x140107588
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x1401075aa
test byte [rcx + 0x1c], 1
je 0x1401075aa
cmp byte [rcx + 0x19], 4
jb 0x1401075aa
mov rcx, qword [rcx + 0x10]
mov edx, 0x3c
mov r8, r12
call fcn.140004c54
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret