joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022fa0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401a2688], 0
jne 0x140022fdd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140022fd0
mov dword [rdi], eax
mov dword [0x1401a2690], eax
mov qword [0x1401a2688], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400273e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14002744b
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x1401b6008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14002742d
call fcn.1400b8bd8
jmp 0x14002742d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.14007a650
lea rdx, [0x1401a6430]
mov rcx, rbx
call fcn.14007b230
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14002748b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1401b6008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140167260]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x1401b6008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400274ce
mov edx, eax
and edx, 0x7f
jmp 0x1400274d2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x14002743d
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x14002752e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x1401b6008]
cmp eax, 0xffffffff
jne 0x140027504
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x14002743d
test rdi, rdi
je 0x140027502
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400274ea
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140027504

Function at 0x14002e1d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002e217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002e231
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002e20f
mov qword [rsi], rdi
call fcn.140080280
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002e247
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140080280
mov rcx, qword [rsi]
call fcn.14007c4d0
mov qword [rsi], 0
jmp 0x14002e1fd
int3
Function at 0x14002e250
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14002e27a
call fcn.140080280
cmp qword [rsi], r14
je 0x14002e2a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002e2e4
cmp r15, 2
jb 0x14002e2a1
mov qword [rsi], r14
call fcn.140080280
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14002e2ce
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140080280
mov rcx, qword [rdi]
call fcn.14007c4d0
mov qword [rdi], 0
jmp 0x14002e2bf
call fcn.140080280
mov rcx, qword [rsi]
call fcn.14007c4d0
mov qword [rsi], 0
jmp 0x14002e293
Function at 0x14002ed80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140167260]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140080260
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140085dd0
test esi, esi
js 0x14002ee86
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140087fa0
test al, al
jne 0x14002ee8d
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140088030
lea rcx, [rsp + 0x50]
call fcn.140086010
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400ba050
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14002ee5b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1401170a0
jmp 0x14002ee20

Function at 0x14002eeb0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140167260]
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.140080260
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140085dd0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140087fa0
test al, al
jne 0x14002ef8c
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.140088030
lea rcx, [rsp + 0x50]
call fcn.140086010
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ba050
mov rax, rsi
add rsp, 0x98
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.1401170a0
jmp 0x14002ef39
Function at 0x14002efb0
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 [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140167260]
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.140080260
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140085dd0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140087fa0
test al, al
jne 0x14002f0d8
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 0x14002f09f
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 0x14002f09f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14002f0d4
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.140088030
lea rcx, [rsp + 0x50]
call fcn.140086010
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400ba050
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14002f09f
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1401170a0
jmp 0x14002f042
Function at 0x14002f210
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140167260]
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.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140080260
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140085dd0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14002f47c
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x14002f451
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14002f373
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14002f3cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002f463
mov rax, r14
inc rax
cmp rax, 2
jb 0x14002f3c2
mov qword [rsi], r14
call fcn.140080280
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14002f424
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14002f436
test bl, 0xa
je 0x14002f3f3
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14002f447
lea rcx, [rsp + 0x60]
call fcn.140086010
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400ba050
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002f100
mov dword [rsi + 0x24], eax
jmp 0x14002f3f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14002f3f3
mov rcx, rdi
call fcn.140030570
jmp 0x14002f3f9
bt ebx, 0x15
jb 0x14002f498
or r8d, 0x20000000
jmp 0x14002f2f1
call fcn.140080280
mov rcx, qword [rsi]
call fcn.14007c4d0
mov qword [rsi], 0
jmp 0x14002f3ae
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.140116b40
jmp 0x14002f3f9
int3
Function at 0x14002f850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140167260]
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.140080260
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140085dd0
cmp byte [rdi + 0x17], 0
jns 0x14002f8c2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140086010
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400ba050
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002f900
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 [0x14018f028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x140167260]
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.140080260
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140085dd0
cmp byte [rdi + 0x17], 0
jns 0x14002f982
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002fa15
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 0x14002f9f8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14002fa41
call fcn.140080280
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 0x14002fa15
call fcn.140080280
mov rcx, r14
call fcn.14007c4d0
lea rcx, [rsp + 0x60]
call fcn.140086010
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400ba050
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14002f9f0
Function at 0x14002fa50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140167260]
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.140080260
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140085dd0
cmp byte [rdi + 0x17], 0
jns 0x14002fac2
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.140086010
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400ba050
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002fb10
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bc1a0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002fbaf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d65e8
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140080560
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140034c50
mov rcx, rsi
mov rdx, r14
call fcn.140080730
mov rcx, r14
call fcn.1400806b0
mov rcx, rbx
call fcn.1400806b0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400ba050
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002fbe0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bc1a0
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 0x14002fc8e
cmp word [rsp + 0x70], 0
je 0x14002fc8e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400d65e8
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140080560
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400ba050
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140080540
lea rcx, [rsp + 0x40]
call fcn.1400806b0
jmp 0x14002fc57
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140167260]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140080420
mov rcx, rdi
call fcn.14002fb10
test al, al
jne 0x14002fc75
lea rax, [0x14016c518]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140080560
jmp 0x14002fc82
Function at 0x14002fce0
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 [0x14018f028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x1401a70c8], 0
jne 0x14002ff81
mov rsi, rcx
movaps xmm6, xmmword [0x140167260]
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.140080260
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140085dd0
test rsi, rsi
je 0x14002ff85
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140080420
mov ecx, 0x65
mov rdx, rdi
call fcn.140031b70
test al, al
je 0x14002fe4f
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.140034b50
mov rcx, rdi
mov rdx, rbx
call fcn.140080730
mov rcx, rbx
call fcn.1400806b0
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.140080260
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140085dd0
cmp byte [rsp + 0x47], 0
jns 0x14002fe33
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140086010
cmp edi, 0xffffffff
jne 0x14002ff16
lea rcx, [rsp + 0x30]
call fcn.1400806b0
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140080420
mov ecx, 0x67
mov rdx, rdi
call fcn.140031b70
test al, al
je 0x14002ff08
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.140080260
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140085dd0
cmp byte [rsp + 0x47], 0
jns 0x14002fed7
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140086010
cmp edi, 0xffffffff
je 0x14002ff08
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14002f900
test al, al
jne 0x14002ff33
lea rcx, [rsp + 0x30]
call fcn.1400806b0
xor esi, esi
jmp 0x14002ff4e
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14002f900
test al, al
je 0x14002fe4f
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.1400806c0
mov rcx, rdi
call fcn.1400806b0
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.140086010
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400ba050
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 0x14002ff58
int3
Function at 0x140030a70
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 [0x14018f028]
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.1400bc1a0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140030f70
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140167260]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140031180
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140030b08
and eax, 0x7f
jmp 0x140030b0d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140030be4
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.1400bc1a0
mov rcx, r15
mov rdx, r14
call fcn.140031130
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x140030c28
mov rcx, r14
call fcn.140030ea0
test al, al
jne 0x140030c78
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140030b7b
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x140030c21
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.140018990
mov rcx, r15
mov rdx, r14
call fcn.140031180
mov rcx, rdi
mov rdx, r14
call fcn.140080730
mov rcx, r14
call fcn.1400806b0
movzx eax, byte [rsp + 0x57]
test al, al
js 0x140030bd3
and eax, 0x7f
jmp 0x140030bd8
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x140030b34
lea rcx, [rsp + 0x40]
call fcn.1400806b0
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.1400310c0
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400ba050
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140030b98
cmp byte [rsp + 0x37], 0
je 0x140030c50
cmp byte [rsp + 0x57], 0
js 0x140030c3d
lea rcx, [rsp + 0x40]
jmp 0x140030c42
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140030b5c
lea rcx, [rsp + 0x58]
call fcn.140030ea0
test al, al
jne 0x140030c64
mov edx, dword [rsp + 0x58]
jmp 0x140030c2f
lea rcx, [rsp + 0x58]
call fcn.140030ea0
test al, al
je 0x140030b6c
jmp 0x140030c21
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140030b98
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.140030a70
mov ebp, eax
test eax, eax
jne 0x140030b98
cmp byte [rsp + 0x57], 0
jns 0x140030cb5
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 0x140030b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140030b98
Function at 0x140032ea0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140032f60
mov eax, dword [rsi]
mov dword [0x14019d098], eax
test al, 1
jne 0x140032ec1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401a7108]
test rcx, rcx
jne 0x140032edb
mov rcx, qword [0x1401a70e0]
test rcx, rcx
je 0x140032eff
jmp 0x140032f21
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a7108], 0
mov rcx, qword [0x1401a70e0]
test rcx, rcx
jne 0x140032f21
and byte [0x14019d098], 0xfe
mov ecx, 0x18
call fcn.1400b8b9c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401a70e0], rax
mov rdx, qword [rsi + 8]
call fcn.140033eb0
cmp dword [rsi + 0x14], 0
jne 0x140032f46
mov rcx, qword [0x1401a70e0]
cmp byte [rcx + 0x17], 0
jns 0x140032f40
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.140110090