joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140102330
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1403d4b30]
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, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, ILFree
call fcn.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
test esi, esi
js 0x140102440
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140225380
test al, al
jne 0x140102447
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140225400
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14010242f
call fcn.140278ca0
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14010240b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140316730
jmp 0x1401023d0

Function at 0x140102470
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x1403d4b30]
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.14021c360
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14020f7b0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140225380
test al, al
jne 0x140102556
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.140225400
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140102546
call fcn.140278ca0
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.140316730
jmp 0x1401024f9
Function at 0x140102570
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x1403d4b30]
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.14021c360
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14020f7b0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140225380
test al, al
jne 0x1401026a2
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 0x14010265f
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 0x14010265f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14010269e
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.140225400
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14010268d
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14010265f
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140316730
jmp 0x140102602
Function at 0x140102930
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1403d4b30]
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.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x175
call fcn.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
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 0x140102ba5
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
bt ebx, 0x12
jb 0x140102b7a
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 0x140102a93
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 0x140102aed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140102b8c
mov rax, r14
inc rax
cmp rax, 2
jb 0x140102ae2
mov qword [rsi], r14
call fcn.14021c380
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x140102b4d
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x140102b5f
test bl, 0xa
je 0x140102b13
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x140102b70
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140102b3d
call fcn.140278ca0
int3
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140102830
mov dword [rsi + 0x24], eax
jmp 0x140102b19
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x140102b13
mov rcx, rdi
call fcn.140104b00
jmp 0x140102b19
bt ebx, 0x15
jb 0x140102ba8
or r8d, 0x20000000
jmp 0x140102a11
call fcn.14021c380
mov rcx, qword [rsi]
call fcn.14020bb00
mov qword [rsi], 0
jmp 0x140102ace
int3
int3
Function at 0x140102ca0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140102ce8
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 0x140102cf1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140102cd8
mov qword [rdi], rsi
call fcn.14021c380
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.14021c380
mov rcx, qword [rdi]
call fcn.14020bb00
mov qword [rdi], 0
jmp 0x140102cc6
Function at 0x140103100
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1403d4b30]
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, [0x1403ec841]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x1d9
call fcn.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140103184
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140103190
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 0x1401031e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140102830
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1401031c3
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1401031cc
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 0x1401031ec
test eax, eax
jne 0x1401031ec
jmp 0x140103222
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140103210
call fcn.140278ca0
int3
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebp, 0xfffffffc
jne 0x14010322e
call fcn.1402f1630
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1401031ec

Function at 0x140103240
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1403d4b30]
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.14021c360
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
jns 0x1401032b2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14020f840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401032e3
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401032f0
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1403d4b30]
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.14021c360
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
jns 0x140103372
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140103405
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 0x1401033e8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14010343b
call fcn.14021c380
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 0x140103405
call fcn.14021c380
mov rcx, r14
call fcn.14020bb00
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140103429
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1401033e0
mov edx, 2
mov r8d, 0x40000000
jmp 0x1401032f0

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1403d4b30]
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.14021c360
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
jns 0x1401034c2
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.14020f840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401034fe
call fcn.140278ca0
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140103510
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1402b6a10
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1401035af
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14029c474
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14021c580
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140111710
mov rcx, rsi
mov rdx, r14
call fcn.14010ff50
mov rcx, r14
call fcn.14021c6c0
mov rcx, rbx
call fcn.14021c6c0
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401035d2
call fcn.140278ca0
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401035e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402b6a10
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, Ordinal_41
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14010367f
cmp word [rsp + 0x70], 0
je 0x14010367f
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14029c474
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14021c580
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140103671
call fcn.140278ca0
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 [0x1403d4b30]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14021c520
mov rcx, rdi
call fcn.140103510
test al, al
jne 0x1401036d1
lea rax, [0x1403ec84e]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14021c580
jmp 0x1401036de
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14010ff30
lea rcx, [rsp + 0x40]
call fcn.14021c6c0
jmp 0x140103657
Function at 0x140103b40
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movaps xmm6, xmmword [0x1403d4b30]
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.14021c360
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140103bc8
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140103c1e
mov bl, 1
test al, 0x10
je 0x140103d8f
lea rcx, [rsp + 0x40]
call fcn.14020f840
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140103c04
call fcn.140278ca0
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.14021c730
movsx rcx, byte [rdi + 0x17]
mov rax, rcx
test rcx, rcx
jns 0x140103c51
mov rax, qword [rdi + 8]
movsx r8, byte [rsp + 0x37]
mov rdx, r8
test r8, r8
jns 0x140103c64
mov rdx, qword [rsp + 0x28]
cmp rdx, rax
je 0x140103d2e
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140103b40
test al, al
je 0x140103d7a
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140103ca2
lea rcx, [rsp + 0x20]
call fcn.14021c6c0
jmp 0x140103be0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140103d81
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.14021c360
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
jns 0x140103d0b
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14020f840
cmp edi, 0xffffffff
je 0x140103d81
and edi, 0x10
jne 0x140103c93
jmp 0x140103d81
test rax, rax
je 0x140103d61
mov rdx, rdi
test cl, cl
jns 0x140103d3d
mov rdx, qword [rdi]
test r8b, r8b
jns 0x140103d47
mov r14, qword [rsp + 0x20]
xor ecx, ecx
movzx r8d, word [r14 + rcx*2]
cmp r8w, word [rdx + rcx*2]
jne 0x140103c6d
inc rcx
cmp rax, rcx
jne 0x140103d49
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140103d72
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140103c93
test rsi, rsi
je 0x140103d72
mov ecx, ebp
call fcn.140102830
jmp 0x140103d70
test rsi, rsi
je 0x140103d9a
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140103be0
Function at 0x1401042f0
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1403d4b30]
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, [0x1403ec8c9]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x3d7
call fcn.14021c360
xor edi, edi
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rbx + 0x17], 0
jns 0x14010436f
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
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 0x1401043c6
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp r14, 0xffffffffffffffff
je 0x140104463
call fcn.14021c380
mov rdi, r14
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r14, [rdi + 1]
cmp r14, 2
jb 0x14010446a
mov dword [rsp + 0x40], 0xaaaaaaaa
mov rbx, qword [rsi + 8]
mov rax, rbx
shr rax, 0x20
jne 0x14010446e
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 0x14010442e
call fcn.14021c380
mov rcx, rdi
call fcn.14020bb00
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140104452
call fcn.140278ca0
int3
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor edi, edi
jmp 0x1401043be
xor esi, esi
jmp 0x14010441b
int3
Function at 0x140104480
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1403d4b30]
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, [0x1403ec8d3]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x411
call fcn.14021c360
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14020f7b0
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1402b6a10
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 0x140104574
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14029c474
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14021c580
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140111710
mov rcx, rsi
mov rdx, r14
call fcn.14010ff50
mov rcx, r14
call fcn.14021c6c0
mov rcx, rbx
call fcn.14021c6c0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401045a1
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401045b0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1403d4b30]
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, [0x1403ec8e8]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x421
call fcn.14021c360
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14020f7b0
cmp byte [rdi + 0x17], 0
jns 0x140104622
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14020f840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140104652
call fcn.140278ca0
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret