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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], r12
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, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.1400afa40
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.14009d6e0
mov ebp, 0xffffffff
test r14, r14
js 0x140092607
test esi, esi
js 0x140092607
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400f33c0
test al, al
je 0x1400925bf
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400f34b0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.1400f3450
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140092640
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r15
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, ILFree
call fcn.1400afa40
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
test esi, esi
js 0x140092738
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], 0
call fcn.1400f33c0
test al, al
je 0x1400926fc
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400f34b0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.1400f3450
jmp 0x14009273d
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.14009d740
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140092770
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rbx
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xac
call fcn.1400afa40
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14009d6e0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400f33c0
test al, al
je 0x14009281e
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400f34b0
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400f3450
lea rcx, [rsp + 0x50]
call fcn.14009d740
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14019eb90
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140092870
Capabilities:
Clear file content

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], r14
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, ILCreateFromPathW
call fcn.1400afa40
lea rcx, [rsp + 0x50]
mov rdx, rbx
xor r8d, r8d
call fcn.14009d6e0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], 0
call fcn.1400f33c0
test al, al
je 0x140092923
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1400f34b0
mov qword [rsp + 0x28], r14
mov rcx, qword [rsi]
xor ebx, ebx
lea r8, [rsp + 0x28]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140092986
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 0x140092986
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140092984
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
jmp 0x140092986
xor ebx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400f3450
lea rcx, [rsp + 0x50]
call fcn.14009d740
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140092c30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, 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, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x171
call fcn.1400afa40
lea rcx, [rsp + 0x60]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140092e3f
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
test ebx, 0x40000
je 0x140092d38
test ebx, 0x200000
jne 0x140092ec1
or r8d, 0x20000000
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140092dba
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x140092e24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140092e05
call fcn.1400afa60
mov rcx, qword [rsi]
call fcn.14008a660
mov qword [rsi], 0
mov rax, r14
inc rax
cmp rax, 2
jb 0x140092e19
mov qword [rsi], r14
call fcn.1400afa60
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jae 0x140092e58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140092b80
mov dword [rsi + 0x24], eax
jmp 0x140092e96
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400b83d0
jmp 0x140092e96
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x140092e77
test bl, 0xa
je 0x140092e86
mov byte [rsi + 0x28], 1
jmp 0x140092e86
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
test ebx, 0x200000
je 0x140092e96
mov rcx, rdi
call fcn.140095940
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14019eb90
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140092fc0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14009301c
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
jb 0x140092ffa
call fcn.1400afa60
mov rcx, qword [rdi]
call fcn.14008a660
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14009300c
mov qword [rdi], rsi
call fcn.1400afa60
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
Function at 0x140093160
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xa8], 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, str.DoDeleteFile
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x104
call fcn.1400afa40
lea rcx, [rsp + 0x60]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsi + 0x17], 0
js 0x1400931f6
jne 0x140093214
jmp 0x140093389
mov rax, qword [rsi + 8]
test rax, rax
je 0x140093389
mov edi, 0xa1
cmp rax, 0x103
ja 0x140093357
mov rcx, rsi
mov rdx, r14
call fcn.1400b0e20
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x140093232
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
test rax, rax
je 0x1400932b4
add rax, rax
xor edi, edi
movzx ecx, word [r14 + rdi]
cmp ecx, 0x2a
je 0x14009325a
cmp ecx, 0x3f
je 0x14009325a
add rdi, 2
cmp rax, rdi
jne 0x140093240
jmp 0x1400932b4
cmp rax, rdi
je 0x1400932b4
lea rcx, [rsp + 0x40]
call fcn.1400b0280
cmp rdi, 0xfffffffffffffffe
je 0x1400932be
lea r14, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
call fcn.1400b0e20
lea r15, [rsp + 0x28]
mov rcx, rsi
mov rdx, r15
call fcn.1400b0b20
mov rcx, r15
mov rdx, r14
mov r8d, ebx
call fcn.140096040
mov edi, eax
mov rcx, r15
call fcn.1400b0280
mov rcx, r14
call fcn.1400b0280
jmp 0x140093398
lea rcx, [rsp + 0x40]
call fcn.1400b0280
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400932ca
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140093379
mov edi, eax
test dil, 1
je 0x1400932fc
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400932f2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140093379
test dil, 0x10
jne 0x14009331a
cmp byte [rsi + 0x17], 0
jns 0x14009330b
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140093389
jmp 0x140093379
test bl, bl
je 0x140093363
lea rdx, [0x1401f8922]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14002d076
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
call fcn.140096040
mov edi, eax
cmp byte [rsp + 0x57], 0
jns 0x140093353
mov rcx, qword [rsp + 0x40]
call fcn.14019d34c
test edi, edi
je 0x140093363
lea rcx, [rsp + 0x60]
call fcn.14009d740
jmp 0x1400933a6
cmp byte [rsi + 0x17], 0
jns 0x14009336c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140093389
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140093398
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov sil, 1
jmp 0x1400933b0
lea rcx, [rsp + 0x60]
call fcn.14009d740
test edi, edi
je 0x140093393
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400933f0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x90], 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, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x1ca
call fcn.1400afa40
lea rcx, [rsp + 0x40]
mov rdx, rdi
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rsi + 0x17], 0
jns 0x140093483
cmp qword [rsi + 8], 0x103
jbe 0x140093480
xor esi, esi
jmp 0x14009349a
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne sil
lea rcx, [rsp + 0x40]
call fcn.14009d740
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x1400934c0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x498], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x480], xmm0
movaps xmmword [rsp + 0x470], xmm0
movaps xmmword [rsp + 0x460], xmm0
movaps xmmword [rsp + 0x450], xmm0
lea rdx, [0x1401f87c1]
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x240]
mov rcx, r14
mov r9d, 0x1d6
call fcn.1400afa40
lea rcx, [rsp + 0x450]
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
lea r14, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1401a0cc0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14009357c
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.1400a12c0
mov rcx, r14
call fcn.140024db0
lea r14, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1401a0cc0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400935b3
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.1400a12c0
mov rcx, r14
call fcn.140024db0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400935d5
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400935e1
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 r14b, 1
test eax, eax
jne 0x14009364c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140092b80
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140093617
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140093620
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne r14b
test rsi, rsi
je 0x14009364c
test eax, eax
jne 0x14009364c
cmp ebp, 0xfffffffc
jne 0x140093647
call fcn.1400929c0
mov ebp, eax
mov dword [rsi], ebp
xor r14d, r14d
lea rcx, [rsp + 0x450]
call fcn.14009d740
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.14019eb90
mov eax, r14d
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140093c70
Capabilities:
Check if file exists
Get file attributes

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, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x209
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 0x140093cf9
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
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 0x140093d30
Capabilities:
Check if file exists

Disassembly:
mov edx, 1
mov r8d, 0x80000000
jmp fcn.140093d40

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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0xa8], 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, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x212
call fcn.1400afa40
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
call fcn.14009d6e0
cmp byte [rdi + 0x17], 0
jns 0x140093dd6
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140093e6e
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 0x140093e51
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x140093e46
call fcn.1400afa60
mov r14, rdi
jmp 0x140093e49
xor r14d, r14d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140093e6e
call fcn.1400afa60
mov rcx, r14
call fcn.14008a660
lea rcx, [rsp + 0x60]
call fcn.14009d740
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140093ea0
Capabilities:
Check if file exists
Get file attributes

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, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x231
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 0x140093f29
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.14009d740
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14019eb90
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140093f70
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a0cc0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14009400f
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, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140094040
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a0cc0
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 0x1400940b8
cmp word [rsp + 0x70], 0
je 0x1400940b8
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.1401c2da4
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400b01a0
jmp 0x140094127
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401e7440]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400823c0
mov rcx, rdi
call fcn.140093f70
test al, al
je 0x1400940fb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400b0180
jmp 0x14009411d
lea rax, [0x1401f87ea]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400b01a0
lea rcx, [rsp + 0x40]
call fcn.1400b0280
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14019eb90
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret