joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1da0
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x2f], rax
and dword [rbp - 0x25], 0
mov rbx, rcx
and dword [rbp - 0x29], 0
lea rcx, [rbp - 0x39]
mov rdi, r9
mov dword [rbp - 0x39], 0x67452301
mov r14d, r8d
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
call fcn.1400d6878
mov esi, 8
lea rdx, [rbp - 0x29]
mov r8d, esi
lea rcx, [rbp + 0x27]
call fcn.1400d6ee0
mov r9d, dword [rbp - 0x29]
lea eax, [rsi + 0x30]
shr r9d, 3
lea r8d, [rsi + 0x70]
and r9d, 0x3f
lea rdx, [0x14017ba10]
sub eax, r9d
lea rcx, [rbp - 0x39]
sub r8d, r9d
cmp r9d, 0x38
cmovb r8d, eax
call fcn.1400d6878
mov r8d, esi
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call fcn.1400d6878
mov esi, 0x10
lea rdx, [rbp - 0x39]
mov r8d, esi
mov rcx, rdi
call fcn.1400d6ee0
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rsi + 0x48]
call sub.msvcrt.dll_memset
mov rdx, rdi
mov rcx, rbx
sub rdx, rbx
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub rsi, 1
jne 0x1400c1e79
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x1400c1f16
test byte [rcx + 0x1c], 4
je 0x1400c1ed9
cmp byte [rcx + 0x19], 5
jb 0x1400c1ed9
mov eax, dword [rdi + 0xc]
mov edx, 0x1f5
mov rcx, qword [rcx + 0x10]
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
call fcn.1400b2e6c
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x1400c1f16
test byte [rcx + 0x1c], 4
je 0x1400c1f16
cmp byte [rcx + 0x19], 5
jb 0x1400c1f16
mov eax, dword [rbx + 0xc]
mov edx, 0x1f6
mov rcx, qword [rcx + 0x10]
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400b2e6c
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400c1f38
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x40
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x1400c1fa5
test byte [rcx + 0x1c], 4
je 0x1400c1fa5
cmp byte [rcx + 0x19], 5
jb 0x1400c1fa5
mov eax, dword [r9 + 0x14]
mov edx, 0x1f7
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x28], rsi
call fcn.1400b38e8
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400c2051
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
jne 0x1400c201c
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c2095
test byte [rcx + 0x1c], 4
je 0x1400c2095
cmp byte [rcx + 0x19], 5
jb 0x1400c2095
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x1f8
call fcn.140004c10
jmp 0x1400c2095
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c204c
test byte [rcx + 0x1c], 4
je 0x1400c204c
cmp byte [rcx + 0x19], 2
jb 0x1400c204c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x1f9
mov r9d, edi
call fcn.140004c3c
mov qword [rbx], rdi
jmp 0x1400c2081
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c207e
test byte [rcx + 0x1c], 4
je 0x1400c207e
cmp byte [rcx + 0x19], 5
jb 0x1400c207e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x1fa
call fcn.140004c10
mov rsi, rdi
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x1400c23e8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x40
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x1400c2455
test byte [rcx + 0x1c], 4
je 0x1400c2455
cmp byte [rcx + 0x19], 5
jb 0x1400c2455
mov eax, dword [r9 + 0x14]
mov edx, 0x1fd
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x28], rsi
call fcn.1400b38e8
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1400c2501
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
jne 0x1400c24cc
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c2545
test byte [rcx + 0x1c], 4
je 0x1400c2545
cmp byte [rcx + 0x19], 5
jb 0x1400c2545
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x1fe
call fcn.140004c10
jmp 0x1400c2545
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c24fc
test byte [rcx + 0x1c], 4
je 0x1400c24fc
cmp byte [rcx + 0x19], 2
jb 0x1400c24fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x1ff
mov r9d, edi
call fcn.140004c3c
mov qword [rbx], rdi
jmp 0x1400c2531
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400c252e
test byte [rcx + 0x1c], 4
je 0x1400c252e
cmp byte [rcx + 0x19], 5
jb 0x1400c252e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d3e8]
mov edx, 0x200
call fcn.140004c10
mov rsi, rdi
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x1400d5cf8
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400d5d21
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]
Function at 0x1400d7150
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 [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x1400d71a9
test byte [rcx + 0x1c], 4
je 0x1400d71a9
cmp byte [rcx + 0x19], 4
jb 0x1400d71a9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d948]
mov edx, 0xa
call fcn.140004c10
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 0x1400d71f7
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 [0x14017b048]
cmp rcx, r15
je 0x1400d732b
test byte [rcx + 0x1c], 4
je 0x1400d7298
cmp byte [rcx + 0x19], 4
jb 0x1400d7298
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x14015d948]
call fcn.1400b2e10
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400d732b
test byte [rcx + 0x1c], 4
je 0x1400d72d3
cmp byte [rcx + 0x19], 4
jb 0x1400d72d3
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.1400d7014
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400d732b
test byte [rcx + 0x1c], 4
je 0x1400d7305
cmp byte [rcx + 0x19], 4
jb 0x1400d7305
movzx r9d, byte [rbx + 0x70]
lea r8, [0x14015d948]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400d732b
test byte [rcx + 0x1c], 4
je 0x1400d732b
cmp byte [rcx + 0x19], 4
jb 0x1400d732b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d948]
mov edx, 0xe
call fcn.140004c10
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 0x1400edeec
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]
nop dword [rax + rax]
xor r14d, r14d
mov ebp, eax
test eax, eax
jne 0x1400edf40
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.14014c5f0
mov rcx, qword [rdi + 0x10]
mov r8d, ebp
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400edf92
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
test rbx, rbx
jne 0x1400edfa5
mov rax, qword [rdi + 0x10]
mov word [rax], r14w
mov dword [rdi + 0x18], r14d
jmp 0x1400edfd9
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x1400edfa5
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.1400e6960
test eax, eax
jns 0x1400edfd9
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 0x1400f11e8
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 0x1400f1223
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.140087b08
mov ebx, 0x80004005
jmp 0x1400f1281
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400f1233
mov ebx, 0x8000ffff
jmp 0x1400f1281
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]
nop dword [rax + rax]
test eax, eax
je 0x1400f1274
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400f1281
cmp dword [rsp + 0x68], 4
jne 0x1400f121c
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 0x1400fe390
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.14008efa8
mov ebx, eax
test eax, eax
js 0x1400fe40a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe3df
mov byte [rsi], 1
jmp 0x1400fe406
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
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 0x1400fe445
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400fe445
test byte [rcx + 0x1c], 1
je 0x1400fe445
cmp byte [rcx + 0x19], 2
jb 0x1400fe445
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005d40
cmp qword [rsp + 0x48], r14
je 0x1400fe45d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
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 0x1400fe47c
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe4af
test al, 0x10
jne 0x1400fe508
mov byte [rdi], 1
jmp 0x1400fe508
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400fe508
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400fe508
test byte [rcx + 0x1c], 1
je 0x1400fe508
cmp byte [rcx + 0x19], 2
jb 0x1400fe508
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400fe524
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 [0x14017b048]
lea r14, [0x14017b048]
cmp rcx, r14
je 0x1400fe573
test byte [rcx + 0x1c], 1
je 0x1400fe573
cmp byte [rcx + 0x19], 5
jb 0x1400fe573
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xc
call fcn.140004c10
test rdi, rdi
jne 0x1400fe590
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140087b08
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe5ea
bt eax, 0xa
jae 0x1400fe63c
mov byte [rdi], 1
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe643
cmp byte [rcx + 0x19], 4
jb 0x1400fe643
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140162628]
call fcn.140005cd0
jmp 0x1400fe63c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400fe63c
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe643
cmp byte [rcx + 0x19], 2
jb 0x1400fe643
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe669
cmp byte [rcx + 0x19], 5
jb 0x1400fe669
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xf
call fcn.140004c10
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 0x1400ff6e8
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 [0x14017b048]
lea r15, [0x14017b048]
lea r12, [0x140162628]
cmp rcx, r15
je 0x1400ff741
test byte [rcx + 0x1c], 1
je 0x1400ff741
cmp byte [rcx + 0x19], 4
jb 0x1400ff741
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r8, r12
call fcn.140004c10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400ff7ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400ff7ce
test byte [rcx + 0x1c], 1
je 0x1400ff7ac
cmp byte [rcx + 0x19], 2
jb 0x1400ff7ac
mov rcx, qword [rcx + 0x10]
mov edx, 0x30
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140005d40
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400ff7ce
test byte [rcx + 0x1c], 1
je 0x1400ff7ce
cmp byte [rcx + 0x19], 4
jb 0x1400ff7ce
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r12
call fcn.140004c10
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.140092088
mov ebx, eax
test eax, eax
js 0x1400ff7a5
test bpl, bpl
je 0x1400ff847
bt edi, 0xb
jae 0x1400ff87e
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400ff83d
test byte [rcx + 0x1c], 1
je 0x1400ff83d
cmp byte [rcx + 0x19], 2
jb 0x1400ff83d
mov rcx, qword [rcx + 0x10]
mov edx, 0x31
mov r9, rsi
mov r8, r12
call fcn.140005cd0
mov rcx, qword [0x14017b048]
mov ebx, 0x80780066
jmp 0x1400ff7ac
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x1400ff885
test byte [rcx + 0x1c], 1
je 0x1400ff885
cmp byte [rcx + 0x19], 4
jb 0x1400ff885
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.140005d40
mov rcx, qword [0x14017b048]
bt edi, 0xe
jae 0x1400ff7ac
cmp rcx, r15
je 0x1400ff8bb
test byte [rcx + 0x1c], 1
je 0x1400ff8bb
cmp byte [rcx + 0x19], 2
jb 0x1400ff8bb
mov rcx, qword [rcx + 0x10]
mov edx, 0x33
mov r9, rsi
mov r8, r12
call fcn.140005cd0
mov rcx, qword [0x14017b048]
mov ebx, 0x80780067
jmp 0x1400ff7ac
Function at 0x140100484
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1401004fb
mov rcx, qword [0x14017b048]
lea rbx, [0x14017b048]
cmp rcx, rbx
je 0x1401004f1
test byte [rcx + 0x1c], 1
je 0x1401004f1
cmp byte [rcx + 0x19], 4
jb 0x1401004f1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0x48
mov r9, rsi
call fcn.140005cd0
mov edi, 1
jmp 0x14010062a
mov rax, qword [0x14017b048]
lea rbx, [0x14017b048]
cmp rax, rbx
je 0x140100545
test byte [rax + 0x1c], 1
je 0x140100545
cmp byte [rax + 0x19], 3
jb 0x140100545
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea r8, [0x140162628]
mov r9d, eax
mov edx, 0x49
mov rcx, qword [rcx + 0x10]
call fcn.140004c3c
mov r9, rdi
mov r8b, r14b
mov dl, r15b
mov rcx, rsi
call fcn.14008cb8c
mov edi, eax
test eax, eax
jns 0x14010059a
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x1401005f9
test byte [rcx + 0x1c], 1
je 0x1401005f9
cmp byte [rcx + 0x19], 2
jb 0x1401005f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0x4a
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005d40
jmp 0x1401005f2
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x1401005f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp rcx, rbx
je 0x1401005f9
test byte [rcx + 0x1c], 1
je 0x1401005f9
cmp byte [rcx + 0x19], 3
jb 0x1401005f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005d40
mov rcx, qword [0x14017b048]
test edi, edi
jns 0x14010062a
cmp rcx, rbx
je 0x14010062a
test byte [rcx + 0x1c], 1
je 0x14010062a
cmp byte [rcx + 0x19], 2
jb 0x14010062a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0x4c
mov dword [rsp + 0x20], edi
mov r9, rsi
call fcn.140005d40
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 0x140100650
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1401006b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
lea rdx, [0x14017b048]
cmp rcx, rdx
je 0x1401006b9
test byte [rcx + 0x1c], 1
je 0x1401006b9
cmp byte [rcx + 0x19], 3
jb 0x1401006b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0x4d
mov r9d, eax
call fcn.140004c3c
jmp 0x1401006b9
test al, 0x10
je 0x1401006b9
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14010dd98
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]
nop dword [rax + rax]
lea rbp, [0x14017b048]
sub eax, 2
je 0x14010de46
sub eax, 1
je 0x14010ddea
cmp eax, 2
jne 0x14010de88
mov dword [rdi], 1
jmp 0x14010de88
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14010da64
mov ebx, eax
test eax, eax
jns 0x14010de37
mov rcx, qword [0x14017b048]
cmp rcx, rbp
je 0x14010de31
test byte [rcx + 0x1c], 1
je 0x14010de31
cmp byte [rcx + 0x19], 3
jb 0x14010de31
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401635b0]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140005d40
xor ebx, ebx
xor al, al
jmp 0x14010de3b
mov al, byte [rsp + 0x48]
neg al
sbb eax, eax
neg eax
add eax, 2
jmp 0x14010de4b
mov eax, 5
mov dword [rdi], eax
test ebx, ebx
jns 0x14010de88
mov rcx, qword [0x14017b048]
cmp rcx, rbp
je 0x14010de88
test dword [rcx + 0x1c], 0x200
je 0x14010de88
cmp byte [rcx + 0x19], 3
jb 0x14010de88
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401635b0]
mov edx, 0xf
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret