joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400949f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x108], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x1401e7440]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r9d, 0x2b3
call fcn.1400afa40
lea rcx, [rsp + 0x70]
mov rdx, rdi
xor r8d, r8d
call fcn.14009d6e0
test rsi, rsi
je 0x140094cc6
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400823c0
mov ecx, 0x65
mov rdx, rdi
call fcn.140097f90
test al, al
je 0x140094b9a
lea rax, str.SystemTemp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0xa
lea rbx, [rsp + 0xc0]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.1400b2430
mov rcx, rdi
mov rdx, rbx
call fcn.1400b02b0
mov rcx, rbx
call fcn.1400b0280
mov qword [rsp + 0x100], r15
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.1400afa40
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsp + 0x47], 0
jns 0x140094b65
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14009d740
cmp edi, 0xffffffff
je 0x140094b9a
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140093d40
test al, al
jne 0x140094c6a
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b0280
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rcx, rdi
call fcn.1400823c0
mov ecx, 0x67
mov rdx, rdi
call fcn.140097f90
test al, al
je 0x140094c87
mov qword [rsp + 0x100], r15
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x50]
mov rcx, r14
mov r9d, 0x209
call fcn.1400afa40
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsp + 0x47], 0
jns 0x140094c39
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14009d740
cmp edi, 0xffffffff
je 0x140094c87
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140093d40
test al, al
je 0x140094c87
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400b0290
mov rcx, rdi
call fcn.1400b0280
mov sil, 1
jmp 0x140094c93
lea rcx, [rsp + 0x30]
call fcn.1400b0280
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.14009d740
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140094cd0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], r14
movaps xmm6, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2e9
call fcn.1400afa40
lea rcx, [rsp + 0x40]
mov rdx, rbx
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140094d67
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140094d9c
mov bl, 1
test al, 0x10
jne 0x140094e37
test rsi, rsi
je 0x140094d8a
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140094e37
mov qword [rsp + 0x30], r14
movaps xmmword [rsp + 0x20], xmm6
lea r14, [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
call fcn.1400b0b20
mov rcx, r14
mov rdx, rdi
call fcn.140094e70
test al, al
je 0x140094de0
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140094dd6
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094e2b
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140094cd0
test al, al
je 0x140094e2b
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140094e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140094e1d
mov rcx, rdi
call fcn.140093ea0
test al, al
jne 0x140094e2d
test rsi, rsi
je 0x140094dd6
mov ecx, ebp
call fcn.140092b80
jmp 0x140094dd4
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400b0280
lea rcx, [rsp + 0x40]
call fcn.14009d740
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400953e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x1401f8894]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x3e3
call fcn.1400afa40
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, r15
xor r8d, r8d
call fcn.14009d6e0
cmp byte [r14 + 0x17], 0
jns 0x14009547a
mov r14, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, 0xffffffff
test rax, rax
je 0x140095522
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp r15, 0xffffffffffffffff
je 0x1400954cd
call fcn.1400afa60
mov rdi, r15
jmp 0x1400954cf
xor edi, edi
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
js 0x140095522
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140095522
mov dword [rsp + 0x40], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x40]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, esi
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140095539
call fcn.1400afa60
mov rcx, rdi
call fcn.14008a660
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140095570
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
movaps xmmword [rsp + 0x270], xmm0
lea rdx, [0x1401f88c2]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov r9d, 0x41c
call fcn.1400afa40
lea rcx, [rsp + 0x270]
mov rdx, rdi
xor r8d, r8d
call fcn.14009d6e0
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a0cc0
mov word [rsp + 0x60], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x140095683
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1401c2da4
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400b01a0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400b2540
mov rcx, rsi
mov rdx, r14
call fcn.1400b02b0
mov rcx, r14
call fcn.1400b0280
mov rcx, rbx
call fcn.1400b0280
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.14009d740
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400956c0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401f88d7]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x42c
call fcn.1400afa40
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsi + 0x17], 0
jns 0x140095749
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14009d740
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140095790
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], r15
movaps xmm6, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x86
call fcn.1400afa40
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
mov rcx, rdi
call fcn.1400b25c0
test al, al
jne 0x140095862
mov rcx, rsi
call fcn.1400b25c0
test al, al
jne 0x140095860
cmp byte [rdi + 0x17], 0
jns 0x140095850
cmp qword [rdi + 8], 0x103
ja 0x140095860
cmp byte [rsi + 0x17], 0
jns 0x140095896
cmp qword [rsi + 8], 0x103
jbe 0x140095896
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.DoCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x93
call fcn.1400afa40
lea r8, [0x14023497c]
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.1400eb5e0
cmp byte [rsi + 0x17], 0
jns 0x1400958de
mov rsi, qword [rsi]
movzx r8d, bl
cmp byte [rdi + 0x17], 0
jns 0x1400958eb
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140095927
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
je 0x140095929
mov ecx, eax
and ecx, 1
je 0x140095929
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bpl, 1
jmp 0x140095929
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400eb6d0
jmp 0x140095862
Function at 0x140095de0
Capabilities:
Check if file exists
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], r12
movaps xmm6, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.MoveUnsafe
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r9d, 0x4bb
call fcn.1400afa40
lea rcx, [rsp + 0x40]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.14009d6e0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140095e8a
cmp qword [rsi + 8], 0x103
ja 0x140096002
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140095ea4
cmp qword [rdi + 8], 0x103
ja 0x140096000
mov rdx, qword [rdi]
mov rcx, rsi
test al, al
jns 0x140095eae
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x140096002
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0xd0], r12
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0x231
call fcn.1400afa40
lea r14, [rsp + 0x90]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140095f38
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov rcx, r14
call fcn.14009d740
cmp ebp, 0xffffffff
je 0x140095ff8
and ebp, 0x10
je 0x140095ff8
mov qword [rsp + 0xd0], r12
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
lea rdx, str.CopyAndDeleteDirectory
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x4de
call fcn.1400afa40
lea rcx, [rsp + 0x90]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140093690
test al, al
je 0x140095feb
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140093160
test al, al
je 0x140095feb
lea rcx, [rsp + 0x90]
call fcn.14009d740
jmp 0x140096002
lea rcx, [rsp + 0x90]
call fcn.14009d740
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.14009d740
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140096040
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 ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1401a0cc0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140096620
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, r14
mov rdx, rdi
call fcn.140096870
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400960da
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140096232
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14009610c
mov r13d, ebp
test rax, rax
je 0x140096232
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1401a0cc0
mov rcx, r15
mov rdx, r14
call fcn.140096820
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x14009616f
test bl, bl
jne 0x140096157
mov rcx, r14
call fcn.140096520
test al, al
je 0x140096153
mov rcx, r14
call fcn.140096520
xor ebp, ebp
test al, al
je 0x1400961c0
jmp 0x1400961ee
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140096166
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.140096520
test al, al
je 0x1400961c0
xor ebp, ebp
test bl, bl
je 0x1400961ee
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140096040
mov ebp, eax
test eax, eax
jne 0x1400961ee
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400961a4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400961ee
jmp 0x1400961d8
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400961cf
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x1400961ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.140024db0
mov rcx, r15
mov rdx, r14
call fcn.140096870
mov rcx, rdi
mov rdx, r14
call fcn.1400b02b0
mov rcx, r14
call fcn.1400b0280
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140096100
mov rax, qword [rsp + 0x38]
jmp 0x140096100
lea rcx, [rsp + 0x30]
call fcn.1400b0280
lea rcx, [rsp + 0x298]
call fcn.1400967b0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400993f0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400b25c0
test al, al
jne 0x140099411
mov rcx, rsi
call fcn.1400b25c0
test al, al
je 0x14009941a
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 fcn.140095de0

