joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051250
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx r14d, word [rcx + 0x28]
movzx r12d, word [rcx + 0x2a]
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call rsi
mov word [rsp + 0x3e], ax
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400514f0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140051354
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140051354
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140051354
dec r8d
mov rcx, r15
call fcn.14012da70
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
movzx eax, bp
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400514f0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400513d3
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400513d3
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140051320
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400514f0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140051457
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140051457
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140051320
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
movzx eax, word [rsp + 0x3e]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400514f0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400514dc
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400514dc
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140051320
xor esi, esi
jmp 0x14005132e
Function at 0x140051880
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x450]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, [0x14029db83]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x240]
mov rcx, rbp
mov r9d, 0x17c
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbp
xor r8d, r8d
call fcn.140131050
lea rsi, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005192e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rsi
call fcn.14004fd60
mov rcx, rsi
call fcn.140130a50
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140145e20
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x140051965
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rsi
call fcn.14004fd60
mov rcx, rsi
call fcn.140130a50
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140051987
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140051993
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov sil, 1
test eax, eax
je 0x1400519de
lea rcx, [rsp + 0x450]
call fcn.1401310b0
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052d50
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400519f6
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400519ff
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
jne 0x1400519b1
test r14, r14
je 0x1400519b1
cmp ebp, 0xfffffffc
jne 0x140051a24
call fcn.140198b10
mov ebp, eax
mov dword [r14], ebp
xor esi, esi
jmp 0x1400519b1

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, 0x1af
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
cmp byte [rdi + 0x17], 0
jns 0x140051ab4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140051af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, 0x1d7
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
cmp byte [rdi + 0x17], 0
jns 0x140051b74
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.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140051bc0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140051c5f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14015ded4
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140049ea0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14004b930
mov rcx, r14
mov rdx, rsi
call fcn.140049fe0
mov rcx, rsi
call fcn.1401295d0
mov rcx, rbx
call fcn.1401295d0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140052020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x1402961a0]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x264
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400520b6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140052102
mov sil, 1
test al, 0x10
je 0x14005219c
lea rcx, [rsp + 0x40]
call fcn.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.14004a990
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x140052129
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x140052138
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x1400521ba
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140052020
test al, al
je 0x140052204
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x140052173
lea rcx, [rsp + 0x20]
call fcn.1401295d0
jmp 0x1400520cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14005218e
mov rcx, rdi
call fcn.140051af0
test al, al
jne 0x140052164
test r14, r14
je 0x1400521fc
mov ecx, ebx
call fcn.140052d50
jmp 0x1400521f9
test r14, r14
je 0x1400521a8
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400520cf
test r8, r8
je 0x1400521ea
test cl, cl
jns 0x1400521c8
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x1400521d2
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x14005213d
inc rdx
cmp r8, rdx
jne 0x1400521d4
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x1400521fc
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140052164
Function at 0x1400524e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, [0x14029dc3d]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x358
call fcn.14012aa00
xor r15d, r15d
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.140131050
cmp byte [rdi + 0x17], 0
jns 0x140052572
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 0x1400525c9
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140052651
call fcn.14012aa20
mov r15, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [r15 + 1]
cmp rdi, 2
jb 0x140052659
lea rsi, [rsp + 0x40]
mov dword [rsi], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
mov r8d, ebp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsi]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, ebp
mov esi, 0xffffffff
cmove esi, ecx
or esi, edx
cmp rdi, 2
jb 0x140052625
call fcn.14012aa20
mov rcx, r15
call fcn.14012dff0
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r15d, r15d
jmp 0x1400525c1
mov esi, 0xffffffff
jmp 0x140052612

Function at 0x140052660
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, [0x14029dc5c]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3a0
call fcn.14012aa00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
cmp byte [rdi + 0x17], 0
jns 0x1400526e4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1401310b0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140052880
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1402961a0]
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, 0x88
call fcn.14012aa00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
test esi, esi
js 0x140052988
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140130e60
test al, al
jne 0x14005298f
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.140130e80
lea rcx, [rsp + 0x50]
call fcn.1401310b0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14005295b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1401ea6f0
jmp 0x140052922

Function at 0x1400529b0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x1402961a0]
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, 0x9c
call fcn.14012aa00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.140130e60
test al, al
jne 0x140052a94
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.140130e80
lea rcx, [rsp + 0x50]
call fcn.1401310b0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140143020
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.1401ea6f0
jmp 0x140052a41
Function at 0x140052ab0
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1402961a0]
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, 0xa9
call fcn.14012aa00
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.140130e60
test al, al
jne 0x140052bdc
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 0x140052ba7
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 0x140052ba7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140052bf8
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.140130e80
lea rcx, [rsp + 0x50]
call fcn.1401310b0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140143020
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.1401ea6f0
jmp 0x140052b4a
xor ebx, ebx
jmp 0x140052ba7
Function at 0x140052eb0
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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, 0x160
call fcn.14012aa00
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
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 0x140053112
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, r15b
cmovns 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
mov esi, ecx
and esi, 0x2000000
or esi, ebp
and ecx, 0x8000000
or ecx, esi
cmp byte [rbx + 0x17], 0
jns 0x140053024
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 0x140053080
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x1400530e7
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140053075
mov qword [r14], rbx
call fcn.14012aa20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jae 0x1400530c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052d50
mov dword [r14 + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140143020
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x140053100
test r15b, 0xa
je 0x14005309a
mov byte [r14 + 0x28], 1
jmp 0x14005309a
call fcn.14012aa20
mov rcx, qword [r14]
call fcn.14012dff0
mov qword [r14], 0
jmp 0x140053061
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x14005309a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x14005309a
Function at 0x140053220
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140053268
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 0x140053271
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140053258
mov qword [rdi], rsi
call fcn.14012aa20
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.14012aa20
mov rcx, qword [rdi]
call fcn.14012dff0
mov qword [rdi], 0
jmp 0x140053246

Function at 0x1400532c0
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 [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
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_files_memory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1a
call fcn.14012aa00
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140131050
mov rcx, rsi
call fcn.140052720
test al, al
je 0x140053417
mov rcx, rsi
call fcn.140052730
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 rbx, rax
cmp qword [rsi + 0x40], rax
je 0x1400533bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140053440
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400533b3
mov qword [rsi + 0x40], rbx
call fcn.14012aa20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14005345b
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140053417
lea rdx, fcn.140175110
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.1400b43e0
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1401310b0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140143020
mov eax, edi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14012aa20
mov rcx, qword [rsi + 0x40]
call fcn.14012dff0
mov qword [rsi + 0x40], 0
jmp 0x14005339e
xor edi, edi
jmp 0x140053417