joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b2a0
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 [0x140136040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401101b0]
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.14007a8c0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007e7d0
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 0x14002b50c
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 0x14002b4e1
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 0x14002b403
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 0x14002b45d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002b4f3
mov rax, r14
inc rax
cmp rax, 2
jb 0x14002b452
mov qword [rsi], r14
call fcn.14007a8e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14002b4b4
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14002b4c6
test bl, 0xa
je 0x14002b483
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14002b4d7
lea rcx, [rsp + 0x60]
call fcn.14007e850
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140092400
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.14002b190
mov dword [rsi + 0x24], eax
jmp 0x14002b489
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14002b483
mov rcx, rdi
call fcn.14003eaf0
jmp 0x14002b489
bt ebx, 0x15
jb 0x14002b528
or r8d, 0x20000000
jmp 0x14002b381
call fcn.14007a8e0
mov rcx, qword [rsi]
call fcn.1400753d0
mov qword [rsi], 0
jmp 0x14002b43e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400ed530
jmp 0x14002b489
int3
Function at 0x14002b6b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14002b860
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400af0f0
movaps xmm6, xmmword [0x1401101b0]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x51
call fcn.14007a8c0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007e7d0
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1400a74ac
mov ecx, eax
call fcn.1400a7c4c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14002b864
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x14012add0]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400aed78
test rax, rax
je 0x14002b803
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14002b86f
add r15, r12
mov rcx, rbx
call fcn.1400ae5e0
test eax, eax
je 0x14002b873
mov r12, r15
mov rcx, rbx
call fcn.1400ae60c
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x14012add0]
lea rcx, [rsp + 0x80]
call fcn.14007e850
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14002b835
mov r14d, 0xffff
jmp 0x14002b7a1
xor ebx, ebx
jmp 0x14002b813
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x14012add0]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x14002b7c6
Function at 0x140031df0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140147e90]
test rdi, rdi
jne 0x140031ea3
mov ecx, 0x50
call fcn.140091050
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140091050
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140031ec5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140147e90], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140031ec5
mov rcx, rax
call fcn.1400b1e48
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140031ed0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140034b20
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400d07c0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034bab
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140034d10
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034b98
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ac9ec
test eax, eax
je 0x140034ca5
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034c02
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140034d1e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034bef
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ac9ec
test eax, eax
je 0x140034cd7
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034c55
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140034d2c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140034c46
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400ac9ec
test eax, eax
je 0x140034c76
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140034c87
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140034c57
jb 0x140034d3a
test al, al
jns 0x140034c9b
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140034c55
jmp 0x140034c57
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140034cb6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140034c57
jb 0x140034d3a
mov rcx, rsi
test al, al
jns 0x140034cc9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140034bab
jmp 0x140034c57
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140034ce8
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140034c57
jb 0x140034d3a
mov rcx, rsi
test al, al
jns 0x140034cff
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140034c02
jmp 0x140034c57
dec r14
jne 0x140034b7f
jmp 0x140034bab
dec r14
jne 0x140034bd6
jmp 0x140034c02
dec r14
jne 0x140034c2d
jmp 0x140034c55
ud2
Function at 0x140035c10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140035dcb
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1401101b0]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xb
jae 0x140035d5f
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.1400d07c0
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x37], 0
js 0x140035c9d
lea rdx, [rsp + 0x20]
jmp 0x140035ca2
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140035da9
mov edx, eax
movsx r8, byte [rsp + 0x37]
test r8, r8
mov rcx, qword [rsp + 0x28]
mov r9, r8
cmovs r9, rcx
cmp r9, rdx
jbe 0x140035da9
test r8b, r8b
jns 0x140035d3b
cmp rcx, rdx
jb 0x140035d4d
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rdx
mov word [rcx + rdx*2], 0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp byte [rsp + 0x37], 0
js 0x140035dbc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140092400
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r8
cmp r8, rdx
jb 0x140035d4d
lea rcx, [rsp + 0x20]
mov byte [rcx + 0x17], al
jmp 0x140035cea
sub rdx, rcx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400750b0
jmp 0x140035cf0
mov eax, r15d
and eax, 0xfffffffc
add rax, 4
mov r12, r15
or r12, 3
cmp r12, 0xb
cmove r12, rax
lea rcx, [r12*2 + 2]
call fcn.140091050
mov r14, rax
mov qword [rsp + 0x20], rax
movabs rax, 0x8000000000000001
add rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
jmp 0x140035c7a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140035d12
mov rcx, qword [rsp + 0x20]
call fcn.140091090
jmp 0x140035d1d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140035d1d
Function at 0x140036140
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140036168
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400361b1
test al, 0x10
je 0x1400362dd
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140036300
mov dil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140092400
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movsx r9, byte [rdi + 0x17]
mov rax, rdi
test r9, r9
jns 0x1400361d6
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140036242
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x1400361f2
cmp ecx, 0x2f
jne 0x1400361d9
cmp r9, 0xfffffffffffffffe
je 0x140036242
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140074e60
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140036140
test al, al
jne 0x140036242
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140036300
jmp 0x1400362c1
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400362c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400362af
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.14001aae0
cmp byte [r14 + 0x17], 0
jns 0x14003627f
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400362aa
mov rcx, qword [rsp + 0x28]
call fcn.140091090
test bpl, bpl
jne 0x1400362c3
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140036300
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140036197
mov rcx, qword [rsp + 0x40]
call fcn.140091090
jmp 0x140036197
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140036300
xor edi, edi
jmp 0x140036197

Function at 0x140036300
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140067360
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140147ef0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140094e94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140092400
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14003c880
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401487d8]
mov ecx, dword [0x140144ee0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c8e0
lea rsi, [0x1401487d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140092400
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401487d8]
call fcn.1400910ec
cmp dword [0x1401487d8], 0xffffffff
jne 0x14003c8bc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400d07c0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140091050
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140148820]
mov ecx, dword [0x140144ee0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c9a0
lea r8, [0x1401487f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14003caa0
mov qword [0x1401487d0], rsi
lea rcx, [0x1401487d8]
call fcn.1400911a0
jmp 0x14003c8bc
lea rcx, [0x140148820]
call fcn.1400910ec
cmp dword [0x140148820], 0xffffffff
jne 0x14003c971
xorps xmm0, xmm0
movups xmmword [0x140148810], xmm0
movups xmmword [0x140148800], xmm0
movups xmmword [0x1401487f0], xmm0
lea rcx, [0x1401487f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140148820]
call fcn.1400911a0
jmp 0x14003c971

Function at 0x14003c9f0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140148820]
mov ecx, dword [0x140144ee0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003ca2b
movzx eax, word [0x1401487f0]
cmp eax, 9
jne 0x14003ca73
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140148820]
call fcn.1400910ec
cmp dword [0x140148820], 0xffffffff
jne 0x14003ca15
xorps xmm0, xmm0
movups xmmword [0x140148810], xmm0
movups xmmword [0x140148800], xmm0
movups xmmword [0x1401487f0], xmm0
lea rcx, [0x1401487f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140148820]
call fcn.1400911a0
jmp 0x14003ca15
test eax, eax
je 0x14003ca26
cmp eax, 6
jne 0x14003ca83
mov eax, 2
jmp 0x14003ca26
cmp eax, 0xc
jne 0x14003ca8f
mov eax, 3
jmp 0x14003ca26
mov eax, 4
jmp 0x14003ca26
Function at 0x14003d770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401101b0]
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, 0x20e
call fcn.14007a8c0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14007e7d0
cmp byte [rdi + 0x17], 0
jns 0x14003d7e2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14007e850
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d820
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 [0x140136040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401101b0]
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, 0x217
call fcn.14007a8c0
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007e7d0
cmp byte [rdi + 0x17], 0
jns 0x14003d8a2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003d935
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 0x14003d918
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x14003d961
call fcn.14007a8e0
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 0x14003d935
call fcn.14007a8e0
mov rcx, r14
call fcn.1400753d0
lea rcx, [rsp + 0x60]
call fcn.14007e850
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14003d910
Function at 0x14003d970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401101b0]
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, 0x236
call fcn.14007a8c0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14007e7d0
cmp byte [rdi + 0x17], 0
jns 0x14003d9e2
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.14007e850
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140092400
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003da30
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d07c0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14003dacf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400b1e48
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14007aa40
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140031570
mov rcx, rsi
mov rdx, r14
call fcn.140030160
mov rcx, r14
call fcn.14007ab80
mov rcx, rbx
call fcn.14007ab80
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret