joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ca60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003cae8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003cad2
cmp dword [rsp + 0x38], 4
jne 0x14003cad2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e1d10
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14003cad2

Function at 0x14003caf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400e1cb0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400e3e50
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003cba3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003cba7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14003b010
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e1d10
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003cb84
cmp eax, 2
jne 0x14003cbef
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e3e50
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003cbf6
lea rdx, [rsp + 0x40]
jmp 0x14003cb7a
mov edi, 0x3f4
jmp 0x14003cb84
mov edi, 0xea
jmp 0x14003cb84
Function at 0x14003d160
Capabilities:
Create thread

Disassembly:
jmp 0x14003d160
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400e07ec
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1401b3588]
jne 0x14003d1cd
mov rcx, r15
call fcn.1400c1c60
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003d610]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14003d241
test r14, r14
je 0x14003d236
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003d210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x14003d28b
cmp ebp, 0x5af
je 0x14003d260
cmp ebp, 0x27b
jne 0x14003d295
mov rcx, rbx
call fcn.140138c40
test rsi, rsi
je 0x14003d210
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401b3588]
jne 0x14003d281
call fcn.1400c1dc0
mov rcx, rsi
call fcn.1400e0828
jmp 0x14003d210
cmp ebp, 8
je 0x14003d260
cmp ebp, 0xe
je 0x14003d260
mov eax, dword [0x1401c6728]
mov ecx, dword [0x1401c0158]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003d342
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140045510
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14003d2db
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
test rax, rax
js 0x14003d31c
je 0x14003d2f1
test rbx, rbx
je 0x14003d32f
mov rcx, qword [0x1401c6720]
lea rdx, [rsp + 0x50]
call fcn.140058760
cmp byte [rsp + 0x4f], 0
jns 0x14003d268
mov rcx, qword [rsp + 0x38]
call fcn.1400e0828
jmp 0x14003d268
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140119a40
lea rcx, [0x14018264d]
lea rdx, str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140119a40
lea rcx, [0x1401c6728]
call fcn.1400e0940
cmp dword [0x1401c6728], 0xffffffff
jne 0x14003d2ba
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140058730
mov qword [0x1401c6720], rax
lea rcx, [0x1401c6728]
call fcn.1400e09d8
jmp 0x14003d2ba
Function at 0x14003e1e0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14017d9f0]
lea rdi, [rsp + 0x50]
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, 0xac
call fcn.1400bd740
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b56a0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.1400c7290
test al, al
je 0x14003e280
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14013a4a0
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.1400c75f0
lea rcx, [rsp + 0x50]
call fcn.1400b5720
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400e1d10
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003e2e0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14017d9f0]
lea rbx, [rsp + 0x50]
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 r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb9
call fcn.1400bd740
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400b56a0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.1400c7290
test al, al
jne 0x14003e408
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 0x14003e3cf
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003e3cf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14003e404
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.1400c75f0
lea rcx, [rsp + 0x50]
call fcn.1400b5720
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003e3cf
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.14013a4a0
jmp 0x14003e372
Function at 0x14003edb0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14017d9f0]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x140191a67]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x1d8
call fcn.1400bd740
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400b56a0
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400e3e50
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14003ee4f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.1400b9730
mov rcx, r14
call fcn.1400a4690
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400e3e50
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14003ee86
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.1400b9730
mov rcx, r14
call fcn.1400a4690
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14003eea8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14003eeb4
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 0x14003ef0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e6b0
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14003eee7
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14003eef0
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x14003ef10
test eax, eax
jne 0x14003ef10
jmp 0x14003ef3c
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.1400b5720
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400e1d10
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebp, 0xfffffffc
jne 0x14003ef48
call fcn.140132580
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x14003ef10

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14017d9f0]
lea rsi, [rsp + 0x40]
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, 0x20b
call fcn.1400bd740
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b56a0
cmp byte [rdi + 0x17], 0
jns 0x14003efc2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400b5720
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14017d9f0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x214
call fcn.1400bd740
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400b56a0
cmp byte [rdi + 0x17], 0
jns 0x14003f082
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003f115
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x14003f0f8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14003f141
call fcn.1400bd760
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003f115
call fcn.1400bd760
mov rcx, r14
call fcn.1400b1cc0
lea rcx, [rsp + 0x60]
call fcn.1400b5720
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14003f0f0

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14017d9f0]
lea rsi, [rsp + 0x40]
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, 0x233
call fcn.1400bd740
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b56a0
cmp byte [rdi + 0x17], 0
jns 0x14003f1c2
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.1400b5720
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400e1d10
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f210
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e3e50
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14003f2af
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400ff904
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400be050
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14004bce0
mov rcx, rsi
mov rdx, r14
call fcn.1400be1f0
mov rcx, r14
call fcn.1400be180
mov rcx, rbx
call fcn.1400be180
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003f2e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e3e50
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 0x14003f375
cmp word [rsp + 0x70], 0
je 0x14003f375
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400ff904
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400be050
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400e1d10
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 [0x14017d9f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1400bdfd0
mov rcx, rdi
call fcn.14003f210
test al, al
jne 0x14003f3c7
lea rax, [0x140191a90]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400be050
jmp 0x14003f3d4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400be030
lea rcx, [rsp + 0x40]
call fcn.1400be180
jmp 0x14003f357
Function at 0x14003f820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x1401c6744], 0
jne 0x14003fac1
mov rsi, rcx
movaps xmm6, xmmword [0x14017d9f0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x2b9
call fcn.1400bd740
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400b56a0
test rsi, rsi
je 0x14003fac5
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.1400bdfd0
mov ecx, 0x65
mov rdx, rdi
call fcn.140040a70
test al, al
je 0x14003f98f
lea rax, str.SystemTemp
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea rbx, [rsp + 0xb0]
mov rcx, rdi
mov rdx, rbx
call fcn.14004bb70
mov rcx, rdi
mov rdx, rbx
call fcn.1400be1f0
mov rcx, rbx
call fcn.1400be180
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x20b
call fcn.1400bd740
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400b56a0
cmp byte [rsp + 0x47], 0
jns 0x14003f973
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.1400b5720
cmp edi, 0xffffffff
jne 0x14003fa56
lea rcx, [rsp + 0x30]
call fcn.1400be180
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.1400bdfd0
mov ecx, 0x67
mov rdx, rdi
call fcn.140040a70
test al, al
je 0x14003fa48
lea rbx, [rsp + 0xb0]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x20b
call fcn.1400bd740
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400b56a0
cmp byte [rsp + 0x47], 0
jns 0x14003fa17
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.1400b5720
cmp edi, 0xffffffff
je 0x14003fa48
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14003f000
test al, al
jne 0x14003fa73
lea rcx, [rsp + 0x30]
call fcn.1400be180
xor esi, esi
jmp 0x14003fa8e
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14003f000
test al, al
je 0x14003f98f
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400be190
mov rcx, rdi
call fcn.1400be180
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.1400b5720
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400e1d10
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor esi, esi
jmp 0x14003fa98
int3
Function at 0x140040670
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, 0x578
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x570], rax
lea r14, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400e3e50
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14005a680
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14017d9f0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14005a840
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140040708
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400407da
lea r14, [rsp + 0x58]
lea r15, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400e3e50
mov rcx, r15
mov rdx, r14
call fcn.14005a7f0
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x140040817
mov rcx, r14
call fcn.14005a670
test al, al
jne 0x14004086c
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140040776
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x140040865
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.1400248b0
mov rcx, r15
mov rdx, r14
call fcn.14005a840
mov rcx, rdi
mov rdx, r14
call fcn.1400be1f0
mov rcx, r14
call fcn.1400be180
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400407ce
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x14004072f
lea rcx, [rsp + 0x40]
call fcn.1400be180
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14005a780
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x37], 0
je 0x14004083f
cmp byte [rsp + 0x57], 0
js 0x14004082c
lea rcx, [rsp + 0x40]
jmp 0x140040831
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140040757
lea rcx, [rsp + 0x58]
call fcn.14005a670
test al, al
jne 0x140040853
mov edx, dword [rsp + 0x58]
jmp 0x14004081e
lea rcx, [rsp + 0x58]
call fcn.14005a670
test al, al
je 0x140040767
xor ebp, ebp
jmp 0x140040793
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140040793
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.140040670
mov ebp, eax
test eax, eax
jne 0x140040793
cmp byte [rsp + 0x57], 0
jns 0x1400408a9
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140040793
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140040793
Function at 0x1400419d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x140041b80
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400fcf4c
movaps xmm6, xmmword [0x14017d9f0]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.1400bd740
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400b56a0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1400f3944
mov ecx, eax
call fcn.1400f414c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140041b84
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x1401a3088]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400fcbd4
test rax, rax
je 0x140041b23
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x140041b8f
add r15, r12
mov rcx, rbx
call fcn.1400fc3c0
test eax, eax
je 0x140041b93
mov r12, r15
mov rcx, rbx
call fcn.1400fc3ec
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x1401a3088]
lea rcx, [rsp + 0x80]
call fcn.1400b5720
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400e1d10
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140041b55
mov r14d, 0xffff
jmp 0x140041ac1
xor ebx, ebx
jmp 0x140041b33
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x1401a3088]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140041ae6