joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064640
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x18e
call fcn.140054e50
lea rcx, [rsp + 0x48]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1400646a1
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x1400646c8
test al, al
jns 0x1400646b1
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x48]
call fcn.14009cfd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140180700
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400646f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x498], rax
lea rdx, [0x1401bf933]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19a
call fcn.140054e50
lea rcx, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140064758
mov rdx, qword [rbx]
lea rsi, [rsp + 0x290]
mov r8d, 0x104
mov rcx, rsi
call fcn.14005ea30
mov rcx, rsi
call fcn.140011890
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140064782
mov rdx, qword [rdi]
lea rsi, [rsp + 0x80]
mov r8d, 0x104
mov rcx, rsi
call fcn.14005ea30
mov rcx, rsi
call fcn.140011890
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400647ac
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400647b8
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov bpl, 1
test eax, eax
jne 0x140064807
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140066d70
mov esi, eax
cmp byte [rdi + 0x17], 0
jns 0x1400647ee
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400647f7
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140064831
lea rcx, [rsp + 0x30]
call fcn.14009cfd0
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.140180700
mov eax, ebp
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
test r14, r14
jne 0x14006483a
xor ebp, ebp
jmp 0x140064807
cmp esi, 0xfffffffc
jne 0x140064846
call fcn.140066bd0
mov esi, eax
mov dword [r14], esi
jmp 0x140064836
Function at 0x140064e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1cd
call fcn.140054e50
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rsi + 0x17], 0
jns 0x140064e5c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14009cfd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140180700
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1df
call fcn.140054e50
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rsi + 0x17], 0
jns 0x140064eec
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.14009cfd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140064f30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140064fef
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x140064feb
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140064f7e
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400505a0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140052db0
mov rcx, rsi
mov rdx, rbx
call fcn.1400506c0
mov rcx, rbx
call fcn.140050690
mov rcx, rdi
call fcn.140050690
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140064f8a
xor esi, esi
jmp 0x140064fce
Function at 0x140065000
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
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 0x140065088
cmp word [rsp + 0x60], 0
je 0x140065088
mov qword [rsp + 0x50], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14006504e
lea rdx, [rsp + 0x50]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.1400505a0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140180700
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140050550
mov rcx, rdi
call fcn.140064f30
test al, al
je 0x1400650b0
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140050580
jmp 0x1400650cf
lea rax, [0x1401bf95c]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400505a0
lea rcx, [rsp + 0x38]
call fcn.140050690
jmp 0x14006506b
Function at 0x140065870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov r9d, 0x269
call fcn.140054e50
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400658d9
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006591f
mov bl, 1
test al, 0x10
je 0x140065a13
lea rcx, [rsp + 0x38]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140180700
mov eax, ebx
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140051160
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x14006593f
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14006594f
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x140065a32
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140065870
test al, al
je 0x140065a7c
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x14006598d
lea rcx, [rsp + 0x20]
call fcn.140050690
jmp 0x1400658f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x1400659fd
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x88]
mov rcx, rbp
mov r9d, 0x1df
call fcn.140054e50
lea r15, [rsp + 0xa8]
mov rcx, r15
mov rdx, rbp
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rdi + 0x17], 0
jns 0x1400659e0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r15
call fcn.14009cfd0
cmp edi, 0xffffffff
je 0x1400659fd
and edi, 0x10
jne 0x14006597e
test r12, r12
je 0x140065a0e
mov ecx, r14d
call fcn.140066d70
mov dword [r12], eax
mov ecx, r14d
jmp 0x140065a76
test r12, r12
je 0x140065a20
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400658f1
test rax, rax
je 0x140065a64
test cl, cl
jns 0x140065a40
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x140065a4b
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140065958
inc rdx
cmp rax, rdx
jne 0x140065a4d
test r12, r12
je 0x140065a71
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14006597e
Function at 0x140065cd0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdx, [0x1401bf9ed]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r9d, 0x35d
call fcn.140054e50
lea rcx, [rsp + 0x68]
xor r15d, r15d
mov rdx, rdi
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rbx + 0x17], 0
jns 0x140065d36
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rdi, [rsp + 0x48]
mov qword [rdi], r15
mov rcx, rdi
mov rdx, rax
call fcn.14000b260
mov rcx, qword [rdi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140065e1d
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x44]
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
cmp dword [rdi], esi
mov edi, 0xffffffff
cmove edi, esi
or edi, ecx
mov rcx, qword [rsp + 0x48]
inc rcx
cmp rcx, 2
jae 0x140065dec
lea rcx, [rsp + 0x68]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140180700
mov eax, edi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140054e70
mov r8, qword [rsp + 0xe8]
lea rsi, [rsp + 0x48]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.14006a2c0
mov rcx, qword [rsi]
call fcn.14006a250
mov qword [rsi], 0
jmp 0x140065dc1
mov edi, 0xffffffff
jmp 0x140065db8

