joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055f10
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x4d
call fcn.140047ce0
lea rcx, [rsp + 0x48]
mov rdx, rsi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rbx + 0x17], 0
jns 0x140055f69
mov rbx, qword [rbx]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14005605b
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.140147c20
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14014adf0
mov edx, dword [rsp + 0x24]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005604a
mov qword [rsp + 0x28], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x64]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14005604a
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14005604a
mov rbp, rdi
add rbp, rsi
mov ecx, 0x38
call fcn.140147c20
mov rsi, rax
mov eax, dword [rbx]
lea rcx, [0x14017c5c0]
mov qword [rsi], rcx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rbp
mov qword [rsi + 0x20], rdi
mov dword [rsi + 0x28], eax
mov qword [rsp + 0x28], 0
lea rdx, [0x14017c7e2]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x64]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140056087
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
jmp 0x140056062
mov qword [r14], 0
mov rcx, rdi
call fcn.140147c5c
jmp 0x140056062
mov qword [r14], 0
lea rcx, [rsp + 0x48]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140147fd0
mov rax, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140056270
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 qword [rsp + 0x38], r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx esi, word [rcx + 0x28]
movzx r14d, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx r12d, word [rdi + 0x28]
call r15
mov r15d, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400564b0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14005632c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14005632c
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140056469
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
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400564b0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140056396
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140056396
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140056469
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400564b0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400563fe
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400563fe
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140056469
movzx eax, r15w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400564b0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400564a0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400564a0
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1400564a0
add r8d, 0xffffffff
mov rcx, qword [rsp + 0x38]
call fcn.14002aa4a
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x14005647a
Function at 0x140056aa0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x187
call fcn.140047ce0
lea rcx, [rsp + 0x48]
mov rdx, rdi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
jns 0x140056b00
cmp qword [rsi + 8], 0x103
jbe 0x140056afd
xor esi, esi
jmp 0x140056b17
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 + 0x48]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x140056b40
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x14017c84d]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov r9d, 0x193
call fcn.140047ce0
lea rcx, [rsp + 0x50]
mov rdx, rbp
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140056b9f
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140056bab
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x140056c19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140059050
mov r14d, eax
cmp byte [rdi + 0x17], 0
jns 0x140056bd1
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140056bda
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140056c19
test rsi, rsi
je 0x140056c17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140059050
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
lea rcx, [rsp + 0x50]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140057260
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.140047ce0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
jns 0x1400572b6
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14008c6e0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.140047ce0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
jns 0x140057346
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.14008c6e0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140057380
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401b6b28]
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]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x1400573c0
xor esi, esi
jmp 0x140057425
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x1400573de
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x1400573d0
jmp 0x1400573e0
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140043d50
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140045d70
mov rcx, rsi
mov rdx, rbx
call fcn.140043dd0
mov rcx, rbx
call fcn.140043da0
mov rcx, rdi
call fcn.140043da0
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
Function at 0x140057450
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1401b6b28]
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 0x1400574c0
cmp word [rsp + 0x60], 0
je 0x1400574c0
mov qword [rsp + 0x50], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x1400574a0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140043d50
jmp 0x140057514
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140043d00
mov rcx, rdi
call fcn.140057380
test al, al
je 0x1400574e8
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140043d30
jmp 0x14005750a
lea rax, [0x14017c876]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 3
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140043d50
lea rcx, [rsp + 0x38]
call fcn.140043da0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140147fd0
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x140057ee0
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, 0x90
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x265
call fcn.140047ce0
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140057f46
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057f7d
mov bl, 1
test al, 0x10
jne 0x1400580b2
test r12, r12
je 0x140057f6b
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400580b2
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140044860
movzx ecx, byte [rsp + 0x37]
mov rax, rcx
test cl, cl
jns 0x140057f9e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x140057fae
mov rdx, qword [rdi + 8]
cmp rax, rdx
jne 0x140057ffb
test rax, rax
je 0x140057fe4
test cl, cl
jns 0x140057fc1
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x140057fcc
mov rcx, qword [rdi]
xor edx, edx
nop
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140057ffb
add rdx, 1
cmp rax, rdx
jne 0x140057fd0
test r12, r12
je 0x140057ff1
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x1400580a0
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140057ee0
test al, al
je 0x1400580a6
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400580a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x14005808e
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1cc
call fcn.140047ce0
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rdi + 0x17], 0
jns 0x140058071
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14008c6e0
cmp edi, 0xffffffff
je 0x14005808e
and edi, 0x10
jne 0x1400580a8
test r12, r12
je 0x14005809e
mov ecx, ebp
call fcn.140059050
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140043da0
lea rcx, [rsp + 0x38]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400581e0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, [0x14017c915]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r9d, 0x33d
call fcn.140047ce0
lea rcx, [rsp + 0x68]
mov rdx, rdi
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rbx + 0x17], 0
jns 0x140058241
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.14000ad56
mov rcx, qword [rsp + 0x48]
mov ebx, 0xffffffff
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400582cc
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
cmp dword [rsp + 0x44], esi
mov ebx, 0xffffffff
cmove ebx, esi
or ebx, ecx
mov rcx, qword [rsp + 0x48]
add rcx, 1
cmp rcx, 2
jb 0x140058308
call fcn.140047d00
mov r8, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x48]
mov r9, rax
call fcn.14005c6f0
mov rcx, qword [rsp + 0x48]
call fcn.14005c680
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140058340
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdx, [0x14017c91f]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x370
call fcn.140047ce0
lea rcx, [rsp + 0x68]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov word [rsp + 0x80], 0
lea rbx, [rsp + 0x80]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x140058438
mov qword [rsp + 0x28], rbx
cmp word [rsp + 0x80], 0
je 0x1400583f1
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp word [rsp + rax*2 + 0x82], 0
lea rax, [rax + 1]
jne 0x1400583e0
jmp 0x1400583f3
xor eax, eax
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140043d50
lea rbx, [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
call fcn.140045d70
mov rcx, rsi
mov rdx, rbx
call fcn.140043dd0
mov rcx, rbx
call fcn.140043da0
mov rcx, rdi
call fcn.140043da0
mov dil, 1
lea rcx, [rsp + 0x68]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.140147fd0
mov eax, edi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
Function at 0x140058460
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [0x14017c934]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x380
call fcn.140047ce0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
jns 0x1400584b6
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14008c6e0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140058500
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xaf
call fcn.140047ce0
lea rcx, [rsp + 0x50]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov rcx, rdi
call fcn.140045e10
test al, al
jne 0x14005861d
mov rcx, rsi
call fcn.140045e10
test al, al
je 0x140058578
xor ebp, ebp
jmp 0x14005861d
cmp byte [rdi + 0x17], 0
jns 0x140058588
cmp qword [rdi + 8], 0x103
ja 0x140058571
cmp byte [rsi + 0x17], 0
jns 0x140058598
cmp qword [rsi + 8], 0x103
ja 0x140058571
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xbc
call fcn.140047ce0
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.14009f670
cmp byte [rsi + 0x17], 0
jns 0x1400585cf
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x1400585dc
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140058611
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140058611
mov bpl, 1
test al, 1
je 0x140058613
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140058613
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14009f940
lea rcx, [rsp + 0x50]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140058650
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140045e10
test al, al
jne 0x140046261
mov rcx, rsi
call fcn.140045e10
test al, al
je 0x14004626a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140058650
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e1
call fcn.140047ce0
lea rcx, [rsp + 0x28]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov al, byte [rsi + 0x17]
test al, al
jns 0x1400586b8
cmp qword [rsi + 8], 0x103
ja 0x1400587ce
cmp byte [rdi + 0x17], 0
js 0x1400586c3
mov rdx, rdi
jmp 0x1400586d4
cmp qword [rdi + 8], 0x103
ja 0x1400587ce
mov rdx, qword [rdi]
mov rcx, rsi
test al, al
jns 0x1400586de
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x1400587d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.140047ce0
lea rbp, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005873e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14008c6e0
cmp ebx, 0xffffffff
je 0x1400587c5
and ebx, 0x10
je 0x1400587c5
lea rdx, str.CopyAndDeleteDirectory
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x404
call fcn.140047ce0
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140056c50
test al, al
je 0x1400587bb
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140056680
test al, al
je 0x1400587bb
lea rcx, [rsp + 0x60]
call fcn.14008c6e0
jmp 0x1400587d0
lea rcx, [rsp + 0x60]
call fcn.14008c6e0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140058800
Capabilities:
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, 0x558
mov r15d, r8d
mov r14, rdx
mov rdx, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov qword [rsp + 0x20], r14
xor ebp, ebp
lea rsi, [rsp + 0x290]
mov rcx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.14005dfd0
lea rdi, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
call fcn.14005e100
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x14005886c
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400589a2
lea rsi, [rsp + 0x290]
lea rbx, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14005889c
mov r13d, ebp
test rax, rax
je 0x1400589a2
mov rcx, rsi
mov rdx, rbx
call fcn.14005e070
mov edx, dword [rsp + 0x40]
test dl, 1
je 0x1400588dd
test r15b, r15b
jne 0x1400588c5
mov rcx, rbx
call fcn.14005dda0
test al, al
jne 0x1400588dd
mov edx, dword [rsp + 0x40]
and edx, 0xfffffffe
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x1400588d7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.14005dda0
test al, al
je 0x140058930
xor ebp, ebp
test r15b, r15b
je 0x14005895e
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140058800
mov ebp, eax
test eax, eax
jne 0x14005895e
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x140058913
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x14005895e
jmp 0x140058948
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x14005893f
mov rcx, qword [rsp + 0x28]
call r12
xor ebp, ebp
test eax, eax
jne 0x14005895e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rbx
call fcn.14000e300
mov rcx, rsi
mov rdx, rbx
call fcn.14005e100
mov rcx, rdi
mov rdx, rbx
call fcn.140043dd0
mov rcx, rbx
call fcn.140043da0
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x140058890
mov rax, qword [rsp + 0x30]
jmp 0x140058890
lea rcx, [rsp + 0x28]
call fcn.140043da0
lea rcx, [rsp + 0x290]
call fcn.14005e000
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x558
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret