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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [0x1803d3468], 0
je 0x18016ba27
xorps xmm0, xmm0
lea r15, [rsp + 0x50]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_RtlInitUnicodeString
lea r13, [rsp + 0x4c]
mov dword [r13], 0x18
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rdi], xmm0
mov edx, 0x18
mov rcx, rdi
call fcn.1800dec7e
mov ebp, 5
mov edx, dword [rsp + 0x4c]
mov rcx, rdi
call fcn.1800d7778
mov r12, qword [rsp + 0x30]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov rcx, r14
mov rdx, r15
mov r8d, 1
mov r9, r12
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x18016ba21
cmp eax, 0x80000005
je 0x18016ba21
test eax, eax
jns 0x18016ba38
xor esi, esi
lea rcx, [rsp + 0x68]
mov qword [rcx], rdi
call fcn.1800d2d88
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
dec ebp
jne 0x18016b9ae
jmp 0x18016b9f2
call fcn.18016b198
test al, al
jne 0x18016b95b
xor esi, esi
jmp 0x18016ba01
mov eax, dword [r12 + 4]
mov dword [rbx], eax
mov r9d, dword [r12 + 0xc]
test r9, r9
jne 0x18016ba67
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
dec rcx
cmp rdx, rcx
ja 0x18016ba7d
mov qword [rsi + 8], rax
mov sil, 1
jmp 0x18016b9f4
mov edx, dword [r12 + 8]
add rdx, r12
lea r8, [rdx + r9]
mov rcx, rsi
call fcn.180149dc8
jmp 0x18016ba62
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.18027be54
int3

Function at 0x18016c615
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1801e8860
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x18016c690
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.18016c5a3
test al, al
jne 0x18016c6bd
add rbx, 8
cmp rbx, 0x18
jne 0x18016c65d
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x18016c69c
Function at 0x18016c9a9
Capabilities:
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1801e8860
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rdi], xmm0
mov rcx, rsi
call fcn.180206ad4
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.1800fa5f4
lea rdx, str.usp10.dll
mov r8d, 0xa
mov rcx, rdi
call fcn.1800fa7f6
cmp byte [rax + 0x17], 0
jns 0x18016ca3e
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x18016ca5a
mov rcx, qword [rsp + 0x20]
call fcn.1801e4f44
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret

Function at 0x18016cb4f
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1803467d0]
movaps xmmword [rsi], xmm0
lea rdx, [0x18035a6bc]
lea rdi, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
call fcn.1800fa5f4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rax
call fcn.1801447b6
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.18016cc1c
cmp byte [rbx + 0x17], 0
jns 0x18016cbd0
mov rcx, qword [rsp + 0x20]
call fcn.1801e4f44
cmp byte [rsp + 0x4f], 0
js 0x18016cc10
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.18016cdd9
mov dword [0x1803d3a90], eax
cmp byte [rsi + 0x17], 0
jns 0x18016cbfa
mov rcx, qword [rsp + 0x50]
call fcn.1801e4f44
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801e6610
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x38]
call fcn.1801e4f44
jmp 0x18016cbd7

Function at 0x18016dcce
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x18016dd05
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x18016dd05
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x18016dd05
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x18016dd04
Function at 0x18016e130
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x18016e191
test r12, r12
je 0x18016e2a8
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801e6610
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x18016e1f6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x18016e1df
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1801e81b0
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x18016e15e
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x18016e2d4
lea rcx, [r15*8]
call fcn.1801e4f08
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x18016e273
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x18016e2a8
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x18016e25b
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.1800d7e62
mov r12, qword [rsi + 0x10]
jmp 0x18016e15e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.18027be54
call fcn.180267d05
int3
Function at 0x18016e4a0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x18034b168]
mov qword [rcx], rax
add rcx, 8
call fcn.1800e2f60
lea rcx, [rsi + 0x10]
call fcn.1800e2f60
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1800e2f60
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x180397a5c]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.180190020
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.180141e80
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.18016e690
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x18016e675
call fcn.180171660
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1801c90e0
mov qword [0x1803d4648], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1803f5008]
jmp 0x18016e643
Function at 0x1801721f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1803d46b0]
mov ecx, dword [0x1803c8448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x18017225f
lea rcx, [0x1803d46b0]
call fcn.1801e5060
cmp dword [0x1803d46b0], 0xffffffff
jne 0x18017225f
xorps xmm0, xmm0
movups xmmword [0x1803d46a0], xmm0
movups xmmword [0x1803d4690], xmm0
movups xmmword [0x1803d4680], xmm0
lea rcx, [0x1803d4680]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1803d46b0]
add rsp, 0x28
jmp fcn.1801e50f8
nop
add rsp, 0x28
ret

Function at 0x1801733c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r13, qword [rcx]
lea rdx, str.ReadValue
lea r8, str....._basewin_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a6
call fcn.18010a970
mov rcx, rbx
mov rdx, rbp
mov r8, r13
mov r9d, 1
call fcn.18015e450
mov rcx, qword [r12]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, rbx
call fcn.180141e80
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x180173480
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.1801e65b0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1801e8860
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.1801733c0
test eax, eax
jne 0x18017353d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x180173541
lea rcx, [rsp + 0x830]
call fcn.180206ad4
lea rdx, [rsp + 0x830]
mov rcx, rsi
mov r8, rax
call fcn.18016a8b2
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1801e6610
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x18017351e
mov edi, 0x3f4
cmp eax, 2
jne 0x18017351e
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1801e8860
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x18017351e
lea rcx, [rsp + 0x30]
call fcn.180206ad4
lea rdx, [rsp + 0x30]
jmp 0x180173511
Function at 0x180175ac0
Capabilities:
Read 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 [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1803467d0]
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.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x65
call fcn.18010a970
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.180101470
test esi, esi
js 0x180175bc9
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1801191b0
test al, al
jne 0x180175be8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180175bd5
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x180175bd0
lea rcx, [rsp + 0x30]
call fcn.180119240
lea rcx, [rsp + 0x50]
call fcn.1801014d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x180175b9e
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x180175b94
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1802f9650
jmp 0x180175b64

Function at 0x180175c10
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 [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1803467d0]
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, 0x9d
call fcn.18010a970
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.180101470
test esi, esi
js 0x180175d16
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1801191b0
test al, al
jne 0x180175d1d
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.180119240
lea rcx, [rsp + 0x50]
call fcn.1801014d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1801e6610
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x180175ceb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1802f9650
jmp 0x180175cb0
Function at 0x180176150
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp 0x180175e50

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x1803467d0]
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.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2bc
call fcn.18010a970
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.180101470
call fcn.1801974c0
test al, al
jne 0x180176221
cmp byte [rsi + 0x17], 0
jns 0x1801761e3
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.1801014d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x18017623c
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.1802f98a0
test eax, eax
jmp 0x1801761ef

Function at 0x180176250
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1803467d0]
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, 0x2eb
call fcn.18010a970
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.180101470
cmp byte [rdi + 0x17], 0
jns 0x1801762c2
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.1801014d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1801e6610
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x180176310
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1801e8860
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1801763af
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.180206ad4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.18010abf0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.180183100
mov rcx, rsi
mov rdx, r14
call fcn.18010ae40
mov rcx, r14
call fcn.18010ad40
mov rcx, rbx
call fcn.18010ad40
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x180176760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [0x1803467d0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3ac
call fcn.18010a970
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.180101470
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1801767e5
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180176831
mov bl, 1
test al, 0x10
je 0x1801768e8
lea rcx, [rsp + 0x40]
call fcn.1801014d0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.18010bb50
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x180176863
and r8d, 0x7f
mov rdx, rdi
jmp 0x18017686a
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x98]
call fcn.1800d2a50
movzx r8d, byte [rsp + 0x37]
test r8b, r8b
js 0x180176888
and r8d, 0x7f
jmp 0x180176892
mov r8, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
lea r15, [rsp + 0x88]
mov rcx, r15
mov rdx, r14
call fcn.1800d2a50
mov rax, qword [r15 + 8]
cmp rax, qword [rsp + 0xa0]
je 0x180176905
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.180176760
test al, al
je 0x180176967
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x180176942
lea rcx, [rsp + 0x20]
call fcn.18010ad40
jmp 0x1801767fd
test rsi, rsi
je 0x1801768f3
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1801767fd
test rax, rax
je 0x180176931
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x98]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x1801768b3
inc r8
cmp rax, r8
jne 0x18017691d
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x18017695d
jmp 0x18017695f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x18017696e
test rsi, rsi
je 0x18017695f
mov ecx, ebp
call fcn.180175d40
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1801768d9
mov rcx, rdi
call fcn.180176250
test al, al
jne 0x1801768d9
jmp 0x180176951
Function at 0x180176980
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1803467d0]
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, [0x18035d15f]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x509
call fcn.18010a970
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.180101470
cmp byte [rdi + 0x17], 0
jns 0x1801769f2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1801014d0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1801e6610
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret