joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d8af0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x14023d9f0]
movaps xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d8bdb
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx], rax
mov rdx, rbx
call fcn.1400d8cd0
cmp byte [rbx + 4], 0
jne 0x1400d8ca9
lea rdx, [0x140243476]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400d8bf9
test rdi, rdi
je 0x1400d8bb6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x1400d8cb2
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400d8be3
call fcn.140169190
int3
cmp eax, 2
cmovne ebx, eax
jmp 0x1400d8bb6
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x200
call fcn.140167cdc
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.1401a3560
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x1400d8c76
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x1400d8cc1
cmp word [r14 + rax*2], 0
jne 0x1400d8cc4
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.1400d8af0
test eax, eax
je 0x1400d8c25
jmp 0x1400d8c7b
mov rdi, qword [rsp + 0x40]
lea rdx, [0x140243476]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x1400d8ba8
mov rcx, r14
call fcn.140167ce4
jmp 0x1400d8ba8
mov ebx, dword [rsp + 0x60]
jmp 0x1400d8ba8
mov edx, 1
call fcn.1400d9060
jmp 0x1400d8bc4
int3
int3
Function at 0x1400d8cd0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1400d8d40
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400d8d36
call fcn.140169190
int3
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x1400d8d8e
cmp dword [rsp + 0x3c], 6
jne 0x1400d8d17
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x1400d8d94
mov edi, eax
mov eax, dword [0x14027dd70]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d8da3
mov rax, qword [0x14027dd68]
test rax, rax
je 0x1400d8d9c
mov ecx, edi
call qword [0x14025e9a8]
mov dword [rsi], eax
mov al, 1
jmp 0x1400d8d1c
mov dword [rsi], 0
jmp 0x1400d8d90
mov eax, 5
jmp 0x1400d8d8e
lea rcx, [0x14027dd70]
call fcn.140167cec
cmp dword [0x14027dd70], 0xffffffff
jne 0x1400d8d7a
lea rcx, [0x14024d496]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027dd68], rax
lea rcx, [0x14027dd70]
call fcn.140167da0
jmp 0x1400d8d7a

Function at 0x1400d8e00
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 4
lea r9, [rsp + 0x44]
mov dword [r9], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
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 0x1400d8e71
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x1400d8e71
cmp dword [rsp + 0x40], 4
jne 0x1400d8e71
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400d8e88
call fcn.140169190
int3
add rsp, 0x50
pop rsi
ret
Function at 0x1400d8e90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140169130
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401a3560
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 0x1400d8f24
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400d8f4b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400d68c0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400d8f3e
call fcn.140169190
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x1400d8f93
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a3560
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 0x1400d8f9a
lea rdx, [rsp + 0x40]
jmp 0x1400d8f1a
mov eax, 0x3f4
jmp 0x1400d8f24
mov eax, 0xea
jmp 0x1400d8f24

Function at 0x1400d8fb0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140187d04
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400d9aa0
Capabilities:
Create thread

Disassembly:
jmp 0x1400d9aa0
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140167c6c
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14026e5c8]
jne 0x1400d9b0d
mov rcx, r15
call fcn.1400c3820
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, [0x1400d9e30]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400d9b89
test r14, r14
je 0x1400d9b7e
mov qword [r14], rdi
test rdi, rdi
setne al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400d9b6d
call fcn.140169190
int3
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 0x1400d9b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x1400d9bd6
cmp ebp, 0x5af
je 0x1400d9ba8
cmp ebp, 0x27b
jne 0x1400d9be0
mov rcx, rbx
call fcn.1400fd720
test rsi, rsi
je 0x1400d9b50
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14026e5c8]
jne 0x1400d9bc9
call fcn.1400c3960
mov rcx, rsi
call fcn.140167ca8
jmp 0x1400d9b50
cmp ebp, 8
je 0x1400d9ba8
cmp ebp, 0xe
je 0x1400d9ba8
mov eax, dword [0x14027ddb0]
mov ecx, dword [0x14027a7c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d9c56
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400e0c30
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x1400d9c24
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, qword [0x14027dda8]
call fcn.1400fe620
cmp byte [rsp + 0x4f], 0
jns 0x1400d9bb0
mov rcx, qword [rsp + 0x38]
call fcn.140167ca8
jmp 0x1400d9bb0
lea rcx, [0x14027ddb0]
call fcn.140167cec
cmp dword [0x14027ddb0], 0xffffffff
jne 0x1400d9c01
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400fe5f0
mov qword [0x14027dda8], rax
lea rcx, [0x14027ddb0]
call fcn.140167da0
jmp 0x1400d9c01

Function at 0x1400da630
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 0x1400da677
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400da691
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400da66f
mov qword [rsi], rdi
call fcn.14013e120
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x1400da6a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14013e120
mov rcx, qword [rsi]
call fcn.140131ec0
mov qword [rsi], 0
jmp 0x1400da65d
int3
Function at 0x1400da6e0
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 0x1400da70a
call fcn.14013e120
cmp qword [rsi], r14
je 0x1400da739
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400da774
cmp r15, 2
jb 0x1400da731
mov qword [rsi], r14
call fcn.14013e120
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 0x1400da75e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14013e120
mov rcx, qword [rdi]
call fcn.140131ec0
mov qword [rdi], 0
jmp 0x1400da74f
call fcn.14013e120
mov rcx, qword [rsi]
call fcn.140131ec0
mov qword [rsi], 0
jmp 0x1400da723
Function at 0x1400db8a0
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14023d9f0]
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, 0x9a
call fcn.14013e100
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401348d0
test esi, esi
js 0x1400db9b0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140153e20
test al, al
jne 0x1400db9b7
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.140153ea0
lea rcx, [rsp + 0x50]
call fcn.140134960
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400db99f
call fcn.140169190
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400db97b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1401f5060
jmp 0x1400db940

Function at 0x1400db9e0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14023d9f0]
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, 0xb0
call fcn.14013e100
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401348d0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140153e20
test al, al
jne 0x1400dbac6
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.140153ea0
lea rcx, [rsp + 0x50]
call fcn.140134960
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dbab6
call fcn.140169190
int3
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.1401f5060
jmp 0x1400dba69
Function at 0x1400dbae0
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14023d9f0]
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, 0xbd
call fcn.14013e100
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401348d0
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140153e20
test al, al
jne 0x1400dbc12
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 0x1400dbbcf
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 0x1400dbbcf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400dbc0e
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.140153ea0
lea rcx, [rsp + 0x50]
call fcn.140134960
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dbbfd
call fcn.140169190
int3
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400dbbcf
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1401f5060
jmp 0x1400dbb72
Function at 0x1400dbd40
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14023d9f0]
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, 0x175
call fcn.14013e100
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401348d0
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 0x1400dbfb5
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 0x1400dbf8a
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 0x1400dbea3
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 0x1400dbefd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400dbf9c
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400dbef2
mov qword [rsi], r14
call fcn.14013e120
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400dbf5d
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400dbf6f
test bl, 0xa
je 0x1400dbf23
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400dbf80
lea rcx, [rsp + 0x60]
call fcn.140134960
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dbf4d
call fcn.140169190
int3
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.1400dbc30
mov dword [rsi + 0x24], eax
jmp 0x1400dbf29
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400dbf23
mov rcx, rdi
call fcn.1400dd350
jmp 0x1400dbf29
bt ebx, 0x15
jb 0x1400dbfb8
or r8d, 0x20000000
jmp 0x1400dbe21
call fcn.14013e120
mov rcx, qword [rsi]
call fcn.140131ec0
mov qword [rsi], 0
jmp 0x1400dbede
int3
int3
Function at 0x1400dc3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14023d9f0]
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, 0x203
call fcn.14013e100
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401348d0
cmp byte [rdi + 0x17], 0
jns 0x1400dc422
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140134960
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dc453
call fcn.140169190
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400dc460
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 [0x14026c040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14023d9f0]
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, 0x20c
call fcn.14013e100
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401348d0
cmp byte [rdi + 0x17], 0
jns 0x1400dc4e2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400dc575
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 0x1400dc558
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x1400dc5ab
call fcn.14013e120
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 0x1400dc575
call fcn.14013e120
mov rcx, r14
call fcn.140131ec0
lea rcx, [rsp + 0x60]
call fcn.140134960
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dc599
call fcn.140169190
int3
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x1400dc550
mov edx, 2
mov r8d, 0x40000000
jmp 0x1400dc460
Function at 0x1400dc5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14023d9f0]
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, 0x22b
call fcn.14013e100
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401348d0
cmp byte [rdi + 0x17], 0
jns 0x1400dc632
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.140134960
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dc66e
call fcn.140169190
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400dc680
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a3560
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400dc71f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140187d04
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14013e280
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400e5300
mov rcx, rsi
mov rdx, r14
call fcn.1400e44d0
mov rcx, r14
call fcn.14013e3c0
mov rcx, rbx
call fcn.14013e3c0
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dc742
call fcn.140169190
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400dc750
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14026c040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a3560
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 0x1400dc7ef
cmp word [rsp + 0x70], 0
je 0x1400dc7ef
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140187d04
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14013e280
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x14026c040]
je 0x1400dc7e1
call fcn.140169190
int3
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 [0x14023d9f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14013e220
mov rcx, rdi
call fcn.1400dc680
test al, al
jne 0x1400dc841
lea rax, [0x14024d7ae]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14013e280
jmp 0x1400dc84e
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400e44b0
lea rcx, [rsp + 0x40]
call fcn.14013e3c0
jmp 0x1400dc7c7