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

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140274038]
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 0x1400cd5e8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400cd5d2
cmp dword [rsp + 0x38], 4
jne 0x1400cd5d2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14018d030
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400cd5d2

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14018cfd0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14018f180
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 0x1400cd6a3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400cd6a7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400ca460
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14018d030
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400cd684
cmp eax, 2
jne 0x1400cd6ef
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14018f180
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 0x1400cd6f6
lea rdx, [rsp + 0x40]
jmp 0x1400cd67a
mov edi, 0x3f4
jmp 0x1400cd684
mov edi, 0xea
jmp 0x1400cd684

Function at 0x1400cd700
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14018d030
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x1400ce310
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 0x1400ce357
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ce371
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400ce34f
mov qword [rsi], rdi
call fcn.1401552f0
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 0x1400ce387
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401552f0
mov rcx, qword [rsi]
call fcn.140145540
mov qword [rsi], 0
jmp 0x1400ce33d
int3
Function at 0x1400cf1b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400f08d0
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x140240c00]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400cf225
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400cf230
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400cf21d
mov qword [rsi + 0x18], rdi
call fcn.1401552f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401552f0
mov rcx, qword [rsi + 0x18]
call fcn.140145540
mov qword [rsi + 0x18], 0
jmp 0x1400cf20a

Function at 0x1400d0040
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14023d7d0]
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.1401552d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14014be60
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140161c60
test al, al
jne 0x1400d011c
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.140161fc0
lea rcx, [rsp + 0x50]
call fcn.14014bee0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14018d030
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.1401ee5a0
jmp 0x1400d00c9
Function at 0x1400d0250
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 [0x140274038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14023d7d0]
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.1401552d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14014be60
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 0x1400d04bc
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 0x1400d0491
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 0x1400d03b3
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 0x1400d040d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400d04a3
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400d0402
mov qword [rsi], r14
call fcn.1401552f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400d0464
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400d0476
test bl, 0xa
je 0x1400d0433
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400d0487
lea rcx, [rsp + 0x60]
call fcn.14014bee0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14018d030
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.1400d0140
mov dword [rsi + 0x24], eax
jmp 0x1400d0439
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400d0433
mov rcx, rdi
call fcn.1400d1790
jmp 0x1400d0439
bt ebx, 0x15
jb 0x1400d04d8
or r8d, 0x20000000
jmp 0x1400d0331
call fcn.1401552f0
mov rcx, qword [rsi]
call fcn.140145540
mov qword [rsi], 0
jmp 0x1400d03ee
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1401e7e60
jmp 0x1400d0439
int3
Function at 0x1400d04e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400d0528
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400d0531
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400d0518
mov qword [rdi], rsi
call fcn.1401552f0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401552f0
mov rcx, qword [rdi]
call fcn.140145540
mov qword [rdi], 0
jmp 0x1400d0506
Function at 0x1400d0900
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 [0x140274038]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14023d7d0]
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, [0x14025079b]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x1d8
call fcn.1401552d0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14014be60
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14018f180
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400d099f
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.14014fa10
mov rcx, r14
call fcn.140135270
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14018f180
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x1400d09d6
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.14014fa10
mov rcx, r14
call fcn.140135270
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400d09f8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400d0a04
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 0x1400d0a87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d0140
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1400d0a37
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1400d0a40
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 0x1400d0a5b
test eax, eax
je 0x1400d0a8c
lea rcx, [rsp + 0x30]
call fcn.14014bee0
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14018d030
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x1400d0a5b
cmp ebp, 0xfffffffc
jne 0x1400d0a98
call fcn.1401e24f0
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x1400d0a5b

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14023d7d0]
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.1401552d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14014be60
cmp byte [rdi + 0x17], 0
jns 0x1400d0b12
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14014bee0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14018d030
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d0b50
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 [0x140274038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14023d7d0]
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.1401552d0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14014be60
cmp byte [rdi + 0x17], 0
jns 0x1400d0bd2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d0c65
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 0x1400d0c48
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x1400d0c91
call fcn.1401552f0
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 0x1400d0c65
call fcn.1401552f0
mov rcx, r14
call fcn.140145540
lea rcx, [rsp + 0x60]
call fcn.14014bee0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14018d030
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1400d0c40

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14023d7d0]
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.1401552d0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14014be60
cmp byte [rdi + 0x17], 0
jns 0x1400d0d12
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.14014bee0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14018d030
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d0d60
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14018f180
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400d0dff
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1401ad2f4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140155c20
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400de660
mov rcx, rsi
mov rdx, r14
call fcn.1400dd1c0
mov rcx, r14
call fcn.140155d50
mov rcx, rbx
call fcn.140155d50
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14018d030
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d0e30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14018f180
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 0x1400d0ec5
cmp word [rsp + 0x70], 0
je 0x1400d0ec5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1401ad2f4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140155c20
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14018d030
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 [0x14023d7d0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140155ba0
mov rcx, rdi
call fcn.1400d0d60
test al, al
jne 0x1400d0f17
lea rax, [0x1402507a8]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140155c20
jmp 0x1400d0f24
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140155c00
lea rcx, [rsp + 0x40]
call fcn.140155d50
jmp 0x1400d0ea7
Function at 0x1400d0f40
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 [0x140274038]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x140286678], 0
jne 0x1400d11e1
mov rsi, rcx
movaps xmm6, xmmword [0x14023d7d0]
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.1401552d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14014be60
test rsi, rsi
je 0x1400d11e5
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140155ba0
mov ecx, 0x65
mov rdx, rdi
call fcn.1400d2680
test al, al
je 0x1400d10af
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.1400de4f0
mov rcx, rdi
mov rdx, rbx
call fcn.1400dd1c0
mov rcx, rbx
call fcn.140155d50
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.1401552d0
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14014be60
cmp byte [rsp + 0x47], 0
jns 0x1400d1093
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14014bee0
cmp edi, 0xffffffff
jne 0x1400d1176
lea rcx, [rsp + 0x30]
call fcn.140155d50
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140155ba0
mov ecx, 0x67
mov rdx, rdi
call fcn.1400d2680
test al, al
je 0x1400d1168
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.1401552d0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14014be60
cmp byte [rsp + 0x47], 0
jns 0x1400d1137
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14014bee0
cmp edi, 0xffffffff
je 0x1400d1168
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.1400d0b50
test al, al
jne 0x1400d1193
lea rcx, [rsp + 0x30]
call fcn.140155d50
xor esi, esi
jmp 0x1400d11ae
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.1400d0b50
test al, al
je 0x1400d10af
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.140155d60
mov rcx, rdi
call fcn.140155d50
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.14014bee0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.14018d030
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 0x1400d11b8
int3
Function at 0x1400d1740
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov dword [r8], 1
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14018d030
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400d1c50
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 [0x140274038]
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.14018f180
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.1400f3fa0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14023d7d0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.1400f4160
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400d1ce8
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400d1dba
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.14018f180
mov rcx, r15
mov rdx, r14
call fcn.1400f4110
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x1400d1df7
mov rcx, r14
call fcn.1400f3f90
test al, al
jne 0x1400d1e4c
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x1400d1d56
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x1400d1e45
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.1400b44b0
mov rcx, r15
mov rdx, r14
call fcn.1400f4160
mov rcx, rdi
mov rdx, r14
call fcn.1400dd1c0
mov rcx, r14
call fcn.140155d50
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400d1dae
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x1400d1d0f
lea rcx, [rsp + 0x40]
call fcn.140155d50
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.1400f40a0
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.14018d030
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 0x1400d1e1f
cmp byte [rsp + 0x57], 0
js 0x1400d1e0c
lea rcx, [rsp + 0x40]
jmp 0x1400d1e11
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400d1d37
lea rcx, [rsp + 0x58]
call fcn.1400f3f90
test al, al
jne 0x1400d1e33
mov edx, dword [rsp + 0x58]
jmp 0x1400d1dfe
lea rcx, [rsp + 0x58]
call fcn.1400f3f90
test al, al
je 0x1400d1d47
xor ebp, ebp
jmp 0x1400d1d73
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x1400d1d73
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1400d1c50
mov ebp, eax
test eax, eax
jne 0x1400d1d73
cmp byte [rsp + 0x57], 0
jns 0x1400d1e89
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 0x1400d1d73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400d1d73