joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081380
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x140338e13]
lea r8, str....._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x1a0
call fcn.140160630
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.14016ac30
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.1401bd200
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14008142f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.140169090
mov rcx, rbp
call fcn.140155a00
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.1401bd200
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140081466
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.140169090
mov rcx, rbp
call fcn.140155a00
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140081488
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140081494
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 0x140081518
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140082d20
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400814c7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400814d0
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test r14, r14
je 0x1400814eb
test eax, eax
je 0x14008151d
lea rcx, [rsp + 0x450]
call fcn.14016ac90
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dil, 1
jmp 0x1400814eb
cmp ebp, 0xfffffffc
jne 0x140081529
call fcn.14022a680
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x1400814eb

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1d3
call fcn.140160630
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
cmp byte [rdi + 0x17], 0
jns 0x1400815b4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14016ac90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400815f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1fb
call fcn.140160630
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
cmp byte [rdi + 0x17], 0
jns 0x140081674
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.14016ac90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400816c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1401bd200
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140081763
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1401e2874
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14015eae0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140074670
mov rcx, r14
mov rdx, rsi
call fcn.14015ec30
mov rcx, rsi
call fcn.14015ebb0
mov rcx, rbx
call fcn.14015ebb0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140081790
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401bd200
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 0x140081825
cmp word [rsp + 0x70], 0
je 0x140081825
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1401e2874
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14015eae0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401bb0d0
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 [0x14032f5c0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14015ea60
mov rcx, rdi
call fcn.1400816c0
test al, al
je 0x140081865
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14015eac0
jmp 0x140081884
lea rax, [0x140338e3c]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14015eae0
lea rcx, [rsp + 0x40]
call fcn.14015ebb0
jmp 0x140081807
Function at 0x140082260
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 rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, [0x140338eb6]
lea r8, str....._base_files_file_util_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x382
call fcn.140160630
xor esi, esi
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.14016ac30
cmp byte [rdi + 0x17], 0
jns 0x1400822f1
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x140082348
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400823db
call fcn.140160650
mov rsi, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0xffffffff
test r15d, r15d
js 0x140082398
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140082398
lea rdi, [rsp + 0x40]
mov dword [rdi], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, r15d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rdi]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, r15d
mov edi, 0xffffffff
cmove edi, ecx
or edi, edx
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400823af
call fcn.140160650
mov rcx, rsi
call fcn.14016ddf0
lea rcx, [rsp + 0x60]
call fcn.14016ac90
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor esi, esi
jmp 0x140082340
Function at 0x1400823f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x140338ec0]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x3bb
call fcn.140160630
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401bd200
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1400824f7
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1401e2874
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14015eae0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140074670
mov rcx, r14
mov rdx, rsi
call fcn.14015ec30
mov rcx, rsi
call fcn.14015ebb0
mov rcx, rbx
call fcn.14015ebb0
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.14016ac90
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140082530
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x140338ed5]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3cb
call fcn.140160630
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
cmp byte [rdi + 0x17], 0
jns 0x1400825b4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14016ac90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400825f0
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 rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1401bd200
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400881d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140088370
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140082688
mov rax, qword [rsp + 0x38]
jmp 0x14008268b
and eax, 0x7f
test rax, rax
jne 0x1400826cd
lea rcx, [rsp + 0x30]
call fcn.14015ebb0
lea rcx, [rsp + 0x298]
call fcn.1400882c0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.1401bd200
mov rcx, r15
mov rdx, rbx
call fcn.140088330
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400827ef
mov rcx, rbx
call fcn.140088100
test al, al
jne 0x14008279d
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14008272b
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140082825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.1400399a0
mov rcx, r15
mov rdx, rbx
call fcn.140088370
mov rcx, rdi
mov rdx, rbx
call fcn.14015ec30
mov rcx, rbx
call fcn.14015ebb0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140082789
mov rax, qword [rsp + 0x38]
jmp 0x14008278c
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x140082690
jmp 0x1400826e4
xor ebp, ebp
test r14b, r14b
je 0x14008274c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400825f0
test eax, eax
jne 0x140082842
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400827c9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008274c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14008274c
test r14b, r14b
je 0x140082805
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14008282c
mov rcx, qword [rsp + 0x30]
jmp 0x140082831
lea rcx, [rsp + 0x48]
call fcn.140088100
test al, al
je 0x14008283c
lea rcx, [rsp + 0x48]
call fcn.140088100
test al, al
je 0x14008271c
xor ebp, ebp
jmp 0x14008274c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14008270c
mov edx, dword [rsp + 0x48]
jmp 0x1400827f4
mov ebp, eax
jmp 0x14008274c
Function at 0x140082850
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x93
call fcn.140160630
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
test esi, esi
js 0x140082958
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14017a620
test al, al
jne 0x14008295f
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
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.14017a6b0
lea rcx, [rsp + 0x50]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14008292b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1402895b0
jmp 0x1400828f2

Function at 0x140082980
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi + 0x40], xmm0
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, 0xa8
call fcn.140160630
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.14017a620
test al, al
jne 0x140082a64
lea rdi, [rsp + 0x28]
mov qword [rdi], rsi
mov rcx, qword [r14]
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.14017a6b0
lea rcx, [rsp + 0x50]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401bb0d0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, r14
xor r9d, r9d
call fcn.1402895b0
jmp 0x140082a11
Function at 0x140082a80
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbx + 0x40], xmm0
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 rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xb5
call fcn.140160630
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14016ac30
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.14017a620
test al, al
jne 0x140082bac
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 0x140082b77
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140082b77
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140082bc8
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.14017a6b0
lea rcx, [rsp + 0x50]
call fcn.14016ac90
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, r14
call fcn.1402895b0
jmp 0x140082b1a
xor ebx, ebx
jmp 0x140082b77
Function at 0x140082e90
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x16f
call fcn.140160630
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.14016ac30
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x1400830e9
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, 0x80
cmove ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
and ecx, 0xa000000
or ecx, ebp
cmp byte [rbx + 0x17], 0
jns 0x140082ffb
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x140083057
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x1400830d0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14008304c
mov qword [r14], rbx
call fcn.140160650
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x1400830ab
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x1400830be
test r15b, 0xa
je 0x140083080
mov byte [r14 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.14016ac90
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401bb0d0
nop
add rsp, 0xc8
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.140082d20
mov dword [r14 + 0x24], eax
jmp 0x140083080
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x140083080
call fcn.140160650
mov rcx, qword [r14]
call fcn.14016ddf0
mov qword [r14], 0
jmp 0x140083038
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x140083080
Function at 0x1400831f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140083238
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 0x140083241
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140083228
mov qword [rdi], rsi
call fcn.140160650
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.140160650
mov rcx, qword [rdi]
call fcn.14016ddf0
mov qword [rdi], 0
jmp 0x140083216

Function at 0x140083290
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.140160630
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14016ac30
mov rcx, rsi
call fcn.14016d620
test al, al
je 0x140083411
mov rcx, rsi
call fcn.140049f90
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14008338f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14008343a
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140083383
mov qword [rsi + 0x40], rdi
call fcn.140160650
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140083455
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rbx, qword [0x1403a3660]
mov rax, rbx
and rax, rcx
mov rdx, qword [0x1403a3648]
cmp rax, rdx
je 0x140083459
and rbx, rdi
cmp rbx, rdx
je 0x140083471
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x140083455
lea rax, fcn.140209e20
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.1400d7070
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140160650
mov rcx, qword [rsi + 0x40]
call fcn.14016ddf0
mov qword [rsi + 0x40], 0
jmp 0x14008336e
xor edi, edi
jmp 0x140083411
call fcn.1401617f0
mov rbx, qword [0x1403a3660]
mov rdx, qword [0x1403a3648]
jmp 0x1400833da
mov rcx, rdi
call fcn.1401616b0
jmp 0x1400833e6