joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104590
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140470090]
lea rdi, [rsp + 0x50]
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, 0xb0
call fcn.14020f920
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140201bd0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.14022da40
test al, al
jne 0x140104676
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.14022dac0
lea rcx, [rsp + 0x50]
call fcn.140201c60
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140104666
call fcn.140297b50
int3
mov rax, rsi
add rsp, 0x98
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.140393c40
jmp 0x140104619

Function at 0x140104690
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140470090]
lea rbx, [rsp + 0x50]
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, ILCreateFromPathW
call fcn.14020f920
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140201bd0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.14022da40
test al, al
jne 0x1401047c2
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 0x14010477f
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 0x14010477f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1401047be
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.14022dac0
lea rcx, [rsp + 0x50]
call fcn.140201c60
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401047ad
call fcn.140297b50
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14010477f
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140393c40
jmp 0x140104722
Function at 0x140104b50
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140104b98
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140104ba1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140104b88
mov qword [rdi], rsi
call fcn.14020f940
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14020f940
mov rcx, qword [rdi]
call fcn.1401fa240
mov qword [rdi], 0
jmp 0x140104b76

Function at 0x140104ce0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x140470090]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x14048ba09]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x1d9
call fcn.14020f920
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140201bd0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140104d64
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140104d70
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]
test eax, eax
jne 0x140104dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140104950
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140104da3
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140104dac
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x140104dc7
test eax, eax
je 0x140104e02
lea rcx, [rsp + 0x50]
call fcn.140201c60
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140104deb
call fcn.140297b50
int3
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x140104dc7
cmp ebp, 0xfffffffc
jne 0x140104e0e
call fcn.140307c70
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x140104dc7
Function at 0x140104e20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140470090]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x203
call fcn.14020f920
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
jns 0x140104e92
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140201c60
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140104ec3
call fcn.140297b50
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140104ed0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140470090]
lea r14, [rsp + 0x60]
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, 0x20c
call fcn.14020f920
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
jns 0x140104f52
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140104fe5
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x140104fc8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14010501b
call fcn.14020f940
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140104fe5
call fcn.14020f940
mov rcx, r14
call fcn.1401fa240
lea rcx, [rsp + 0x60]
call fcn.140201c60
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140105009
call fcn.140297b50
int3
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140104fc0
mov edx, 2
mov r8d, 0x40000000
jmp 0x140104ed0
Function at 0x140105030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140470090]
lea rsi, [rsp + 0x40]
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, 0x22b
call fcn.14020f920
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
jns 0x1401050a2
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.140201c60
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401050de
call fcn.140297b50
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401050f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1402d26c0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14010518f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1402b8034
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140210960
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140119220
mov rcx, rsi
mov rdx, r14
call fcn.140117e00
mov rcx, r14
call fcn.140210aa0
mov rcx, rbx
call fcn.140210aa0
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401051b2
call fcn.140297b50
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401051c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402d26c0
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 0x14010525f
cmp word [rsp + 0x70], 0
je 0x14010525f
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1402b8034
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140210960
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140105251
call fcn.140297b50
int3
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140470090]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140210900
mov rcx, rdi
call fcn.1401050f0
test al, al
jne 0x1401052b1
lea rax, [0x14048ba16]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140210960
jmp 0x1401052be
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140117de0
lea rcx, [rsp + 0x40]
call fcn.140210aa0
jmp 0x140105237
Function at 0x140105720
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movaps xmm6, xmmword [0x140470090]
lea rbx, [rsp + 0x40]
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 + 0xa0]
mov rcx, r14
mov r9d, 0x2cb
call fcn.14020f920
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1401057a8
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401057fe
mov bl, 1
test al, 0x10
je 0x14010596f
lea rcx, [rsp + 0x40]
call fcn.140201c60
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401057e4
call fcn.140297b50
int3
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140210c80
movsx rcx, byte [rdi + 0x17]
mov rax, rcx
test rcx, rcx
jns 0x140105831
mov rax, qword [rdi + 8]
movsx r8, byte [rsp + 0x37]
mov rdx, r8
test r8, r8
jns 0x140105844
mov rdx, qword [rsp + 0x28]
cmp rdx, rax
je 0x14010590e
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140105720
test al, al
je 0x14010595a
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140105882
lea rcx, [rsp + 0x20]
call fcn.140210aa0
jmp 0x1401057c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140105961
lea r14, [rsp + 0xa0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x80]
mov rcx, r15
mov r9d, 0x22b
call fcn.14020f920
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
jns 0x1401058eb
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.140201c60
cmp edi, 0xffffffff
je 0x140105961
and edi, 0x10
jne 0x140105873
jmp 0x140105961
test rax, rax
je 0x140105941
mov rdx, rdi
test cl, cl
jns 0x14010591d
mov rdx, qword [rdi]
test r8b, r8b
jns 0x140105927
mov r14, qword [rsp + 0x20]
xor ecx, ecx
movzx r8d, word [r14 + rcx*2]
cmp r8w, word [rdx + rcx*2]
jne 0x14010584d
inc rcx
cmp rax, rcx
jne 0x140105929
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140105952
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140105873
test rsi, rsi
je 0x140105952
mov ecx, ebp
call fcn.140104950
jmp 0x140105950
test rsi, rsi
je 0x14010597a
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1401057c0
Function at 0x140105ed0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x140470090]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x14048ba91]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x3d7
call fcn.14020f920
xor edi, edi
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140201bd0
cmp byte [rbx + 0x17], 0
jns 0x140105f4f
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
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]
test rax, rax
je 0x140105fa6
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp r14, 0xffffffffffffffff
je 0x140106043
call fcn.14020f940
mov rdi, r14
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r14, [rdi + 1]
cmp r14, 2
jb 0x14010604a
mov dword [rsp + 0x40], 0xaaaaaaaa
mov rbx, qword [rsi + 8]
mov rax, rbx
shr rax, 0x20
jne 0x14010604e
mov rdx, qword [rsi]
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x40]
mov rcx, rdi
mov r8d, ebx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [rsi], ebx
sete sil
and sil, al
cmp r14, 2
jb 0x14010600e
call fcn.14020f940
mov rcx, rdi
call fcn.1401fa240
lea rcx, [rsp + 0x60]
call fcn.140201c60
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140106032
call fcn.140297b50
int3
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor edi, edi
jmp 0x140105f9e
xor esi, esi
jmp 0x140105ffb
int3
Function at 0x140106060
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x140470090]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x14048ba9b]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x411
call fcn.14020f920
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140201bd0
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1402d26c0
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 0x140106154
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1402b8034
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140210960
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140119220
mov rcx, rsi
mov rdx, r14
call fcn.140117e00
mov rcx, r14
call fcn.140210aa0
mov rcx, rbx
call fcn.140210aa0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.140201c60
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140106181
call fcn.140297b50
int3
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140106190
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140470090]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x14048bab0]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x421
call fcn.14020f920
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140201bd0
cmp byte [rdi + 0x17], 0
jns 0x140106202
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140201c60
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140106232
call fcn.140297b50
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401066e0
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 byte [rsp + 0x2f], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1402d26c0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140106bc0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140470090]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140106d90
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x14010677a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14010684e
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1402d26c0
mov rcx, r15
mov rdx, r14
call fcn.140106d60
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1401068dd
mov rcx, r14
call fcn.140106ab0
test al, al
jne 0x14010689c
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1401067e8
mov rcx, qword [rsp + 0x30]
call rbx
test eax, eax
jne 0x140106895
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400c1cb0
mov rcx, r15
mov rdx, r14
call fcn.140106d90
mov rcx, rdi
mov rdx, r14
call fcn.140117e00
mov rcx, r14
call fcn.140210aa0
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x140106842
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x1401067a1
lea rcx, [rsp + 0x30]
call fcn.140210aa0
lea rcx, [rsp + 0x298]
call fcn.140106cf0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x14010687f
call fcn.140297b50
int3
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140106805
xor ebp, ebp
cmp byte [rsp + 0x2f], 0
je 0x140106805
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1401066e0
test eax, eax
jne 0x140106930
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1401068ca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140106805
jmp 0x1401067f2
cmp byte [rsp + 0x2f], 0
je 0x140106905
cmp byte [rsp + 0x47], 0
js 0x1401068f2
lea rcx, [rsp + 0x30]
jmp 0x1401068f7
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1401067c9
lea rcx, [rsp + 0x48]
call fcn.140106ab0
test al, al
jne 0x140106919
mov edx, dword [rsp + 0x48]
jmp 0x1401068e4
lea rcx, [rsp + 0x48]
call fcn.140106ab0
test al, al
je 0x1401067d9
jmp 0x140106895
mov ebp, eax
jmp 0x140106805
Function at 0x140109010
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x1401091ce
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1402b4cc4
movaps xmm6, xmmword [0x140470090]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x52
call fcn.14020f920
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140201bd0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1402ab030
mov ecx, eax
call fcn.1402abaec
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1401091d2
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp rdi, r14
cmovb r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [case.0x1403053b8.0]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1402b494c
test rax, rax
je 0x140109167
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x1401091dd
add r15, r12
mov rcx, rbx
call fcn.1402b4120
test eax, eax
je 0x1401091e1
mov r12, r15
mov rcx, rbx
call fcn.1402b414c
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [case.0x1403053b8.0]
lea rcx, [rsp + 0x80]
call fcn.140201c60
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401091b3
call fcn.140297b50
int3
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140109199
mov r14d, 0xffff
jmp 0x140109101
xor ebx, ebx
jmp 0x140109177
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [case.0x1403053b8.0]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140109126