joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006eb30
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140163d10]
cmp ecx, 0xffffffff
je 0x14006eb5e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006eb63
call fcn.14006e9c0
mov eax, dword [0x140169988]
mov ecx, dword [0x1401653f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006ec1f
mov r15, qword [0x140169980]
mov rcx, r15
call fcn.14007ae30
mov rcx, qword [0x140168178]
inc rcx
mov edx, 0x100
lea rax, [0x140168180]
movzx edi, cl
lea rbx, [rdi + rdi*2]
cmp dword [rax + rbx*8], 0
je 0x14006ebd6
lea ebx, [rcx + 1]
movzx edi, bl
lea rbx, [rdi + rdi*2]
cmp dword [rax + rbx*8], 0
je 0x14006ebd6
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x14006ebad
jmp 0x14006ebf9
lea rcx, [rax + rbx*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140168178], rdi
mov dword [rsi], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 4], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
cmp eax, 0xffffffff
je 0x14006ec65
cmp eax, 0x100
jge 0x14006ec68
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140169988]
call fcn.1400ef8f0
cmp dword [0x140169988], 0xffffffff
jne 0x14006eb88
mov ecx, 8
call fcn.1400ef770
mov rbx, rax
mov rcx, rax
call fcn.14007ae20
mov qword [0x140169980], rbx
lea rcx, [0x140169988]
call fcn.1400ef988
jmp 0x14006eb88
int3
int3

Function at 0x14006ed40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x140169990]
cmp rsi, 1
jbe 0x14006ed83
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006edc1
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14006edc1
mov rax, qword [rax + rcx]
test rax, rax
je 0x14006edc1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140169990]
call fcn.140063590
test al, al
je 0x14006edb8
mov qword [0x140169998], 0
lea rsi, [0x140169998]
mov rcx, rsi
xor edx, edx
call fcn.14006eb30
mov qword [0x140169990], rsi
jmp 0x14006ed52
mov rsi, qword [0x140169990]
jmp 0x14006ed52
int3

Function at 0x14006edd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x140169990]
cmp rsi, 1
jbe 0x14006ee12
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006ee47
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14006ee47
cmp qword [rax + rcx], 0
setne al
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140169990]
call fcn.140063590
test al, al
je 0x14006ee4b
mov qword [0x140169998], 0
lea rsi, [0x140169998]
mov rcx, rsi
xor edx, edx
call fcn.14006eb30
mov qword [0x140169990], rsi
jmp 0x14006ede2
xor eax, eax
jmp 0x14006ee0c
mov rsi, qword [0x140169990]
jmp 0x14006ede2
Function at 0x140078980
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x1a9
call fcn.140063670
lea rcx, [rsp + 0x40]
mov rdx, rdi
xor r8d, r8d
call fcn.14006e480
cmp byte [rsi + 0x17], 0
jns 0x1400789e6
cmp qword [rsi + 8], 0x103
jbe 0x1400789e3
xor esi, esi
jmp 0x1400789fd
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.14006e560
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1f4
call fcn.140063670
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14006e480
cmp byte [rsi + 0x17], 0
jns 0x140078a8c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14006e560
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f0560
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x206
call fcn.140063670
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14006e480
cmp byte [rsi + 0x17], 0
jns 0x140078b1c
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.14006e560
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140078b60
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140078c1f
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x140078c1b
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140078bae
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140060c90
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.1400620b0
mov rcx, rsi
mov rdx, rbx
call fcn.140060e10
mov rcx, rbx
call fcn.140060de0
mov rcx, rdi
call fcn.140060de0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140078bba
xor esi, esi
jmp 0x140078bfe

