joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400beed0
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 [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x1400bef29
test byte [rcx + 0x1c], 4
je 0x1400bef29
cmp byte [rcx + 0x19], 4
jb 0x1400bef29
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e198]
mov edx, 0xc4
call fcn.140004968
mov r8d, dword [rbx + 0x48]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbx + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rax, qword [0x14016d090]
cmp rax, r12
je 0x1400bef7e
test byte [rax + 0x1c], 4
je 0x1400bef7e
cmp byte [rax + 0x19], 4
jb 0x1400bef7e
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x14016d090]
lea r8, [0x14014e198]
mov r9d, eax
mov edx, 0xc5
mov rcx, qword [rcx + 0x10]
call fcn.140004988
cmp byte [rbx + 0x10], 0
je 0x1400bf08e
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 0x1400befca
mov r8d, eax
mov eax, dword [rdx]
lea rdx, [rdx + 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x1400befb8
cmp dword [rbx + 0x4c], 1
je 0x1400befda
cmp dword [rbx + 0x4c], 4
jne 0x1400bf087
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.1400ae62c
test eax, eax
jne 0x1400bf11f
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.1400ae62c
test eax, eax
jne 0x1400bf11f
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.1400aee0c
test eax, eax
jne 0x1400bf11f
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.1400c0a8c
test eax, eax
jne 0x1400bf11f
xor eax, eax
jmp 0x1400bf11f
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400c0bc4
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400bf11d
test byte [rcx + 0x1c], 4
je 0x1400bf0f7
cmp byte [rcx + 0x19], 4
jb 0x1400bf0f7
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x14016d090]
lea r8, [0x14014e198]
mov r9d, eax
mov edx, 0xc6
mov rcx, qword [rcx + 0x10]
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400bf11d
test byte [rcx + 0x1c], 4
je 0x1400bf11d
cmp byte [rcx + 0x19], 4
jb 0x1400bf11d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e198]
mov edx, 0xc7
call fcn.140004968
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 0x1400bf13c
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 [0x14016d090]
lea r12, [0x14016d090]
cmp rcx, r12
je 0x1400bf195
test byte [rcx + 0x1c], 4
je 0x1400bf195
cmp byte [rcx + 0x19], 4
jb 0x1400bf195
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e198]
mov edx, 0xc4
call fcn.140004968
mov r8d, dword [rbx + 0x48]
lea rcx, [rsp + 0x40]
mov rdx, qword [rbx + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitializeBitMap]
mov rax, qword [0x14016d090]
cmp rax, r12
je 0x1400bf1ea
test byte [rax + 0x1c], 4
je 0x1400bf1ea
cmp byte [rax + 0x19], 4
jb 0x1400bf1ea
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x14016d090]
lea r8, [0x14014e198]
mov r9d, eax
mov edx, 0xc5
mov rcx, qword [rcx + 0x10]
call fcn.140004988
cmp byte [rbx + 0x10], 0
je 0x1400bf2fa
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 0x1400bf236
mov r8d, eax
mov eax, dword [rdx]
lea rdx, [rdx + 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x1400bf224
cmp dword [rbx + 0x4c], 1
je 0x1400bf246
cmp dword [rbx + 0x4c], 4
jne 0x1400bf2f3
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.1400ae62c
test eax, eax
jne 0x1400bf38b
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.1400ae62c
test eax, eax
jne 0x1400bf38b
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.1400aee0c
test eax, eax
jne 0x1400bf38b
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.1400c0a8c
test eax, eax
jne 0x1400bf38b
xor eax, eax
jmp 0x1400bf38b
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400c1108
mov ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400bf389
test byte [rcx + 0x1c], 4
je 0x1400bf363
cmp byte [rcx + 0x19], 4
jb 0x1400bf363
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlNumberOfSetBits]
mov rcx, qword [0x14016d090]
lea r8, [0x14014e198]
mov r9d, eax
mov edx, 0xc6
mov rcx, qword [rcx + 0x10]
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x1400bf389
test byte [rcx + 0x1c], 4
je 0x1400bf389
cmp byte [rcx + 0x19], 4
jb 0x1400bf389
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e198]
mov edx, 0xc7
call fcn.140004968
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 0x1400cdd98
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 [0x14016d090]
lea r15, [0x14016d090]
cmp rcx, r15
je 0x1400cddf1
test byte [rcx + 0x1c], 4
je 0x1400cddf1
cmp byte [rcx + 0x19], 4
jb 0x1400cddf1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e6c8]
mov edx, 0xa
call fcn.140004968
mov rax, qword [rsp + 0x70]
mov ecx, 0xffff
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
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
mov dword [rbx + 0x3c], r9d
cqo
mov dword [rbx + 0x40], r10d
and rdx, rcx
movdqu xmmword [rbx + 0x20], xmm1
lea r8, [rdx + rax]
and r8, rcx
lea eax, [rcx + 1]
xor ecx, ecx
sub r8, rdx
mov qword [rbx + 0x34], rcx
test r8d, r8d
mov qword [rbx + 0x48], rcx
mov rcx, qword [rsp + 0x80]
cmove r8d, 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 qword [rbx + 0x50], rcx
mov ecx, dword [rsp + 0x88]
mov byte [rbx + 0x70], al
mov dword [rbx + 0x30], r8d
mov dword [rbx + 0x58], ecx
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400cdf6d
test byte [rcx + 0x1c], 4
je 0x1400cdeda
cmp byte [rcx + 0x19], 4
jb 0x1400cdeda
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x14014e6c8]
call fcn.1400ab424
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400cdf6d
test byte [rcx + 0x1c], 4
je 0x1400cdf15
cmp byte [rcx + 0x19], 4
jb 0x1400cdf15
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.1400cdc18
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400cdf6d
test byte [rcx + 0x1c], 4
je 0x1400cdf47
cmp byte [rcx + 0x19], 4
jb 0x1400cdf47
movzx r9d, byte [rbx + 0x70]
lea r8, [0x14014e6c8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400cdf6d
test byte [rcx + 0x1c], 4
je 0x1400cdf6d
cmp byte [rcx + 0x19], 4
jb 0x1400cdf6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e6c8]
mov edx, 0xe
call fcn.140004968
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 0x1400e450c
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 0x1400e4554
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.14013d58c
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 0x1400e459a
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400e45ad
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400e45db
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400e45ad
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400dd61c
test eax, eax
jns 0x1400e45db
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 0x1400e74f8
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 0x1400e7533
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.140081b60
mov ebx, 0x80004005
jmp 0x1400e758b
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400e7543
mov ebx, 0x8000ffff
jmp 0x1400e758b
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 0x1400e757e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400e758b
cmp dword [rsp + 0x68], 4
jne 0x1400e752c
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 0x1400f46bc
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.140088888
mov ebx, eax
test eax, eax
js 0x1400f472a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f4705
mov byte [rsi], 1
jmp 0x1400f4726
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 0x1400f4765
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f4765
test byte [rcx + 0x1c], 1
je 0x1400f4765
cmp byte [rcx + 0x19], 2
jb 0x1400f4765
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400058c8
cmp qword [rsp + 0x48], r14
je 0x1400f4777
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 0x1400f4790
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 0x1400f47bd
test al, 0x10
jne 0x1400f4810
mov byte [rdi], 1
jmp 0x1400f4810
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f4810
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x1400f4810
test byte [rcx + 0x1c], 1
je 0x1400f4810
cmp byte [rcx + 0x19], 2
jb 0x1400f4810
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400058c8
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f4824
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 [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x1400f4873
test byte [rcx + 0x1c], 1
je 0x1400f4873
cmp byte [rcx + 0x19], 5
jb 0x1400f4873
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0xc
call fcn.140004968
test rdi, rdi
jne 0x1400f4890
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140081b60
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f48e4
bt eax, 0xa
jae 0x1400f4930
mov byte [rdi], 1
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1400f495d
test byte [rcx + 0x1c], 1
je 0x1400f4937
cmp byte [rcx + 0x19], 4
jb 0x1400f4937
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x1401533a8]
call fcn.140005868
jmp 0x1400f4930
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400f4930
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1400f495d
test byte [rcx + 0x1c], 1
je 0x1400f4937
cmp byte [rcx + 0x19], 2
jb 0x1400f4937
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400058c8
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1400f495d
test byte [rcx + 0x1c], 1
je 0x1400f495d
cmp byte [rcx + 0x19], 5
jb 0x1400f495d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0xf
call fcn.140004968
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 0x1400f589c
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 [0x14016d090]
lea r15, [0x14016d090]
lea r12, [0x1401533a8]
cmp rcx, r15
je 0x1400f58f5
test byte [rcx + 0x1c], 1
je 0x1400f58f5
cmp byte [rcx + 0x19], 4
jb 0x1400f58f5
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.140004968
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400f5991
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400f5976
test byte [rcx + 0x1c], 1
je 0x1400f5954
cmp byte [rcx + 0x19], 2
jb 0x1400f5954
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.1400058c8
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400f5976
test byte [rcx + 0x1c], 1
je 0x1400f5976
cmp byte [rcx + 0x19], 4
jb 0x1400f5976
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.140004968
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.14008b860
mov ebx, eax
test eax, eax
js 0x1400f594d
test bpl, bpl
je 0x1400f59ee
bt edi, 0xb
jae 0x1400f5a25
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400f59e4
test byte [rcx + 0x1c], 1
je 0x1400f59e4
cmp byte [rcx + 0x19], 2
jb 0x1400f59e4
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140005868
mov rcx, qword [0x14016d090]
mov ebx, 0x80780066
jmp 0x1400f5954
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1400f5a2c
test byte [rcx + 0x1c], 1
je 0x1400f5a2c
cmp byte [rcx + 0x19], 4
jb 0x1400f5a2c
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.1400058c8
mov rcx, qword [0x14016d090]
bt edi, 0xe
jae 0x1400f5954
cmp rcx, r15
je 0x1400f5a62
test byte [rcx + 0x1c], 1
je 0x1400f5a62
cmp byte [rcx + 0x19], 2
jb 0x1400f5a62
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140005868
mov rcx, qword [0x14016d090]
mov ebx, 0x80780067
jmp 0x1400f5954
Function at 0x1400f65a4
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 0x1400f6615
mov rcx, qword [0x14016d090]
lea rbx, [0x14016d090]
cmp rcx, rbx
je 0x1400f660b
test byte [rcx + 0x1c], 1
je 0x1400f660b
cmp byte [rcx + 0x19], 4
jb 0x1400f660b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x48
mov r9, rsi
call fcn.140005868
mov edi, 1
jmp 0x1400f672a
mov rax, qword [0x14016d090]
lea rbx, [0x14016d090]
cmp rax, rbx
je 0x1400f6659
test byte [rax + 0x1c], 1
je 0x1400f6659
cmp byte [rax + 0x19], 3
jb 0x1400f6659
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016d090]
lea r8, [0x1401533a8]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.140004988
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.14008668c
mov edi, eax
test eax, eax
jns 0x1400f66a6
mov rcx, qword [0x14016d090]
cmp rcx, rbx
je 0x1400f66f9
test byte [rcx + 0x1c], 1
je 0x1400f66f9
cmp byte [rcx + 0x19], 2
jb 0x1400f66f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.1400058c8
jmp 0x1400f66f2
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400f66f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016d090]
cmp rcx, rbx
je 0x1400f66f9
test byte [rcx + 0x1c], 1
je 0x1400f66f9
cmp byte [rcx + 0x19], 3
jb 0x1400f66f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.1400058c8
mov rcx, qword [0x14016d090]
test edi, edi
jns 0x1400f672a
cmp rcx, rbx
je 0x1400f672a
test byte [rcx + 0x1c], 1
je 0x1400f672a
cmp byte [rcx + 0x19], 2
jb 0x1400f672a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.1400058c8
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 0x1400f6748
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 0x1400f679e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016d090]
lea rdx, [0x14016d090]
cmp rcx, rdx
je 0x1400f67a5
test byte [rcx + 0x1c], 1
je 0x1400f67a5
cmp byte [rcx + 0x19], 3
jb 0x1400f67a5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401533a8]
mov edx, 0x4d
mov r9d, eax
call fcn.140004988
jmp 0x1400f67a5
test al, 0x10
je 0x1400f67a5
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401031b0
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, [0x14016d090]
sub eax, 2
je 0x14010325a
sub eax, 1
je 0x1401031fc
cmp eax, 2
jne 0x14010329b
mov dword [rdi], 1
jmp 0x14010329b
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140102ec0
mov ebx, eax
test eax, eax
jns 0x140103249
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x140103243
test byte [rcx + 0x1c], 1
je 0x140103243
cmp byte [rcx + 0x19], 3
jb 0x140103243
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154330]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.1400058c8
xor ebx, ebx
xor al, al
jmp 0x14010324d
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
mov dword [rdi], eax
jmp 0x140103260
mov dword [rdi], 5
test ebx, ebx
jns 0x14010329b
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x14010329b
test dword [rcx + 0x1c], 0x200
je 0x14010329b
cmp byte [rcx + 0x19], 3
jb 0x14010329b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140154330]
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400058c8
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret