joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fd090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1f0
call fcn.1401ee3a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fb430
cmp byte [rdi + 0x17], 0
jns 0x1400fd114
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.1401fb490
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14024c3c0
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400fd160
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14024e4f0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400fd203
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140272ba4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1401ed0e0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400ec8e0
mov rcx, rsi
mov rdx, r14
call fcn.1400eb210
mov rcx, r14
call fcn.1401ed260
mov rcx, rbx
call fcn.1401ed260
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400fd230
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14024e4f0
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 0x1400fd2c5
cmp word [rsp + 0x70], 0
je 0x1400fd2c5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140272ba4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1401ed0e0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14024c3c0
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 [0x1403be790]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1401ecfb0
mov rcx, rdi
call fcn.1400fd160
test al, al
je 0x1400fd305
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401ed0c0
jmp 0x1400fd324
lea rax, [0x1403cbe50]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1401ed0e0
lea rcx, [rsp + 0x40]
call fcn.1401ed260
jmp 0x1400fd2a7
Function at 0x1400fdd60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov esi, r8d
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x60]
mov qword [r15 + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r15 + 0x40], xmm0
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, [0x1403cbeb5]
lea r8, str....._base_files_file_util_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x389
call fcn.1401ee3a0
xor ebx, ebx
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1401fb430
cmp byte [r14 + 0x17], 0
jns 0x1400fddf9
mov r14, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, r14
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x1400fde50
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x1400fdee5
call fcn.1401ee3c0
mov rbx, r14
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 0xffffffff
test esi, esi
js 0x1400fdea0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400fdea0
lea r14, [rsp + 0x40]
mov dword [r14], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [r14]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, esi
mov ebp, 0xffffffff
cmove ebp, ecx
or ebp, edx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400fdeb7
call fcn.1401ee3c0
mov rcx, rbx
call fcn.140201a20
lea rcx, [rsp + 0x60]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400fde48
Function at 0x1400fdef0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1403cbebf]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x3c2
call fcn.1401ee3a0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fb430
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14024e4f0
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1400fdff7
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140272ba4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1401ed0e0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400ec8e0
mov rcx, rsi
mov rdx, r14
call fcn.1400eb210
mov rcx, r14
call fcn.1401ed260
mov rcx, rbx
call fcn.1401ed260
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.1401fb490
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400fe030
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1403cbed4]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3d2
call fcn.1401ee3a0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fb430
cmp byte [rdi + 0x17], 0
jns 0x1400fe0b4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1401fb490
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400fe0f0
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, 0x568
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14024e4f0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140105490
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140105690
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400fe188
mov rax, qword [rsp + 0x38]
jmp 0x1400fe18b
and eax, 0x7f
test rax, rax
jne 0x1400fe1cd
lea rcx, [rsp + 0x30]
call fcn.1401ed260
lea rcx, [rsp + 0x298]
call fcn.1401055e0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.14024e4f0
mov rcx, r15
mov rdx, r14
call fcn.140105650
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400fe2ee
mov rcx, r14
call fcn.1401053a0
test al, al
jne 0x1400fe29d
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400fe22b
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x1400fe323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140098280
mov rcx, r15
mov rdx, r14
call fcn.140105690
mov rcx, rdi
mov rdx, r14
call fcn.1400eb210
mov rcx, r14
call fcn.1401ed260
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400fe289
mov rax, qword [rsp + 0x38]
jmp 0x1400fe28c
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x1400fe190
jmp 0x1400fe1e4
xor ebp, ebp
test bl, bl
je 0x1400fe24c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400fe0f0
test eax, eax
jne 0x1400fe340
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400fe2c8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400fe24c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400fe24c
test bl, bl
je 0x1400fe303
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400fe32a
mov rcx, qword [rsp + 0x30]
jmp 0x1400fe32f
lea rcx, [rsp + 0x48]
call fcn.1401053a0
test al, al
je 0x1400fe33a
lea rcx, [rsp + 0x48]
call fcn.1401053a0
test al, al
je 0x1400fe21c
xor ebp, ebp
jmp 0x1400fe24c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400fe20c
mov edx, dword [rsp + 0x48]
jmp 0x1400fe2f2
mov ebp, eax
jmp 0x1400fe24c
Function at 0x1400fe380
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x50], r12
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r14 + 0x40], xmm0
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, 0x93
call fcn.1401ee3a0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fb430
test esi, esi
js 0x1400fe48f
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140209d40
test al, al
jne 0x1400fe496
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.140209dd0
lea rcx, [rsp + 0x50]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400fe462
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403152d0
jmp 0x1400fe427

Function at 0x1400fe4c0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r14
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rdi + 0x40], xmm0
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, 0xa8
call fcn.1401ee3a0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fb430
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140209d40
test al, al
jne 0x1400fe5a4
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.140209dd0
lea rcx, [rsp + 0x50]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14024c3c0
mov rax, rsi
add rsp, 0xb8
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.1403152d0
jmp 0x1400fe551
Function at 0x1400fe5c0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rbx + 0x40], xmm0
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, 0xb5
call fcn.1401ee3a0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fb430
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140209d40
test al, al
jne 0x1400fe6f0
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 0x1400fe6b7
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 0x1400fe6b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400fe6ec
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.140209dd0
lea rcx, [rsp + 0x50]
call fcn.1401fb490
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400fe6b7
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1403152d0
jmp 0x1400fe65a
Function at 0x1400fe9c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r14 + 0x40], xmm0
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, 0x16f
call fcn.1401ee3a0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fb430
mov eax, edi
and eax, 1
neg eax
and eax, 3
test dil, 2
mov edx, 1
cmove edx, eax
test dil, 4
mov ecx, 4
cmovne edx, ecx
test dil, 8
mov r8d, 2
cmove r8d, edx
test dil, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x1400fec27
mov edx, edi
and edx, 0x40
shl edx, 0x18
test dil, 0x80
cmove ecx, edx
mov edx, edi
rol edx, 0x1a
mov r8d, edi
shl r8d, 0xb
and r8d, 0x20000000
mov r9d, edi
shr r9d, 4
and r9d, 0x10000
and edx, 0x80000100
or edx, r8d
or edx, r9d
or edx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 3
mov r8d, edi
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r14d, edi
and r14d, 0x400
mov ecx, r14d
shl ecx, 0x14
mov r9d, edi
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, edi
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r9d, edi
shl r9d, 0xd
and r9d, 0x4000000
or r9d, ecx
mov ecx, edi
shl ecx, 8
and ecx, 0xa000000
or ecx, r9d
cmp byte [rbx + 0x17], 0
jns 0x1400feb3c
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsi], rax
je 0x1400feb98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400fec0e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400feb8d
mov qword [rsi], rbx
call fcn.1401ee3c0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
inc rbx
cmp rbx, 2
jb 0x1400febeb
shr r14d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r14b
test dil, 4
jne 0x1400febfd
test dil, 0xa
je 0x1400febc0
mov byte [rsi + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.1401fb490
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14024c3c0
nop
add rsp, 0xc8
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.1400fe860
mov dword [rsi + 0x24], eax
jmp 0x1400febc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400febc0
call fcn.1401ee3c0
mov rcx, qword [rsi]
call fcn.140201a20
mov qword [rsi], 0
jmp 0x1400feb79
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
jmp 0x1400febc0
Function at 0x1400fed30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400fed78
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 0x1400fed81
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400fed68
mov qword [rdi], rsi
call fcn.1401ee3c0
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.1401ee3c0
mov rcx, qword [rdi]
call fcn.140201a20
mov qword [rdi], 0
jmp 0x1400fed56

Function at 0x1400fedd0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1401ee3a0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fb430
mov rcx, rsi
call fcn.1401fcff0
test al, al
je 0x1400fef88
mov rcx, rsi
call fcn.1400a9500
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x1400feecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400fefb1
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400feec3
mov qword [rsi + 0x40], rbx
call fcn.1401ee3c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400fefcc
movabs rdi, 0x7fffffffffffffff
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov rcx, qword [rsi + 0x30]
and rcx, rdi
mov rax, qword [0x140433360]
and rax, rcx
cmp rax, qword [0x140433348]
je 0x1400fefd0
and rdi, rbx
mov rax, qword [0x140433360]
and rax, rdi
cmp rax, qword [0x140433348]
je 0x1400fefda
mov qword [rsi + 0x30], rbx
test rbx, rbx
je 0x1400fefcc
mov rax, qword [0x140433360]
and rax, rdi
cmp rax, qword [0x140433348]
sete al
test al, 1
cmovne rbx, rdi
lea rax, fcn.14029bc70
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
call fcn.14014c970
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, edi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401ee3c0
mov rcx, qword [rsi + 0x40]
call fcn.140201a20
mov qword [rsi + 0x40], 0
jmp 0x1400feeae
xor edi, edi
jmp 0x1400fef88
call fcn.1401f04a0
jmp 0x1400fef25
mov rcx, rdi
call fcn.1401f0350
jmp 0x1400fef3f
Function at 0x1400ff5e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14014b390
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1403bc790]
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 0x1400ff655
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400ff660
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400ff64d
mov qword [rsi + 0x18], rdi
call fcn.1401ee3c0
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.1401ee3c0
mov rcx, qword [rsi + 0x18]
call fcn.140201a20
mov qword [rsi + 0x18], 0
jmp 0x1400ff63a