Function at 0x140065e30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
lea rdx, [0x1401bf9f7]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x390
call fcn.140054e50
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
mov word [rbx], 0
lea rbx, [rsp + 0xb0]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140065f0e
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x140065f35
xor eax, eax
cmp word [rsp + rax*2 + 0xb2], 0
lea rax, [rax + 1]
jne 0x140065ebb
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400505a0
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140052db0
mov rcx, rsi
mov rdx, rbx
call fcn.1400506c0
mov rcx, rbx
call fcn.140050690
mov rcx, rdi
call fcn.140050690
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14009cfd0
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.140180700
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140065eca
Function at 0x140065f40
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, [0x1401bfa0c]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x3a0
call fcn.140054e50
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rsi + 0x17], 0
jns 0x140065f9c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14009cfd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140180700
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140065fe0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0xb2
call fcn.140054e50
lea rcx, [rsp + 0x48]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
mov rcx, rdi
call fcn.140053000
test al, al
jne 0x14006607d
mov rcx, rsi
call fcn.140053000
test al, al
jne 0x14006607b
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14006605f
mov rax, qword [rdi + 8]
cmp rax, 0x103
ja 0x14006607b
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140066073
mov rax, qword [rsi + 8]
cmp rax, 0x103
jbe 0x1400660a7
xor ebp, ebp
lea rcx, [rsp + 0x48]
call fcn.14009cfd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140180700
mov eax, ebp
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0xbf
call fcn.140054e50
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400b1040
mov eax, dword [0x1402125d4]
mov ecx, dword [0x140214838]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140066152
cmp byte [rsi + 0x17], 0
jns 0x1400660ff
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x14006610c
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140066141
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140066141
mov bpl, 1
test al, 1
je 0x140066143
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140066143
xor ebp, ebp
lea rcx, [rsp + 0x20]
call fcn.1400b1210
jmp 0x14006607d
lea rcx, [0x1402125d4]
call fcn.1401804b0
cmp dword [0x1402125d4], 0xffffffff
jne 0x1400660f6
lea rcx, [rsp + 0x20]
call fcn.1400b1160
lea rcx, [0x1402125d4]
call fcn.140180548
jmp 0x1400660f6
Function at 0x140066190
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140053000
test al, al
jne 0x140053421
mov rcx, rsi
call fcn.140053000
test al, al
je 0x14005342a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140066190
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x98]
mov rcx, rbx
mov r9d, 0x401
call fcn.140054e50
lea rcx, [rsp + 0x28]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x1400661fa
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x140066335
movzx ecx, byte [rdi + 0x17]
mov rdx, rcx
test cl, cl
jns 0x140066216
mov rdx, qword [rdi + 8]
cmp rdx, 0x103
ja 0x140066333
mov rdx, rdi
test cl, cl
jns 0x14006622d
mov rdx, qword [rdi]
mov rcx, rsi
test al, al
jns 0x140066237
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x140066335
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x78]
mov rcx, rbx
mov r9d, 0x1df
call fcn.140054e50
lea rbp, [rsp + 0x98]
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006629a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14009cfd0
cmp ebx, 0xffffffff
je 0x14006632a
and ebx, 0x10
je 0x14006632a
lea rdx, str.CopyAndDeleteDirectory
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x78]
mov rcx, rbx
mov r9d, 0x424
call fcn.140054e50
lea rcx, [rsp + 0x98]
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140064860
test al, al
je 0x14006631d
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.1400641c0
test al, al
je 0x14006631d
lea rcx, [rsp + 0x98]
call fcn.14009cfd0
jmp 0x140066335
lea rcx, [rsp + 0x98]
call fcn.14009cfd0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140180700
mov eax, ebp
add rsp, 0xf0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140066360
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 r14d, r8d
mov rsi, rdx
mov rdx, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov qword [rsp + 0x20], rsi
xor ebx, ebx
lea rbp, [rsp + 0x298]
mov rcx, rbp
xor r8d, r8d
mov r9d, 3
call fcn.14006ba50
lea rdi, [rsp + 0x30]
mov rcx, rbp
mov rdx, rdi
call fcn.14006bc30
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400663cb
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14006648a
lea r15, [rsp + 0x298]
lea rbp, [rsp + 0x48]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
mov rcx, r15
mov rdx, rbp
call fcn.14006bba0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400664c7
mov rcx, rbp
call fcn.14006b8d0
test al, al
jne 0x1400664e9
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140066422
mov rcx, qword [rsp + 0x30]
call r12
test eax, eax
jne 0x14006654f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebx, eax
test r13d, r13d
cmovne ebx, r13d
mov rcx, rbp
call fcn.140011890
mov rcx, r15
mov rdx, rbp
call fcn.14006bc30
mov rcx, rdi
mov rdx, rbp
call fcn.1400506c0
mov rcx, rbp
call fcn.140050690
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14006647e
mov rax, qword [rsp + 0x38]
mov r13d, ebx
test rax, rax
jne 0x1400663eb
lea rcx, [rsp + 0x30]
call fcn.140050690
lea rcx, [rsp + 0x298]
call fcn.14006bb30
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140180700
mov eax, ebx
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x140066533
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400664de
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140066403
xor ebx, ebx
test r14b, r14b
je 0x140066443
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140066360
mov ebx, eax
test eax, eax
jne 0x140066443
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14006651b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, 0
test eax, eax
jne 0x140066443
jmp 0x14006642d
mov rcx, rbp
call fcn.14006b8d0
test al, al
je 0x140066556
mov rcx, rbp
call fcn.14006b8d0
test al, al
je 0x140066413
xor ebx, ebx
jmp 0x140066443
mov edx, dword [rsp + 0x48]
jmp 0x1400664cc
Function at 0x1400666b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e
call fcn.140054e50
lea rcx, [rsp + 0x68]
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
test esi, esi
js 0x1400667b1
lea rcx, [rsp + 0x30]
call fcn.14009b9b0
call fcn.14009c4f0
test al, al
jne 0x1400667b8
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006679e
mov esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.14009c560
lea rcx, [rsp + 0x68]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140066769
mov esi, 0xffffffff
jmp 0x140066773
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.14009c590
jmp 0x14006672c

