joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400081e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x38]
lea r12, [rsp + 0x28]
lea r15, [rsp + 0x30]
mov ebp, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x28]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1400a0104
cmp rax, rbx
jne 0x140008267
cmp edi, 1
je 0x140008214
cmp edi, 2
je 0x140008267
mov rcx, qword [rsi + 0x40]
call fcn.14009fdb0
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008a0f0
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140008290
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1400082c5
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400a0104
xor ebx, ebx
test rsi, rsi
jle 0x1400082ea
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x1400082ea
inc rbx
cmp rsi, rbx
jne 0x1400082cc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140008300
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 0xffffffff
je 0x14000835d
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x14000836c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.1400a0104
mov esi, 0xffffffff
cmp rax, 1
jne 0x14000841c
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x14000841c
lea rbx, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], rbx
lea rsi, [rsp + 0x57]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x140008417
mov ebp, eax
cmp eax, 3
je 0x1400083f6
cmp ebp, 1
ja 0x140008417
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.1400a0104
cmp rax, rsi
jne 0x140008417
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140008389
jmp 0x14000835d
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.1400a0104
cmp rax, 1
je 0x14000835d
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008480
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x1400084b5
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400a0104
xor ebx, ebx
test rsi, rsi
jle 0x1400084db
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x1400084db
inc rbx
cmp rsi, rbx
jne 0x1400084bc
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400084f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dx, 0xffff
je 0x14000854c
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x14000855c
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.1400a0104
mov di, 0xffff
cmp rax, 1
jne 0x14000860b
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x14000860b
lea r15, [rsp + 0x58]
lea r12, [rsp + 0x48]
mov qword [r12], r15
lea rbx, [rsp + 0x56]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x140008607
mov ebp, eax
cmp eax, 3
je 0x1400085e6
cmp ebp, 1
ja 0x140008607
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1400a0104
cmp rax, rbx
jne 0x140008607
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x140008579
jmp 0x14000854c
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.1400a0104
cmp rax, 1
je 0x14000854c
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008a0f0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002aa10
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400e3ce0], 0
jne 0x14002aad5
mov ecx, 0x38
call fcn.140089d30
mov rsi, rax
mov ecx, 0x18
call fcn.140089d30
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
lea rax, [rsi + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x30], 1
mov qword [0x1400e3ce0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002aad9
cmp word [rax], 0
je 0x14002aad9
xor ecx, ecx
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14002aaa0
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rcx
mov rcx, rsi
call fcn.14002aae0
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor esi, esi
jmp 0x14002aac0
xor ecx, ecx
jmp 0x14002aaac
Function at 0x14002aae0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 3
call fcn.14003c8a0
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002ac50
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
je 0x14002ac73
lea rdx, [0x1400b99ce]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002ac86
mov rsi, rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call rax
mov r13, rax
movsxd rdi, dword [rsp + 0x3c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
test rdi, rdi
je 0x14002abee
test edi, edi
js 0x14002ac8e
shl rdi, 3
lea r12, [rdi + rdi*2]
mov rcx, r12
call fcn.140089d30
mov rsi, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
add rax, r12
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdx, qword [r13 + rbx]
mov rcx, rsi
call fcn.1400028f0
add rsi, 0x18
add rbx, 8
cmp rdi, rbx
jne 0x14002abcf
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14002a800
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14002ac12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002ac50
mov rax, qword [rsp + 0x28]
cmp rax, rsi
je 0x14002ac6e
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x14002ac39
mov rcx, qword [rax - 0x18]
call fcn.140089d80
mov rax, rdi
cmp rsi, rdi
jne 0x14002ac26
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.140089d80
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008a0f0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
jmp 0x14002ac46
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002ab82
xor r13d, r13d
jmp 0x14002ab85
lea rcx, [rsp + 0x20]
call fcn.140029590
int3
Function at 0x140033610
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov r15, rdx
mov r14, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0xa0], 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.140047eb0
lea rcx, [rsp + 0x48]
mov rdx, rsi
xor r8d, r8d
call fcn.140047ee0
cmp byte [r15 + 0x17], 0
jns 0x140033672
mov r15, qword [r15]
lea rdx, [rsp + 0x24]
mov rcx, r15
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1400337d1
mov edi, eax
mov esi, eax
mov rcx, rsi
call fcn.140089d30
mov rbp, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14008d400
lea rax, [rsi - 1]
mov rcx, rsi
mov rdx, rbp
and rcx, 7
je 0x1400336c6
neg rcx
xor ebx, ebx
dec rbx
cmp rcx, rbx
jne 0x1400336b8
mov rdx, rbp
sub rdx, rbx
cmp rax, 7
jb 0x1400336db
mov rax, rsi
sub rax, rdx
add rax, rbp
add rax, 0xfffffffffffffff8
jne 0x1400336d5
mov edx, dword [rsp + 0x24]
mov rcx, r15
mov r8d, edi
mov r9, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400337c0
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea rdx, str.VarFileInfoTranslation
lea r9, [rsp + 0x9c]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400337c0
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400337c0
mov rdi, rbp
add rdi, rsi
mov ecx, 0x38
call fcn.140089d30
mov rsi, rax
mov eax, dword [rbx]
lea rcx, [0x1400b9e70]
mov qword [rsi], rcx
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov qword [rsi + 0x20], rbp
mov dword [rsi + 0x28], eax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea rdx, [0x1400ba092]
lea r9, [rsp + 0x9c]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400337da
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
lea rcx, [rsp + 0x48]
call fcn.140048000
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14008a0f0
mov rax, r14
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [r14], 0
mov rcx, rbp
call fcn.140089d80
jmp 0x140033793
mov qword [r14], 0
jmp 0x140033793
int3
Function at 0x1400339c0
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 [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx esi, word [rcx + 0x28]
movzx r14d, word [rcx + 0x2a]
mov r12, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r12
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r12
mov r12d, 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.140033c00
lea r8, [rsp + 0x48]
mov qword [r8], 0
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140033aab
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140033aab
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140033aab
dec r8d
mov rcx, r15
call fcn.140028060
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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.140033c00
lea r8, [rsp + 0x48]
mov qword [r8], 0
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140033b13
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140033b13
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140033a77
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
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140033c00
lea r8, [rsp + 0x48]
mov qword [r8], 0
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140033b80
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140033b80
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140033a77
movzx eax, r12w
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.140033c00
lea r8, [rsp + 0x48]
mov qword [r8], 0
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140033bed
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140033bed
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140033a77
xor esi, esi
jmp 0x140033a85
Function at 0x140034230
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 [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x498], rax
lea rdx, [0x1400ba0cd]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x290]
mov rcx, rsi
mov r9d, 0x19a
call fcn.140047eb0
lea rcx, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
call fcn.140047ee0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140034298
mov rdx, qword [rbx]
lea rsi, [rsp + 0x290]
mov r8d, 0x104
mov rcx, rsi
call fcn.14003d180
mov rcx, rsi
call fcn.140004e20
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400342c2
mov rdx, qword [rdi]
lea rsi, [rsp + 0x80]
mov r8d, 0x104
mov rcx, rsi
call fcn.14003d180
mov rcx, rsi
call fcn.140004e20
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400342ec
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400342f8
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 bpl, 1
test eax, eax
jne 0x140034347
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048500
mov esi, eax
cmp byte [rdi + 0x17], 0
jns 0x14003432e
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140034337
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140034371
lea rcx, [rsp + 0x30]
call fcn.140048000
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.14008a0f0
mov eax, ebp
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
test r14, r14
jne 0x14003437a
xor ebp, ebp
jmp 0x140034347
cmp esi, 0xfffffffc
jne 0x140034386
call fcn.140048490
mov esi, eax
mov dword [r14], esi
jmp 0x140034376

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1cd
call fcn.140047eb0
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140047ee0
cmp byte [rsi + 0x17], 0
jns 0x1400343ec
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140048000
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008a0f0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140034420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r9d, 0x1df
call fcn.140047eb0
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140047ee0
cmp byte [rsi + 0x17], 0
jns 0x14003447c
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.140048000
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400344c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x14003457f
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14003457b
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x14003450e
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14002d470
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14002f1b0
mov rcx, rsi
mov rdx, rbx
call fcn.14002d590
mov rcx, rbx
call fcn.14002d560
mov rcx, rdi
call fcn.14002d560
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14008a0f0
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14003451a
xor esi, esi
jmp 0x14003455e

Function at 0x140034590
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e05d8]
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 0x140034618
cmp word [rsp + 0x60], 0
je 0x140034618
mov qword [rsp + 0x50], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x1400345de
lea rdx, [rsp + 0x50]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002d470
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008a0f0
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.14002d420
mov rcx, rdi
call fcn.1400344c0
test al, al
je 0x140034640
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.14002d450
jmp 0x14003465f
lea rax, [0x1400ba0f6]
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14002d470
lea rcx, [rsp + 0x38]
call fcn.14002d560
jmp 0x1400345fb
Function at 0x140034920
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x100
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0xa8]
mov rcx, rbx
mov r9d, 0x269
call fcn.140047eb0
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.140047ee0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140034989
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400349cf
mov bl, 1
test al, 0x10
je 0x140034ac3
lea rcx, [rsp + 0x38]
call fcn.140048000
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14008a0f0
mov eax, ebx
add rsp, 0x100
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.14002e030
movzx ecx, byte [rbp + 0x17]
mov rax, rcx
test cl, cl
jns 0x1400349ef
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x1400349ff
mov rdx, qword [rdi + 8]
cmp rax, rdx
je 0x140034ae2
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140034920
test al, al
je 0x140034b2c
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140034a3d
lea rcx, [rsp + 0x20]
call fcn.14002d560
jmp 0x1400349a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x140034aad
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x88]
mov rcx, rbp
mov r9d, 0x1df
call fcn.140047eb0
lea r15, [rsp + 0xa8]
mov rcx, r15
mov rdx, rbp
xor r8d, r8d
call fcn.140047ee0
cmp byte [rdi + 0x17], 0
jns 0x140034a90
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r15
call fcn.140048000
cmp edi, 0xffffffff
je 0x140034aad
and edi, 0x10
jne 0x140034a2e
test r12, r12
je 0x140034abe
mov ecx, r14d
call fcn.140048500
mov dword [r12], eax
mov ecx, r14d
jmp 0x140034b26
test r12, r12
je 0x140034ad0
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400349a1
test rax, rax
je 0x140034b14
test cl, cl
jns 0x140034af0
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x140034afb
mov rcx, qword [rdi]
xor edx, edx
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x140034a08
inc rdx
cmp rax, rdx
jne 0x140034afd
test r12, r12
je 0x140034b21
mov dword [r12], 0xfffffffc
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140034a2e
Function at 0x140034c50
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 rdx, rcx
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov qword [rsp + 0x20], rsi
xor ebx, ebx
lea rbp, [rsp + 0x298]
mov rcx, rbp
xor r8d, r8d
mov r9d, 3
call fcn.140048a20
lea rdi, [rsp + 0x30]
mov rcx, rbp
mov rdx, rdi
call fcn.140048c00
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140034cbb
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140034d7a
lea r15, [rsp + 0x298]
lea rbp, [rsp + 0x48]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
mov rcx, r15
mov rdx, rbp
call fcn.140048b70
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x140034db7
mov rcx, rbp
call fcn.140048900
test al, al
jne 0x140034dd9
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140034d12
mov rcx, qword [rsp + 0x30]
call r12
test eax, eax
jne 0x140034e3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebx, eax
test r13d, r13d
cmovne ebx, r13d
mov rcx, rbp
call fcn.140004e20
mov rcx, r15
mov rdx, rbp
call fcn.140048c00
mov rcx, rdi
mov rdx, rbp
call fcn.14002d590
mov rcx, rbp
call fcn.14002d560
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140034d6e
mov rax, qword [rsp + 0x38]
mov r13d, ebx
test rax, rax
jne 0x140034cdb
lea rcx, [rsp + 0x30]
call fcn.14002d560
lea rcx, [rsp + 0x298]
call fcn.140048b00
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14008a0f0
mov eax, ebx
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test r14b, r14b
je 0x140034e23
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140034dce
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140034cf3
xor ebx, ebx
test r14b, r14b
je 0x140034d33
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140034c50
mov ebx, eax
test eax, eax
jne 0x140034d33
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140034e0b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, 0
test eax, eax
jne 0x140034d33
jmp 0x140034d1d
mov rcx, rbp
call fcn.140048900
test al, al
je 0x140034e46
mov rcx, rbp
call fcn.140048900
test al, al
je 0x140034d03
xor ebx, ebx
jmp 0x140034d33
mov edx, dword [rsp + 0x48]
jmp 0x140034dbc