Function at 0x140099830
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14009993f
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1401be7dc
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xc0], rax
movaps xmm6, xmmword [0x1401e7440]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x48
call fcn.1400afa40
lea rcx, [rsp + 0x80]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.1401b4ac8
mov ecx, eax
call fcn.1401b558c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140099946
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
jmp 0x14009994c
xor ebx, ebx
jmp 0x140099a1d
mov r14d, 0xffff
cmp r14, rdi
cmovae r14, rdi
inc r14
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [0x140251008]
xor r13d, r13d
mov ebp, 0x10000
lea r15, [rsp + 0x20]
nop dword [rax]
mov rcx, qword [rsp + 0x38]
add rcx, r13
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1401be55c
test rax, rax
je 0x1400999eb
mov r12, rax
mov rax, rdi
sub rax, r13
cmp rax, r12
jb 0x1400999e4
add r12, r13
mov rcx, rbx
call fcn.1401bdd90
test eax, eax
jne 0x1400999e8
test r13, r13
cmove r14, rbp
lea r8, [r12 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, r15
call qword [0x140251008]
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov r13, r12
jmp 0x140099980
xor ebx, ebx
jmp 0x1400999fb
mov r13, r12
mov rcx, rbx
call fcn.1401bddbc
test eax, eax
sete bl
mov rdi, r13
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140251008]
lea rcx, [rsp + 0x80]
call fcn.14009d740
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400aceb0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.1400acfa0
mov eax, dword [rsi]
mov dword [0x140222878], eax
test al, 1
jne 0x1400aced1
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x140234ae0]
test rcx, rcx
je 0x1400acf03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140234ae0], 0
mov rcx, qword [0x140234ab8]
test rcx, rcx
jne 0x1400acf31
and byte [0x140222878], 0xfe
jmp 0x1400acf0f
mov rcx, qword [0x140234ab8]
test rcx, rcx
jne 0x1400acf31
mov ecx, 0x18
call fcn.14019d310
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140234ab8], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x1400acf66
call fcn.140071028
cmp dword [rsi + 0x14], 0
jne 0x1400acf5b
mov rcx, qword [0x140234ab8]
cmp byte [rcx + 0x17], 0
jns 0x1400acf55
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.1400ad0f0
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s___nullptr
mov r8d, 0x9dc
call fcn.14003a2a8
int3
Function at 0x1400b30e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140091fe0
mov qword [rsi], 0
test rax, rax
je 0x1400b3147
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400b312d
call fcn.1400afa60
mov rcx, qword [rsi]
call fcn.14008a660
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400b313f
mov qword [rsi], rbx
call fcn.1400afa60
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.1400b0170
lea rcx, [rsi + 0x20]
call fcn.1400f33e0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
movzx eax, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
movzx eax, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400b4000
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140234b98]
test rdi, rdi
jne 0x1400b40b4
mov ecx, 0x50
call fcn.14019d310
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14019d310
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400b40d6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140234b98], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400b4102
mov rcx, rax
call fcn.1401c2da4
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400b4110
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14003a2a8
int3