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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140103fea
mov al, 1
jmp 0x14010404a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140103ffb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140104048
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e95fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140104048
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140104048
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140104048
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14010404a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14012c970
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x14012c999
mov rcx, qword [rsi]
jmp 0x14012c9a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14012c9eb
mov dil, 1
test bl, bl
je 0x14012c9d4
cmp byte [rsi + 8], 1
je 0x14012c9c0
mov rcx, qword [rsi]
jmp 0x14012c9c9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d4e20
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x14012ca02
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14012ca05
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14012ca18
xor edi, edi
jmp 0x14012c9d4
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x14012ca31
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14012ca34
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14012c9d4
Function at 0x14012ea40
Capabilities:
Read 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 [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401c7000]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.1400916b0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14004d000
test esi, esi
sets al
test r14, r14
sets cl
or cl, al
mov ebp, 0xffffffff
jne 0x14012eb35
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012eb63
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14012eb76
lea rcx, [rsp + 0x30]
call fcn.140018cb0
lea rcx, [rsp + 0x60]
call fcn.140006ae0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400d4e20
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x14012eb2b
int3

Function at 0x14012eb80
Capabilities:
Read 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 [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401c7000]
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.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.1400916b0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004d000
test esi, esi
js 0x14012ec72
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012ec79
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14012ec8c
lea rcx, [rsp + 0x30]
call fcn.140018cb0
lea rcx, [rsp + 0x50]
call fcn.140006ae0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400d4e20
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14012ec47
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14012ec3d
int3
Function at 0x14012eca0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401c7000]
lea r15, [rsp + 0x50]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x97
call fcn.1400916b0
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.14004d000
test edi, edi
js 0x14012ed97
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15 + 8], rax
mov qword [r15], rsi
lea r12, [rsp + 0x2c]
mov dword [r12], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], rsi
mov rdx, rbx
mov r8d, edi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r12]
mov rcx, r15
call fcn.140018cb0
lea rcx, [rsp + 0x50]
call fcn.140006ae0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400d4e20
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14012ed6a
Function at 0x14012eec0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
jmp 0x14012eed0
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401c7000]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DoDeleteFile
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x107
call fcn.1400916b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14004d000
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi + 8]
mov rdx, rcx
cmovs rdx, rax
test rdx, rdx
je 0x14012f073
test cl, cl
sets cl
cmp rax, 0x104
setae al
test cl, al
je 0x14012ef90
lea rcx, [rsp + 0x60]
call fcn.140006ae0
mov esi, 0xa1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14012f080
test al, al
jns 0x14012f005
call fcn.1400d2b80
jmp 0x14012f005
mov rcx, rsi
mov rdx, rdi
call fcn.140017ce0
movsx rax, byte [rsp + 0x57]
test rax, rax
mov rdx, rax
cmovs rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmovs rdi, rcx
test rdx, rdx
je 0x14012ef85
lea r8, [rdi + rdx*2]
add rdx, rdx
mov r9, rdi
movzx r10d, word [r9]
cmp r10d, 0x2a
je 0x14012efe2
cmp r10d, 0x3f
je 0x14012efe2
add r9, 2
add rdx, 0xfffffffffffffffe
jne 0x14012efc5
mov r9, r8
cmp r9, r8
sete dl
sub r9, rdi
cmp r9, 0xfffffffffffffffe
sete bl
or bl, dl
test al, al
jns 0x14012effd
call fcn.1400d2b80
test bl, bl
je 0x14012f09d
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14012f011
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012f063
mov edi, eax
test dil, 1
je 0x14012f03f
mov edx, edi
and edx, 0xfffffffe
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14012f035
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14012f063
cmp byte [rsi + 0x17], 0
jns 0x14012f048
mov rsi, qword [rsi]
mov rcx, rsi
test dil, 0x10
jne 0x14012f059
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14012f05f
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14012f073
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14012f0eb
lea rcx, [rsp + 0x60]
call fcn.140006ae0
mov sil, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400d4e20
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.140017ce0
lea rbx, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbx
call fcn.140041c60
mov rcx, rbx
mov rdx, rdi
call fcn.1401300e0
mov esi, eax
cmp byte [rbx + 0x17], 0
jns 0x14012f0da
mov rcx, qword [rsp + 0x28]
call fcn.1400d2b80
cmp byte [rsp + 0x57], 0
jns 0x14012f0eb
mov rcx, qword [rsp + 0x40]
call fcn.1400d2b80
lea rcx, [rsp + 0x60]
call fcn.140006ae0
test esi, esi
jne 0x14012ef76
jmp 0x14012f07d
Function at 0x14012f110
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x1401c7000]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1401d694b]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x1da
call fcn.1400916b0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004d000
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14010c6a0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14012f1af
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.140131c50
mov rcx, r14
call fcn.140078880
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14010c6a0
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14012f1e6
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.140131c50
mov rcx, r14
call fcn.140078880
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14012f208
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14012f214
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
je 0x14012f25f
lea rcx, [rsp + 0x30]
call fcn.140006ae0
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400d4e20
mov eax, r14d
add rsp, 0x498
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.14003b9a0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14012f277
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14012f280
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 0x14012f232
test eax, eax
jne 0x14012f232
cmp ebp, 0xfffffffc
jne 0x14012f2a7
call fcn.14012eda0
mov ebp, eax
mov dword [rsi], ebp
xor r14d, r14d
jmp 0x14012f232
Function at 0x14012f2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401c7000]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x216
call fcn.1400916b0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14004d000
cmp byte [rsi + 0x17], 0
jns 0x14012f326
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012f3be
test al, 0x10
mov eax, 0x40000000
mov edx, 2
cmove edx, eax
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rbx
mov rcx, rdi
mov rdx, rax
call fcn.140078930
mov rax, qword [rdi]
inc rax
test rax, 0xfffffffffffffffe
setne dil
cmp rax, 2
jb 0x14012f3be
call fcn.140078a00
mov rcx, qword [rsp + 0x40]
call fcn.1400c59e0
lea rcx, [rsp + 0x60]
call fcn.140006ae0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400d4e20
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401c7000]
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, 0x235
call fcn.1400916b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004d000
cmp byte [rdi + 0x17], 0
jns 0x14012f462
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.140006ae0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400d4e20
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14012f4b0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rdi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14010c6a0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x14012f561
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d3138
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400c5a60
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1401374c0
mov rcx, rdi
mov rdx, r14
call fcn.14004e500
cmp byte [r14 + 0x17], 0
jns 0x14012f550
mov rcx, qword [rsp + 0x48]
call fcn.1400d2b80
cmp byte [rsp + 0x47], 0
jns 0x14012f561
mov rcx, qword [rsp + 0x30]
call fcn.1400d2b80
cmp esi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400d4e20
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14012fde0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2b8
mov rsi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movaps xmm0, xmmword [0x1401c7000]
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, [0x1401d69d6]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov r9d, 0x43a
call fcn.1400916b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004d000
lea rbx, [rsp + 0xa0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14010c6a0
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 0x14012fee6
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d3138
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400c5a60
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1401374c0
mov rcx, rsi
mov rdx, r14
call fcn.14004e500
cmp byte [r14 + 0x17], 0
jns 0x14012fed5
mov rcx, qword [rsp + 0x48]
call fcn.1400d2b80
cmp byte [rsp + 0x47], 0
jns 0x14012fee6
mov rcx, qword [rsp + 0x30]
call fcn.1400d2b80
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.140006ae0
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400d4e20
mov eax, ebx
add rsp, 0x2b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14012ff20
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401c7000]
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, [0x1401d69eb]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x44a
call fcn.1400916b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004d000
cmp byte [rdi + 0x17], 0
jns 0x14012ff92
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140006ae0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400d4e20
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401300e0
Capabilities:
Check if file exists
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 rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14010c6a0
mov qword [rsp + 0x20], rsi
xor esi, esi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140141ca0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401c7000]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140048e60
movsx rax, byte [rdi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140130178
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140130288
xor ebp, ebp
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x298]
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
jmp 0x14013023f
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
call r13
mov rcx, rbx
call fcn.140141c90
mov ecx, eax
xor eax, eax
test cl, cl
jne 0x1401301f3
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1401301da
mov rcx, qword [rsp + 0x30]
call r15
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x1401301f3
call r12
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
cmove eax, ebp
test esi, esi
cmove esi, eax
mov rcx, rbx
call fcn.14010eaf0
mov rcx, r14
mov rdx, rbx
call fcn.140048e60
mov rcx, rdi
mov rdx, rbx
call fcn.14004e500
cmp byte [rsp + 0x5f], 0
jns 0x140130227
mov rcx, qword [rsp + 0x48]
call fcn.1400d2b80
movsx rax, byte [rsp + 0x47]
mov rcx, rax
test rax, rax
jns 0x14013023a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140130288
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.14010c6a0
mov rcx, r14
mov rdx, rbx
call fcn.140141cb0
test byte [rsp + 0x48], 1
je 0x1401301bb
mov rcx, rbx
call fcn.140141c90
test al, al
jne 0x1401301bb
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1401301b1
jmp 0x1401301ac
test al, al
jns 0x140130296
mov rcx, qword [rsp + 0x30]
call fcn.1400d2b80
lea rcx, [rsp + 0x298]
call fcn.14010f120
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400d4e20
mov eax, esi
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401347f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140208450], 0
je 0x140134836
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400d4e20
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140208458]
test rdi, rdi
jne 0x140134903
mov ecx, 0x18
call fcn.1400d2b88
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14010c6a0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401c7000]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140014b00
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1401348b0
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1401348e7
add rax, rax
test rax, rax
je 0x1401348e7
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1401348b8
cmp rdx, 0xfffffffffffffffe
je 0x1401348e7
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.14003a670
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14004c260
mov qword [0x140208458], rdi
test byte [0x1401f8650], 1
je 0x140134819
cmp byte [rdi + 0x17], 0
jns 0x140134919
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140208450], rax
inc rax
cmp rax, 1
ja 0x140134819
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14010c6a0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x140134a55
mov rcx, qword [0x140208458]
lea rdx, [rsp + 0x40]
call fcn.140014670
mov rcx, qword [0x140208458]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x140134a5c
test al, al
je 0x140134a6d
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1401349e7
lea rdx, [0x1401cd638]
mov r8d, 1
call fcn.14004c260
mov rcx, qword [0x140208458]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14004c260
mov rcx, qword [0x140208458]
cmp byte [rcx + 0x17], 0
jns 0x140134a09
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140208450], rax
inc rax
cmp rax, 1
ja 0x140134819
mov qword [0x140208450], 0
xor esi, esi
jmp 0x140134819
mov rax, qword [rcx + 8]
test rax, rax
je 0x140134a6d
mov rdx, qword [rcx]
jmp 0x1401349c6
ud2