Function at 0x140078c30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
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 0x140078cb8
cmp word [rsp + 0x60], 0
je 0x140078cb8
mov qword [rsp + 0x50], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140078c7e
lea rdx, [rsp + 0x50]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140060c90
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400f0560
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140060c50
mov rcx, rdi
call fcn.140078b60
test al, al
je 0x140078ce0
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140060c70
jmp 0x140078cff
lea rax, [0x140136bf0]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140060c90
lea rcx, [rsp + 0x38]
call fcn.140060de0
jmp 0x140078c9b
Function at 0x140079100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov r9d, 0x290
call fcn.140063670
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14006e480
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140079169
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400791af
mov bl, 1
test al, 0x10
je 0x1400792e2
lea rcx, [rsp + 0x38]
call fcn.14006e560
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400f0560
mov eax, ebx
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140060e80
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x1400791cf
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
test sil, sil
jns 0x140079220
cmp rax, qword [rdi + 8]
jne 0x140079228
mov rdx, qword [rdi]
test rax, rax
je 0x140079204
test cl, cl
jns 0x1400791ef
mov rbp, qword [rsp + 0x20]
xor ecx, ecx
movzx esi, word [rbp + rcx*2]
cmp si, word [rdx + rcx*2]
jne 0x140079228
inc rcx
cmp rax, rcx
jne 0x1400791f1
test r12, r12
je 0x140079211
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14007924a
mov rdx, rdi
cmp rax, rsi
je 0x1400791e1
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140079100
test al, al
je 0x14007921c
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140079259
lea rcx, [rsp + 0x20]
call fcn.140060de0
jmp 0x140079181
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x1400792c9
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x88]
mov rcx, rbp
mov r9d, 0x206
call fcn.140063670
lea r15, [rsp + 0xa8]
mov rcx, r15
mov rdx, rbp
xor r8d, r8d
call fcn.14006e480
cmp byte [rdi + 0x17], 0
jns 0x1400792ac
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r15
call fcn.14006e560
cmp edi, 0xffffffff
je 0x1400792c9
and edi, 0x10
jne 0x14007924a
test r12, r12
je 0x1400792da
mov ecx, r14d
call fcn.140079c20
mov dword [r12], eax
mov ecx, r14d
jmp 0x140079216
test r12, r12
je 0x1400792ef
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140079181
Function at 0x140079310
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x2c0
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
lea rdx, [0x140136c2b]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x3b7
call fcn.140063670
lea rcx, [rsp + 0x60]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14006e480
mov word [rbx], 0
lea rbx, [rsp + 0xb0]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1400793ee
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0xb0], 0
je 0x140079415
xor eax, eax
cmp word [rsp + rax*2 + 0xb2], 0
lea rax, [rax + 1]
jne 0x14007939b
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140060c90
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.1400620b0
mov rcx, rsi
mov rdx, rbx
call fcn.140060e10
mov rcx, rbx
call fcn.140060de0
mov rcx, rdi
call fcn.140060de0
mov dil, 1
lea rcx, [rsp + 0x60]
call fcn.14006e560
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.1400f0560
mov eax, edi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400793aa

Function at 0x140079420
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, [0x140136c40]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x3c7
call fcn.140063670
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14006e480
cmp byte [rsi + 0x17], 0
jns 0x14007947c
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14006e560
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f0560
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140079540
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 r14d, r8d
mov r15, rdx
mov rdx, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov qword [rsp + 0x20], r15
xor r13d, r13d
lea rbx, [rsp + 0x298]
mov rcx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.14007c840
lea rdi, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.14007cb10
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400795ac
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14007968c
lea rbx, [rsp + 0x298]
lea rbp, [rsp + 0x48]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov rcx, rbx
mov rdx, rbp
call fcn.14007ca80
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400796e7
mov rcx, rbp
call fcn.14007c740
test al, al
jne 0x140079654
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400795fe
mov rcx, qword [rsp + 0x30]
call r12
xor r13d, r13d
test eax, eax
je 0x1400796ca
test esi, esi
cmovne r13d, esi
mov rcx, rbp
call fcn.140032c30
mov rcx, rbx
mov rdx, rbp
call fcn.14007cb10
mov rcx, rdi
mov rdx, rbp
call fcn.140060e10
mov rcx, rbp
call fcn.140060de0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140079646
mov rax, qword [rsp + 0x38]
mov esi, r13d
test rax, rax
jne 0x1400795cb
jmp 0x14007968c
xor r13d, r13d
test r14b, r14b
je 0x14007960c
mov rcx, rdi
mov rdx, r15
mov r8b, 1
call fcn.140079540
test eax, eax
jne 0x140079709
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140079681
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140079604
lea rcx, [rsp + 0x30]
call fcn.140060de0
lea rcx, [rsp + 0x298]
call fcn.14007c920
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400f0560
mov eax, r13d
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove r13d, eax
jmp 0x14007960c
test r14b, r14b
je 0x140079711
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400796fe
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400795e3
mov r13d, eax
jmp 0x14007960c
mov rcx, rbp
call fcn.14007c740
test al, al
je 0x140079735
mov rcx, rbp
call fcn.14007c740
test al, al
je 0x1400795ef
xor r13d, r13d
jmp 0x14007960c
mov edx, dword [rsp + 0x48]
jmp 0x1400796ec
Function at 0x140079860
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x57
call fcn.140063670
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14006e480
test esi, esi
js 0x140079927
lea rcx, [rsp + 0x30]
call fcn.14007ae20
call fcn.1400c9960
test al, al
jne 0x14007992e
mov rcx, qword [rbx]
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 0x140079947
mov esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.1400c99b0
lea rcx, [rsp + 0x50]
call fcn.14006e560
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov esi, 0xffffffff
jmp 0x1400798fe
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400c99e0
jmp 0x1400798cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1400798f4

Function at 0x140079960
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.140063670
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14006e480
test esi, esi
js 0x140079a2b
lea rcx, [rsp + 0x30]
call fcn.14007ae20
call fcn.1400c9960
test al, al
jne 0x140079a32
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400c99b0
lea rcx, [rsp + 0x50]
call fcn.14006e560
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400f0560
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov esi, 0xffffffff
jmp 0x140079a02
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400c99e0
jmp 0x1400799cf
Function at 0x140079a50
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.140063670
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.14006e480
lea rcx, [rsp + 0x30]
call fcn.14007ae20
call fcn.1400c9960
test al, al
jne 0x140079aff
mov rcx, qword [rsi]
lea rsi, [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edi, edi
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.1400c99b0
lea rcx, [rsp + 0x50]
call fcn.14006e560
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400f0560
mov rax, rdi
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400c99e0
jmp 0x140079ab2
Function at 0x140079d40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov r12d, r8d
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rdx, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x15a
call fcn.140063670
lea rcx, [rsp + 0x58]
mov rdx, rbp
xor r8d, r8d
call fcn.14006e480
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 0x140079f9e
mov edi, r12d
and edi, 0x40
shl edi, 0x18
test r12b, r12b
cmovs edi, ecx
mov edx, r12d
rol edx, 0x1a
mov ecx, r12d
shl ecx, 0xb
and ecx, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, ecx
or edx, esi
or edx, edi
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
xor ecx, ecx
cmp byte [rbx + 0x17], cl
jns 0x140079e8b
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 0x140079f25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jb 0x140079eef
call fcn.140063690
mov r8, qword [rsp + 0xe8]
mov rcx, qword [r15]
mov rdx, r15
mov r9, rax
call fcn.14007bc30
mov rcx, qword [r15]
call fcn.14007bba0
mov qword [r15], 0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140079f19
mov qword [r15], rbx
call fcn.140063690
mov r8, qword [rsp + 0xe8]
mov rcx, rbx
mov rdx, r15
mov r9, rax
call fcn.14007bbe0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
inc rbx
cmp rbx, 2
jae 0x140079f6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140079c20
mov dword [r15 + 0x24], eax
lea rcx, [rsp + 0x58]
call fcn.14006e560
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400f0560
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
shr ebp, 0xa
xor eax, eax
mov dword [r15 + 0x24], eax
mov byte [r15 + 0x29], bpl
test r12b, 4
jne 0x140079f8c
test r12b, 0xa
je 0x140079f3f
mov byte [r15 + 0x28], 1
jmp 0x140079f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
jmp 0x140079f3f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140079f3f
Function at 0x14007a810
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14007a8df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14007a89d
call fcn.140063690
mov r15, rax
mov r14, qword [rsp + 0x58]
mov r12, qword [rsi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007a8ff
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, r12
mov r8, rsi
mov r9, r14
call qword [rax + 0x10]
mov r14, qword [rsi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007a910
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007a8d7
mov qword [rsi], rdi
call fcn.140063690
mov r15, rax
mov r14, qword [rsp + 0x58]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007a921
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [rax + 8]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14007a92f
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007a867
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007a88e
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007a8c3
int3
Function at 0x14007a9d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea rbp, [rbx + 1]
cmp rbp, 2
jae 0x14007aa55
cmp qword [rsi], rbx
je 0x14007aa2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007aae6
cmp rbp, 2
jae 0x14007ab41
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14007aa8b
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140063690
mov r15, rax
mov r14, qword [rsp + 0x68]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007ab76
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [rax + 0x10]
jmp 0x14007a9fa
call fcn.140063690
mov rbp, rax
mov r14, qword [rsp + 0x68]
mov rbx, qword [rdi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007ab87
mov rax, qword [rcx]
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [rax + 0x10]
mov rbx, qword [rdi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007ab98
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rdi], 0
jmp 0x14007aa41
call fcn.140063690
mov r15, rax
mov r14, qword [rsp + 0x68]
mov r12, qword [rsi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007aba9
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, r12
mov r8, rsi
mov r9, r14
call qword [rax + 0x10]
mov r14, qword [rsi]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007abba
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14007aa18
mov qword [rsi], rbx
call fcn.140063690
mov r15, rax
mov r14, qword [rsp + 0x68]
mov rcx, qword [0x14016a370]
test rcx, rcx
je 0x14007abcb
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov r8, rsi
mov r9, r14
call qword [rax + 8]
jmp 0x14007aa22
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007aa72
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007aaab
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007aad2
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007ab06
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007ab2d
call fcn.1400dae20
mov rcx, qword [0x14016a370]
jmp 0x14007ab5d