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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov r14, rdx
mov rbp, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [0x140180c44]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x359
call fcn.140065e60
lea rcx, [rsp + 0x60]
xor esi, esi
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
cmp byte [rbp + 0x17], 0
jns 0x140075892
mov rbp, qword [rbp]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbp
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, 0xffffffff
test rax, rax
je 0x140075935
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400758e4
call fcn.140065e80
mov rsi, rbx
jmp 0x1400758e6
xor esi, esi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140075935
mov dword [rsp + 0x40], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x40]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, r15d
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14007594c
call fcn.140065e80
mov rcx, rsi
call fcn.1400be320
lea rcx, [rsp + 0x60]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140136dd0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140075ae0
Capabilities:
Check if file exists
Copy file

Disassembly:
xor r8d, r8d
jmp 0x140075af0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140174f60]
movaps xmmword [rsp + 0xa0], xmm6
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 rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x7b
call fcn.140065e60
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bd980
mov rcx, rdi
call fcn.140052620
test al, al
jne 0x140075bca
mov rcx, rsi
call fcn.140052620
test al, al
jne 0x140075bc8
cmp byte [rdi + 0x17], 0
jns 0x140075bb8
cmp qword [rdi + 8], 0x103
ja 0x140075bc8
cmp byte [rsi + 0x17], 0
jns 0x140075bfe
cmp qword [rsi + 8], 0x103
jbe 0x140075bfe
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140136dd0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
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 rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.140065e60
lea r8, [0x1401abbf8]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400be150
cmp byte [rsi + 0x17], 0
jns 0x140075c46
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140075c53
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140075c91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140075c88
mov eax, edi
and eax, 1
je 0x140075c88
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140075c93
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400be240
jmp 0x140075bca
Function at 0x140075af0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
xor r8d, r8d
jmp 0x140075af0
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140174f60]
movaps xmmword [rsp + 0xa0], xmm6
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 rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x7b
call fcn.140065e60
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bd980
mov rcx, rdi
call fcn.140052620
test al, al
jne 0x140075bca
mov rcx, rsi
call fcn.140052620
test al, al
jne 0x140075bc8
cmp byte [rdi + 0x17], 0
jns 0x140075bb8
cmp qword [rdi + 8], 0x103
ja 0x140075bc8
cmp byte [rsi + 0x17], 0
jns 0x140075bfe
cmp qword [rsi + 8], 0x103
jbe 0x140075bfe
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140136dd0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
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 rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.140065e60
lea r8, [0x1401abbf8]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400be150
cmp byte [rsi + 0x17], 0
jns 0x140075c46
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140075c53
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140075c91
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140075c88
mov eax, edi
and eax, 1
je 0x140075c88
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140075c93
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400be240
jmp 0x140075bca
Function at 0x140075cb0
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 r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140139be0
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.140093690
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.140093920
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140075d4a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140075ea2
lea rsi, [rsp + 0x48]
lea rbx, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x140075d7c
mov r13d, ebp
test rax, rax
je 0x140075ea2
mov r8d, 0x250
mov rcx, rsi
mov dl, 0xaa
call fcn.140139be0
mov rcx, rbx
mov rdx, rsi
call fcn.140093890
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140075de0
test r15b, r15b
jne 0x140075dc8
mov rcx, rsi
call fcn.1400935c0
test al, al
je 0x140075dc4
mov rcx, rsi
call fcn.1400935c0
xor ebp, ebp
test al, al
je 0x140075e30
jmp 0x140075e5e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140075dda
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call fcn.1400935c0
test al, al
je 0x140075e30
xor ebp, ebp
test r15b, r15b
je 0x140075e5e
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140075cb0
mov ebp, eax
test eax, eax
jne 0x140075e5e
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140075e16
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140075e5e
jmp 0x140075e48
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140075e3f
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x140075e5e
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, rsi
call fcn.140019ae0
mov rcx, rbx
mov rdx, rsi
call fcn.140093920
mov rcx, rdi
mov rdx, rsi
call fcn.140050640
mov rcx, rsi
call fcn.1400505d0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140075d70
mov rax, qword [rsp + 0x38]
jmp 0x140075d70
lea rcx, [rsp + 0x30]
call fcn.1400505d0
lea rcx, [rsp + 0x298]
call fcn.140093820
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140136dd0
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 0x140075ee0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x140075f2e
cmp byte [r14 + 0x17], 0
js 0x140076011
mov byte [r14], 0
mov byte [r14 + 0x17], 0
test rbx, rbx
je 0x140076028
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.140147d1c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0xcb
call fcn.140065e60
lea rcx, [rsp + 0x80]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bd980
xorps xmm6, xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.140147cf4
mov ecx, eax
call fcn.140148b6c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14007602f
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov esi, 0xffff
cmovg rsi, rax
jmp 0x140076034
mov rax, qword [r14]
mov byte [rax], 0
mov qword [r14 + 8], 0
test rbx, rbx
jne 0x140075f37
xor esi, esi
jmp 0x140076133
mov esi, 0xffff
cmp rsi, r15
cmova rsi, r15
add rsi, 1
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
lea r12, [rsp + 0x20]
mov rcx, r12
mov rdx, rsi
xor r8d, r8d
call fcn.14004472a
mov r13d, 0x10000
xor edi, edi
nop dword [rax + rax]
cmp byte [rsp + 0x37], 0
mov rcx, r12
jns 0x14007607f
mov rcx, qword [rsp + 0x20]
add rcx, rdi
mov edx, 1
mov r8, rsi
mov r9, rbx
call fcn.140150564
test rax, rax
je 0x1400760cd
mov rcx, r15
sub rcx, rdi
cmp rcx, rax
jb 0x140076160
test rdi, rdi
cmove rsi, r13
add rdi, rax
mov rcx, rbx
call fcn.140150110
test eax, eax
jne 0x1400760cd
lea rdx, [rdi + rsi]
mov rcx, r12
xor r8d, r8d
call fcn.14004472a
jmp 0x140076070
mov rcx, rbx
call fcn.14015013c
test eax, eax
sete sil
mov r15, rdi
test r14, r14
je 0x140076115
movups xmm0, xmmword [r14]
mov rax, qword [r14 + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [r14 + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [r14], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004472a
cmp byte [rsp + 0x37], 0
jns 0x140076126
mov rcx, qword [rsp + 0x20]
call fcn.140136524
lea rcx, [rsp + 0x80]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
test r14, r14
jne 0x1400760e3
jmp 0x140076115
Function at 0x140076cd0
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.140076e30
mov qword [rsi], 0
test rax, rax
je 0x140076d38
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140076d1e
call fcn.140065e80
mov rcx, qword [rsi]
call fcn.1400be320
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140076d30
mov qword [rsi], rbx
call fcn.140065e80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140050490
lea rcx, [rsi + 0x20]
call fcn.1400be370
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, 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 0x140076f80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov esi, r9d
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rbx
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x3e
call fcn.140065e60
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
test esi, esi
js 0x14007708a
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be350
test al, al
je 0x14007704c
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.1400be440
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r12]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140077091
mov esi, dword [rsp + 0x2c]
jmp 0x1400770a2
mov esi, 0xffffffff
jmp 0x1400770ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400be3e0
lea rcx, [rsp + 0x60]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400770e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x57
call fcn.140065e60
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
test esi, esi
js 0x1400771d3
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be350
test al, al
je 0x1400771a4
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400be440
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400771da
mov esi, dword [rsp + 0x2c]
jmp 0x1400771eb
mov esi, 0xffffffff
jmp 0x1400771f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400be3e0
lea rcx, [rsp + 0x50]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140077220
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x90], xmm0
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 rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.140065e60
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
test esi, esi
js 0x140077320
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be350
test al, al
je 0x1400772e4
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400be440
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
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.1400be3e0
jmp 0x140077325
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140077350
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0x90], xmm0
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, 0x9c
call fcn.140065e60
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bd980
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be350
test al, al
je 0x140077406
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400be440
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.1400be3e0
lea rcx, [rsp + 0x50]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140136dd0
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400778b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r12d, r8d
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140174f60]
movaps xmmword [rsp + 0xa0], xmm0
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 rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x160
call fcn.140065e60
lea rcx, [rsp + 0x60]
mov rdx, rbp
xor r8d, r8d
call fcn.1400bd980
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140077ac3
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, 0x80
cmove ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov ebp, r12d
and ebp, 0x400
mov ecx, ebp
shl ecx, 0x14
mov edi, r12d
shr edi, 3
and edi, 0x100
or edi, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, edi
mov edi, r12d
shl edi, 0xd
and edi, 0x4000000
or edi, ecx
mov esi, r12d
shl esi, 8
mov ecx, esi
and ecx, 0x2000000
or ecx, edi
and esi, 0x8000000
or esi, ecx
cmp byte [rbx + 0x17], 0
jns 0x140077a36
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r15], rax
je 0x140077aa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [r15]
add rax, 1
cmp rax, 2
jb 0x140077a85
call fcn.140065e80
mov rcx, qword [r15]
call fcn.1400be320
mov qword [r15], 0
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140077a9a
mov qword [r15], rbx
call fcn.140065e80
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
add rbx, 1
cmp rbx, 2
jae 0x140077ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140077630
mov dword [r15 + 0x24], eax
jmp 0x140077b0a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140077b0a
shr ebp, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], bpl
test r12b, 4
jne 0x140077afa
test r12b, 0xa
je 0x140077b0a
mov byte [r15 + 0x28], 1
jmp 0x140077b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400bdca0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140136dd0
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140077b40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140077b9d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jb 0x140077b7b
call fcn.140065e80
mov rcx, qword [rdi]
call fcn.1400be320
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140077b8d
mov qword [rdi], rsi
call fcn.140065e80
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