Function at 0x1400667e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov r14d, r9d
mov r15, r8
mov rbp, rdx
mov rdi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x73
call fcn.140054e50
lea rcx, [rsp + 0x60]
xor esi, esi
mov rdx, rbx
xor r8d, r8d
call fcn.14009ceb0
lea rcx, [rsp + 0x30]
call fcn.14009b9b0
call fcn.14009c4f0
test al, al
jne 0x1400668c8
mov rax, rbp
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], eax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x2c]
mov rdx, r15
mov r8d, r14d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14009c560
lea rcx, [rsp + 0x60]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movsxd r9, r14d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.14009c590
jmp 0x140066853
Function at 0x1400668f0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.140054e50
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14009ceb0
test esi, esi
js 0x1400669bb
lea rcx, [rsp + 0x30]
call fcn.14009b9b0
call fcn.14009c4f0
test al, al
jne 0x1400669c2
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14009c560
lea rcx, [rsp + 0x50]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140180700
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov esi, 0xffffffff
jmp 0x140066992
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14009c590
jmp 0x14006695f

Function at 0x1400669e0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.140054e50
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14009ceb0
lea rcx, [rsp + 0x30]
call fcn.14009b9b0
call fcn.14009c4f0
test al, al
jne 0x140066a8f
mov rcx, qword [rsi]
lea rsi, [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edi, edi
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.14009c560
lea rcx, [rsp + 0x50]
call fcn.14009cfd0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140180700
mov rax, rdi
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14009c590
jmp 0x140066a42