joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037260
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [r8 + 8]
add rax, qword [r8]
mov rsi, rdx
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x80], 0
je 0x14003733e
mov rbx, r8
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140037329
cmp byte [rdi + 0x71], 0
je 0x140037329
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003733e
mov rcx, qword [rdi + 0x68]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x40]
mov r8, r14
call qword [r10 + 0x40]
test eax, eax
je 0x1400372f7
cmp eax, 1
je 0x1400372fb
cmp eax, 3
je 0x140037329
jmp 0x14003733e
mov byte [rdi + 0x71], 0
mov r15, qword [rsp + 0x38]
sub r15, r14
je 0x140037323
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8, r15
call fcn.14017f9d0
cmp r15, rax
jne 0x14003733e
cmp byte [rdi + 0x71], 0
jne 0x14003733e
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x30]
call fcn.14017f4b0
test eax, eax
je 0x140037368
mov qword [rsi], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14014ac50
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x74], rax
mov rcx, qword [rdi + 0x18]
lea rdx, [rdi + 0x70]
cmp qword [rcx], rdx
jne 0x1400373a0
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rcx], rdx
mov rcx, qword [rdi + 0x38]
mov qword [rcx], rdx
sub eax, edx
mov rcx, qword [rdi + 0x50]
mov dword [rcx], eax
mov rax, qword [rdi + 0x74]
mov rcx, qword [rsp + 0x30]
mov qword [rsi], rcx
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], rax
jmp 0x14003734c
Function at 0x140038160
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x178
call fcn.14003bd00
lea rcx, [rsp + 0x40]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x10], 0x103
ja 0x1400381d7
cmp qword [rsi + 0x18], 7
jbe 0x1400381c0
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 + 0x40]
call fcn.14004fb20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140038200
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x14019d04e]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov r9d, 0x184
call fcn.14003bd00
lea rcx, [rsp + 0x50]
mov rdx, rbp
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140038260
mov rdx, qword [rbx]
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x14003826d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x1400382dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003ae90
mov r14d, eax
cmp qword [rdi + 0x18], 7
jbe 0x140038294
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 7
jbe 0x14003829e
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x1400382dd
test rsi, rsi
je 0x1400382db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003ae90
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
lea rcx, [rsp + 0x50]
call fcn.14004fb20
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400388b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ab
call fcn.14003bd00
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x18], 7
jbe 0x140038907
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14004fb20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1bd
call fcn.14003bd00
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x18], 7
jbe 0x140038997
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.14004fb20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400389d0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdi, [rsp + 0x70]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x140038a10
xor esi, esi
jmp 0x140038a75
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x70], 0
je 0x140038a2e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140038a20
jmp 0x140038a30
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140032330
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140035250
mov rcx, rsi
mov rdx, rbx
call fcn.1400324c0
mov rcx, rbx
call fcn.1400323e0
mov rcx, rdi
call fcn.1400323e0
mov sil, 1
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14014ac50
mov eax, esi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
Function at 0x140038aa0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
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 0x140038b10
movzx eax, word [rsp + 0x70]
test ax, ax
je 0x140038b10
mov qword [rsp + 0x40], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140038af0
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140032330
jmp 0x140038b64
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.140032200
mov rcx, rdi
call fcn.1400389d0
test al, al
je 0x140038b38
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400322f0
jmp 0x140038b5a
lea rax, [0x14019d076]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140032330
lea rcx, [rsp + 0x50]
call fcn.1400323e0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14014ac50
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140039840
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, 0xa0
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x258
call fcn.14003bd00
lea rcx, [rsp + 0x28]
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rdi + 0x18], 7
mov rbx, rdi
jbe 0x1400398a7
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400398de
mov bl, 1
test al, 0x10
jne 0x140039a03
test r12, r12
je 0x1400398cc
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140039a03
lea rbp, [rsp + 0x78]
mov rcx, rdi
mov rdx, rbp
call fcn.140033220
mov rax, qword [rdi + 0x10]
cmp qword [rsp + 0x88], rax
jne 0x14003994b
test rax, rax
je 0x140039934
cmp qword [rdi + 0x18], 7
mov rcx, rdi
jbe 0x14003990e
mov rcx, qword [rdi]
cmp qword [rsp + 0x90], 7
jbe 0x14003991e
mov rbp, qword [rsp + 0x78]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14003994b
add rdx, 1
cmp rax, rdx
jne 0x140039920
test r12, r12
je 0x140039941
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x1400399f1
lea rcx, [rsp + 0x78]
mov rdx, r12
call fcn.140039840
test al, al
je 0x1400399f7
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400399f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400399df
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x1bd
call fcn.14003bd00
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rdi + 0x18], 7
jbe 0x1400399c2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14004fb20
cmp edi, 0xffffffff
je 0x1400399df
and edi, 0x10
jne 0x1400399f9
test r12, r12
je 0x1400399ef
mov ecx, ebp
call fcn.14003ae90
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x78]
call fcn.1400323e0
lea rcx, [rsp + 0x28]
call fcn.14004fb20
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140039b40
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, [0x14019d115]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r9d, 0x344
call fcn.14003bd00
lea rcx, [rsp + 0x68]
mov rdx, rdi
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rbx + 0x18], 7
jbe 0x140039ba2
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]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14000f1b0
mov rcx, qword [rsp + 0x48]
mov ebx, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140039c2d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
cmp dword [rsp + 0x44], esi
mov ebx, 0xffffffff
cmove ebx, esi
or ebx, ecx
mov rcx, qword [rsp + 0x48]
add rcx, 1
cmp rcx, 2
jb 0x140039c69
call fcn.14003bd20
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
mov r9, rax
call fcn.14005b0e0
mov rcx, qword [rsp + 0x48]
call fcn.14005b070
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.14004fb20
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140039ca0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
lea rdx, [0x14019d11f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x37a
call fcn.14003bd00
lea rcx, [rsp + 0x38]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
mov word [rsp + 0xb0], 0
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x140039e58
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], 0
lea rcx, [rsp + 0xb0]
call fcn.140185cb0
mov rdi, rax
cmp rax, 7
jbe 0x140039d72
lea rcx, [rsp + 0x90]
lea r9, [rsp + 0xb0]
mov rdx, rdi
call fcn.140006120
jmp 0x140039d9f
mov qword [rsp + 0xa0], rdi
mov r8, rdi
add r8, rdi
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0xb0]
call fcn.14016e8e0
mov word [rsp + rdi*2 + 0x90], 0
mov rax, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 7
jbe 0x140039dbc
mov rcx, qword [rsp + 0x90]
jmp 0x140039dc4
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140032330
lea rbx, [rsp + 0x70]
mov rcx, rdi
mov rdx, rbx
call fcn.140035250
mov rcx, rsi
mov rdx, rbx
call fcn.1400324c0
mov rcx, rbx
call fcn.1400323e0
mov rcx, rdi
call fcn.1400323e0
mov rax, qword [rsp + 0xa8]
cmp rax, 8
jb 0x140039e55
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140039e50
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140039e7f
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.14014a880
mov dil, 1
lea rcx, [rsp + 0x38]
call fcn.14004fb20
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14014ac50
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret
call fcn.140178800
ud2

Function at 0x140039e90
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [0x14019d134]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x38a
call fcn.14003bd00
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x18], 7
jbe 0x140039ee7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14004fb20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140039f30
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, 0x60
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x20]
mov rcx, rbp
mov r9d, 0xab
call fcn.14003bd00
lea rcx, [rsp + 0x40]
xor ebx, ebx
mov rdx, rbp
xor r8d, r8d
call fcn.14004f9f0
mov rcx, rdi
call fcn.140035330
test al, al
jne 0x140039fff
mov rcx, rsi
call fcn.140035330
test al, al
jne 0x140039ffd
cmp qword [rdi + 0x10], 0x103
ja 0x140039ffd
cmp qword [rsi + 0x10], 0x103
ja 0x140039ffd
cmp qword [rsi + 0x18], 7
jbe 0x140039fbb
mov rsi, qword [rsi]
movzx r8d, r14b
cmp qword [rdi + 0x18], 7
jbe 0x140039fc9
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140039ffd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140039ffd
mov bl, 1
test al, 1
je 0x140039fff
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140039fff
xor ebx, ebx
lea rcx, [rsp + 0x40]
call fcn.14004fb20
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14003a030
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140035330
test al, al
jne 0x1400359f1
mov rcx, rsi
call fcn.140035330
test al, al
je 0x1400359fa
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 0x14003a030
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3b5
call fcn.14003bd00
lea rcx, [rsp + 0x28]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x10], 0x103
ja 0x14003a1ae
cmp qword [rdi + 0x10], 0x103
ja 0x14003a1ac
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x14003a0ae
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14003a0bb
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x14003a1ae
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 + 0x40]
mov rcx, rbx
mov r9d, 0x1bd
call fcn.14003bd00
lea rbp, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14003a11c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14004fb20
cmp ebx, 0xffffffff
je 0x14003a1a3
and ebx, 0x10
je 0x14003a1a3
lea rdx, str.CopyAndDeleteDirectory
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3d8
call fcn.14003bd00
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140038320
test al, al
je 0x14003a199
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140037bf0
test al, al
je 0x14003a199
lea rcx, [rsp + 0x60]
call fcn.14004fb20
jmp 0x14003a1ae
lea rcx, [rsp + 0x60]
call fcn.14004fb20
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14004fb20
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14003a1e0
Capabilities:
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, 0x578
mov r15d, r8d
mov r14, rdx
mov rdx, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov qword [rsp + 0x20], r14
xor ebp, ebp
lea rsi, [rsp + 0x2a0]
mov rcx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.14005c730
lea rdi, [rsp + 0x280]
mov rcx, rsi
mov rdx, rdi
call fcn.14005c8c0
cmp qword [rsp + 0x290], 0
je 0x14003a384
lea rsi, [rsp + 0x2a0]
lea rbx, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
nop word [rax + rax]
mov rcx, rsi
mov rdx, rbx
call fcn.14005c830
mov edx, dword [rsp + 0x30]
test dl, 1
je 0x14003a2b8
test r15b, r15b
jne 0x14003a299
mov rcx, rbx
call fcn.14005c450
test al, al
jne 0x14003a2b8
mov edx, dword [rsp + 0x30]
and edx, 0xfffffffe
cmp qword [rsp + 0x298], 7
mov rcx, rdi
jbe 0x14003a2b2
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.14005c450
test al, al
je 0x14003a310
xor ebp, ebp
test r15b, r15b
je 0x14003a345
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.14003a1e0
mov ebp, eax
test eax, eax
jne 0x14003a345
cmp qword [rsp + 0x298], 7
mov rcx, rdi
jbe 0x14003a2f5
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14003a345
jmp 0x14003a32f
cmp qword [rsp + 0x298], 7
mov rcx, rdi
jbe 0x14003a326
mov rcx, qword [rsp + 0x280]
call r12
xor ebp, ebp
test eax, eax
jne 0x14003a345
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rbx
call fcn.1400120e0
mov rcx, rsi
mov rdx, rbx
call fcn.14005c8c0
mov rcx, rdi
mov rdx, rbx
call fcn.1400324c0
mov rcx, rbx
call fcn.1400323e0
cmp qword [rsp + 0x290], 0
mov r13d, ebp
jne 0x14003a270
lea rcx, [rsp + 0x280]
call fcn.1400323e0
lea rcx, [rsp + 0x2a0]
call fcn.14005c760
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14014ac50
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003a940
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3d
call fcn.14003bd00
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14004f9f0
test esi, esi
js 0x14003aa07
lea rcx, [rsp + 0x30]
call fcn.14004f240
call fcn.14008a8d0
test al, al
je 0x14003a9c8
movsxd r9, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.14008a970
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 0x14003aa0e
mov esi, dword [rsp + 0x2c]
jmp 0x14003aa1f
mov esi, 0xffffffff
jmp 0x14003aa29
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.14008a940
lea rcx, [rsp + 0x60]
call fcn.14004fb20
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14014ac50
mov eax, esi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14003aa60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x72
call fcn.14003bd00
lea rcx, [rsp + 0x68]
xor esi, esi
mov rdx, r15
xor r8d, r8d
call fcn.14004f9f0
lea rcx, [rsp + 0x30]
call fcn.14004f240
call fcn.14008a8d0
test al, al
je 0x14003aaea
movsxd r9, ebp
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14008a970
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 [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.14008a940
lea rcx, [rsp + 0x68]
call fcn.14004fb20
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14014ac50
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret