joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064ac0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x65
call fcn.140039d50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140040670
test esi, esi
js 0x140064bd1
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140042c20
test al, al
jne 0x140064bf0
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140064bdd
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x140064bd8
lea rcx, [rsp + 0x30]
call fcn.140042cb0
lea rcx, [rsp + 0x50]
call fcn.1400408d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a29f0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140064ba4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140064b9a
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14012a710
jmp 0x140064b6a

Function at 0x140064c10
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x9d
call fcn.140039d50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140040670
test esi, esi
js 0x140064d1a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140042c20
test al, al
jne 0x140064d21
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140042cb0
lea rcx, [rsp + 0x50]
call fcn.1400408d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a29f0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140064ced
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14012a710
jmp 0x140064cb2
Function at 0x140064d40
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], r14
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xb2
call fcn.140039d50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140040670
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140042c20
test al, al
jne 0x140064e20
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140042cb0
lea rcx, [rsp + 0x50]
call fcn.1400408d0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a29f0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14012a710
jmp 0x140064dcd

Function at 0x140064e40
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], r15
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xbf
call fcn.140039d50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140040670
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140042c20
test al, al
jne 0x140064f6c
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140064f33
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140064f33
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140064f68
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140042cb0
lea rcx, [rsp + 0x50]
call fcn.1400408d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140064f33
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.14012a710
jmp 0x140064ed6
Function at 0x1400655e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp 0x1400652e0

Function at 0x1400655f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], rax
movaps xmm6, xmmword [0x140161e70]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2ba
call fcn.140039d50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140040670
call fcn.14007d9b0
test al, al
jne 0x1400656bf
cmp byte [rsi + 0x17], 0
jns 0x140065681
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.1400408d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x1400656da
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.14012a960
test eax, eax
jmp 0x14006568d

Function at 0x1400656f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x2ca
call fcn.140039d50
xor ebp, ebp
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140040670
cmp byte [rdi + 0x17], 0
jns 0x140065780
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400657ba
lea rcx, [rsp + 0x60]
call fcn.1400408d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test al, 0x10
cmove esi, ebx
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rsi, [rsp + 0x40]
mov qword [rsi], rbx
mov rcx, rsi
mov rdx, rax
call fcn.14002172a
mov rax, qword [rsi]
inc rax
test rax, 0xfffffffffffffffe
setne bpl
cmp rax, 2
jb 0x14006578e
call fcn.140039d70
mov rcx, qword [rsp + 0x40]
call fcn.140035a60
jmp 0x14006578e
Function at 0x140065840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2e9
call fcn.140039d50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140040670
cmp byte [rdi + 0x17], 0
jns 0x1400658c0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.1400408d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a29f0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140065900
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a4b40
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14006599f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400c5734
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14003a010
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140069470
mov rcx, rsi
mov rdx, r14
call fcn.14003a260
mov rcx, r14
call fcn.14003a160
mov rcx, rbx
call fcn.14003a160
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400659d0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a4b40
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140065a7e
cmp word [rsp + 0x70], 0
je 0x140065a7e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400c5734
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14003a010
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400a29f0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140039ff0
lea rcx, [rsp + 0x40]
call fcn.14003a160
jmp 0x140065a47
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140039ee0
mov rcx, rdi
call fcn.140065900
test al, al
jne 0x140065a65
lea rax, [0x14016b6e8]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14003a010
jmp 0x140065a72
Function at 0x140065ad0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x40], r15
movaps xmm6, xmmword [0x140161e70]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3a1
call fcn.140039d50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140040670
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140065b63
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140065baf
mov bl, 1
test al, 0x10
je 0x140065c70
lea rcx, [rsp + 0x60]
call fcn.1400408d0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x30], r15
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.14003b280
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x140065bd7
and r8d, 0x7f
mov rdx, rdi
jmp 0x140065bde
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.140021646
movzx r8d, byte [rsp + 0x37]
test r8b, r8b
js 0x140065bf9
and r8d, 0x7f
jmp 0x140065c03
mov r8, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
lea r15, [rsp + 0x40]
mov rcx, r15
mov rdx, r14
call fcn.140021646
mov rax, qword [r15 + 8]
cmp rax, qword [rsp + 0x58]
je 0x140065c8d
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140065ad0
test al, al
je 0x140065cd0
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140065c53
lea rcx, [rsp + 0x20]
call fcn.14003a160
jmp 0x140065b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140065cd7
mov rcx, rdi
call fcn.140065840
test al, al
jne 0x140065c44
jmp 0x140065cd7
test rsi, rsi
je 0x140065c7b
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140065b7b
test rax, rax
je 0x140065cb7
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x140065c1e
inc r8
cmp rax, r8
jne 0x140065c9f
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140065cc8
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140065c44
test rsi, rsi
je 0x140065cc8
mov ecx, ebp
call fcn.1400650c0
jmp 0x140065cc6
Function at 0x140065e50
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14016b766]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x4ee
call fcn.140039d50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140040670
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a4b40
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140065f4f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400c5734
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14003a010
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140069470
mov rcx, rsi
mov rdx, r14
call fcn.14003a260
mov rcx, r14
call fcn.14003a160
mov rcx, rbx
call fcn.14003a160
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.1400408d0
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140065f90
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x14016b77b]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x4fe
call fcn.140039d50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140040670
cmp byte [rdi + 0x17], 0
jns 0x140066010
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400408d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140066050
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400a4b40
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.140066680
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140161e70]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14009eab0
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400660e6
and eax, 0x7f
jmp 0x1400660eb
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14006612d
lea rcx, [rsp + 0x30]
call fcn.14003a160
lea rcx, [rsp + 0x298]
call fcn.1400667d0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400a29f0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400a4b40
mov rcx, r15
mov rdx, r14
call fcn.140066840
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140066263
mov rcx, r14
call fcn.140066600
test al, al
jne 0x1400661ef
test sil, 2
jne 0x14006623a
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x140066191
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x140066222
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140055c20
mov rcx, r15
mov rdx, r14
call fcn.14009eab0
mov rcx, rbx
mov rdx, r14
call fcn.14003a260
mov rcx, r14
call fcn.14003a160
movzx eax, byte [rsp + 0x47]
test al, al
js 0x1400661d9
and eax, 0x7f
jmp 0x1400661de
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x1400660f0
jmp 0x140066144
xor ebp, ebp
test sil, 1
je 0x14006619e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov r8d, esi
call fcn.140066050
mov ebp, eax
test eax, eax
jne 0x14006619e
cmp byte [rsp + 0x47], 0
jns 0x1400662ba
jmp 0x1400662b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14006619e
call fcn.140041ff0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.14010f110
xor ebp, ebp
test al, al
jne 0x14006619e
jmp 0x140066222
test sil, 1
jne 0x14006627b
lea rcx, [rsp + 0x48]
call fcn.140066600
test al, al
jne 0x14006629c
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
js 0x140066289
lea rcx, [rsp + 0x30]
jmp 0x14006628e
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14006616c
lea rcx, [rsp + 0x48]
call fcn.140066600
test al, al
je 0x140066178
jmp 0x1400662cf
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x140066196
xor ebp, ebp
jmp 0x14006619e
Function at 0x140067f10
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140067fd0
mov eax, dword [rsi]
mov dword [0x14019c0b8], eax
test al, 1
jne 0x140067f31
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401a8a98]
test rcx, rcx
jne 0x140067f4b
mov rcx, qword [0x1401a8a70]
test rcx, rcx
je 0x140067f6f
jmp 0x140067f91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a8a98], 0
mov rcx, qword [0x1401a8a70]
test rcx, rcx
jne 0x140067f91
and byte [0x14019c0b8], 0xfe
mov ecx, 0x18
call fcn.1400a1490
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401a8a70], rax
mov rdx, qword [rsi + 8]
call fcn.140068670
cmp dword [rsi + 0x14], 0
jne 0x140067fb6
mov rcx, qword [0x1401a8a70]
cmp byte [rcx + 0x17], 0
jns 0x140067fb0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400dafc0
Function at 0x14006a4b0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.14006ec80
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14006a5b5
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14006a5d5
lea rdx, [0x14016bc3a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006a5d1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1401ba008]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.14006c530
mov rcx, rsi
mov rdx, r14
call fcn.140069f80
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14006a5a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x50]
mov qword [rcx], r14
call fcn.140021a76
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a29f0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x14006a55b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14006a558

Function at 0x14006d679
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14018e028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a4b40
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006d6f4
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.14006d605
test al, al
jne 0x14006d721
add rbx, 8
cmp rbx, 0x18
jne 0x14006d6c1
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400a29f0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x14006d700