joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075b30
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140175f60]
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, [0x140181c54]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x359
call fcn.140066190
lea rcx, [rsp + 0x60]
xor esi, esi
mov rdx, rdi
xor r8d, r8d
call fcn.1400bdcc0
cmp byte [rbp + 0x17], 0
jns 0x140075bd2
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 0x140075c75
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140075c24
call fcn.1400661b0
mov rsi, rbx
jmp 0x140075c26
xor esi, esi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140075c75
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 0x140075c8c
call fcn.1400661b0
mov rcx, rsi
call fcn.1400be660
lea rcx, [rsp + 0x60]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140137110
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140075e20
Capabilities:
Check if file exists
Copy file

Disassembly:
xor r8d, r8d
jmp 0x140075e30
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bdcc0
mov rcx, rdi
call fcn.1400526f0
test al, al
jne 0x140075f0a
mov rcx, rsi
call fcn.1400526f0
test al, al
jne 0x140075f08
cmp byte [rdi + 0x17], 0
jns 0x140075ef8
cmp qword [rdi + 8], 0x103
ja 0x140075f08
cmp byte [rsi + 0x17], 0
jns 0x140075f3e
cmp qword [rsi + 8], 0x103
jbe 0x140075f3e
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140137110
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.140066190
lea r8, [0x1401acc20]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400be490
cmp byte [rsi + 0x17], 0
jns 0x140075f86
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140075f93
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140075fd1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140075fc8
mov eax, edi
and eax, 1
je 0x140075fc8
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140075fd3
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400be580
jmp 0x140075f0a
Function at 0x140075e30
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
xor r8d, r8d
jmp 0x140075e30
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bdcc0
mov rcx, rdi
call fcn.1400526f0
test al, al
jne 0x140075f0a
mov rcx, rsi
call fcn.1400526f0
test al, al
jne 0x140075f08
cmp byte [rdi + 0x17], 0
jns 0x140075ef8
cmp qword [rdi + 8], 0x103
ja 0x140075f08
cmp byte [rsi + 0x17], 0
jns 0x140075f3e
cmp qword [rsi + 8], 0x103
jbe 0x140075f3e
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140137110
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.140066190
lea r8, [0x1401acc20]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400be490
cmp byte [rsi + 0x17], 0
jns 0x140075f86
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140075f93
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140075fd1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140075fc8
mov eax, edi
and eax, 1
je 0x140075fc8
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140075fd3
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400be580
jmp 0x140075f0a
Function at 0x140075ff0
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140139f20
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.1400939d0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140175f60]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.140093c60
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14007608a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400761e2
lea rsi, [rsp + 0x48]
lea rbx, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x1400760bc
mov r13d, ebp
test rax, rax
je 0x1400761e2
mov r8d, 0x250
mov rcx, rsi
mov dl, 0xaa
call fcn.140139f20
mov rcx, rbx
mov rdx, rsi
call fcn.140093bd0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140076120
test r15b, r15b
jne 0x140076108
mov rcx, rsi
call fcn.140093900
test al, al
je 0x140076104
mov rcx, rsi
call fcn.140093900
xor ebp, ebp
test al, al
je 0x140076170
jmp 0x14007619e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14007611a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call fcn.140093900
test al, al
je 0x140076170
xor ebp, ebp
test r15b, r15b
je 0x14007619e
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140075ff0
mov ebp, eax
test eax, eax
jne 0x14007619e
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140076156
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14007619e
jmp 0x140076188
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14007617f
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x14007619e
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.140093c60
mov rcx, rdi
mov rdx, rsi
call fcn.140050710
mov rcx, rsi
call fcn.1400506a0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400760b0
mov rax, qword [rsp + 0x38]
jmp 0x1400760b0
lea rcx, [rsp + 0x30]
call fcn.1400506a0
lea rcx, [rsp + 0x298]
call fcn.140093b60
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140137110
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 0x140076220
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x14007626e
cmp byte [r14 + 0x17], 0
js 0x140076351
mov byte [r14], 0
mov byte [r14 + 0x17], 0
test rbx, rbx
je 0x140076368
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.14014805c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x80]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bdcc0
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.140148034
mov ecx, eax
call fcn.140148eac
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14007636f
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 0x140076374
mov rax, qword [r14]
mov byte [rax], 0
mov qword [r14 + 8], 0
test rbx, rbx
jne 0x140076277
xor esi, esi
jmp 0x140076473
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.1400447fa
mov r13d, 0x10000
xor edi, edi
nop dword [rax + rax]
cmp byte [rsp + 0x37], 0
mov rcx, r12
jns 0x1400763bf
mov rcx, qword [rsp + 0x20]
add rcx, rdi
mov edx, 1
mov r8, rsi
mov r9, rbx
call fcn.1401508a4
test rax, rax
je 0x14007640d
mov rcx, r15
sub rcx, rdi
cmp rcx, rax
jb 0x1400764a0
test rdi, rdi
cmove rsi, r13
add rdi, rax
mov rcx, rbx
call fcn.140150450
test eax, eax
jne 0x14007640d
lea rdx, [rdi + rsi]
mov rcx, r12
xor r8d, r8d
call fcn.1400447fa
jmp 0x1400763b0
mov rcx, rbx
call fcn.14015047c
test eax, eax
sete sil
mov r15, rdi
test r14, r14
je 0x140076455
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.1400447fa
cmp byte [rsp + 0x37], 0
jns 0x140076466
mov rcx, qword [rsp + 0x20]
call fcn.140136864
lea rcx, [rsp + 0x80]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140137110
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 0x140076423
jmp 0x140076455
Function at 0x140077010
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.140077170
mov qword [rsi], 0
test rax, rax
je 0x140077078
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14007705e
call fcn.1400661b0
mov rcx, qword [rsi]
call fcn.1400be660
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140077070
mov qword [rsi], rbx
call fcn.1400661b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140050560
lea rcx, [rsi + 0x20]
call fcn.1400be6b0
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 0x1400772c0
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rbx
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bdcc0
test esi, esi
js 0x1400773ca
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be690
test al, al
je 0x14007738c
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.1400be780
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 0x1400773d1
mov esi, dword [rsp + 0x2c]
jmp 0x1400773e2
mov esi, 0xffffffff
jmp 0x1400773ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400be720
lea rcx, [rsp + 0x60]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140077420
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bdcc0
test esi, esi
js 0x140077513
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be690
test al, al
je 0x1400774e4
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400be780
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 0x14007751a
mov esi, dword [rsp + 0x2c]
jmp 0x14007752b
mov esi, 0xffffffff
jmp 0x140077535
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400be720
lea rcx, [rsp + 0x50]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140077560
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bdcc0
test esi, esi
js 0x140077660
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be690
test al, al
je 0x140077624
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400be780
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.1400be720
jmp 0x140077665
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140077690
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bdcc0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400be690
test al, al
je 0x140077746
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400be780
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.1400be720
lea rcx, [rsp + 0x50]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140077bf0
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140175f60]
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.140066190
lea rcx, [rsp + 0x60]
mov rdx, rbp
xor r8d, r8d
call fcn.1400bdcc0
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 0x140077e03
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 0x140077d76
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 0x140077de6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [r15]
add rax, 1
cmp rax, 2
jb 0x140077dc5
call fcn.1400661b0
mov rcx, qword [r15]
call fcn.1400be660
mov qword [r15], 0
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140077dda
mov qword [r15], rbx
call fcn.1400661b0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
add rbx, 1
cmp rbx, 2
jae 0x140077e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140077970
mov dword [r15 + 0x24], eax
jmp 0x140077e4a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140077e4a
shr ebp, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], bpl
test r12b, 4
jne 0x140077e3a
test r12b, 0xa
je 0x140077e4a
mov byte [r15 + 0x28], 1
jmp 0x140077e4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400bdfe0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140137110
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140077e80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140077edd
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 0x140077ebb
call fcn.1400661b0
mov rcx, qword [rdi]
call fcn.1400be660
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140077ecd
mov qword [rdi], rsi
call fcn.1400661b0
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