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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x498], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rbp, [rsp + 0x30]
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, [0x1401e7aa3]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19b
call fcn.1400d95e0
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400e5a80
lea rbp, [rsp + 0x290]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140103d70
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005119e
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400dcde0
mov rcx, rbp
call fcn.1400d0fb0
lea rbp, [rsp + 0x80]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140103d70
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400511d8
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400dcde0
mov rcx, rbp
call fcn.1400d0fb0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400511fa
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140051206
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 0x140051269
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052a10
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140051239
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140051242
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 0x14005126c
test eax, eax
jne 0x14005126c
cmp ebp, 0xfffffffc
je 0x140051296
mov dword [r14], ebp
xor edi, edi
jmp 0x14005126c
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.1400e5c10
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14015d870
mov ebp, eax
jmp 0x140051262

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rsi, [rsp + 0x40]
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, 0x1ce
call fcn.1400d95e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x140051316
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400e5c10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140051350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rsi, [rsp + 0x40]
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, 0x1f6
call fcn.1400d95e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x1400513c6
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.1400e5c10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140051410
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400514af
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14011bf14
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400d7ac0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400498d0
mov rcx, r14
mov rdx, rsi
call fcn.1400d7bd0
mov rcx, rsi
call fcn.1400d7bc0
mov rcx, rbx
call fcn.1400d7bc0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400514e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140103d70
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 0x140051575
cmp word [rsp + 0x70], 0
je 0x140051575
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14011bf14
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400d7ac0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401013e0
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 [0x1401d9dd0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400d7a40
mov rcx, rdi
call fcn.140051410
test al, al
je 0x1400515b5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400d7aa0
jmp 0x1400515d4
lea rax, [0x1401e7acc]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400d7ac0
lea rcx, [rsp + 0x40]
call fcn.1400d7bc0
jmp 0x140051557
Function at 0x140051a10
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, 0x120
movaps xmmword [rsp + 0x110], xmm6
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x108], rax
movaps xmm6, xmmword [0x1401d9dd0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov r9d, 0x283
call fcn.1400d95e0
mov rcx, rbx
mov rdx, rbp
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140051a9e
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140051aec
mov bl, 1
test al, 0x10
je 0x140051c0a
lea rcx, [rsp + 0x40]
call fcn.1400e5c10
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm6
mov rcx, rdi
mov rdx, rbp
call fcn.1400d8410
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x140051b1e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x140051b2e
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x140051c29
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140051a10
test al, al
je 0x140051c73
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140051b6c
lea rcx, [rsp + 0x20]
call fcn.1400d7bc0
jmp 0x140051ab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x140051bf4
lea rbp, [rsp + 0xb0]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x1f6
call fcn.1400d95e0
mov rcx, rbp
mov rdx, r15
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x140051bd3
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbp
call fcn.1400e5c10
cmp edi, 0xffffffff
je 0x140051bf4
and edi, 0x10
jne 0x140051b5d
test r12, r12
je 0x140051c05
mov ecx, r14d
call fcn.140052a10
mov dword [r12], eax
mov ecx, r14d
jmp 0x140051c6d
test r12, r12
je 0x140051c17
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140051ab6
test rax, rax
je 0x140051c5b
test cl, cl
jns 0x140051c37
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x140051c42
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140051b37
inc rdx
cmp rax, rdx
jne 0x140051c44
test r12, r12
je 0x140051c68
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140051b5d
Function at 0x140051f40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rbx, [rsp + 0x60]
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, [0x1401e7b5d]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x377
call fcn.1400d95e0
xor r15d, r15d
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x140051fc4
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 0x14005201b
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400520a3
call fcn.1400d9600
mov r15, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [r15 + 1]
cmp rdi, 2
jb 0x1400520ab
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 0x140052077
call fcn.1400d9600
mov rcx, r15
call fcn.1400e0e60
lea rcx, [rsp + 0x60]
call fcn.1400e5c10
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r15d, r15d
jmp 0x140052013
mov esi, 0xffffffff
jmp 0x140052064
Function at 0x1400520c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov r14, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rdi, [rsp + 0x60]
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, [0x1401e7b67]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x3aa
call fcn.1400d95e0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
lea rbx, [rsp + 0xb0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x1400521b8
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14011bf14
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400d7ac0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400498d0
mov rcx, r14
mov rdx, rsi
call fcn.1400d7bd0
mov rcx, rsi
call fcn.1400d7bc0
mov rcx, rbx
call fcn.1400d7bc0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x60]
call fcn.1400e5c10
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400521f0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rsi, [rsp + 0x40]
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, [0x1401e7b7c]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3ba
call fcn.1400d95e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x140052266
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400e5c10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400522a0
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 [0x140213038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140057210
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401d9dd0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.1400574e0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140052336
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140052405
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
mov rcx, r15
mov rdx, rbx
call fcn.140057450
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140052442
mov rcx, rbx
call fcn.140057130
test al, al
jne 0x140052463
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14005239d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400524ee
call r13
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.140019a90
mov rcx, r15
mov rdx, rbx
call fcn.1400574e0
mov rcx, rdi
mov rdx, rbx
call fcn.1400d7bd0
mov rcx, rbx
call fcn.1400d7bc0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400523f9
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x140052356
lea rcx, [rsp + 0x30]
call fcn.1400d7bc0
lea rcx, [rsp + 0x298]
call fcn.1400572f0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x1400524ce
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400524f5
mov rcx, qword [rsp + 0x30]
jmp 0x1400524fa
xor ebp, ebp
test r14b, r14b
je 0x1400523be
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1400522a0
mov ebp, eax
test eax, eax
jne 0x1400523be
cmp byte [rsp + 0x47], 0
jns 0x14005249e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400523be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400523be
lea rcx, [rsp + 0x48]
call fcn.140057130
test al, al
je 0x140052505
lea rcx, [rsp + 0x48]
call fcn.140057130
test al, al
je 0x14005238e
xor ebp, ebp
jmp 0x1400523be
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14005237e
mov edx, dword [rsp + 0x48]
jmp 0x14005244b
Function at 0x140052510
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 [0x140213038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rdi, [rsp + 0x50]
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.1400d95e0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
test esi, esi
js 0x140052614
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1400e5320
test al, al
jne 0x14005261b
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.1400e5390
lea rcx, [rsp + 0x50]
call fcn.1400e5c10
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400525e9
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140170ec0
jmp 0x1400525b0

Function at 0x140052640
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x1401d9dd0]
lea rdi, [rsp + 0x50]
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.1400d95e0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.1400e5320
test al, al
jne 0x140052720
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
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.1400e5390
lea rcx, [rsp + 0x50]
call fcn.1400e5c10
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140170ec0
jmp 0x1400526cd
Function at 0x140052740
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 [0x140213038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x1401d9dd0]
lea rbx, [rsp + 0x50]
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.1400d95e0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400e5a80
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.1400e5320
test al, al
jne 0x140052868
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 0x140052833
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 0x140052833
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140052884
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.1400e5390
lea rcx, [rsp + 0x50]
call fcn.1400e5c10
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401013e0
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.140170ec0
jmp 0x1400527d6
xor ebx, ebx
jmp 0x140052833
Function at 0x140052890
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, rdx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
jbe 0x1400529b2
mov rdi, rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
call fcn.1400e5320
test al, al
jne 0x1400529d6
lea r15, [rsp + 0x48]
mov qword [r15], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov rsi, rax
mov rbx, qword [rdi]
call r12
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rbx
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400529f2
mov bl, byte [rdi + 0x29]
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x40], 0
test rsi, rsi
je 0x14005297a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, 2
jae 0x1400529bc
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140052972
mov qword [rsp + 0x40], rsi
call fcn.1400d9600
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x40]
mov rcx, r14
mov r8d, ebx
call fcn.140048670
lea rcx, [rsp + 0x50]
call fcn.1400e5390
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401013e0
mov rax, r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r14
call fcn.140048520
jmp 0x140052994
call fcn.1400d9600
mov rcx, qword [rsp + 0x40]
call fcn.1400e0e60
mov qword [rsp + 0x40], 0
jmp 0x14005295e
lea rdx, str.File::Duplicate
lea rcx, [rsp + 0x50]
mov r8, rdi
xor r9d, r9d
call fcn.140170ec0
jmp 0x1400528e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052a10
mov rcx, r14
mov edx, eax
call fcn.140158000
jmp 0x14005298a