joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010801
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [0x140185410]
test rax, rax
jne 0x140010847
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x140185410]
test rax, rax
je 0x140010834
cmp eax, 2
jne 0x140010888
mov dword [rsp + 0x20], 2
lea rdx, str.LONG___cdecl_crashpad::_anonymous_namespace_::UnhandledExceptionHandler_EXCEPTION_POINTERS__
lea r8, str.xplat_third_partycrashpadclientcrashpad_client_win.cc
lea rsi, [rbp - 0x58]
mov rcx, rsi
mov r9d, 0x91
call fcn.1400067ee
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov rcx, rsi
call fcn.1400035ea
jmp 0x140010912
mov eax, 1
lock xadd qword [0x140185448], rax
test rax, rax
jle 0x1400108a8
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1401853c8], eax
mov qword [0x1401853c0], rsi
mov rcx, rsi
call fcn.140020533
mov rcx, qword [0x14017e618]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 2
lea rdx, str.LONG___cdecl_crashpad::_anonymous_namespace_::UnhandledExceptionHandler_EXCEPTION_POINTERS__
lea r8, str.xplat_third_partycrashpadclientcrashpad_client_win.cc
lea rsi, [rbp - 0x58]
mov rcx, rsi
mov r9d, 0xbf
call fcn.1400067ee
lea rdx, str.crash_server_did_not_respond__self_terminating
mov rcx, rsi
call fcn.1400035ea
lea rcx, [rbp - 0x58]
call fcn.140006ed2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011f51
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov rsi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140011f7b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x140012054
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011fa9
mov rcx, rsi
call fcn.1400120c5
jmp 0x140012054
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::CreateDirectoryIfNecessary_const_base::FilePath__
lea r8, str.xplat_third_partycrashpadclientcrash_report_database_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x266
call fcn.1400078c2
lea rdx, str.CreateDirectory
mov rcx, rdi
call fcn.1400035ea
mov rdi, rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x140011ff9
mov rax, qword [rsi]
lea rdx, [rbp + 0xb8]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xc8]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xd8]
cmp qword [rbp + 0xe0], 0xf
jbe 0x140012032
mov rsi, qword [rbp + 0xc8]
mov rcx, rdi
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp + 0xc8]
call fcn.140005a44
lea rcx, [rbp - 0x50]
call fcn.1400078f2
xor eax, eax
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400120c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf8], 0xfffffffffffffffe
mov rsi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400120ef
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400121bf
mov ecx, eax
mov al, 1
test cl, 0x10
jne 0x14001226a
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::EnsureDirectory_const_base::FilePath__
lea r8, str.xplat_third_partycrashpadclientcrash_report_database_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x255
call fcn.1400067ee
lea rdx, str.GetFileAttributes
mov rcx, rdi
call fcn.1400035ea
mov rdi, rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x140012152
mov rax, qword [rsi]
lea rdx, [rbp + 0xc8]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xd8]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xe8]
cmp qword [rbp + 0xf0], 0xf
jbe 0x14001218b
mov rsi, qword [rbp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.14000468b
lea rdx, str.:_not_a_directory
mov rcx, rax
call fcn.1400035ea
lea rcx, [rbp + 0xd8]
call fcn.140005a44
lea rcx, [rbp - 0x50]
call fcn.140006ed2
jmp 0x140012268
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::EnsureDirectory_const_base::FilePath__
lea r8, str.xplat_third_partycrashpadclientcrash_report_database_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x251
call fcn.1400078c2
lea rdx, str.GetFileAttributes
mov rcx, rdi
call fcn.1400035ea
mov rdi, rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x14001220f
mov rax, qword [rsi]
lea rdx, [rbp + 0xb8]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xd8]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xe8]
cmp qword [rbp + 0xf0], 0xf
jbe 0x140012248
mov rsi, qword [rbp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp + 0xd8]
call fcn.140005a44
lea rcx, [rbp - 0x50]
call fcn.1400078f2
xor eax, eax
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014724
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
movups xmm0, xmmword [rdx]
movaps xmmword [rbp - 0x10], xmm0
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rcx + 0x58]
mov r15d, 1
cmp rdi, rsi
je 0x1400147b4
mov r14, r8
mov r12, rcx
lea rbx, [rbp - 0x10]
mov rcx, rdi
mov rdx, rbx
call fcn.14002c494
test al, al
jne 0x140014776
sub rdi, 0xffffffffffffff80
cmp rsi, rdi
jne 0x14001475b
mov rdi, rsi
cmp rdi, qword [r12 + 0x58]
je 0x1400147b4
cmp qword [rdi + 0x28], 7
jbe 0x14001478a
mov rcx, qword [rdi + 0x10]
jmp 0x14001478e
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x1400147b4
mov qword [r14], rdi
xor r15d, r15d
mov eax, r15d
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140014c9a
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov r15, rdx
mov r12, rcx
lea rsi, [rbp + 0x108]
mov rdx, rsi
call fcn.140012922
mov r13, qword [rsi]
test r13, r13
je 0x140014d99
lea rcx, [rbp + 0xe8]
call fcn.14000b454
movups xmm0, xmmword [r15]
movaps xmmword [rbp - 0x50], xmm0
mov rbx, qword [r13 + 0x50]
mov rdi, qword [r13 + 0x58]
cmp rbx, rdi
je 0x140014d86
lea r14, [r13 + 0x50]
lea rsi, [rbp - 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.14002c494
test al, al
jne 0x140014d29
sub rbx, 0xffffffffffffff80
cmp rbx, rdi
jne 0x140014d0e
mov rbx, rdi
cmp rbx, qword [r13 + 0x58]
je 0x140014d86
lea rdx, [rbx + 0x10]
lea rsi, [rbp + 0xe8]
mov rcx, rsi
call fcn.14000b5b6
lea rdx, [rbp + 0xc8]
mov rcx, r14
mov r8, rbx
call fcn.140016cec
mov byte [r13 + 0x48], 1
cmp qword [rbp + 0x100], 7
jbe 0x140014d6a
mov rsi, qword [rbp + 0xe8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140014dc0
xor ebx, ebx
mov rcx, r12
mov rdx, r15
call fcn.140028b3e
jmp 0x140014d8b
mov ebx, 1
lea rcx, [rbp + 0xe8]
call fcn.14000b584
jmp 0x140014d9e
mov ebx, 3
lea rcx, [rbp + 0x108]
call fcn.140013a88
mov eax, ebx
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.virtual_crashpad::_anonymous_namespace_::OperationStatus___cdecl_crashpad::CrashReportDatabaseWin::DeleteReport_const_crashpad::UUID__
lea r8, str.xplat_third_partycrashpadclientcrash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x370
call fcn.1400078c2
lea rdx, str.DeleteFile
lea rcx, [rbp - 0x50]
call fcn.1400035ea
mov rsi, rax
mov rax, qword [rbp + 0xf8]
cmp qword [rbp + 0x100], 7
jbe 0x140014e1b
mov rcx, qword [rbp + 0xe8]
jmp 0x140014e22
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0xb8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
lea rdi, [rbp + 0xc8]
mov rcx, rdi
call fcn.14001d6fb
mov r8, qword [rbp + 0xd8]
cmp qword [rbp + 0xe0], 0xf
jbe 0x140014e57
mov rdi, qword [rbp + 0xc8]
mov rcx, rsi
mov rdx, rdi
call fcn.14000468b
lea rcx, [rbp + 0xc8]
call fcn.140005a44
lea rcx, [rbp - 0x50]
call fcn.1400078f2
mov ebx, 2
jmp 0x140014d8b

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov eax, dword [rcx + 0x78]
cmp eax, edx
jne 0x14001661c
cmp qword [rcx + 0x28], 7
jbe 0x14001662b
mov rcx, qword [rcx + 0x10]
jmp 0x14001662f
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [rcx + rcx*2]
inc eax
jmp 0x140016648
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov eax, 1
cmovne eax, ecx
add rsp, 0x20
pop rbp
ret
Function at 0x14001d1e6
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r15, r9
mov r12, rdx
mov r14, rcx
mov r9, qword [rcx]
mov rdi, qword [r9 + 8]
cmp byte [rdi + 0x19], 0
je 0x14001d220
mov qword [rbp - 0x18], r9
mov rbx, r9
jmp 0x14001d25e
mov rcx, qword [r15]
mov rbx, rdi
mov rdi, qword [rdi + 0x20]
xor esi, esi
cmp rdi, rcx
setae sil
xor edx, edx
cmp rcx, rdi
setb dl
test r8b, r8b
cmovne edx, esi
mov eax, edx
xor al, 1
movzx eax, al
shl rax, 4
mov rdi, qword [rbx + rax]
cmp byte [rdi + 0x19], 0
je 0x14001d223
mov qword [rbp - 0x18], rbx
test dl, dl
je 0x14001d290
cmp rbx, qword [r9]
je 0x14001d277
lea rdi, [rbp - 0x18]
mov rcx, rdi
call fcn.140004370
mov r8b, 1
mov rax, qword [rdi]
jmp 0x14001d296
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 0x10]
mov rcx, r14
mov r8b, 1
mov r9, rbx
call fcn.14001d302
jmp 0x14001d2b3
xor r8d, r8d
mov rax, rbx
mov rcx, qword [rax + 0x20]
cmp rcx, qword [r15]
jae 0x14001d2c3
mov qword [rsp + 0x20], r15
lea rdx, [rbp - 0x10]
mov rcx, r14
mov r9, rbx
call fcn.14001d302
mov rax, qword [rbp - 0x10]
mov qword [r12], rax
mov byte [r12 + 8], 1
jmp 0x14001d2cd
mov qword [r12], rax
mov byte [r12 + 8], 0
mov rax, r12
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14001fa1a
Capabilities:
Check os version
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
test dl, dl
je 0x14001fa6f
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov edi, 0x80003
cmp eax, 6
jb 0x14001fa74
xorps xmm0, xmm0
lea rbx, [rbp - 0x10]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14001fabb
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14001fa76
mov edi, 3
xor ebx, ebx
cmp qword [rsi + 0x18], 7
jbe 0x14001fa80
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001fe30
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x14001fefd
and eax, 0xfeff
cmp eax, 6
je 0x14001fefd
mov eax, dword [0x140185780]
mov ecx, dword [0x140185358]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001ff13
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x140185778]
mov esi, eax
test eax, eax
jne 0x14001fef6
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::CrashpadInitializeCriticalSectionEx_CRITICAL_SECTION___DWORD__DWORD_
lea r8, str.xplat_third_partycrashpadutilwincritical_section_with_debug_info.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x21
call fcn.1400078c2
lea rdx, [0x140123561]
mov rcx, rdi
call fcn.1400035ea
lea rcx, [rbp - 0x50]
call fcn.1400078f2
test esi, esi
setne al
jmp 0x14001ff08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140185780]
call fcn.1400b7088
cmp dword [0x140185780], 0xffffffff
jne 0x14001fe96
lea rcx, [0x140130f44]
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call fcn.140020424
mov qword [0x140185778], rax
lea rcx, [0x140185780]
call fcn.1400b7120
jmp 0x14001fe96
Function at 0x140023352
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 8], rdx
mov eax, dword [0x1401858d0]
mov ecx, dword [0x140185358]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140023563
mov rbx, qword [0x1401858c8]
test rbx, rbx
je 0x14002341f
lea rdx, [rbp + 0xbc]
mov rcx, rdi
call rbx
test eax, eax
je 0x1400233d6
cmp dword [rbp + 0xbc], 0
setne byte [rsi + 0x89]
je 0x140023426
mov byte [rsi + 0x88], 0
mov dl, 1
jmp 0x140023448
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::IsProcessWow64_HANDLE_
lea r8, str.xplat_third_partycrashpadutilwinprocess_info.cc
lea rbx, [rbp - 0x50]
mov rcx, rbx
mov r9d, 0x4b
call fcn.1400078c2
lea rdx, [0x140124502]
mov rcx, rbx
call fcn.1400035ea
lea rcx, [rbp - 0x50]
call fcn.1400078f2
mov byte [rsi + 0x89], 0
lea rbx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x88]
cmp byte [rsi + 0x89], 0
setne dl
lea rax, [rsi + 0x38]
lea r9, [rsi + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.140023674
test al, al
je 0x14002347e
cmp byte [rsi + 0x88], 0
mov rdx, qword [rsi + 0x30]
mov rcx, rdi
mov r8, rsi
je 0x1400234ba
call fcn.140023935
jmp 0x1400234bf
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::ProcessInfo::Initialize_HANDLE_
lea r8, str.xplat_third_partycrashpadutilwinprocess_info.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0x21e
call fcn.1400067ee
lea rdx, str.GetProcessBasicInformation_failed
mov rcx, rsi
call fcn.1400035ea
jmp 0x14002354c
call fcn.14002406d
test al, al
je 0x140023515
mov dl, byte [rsi + 0x88]
mov rcx, rdi
mov r8, rsi
call fcn.140022780
mov ecx, eax
mov al, 1
test cl, cl
jne 0x140023557
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::ProcessInfo::Initialize_HANDLE_
lea r8, str.xplat_third_partycrashpadutilwinprocess_info.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0x22c
call fcn.1400067ee
lea rdx, str.ReadMemoryInfo_failed
mov rcx, rsi
call fcn.1400035ea
jmp 0x14002354c
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::ProcessInfo::Initialize_HANDLE_
lea r8, str.xplat_third_partycrashpadutilwinprocess_info.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0x227
call fcn.1400067ee
lea rdx, str.ReadProcessData_failed
mov rcx, rsi
call fcn.1400035ea
lea rcx, [rbp - 0x50]
call fcn.140006ed2
xor eax, eax
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1401858d0]
call fcn.1400b7088
cmp dword [0x1401858d0], 0xffffffff
jne 0x14002339f
lea rcx, [0x140130f44]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.140020424
mov qword [0x1401858c8], rax
lea rcx, [0x1401858d0]
call fcn.1400b7120
jmp 0x14002339f
Function at 0x14002a13c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov eax, 0xffffffff
cmp r8, rax
mov eax, 0xffffffff
cmovb eax, r8d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xb4]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a1dc
mov dword [rbp - 0x50], 0xffffffff
cmp dword [rbp + 0xb4], 0xffffffff
jne 0x14002a1d4
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rcx, [rbp + 0xb4]
lea rdx, [rbp - 0x50]
call fcn.14002abb8
test rax, rax
je 0x14002a1d4
mov qword [rsp + 0x20], rax
lea rdx, str.crashpad::FileOperationResult___cdecl_crashpad::internal::NativeWriteFile_crashpad::FileHandle__const_void___size_t_
lea r8, str.xplat_third_partycrashpadutil_file_file_io_win.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0x65
call fcn.140006ddc
mov rcx, rsi
call fcn.140006ed2
mov eax, dword [rbp + 0xb4]
jmp 0x14002a1e3
mov rax, 0xffffffffffffffff
add rsp, 0x138
pop rsi
pop rbp
ret

Function at 0x14002a1ed
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov rsi, rdx
mov rdi, rcx
mov eax, 0xffffffff
cmp r8, rax
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xb4]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a2e0
lea r15, [rbp + 0xb4]
lea r12, [rbp - 0x50]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileType]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp - 0x50], 0xffffffff
mov eax, dword [rbp + 0xb4]
cmp eax, 0xffffffff
jne 0x14002a2b1
mov rcx, r15
mov rdx, r12
lea r8, str.bytes_read___static_cast_DWORD___1_
call fcn.14002abb8
test rax, rax
je 0x14002a2ab
mov qword [rsp + 0x20], rax
mov rcx, r12
lea rdx, str.crashpad::FileOperationResult___cdecl_crashpad::ReadFile_crashpad::FileHandle__void___size_t_
lea r8, str.xplat_third_partycrashpadutil_file_file_io_win.cc
mov r9d, 0x7e
call fcn.140006ddc
mov rcx, r12
call fcn.140006ed2
mov eax, dword [rbp + 0xb4]
test eax, eax
jne 0x14002a2fb
mov rcx, rdi
call r13
cmp eax, 3
jne 0x14002a2f5
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r15
call r14
test eax, eax
jne 0x14002a259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x14002a2fd
mov eax, dword [rbp + 0xb4]
mov eax, eax
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14002aa53
Capabilities:
Clear file content

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov rdi, rcx
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14002a98d
test rax, rax
jne 0x14002aadf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x14002aadf
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingTruncateFile_crashpad::FileHandle_
lea r8, str.xplat_third_partycrashpadutil_file_file_io_win.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0xfb
call fcn.1400078c2
lea rdx, [0x1401262b6]
mov rcx, rsi
call fcn.1400035ea
lea rcx, [rbp - 0x50]
call fcn.1400078f2
xor esi, esi
mov eax, esi
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], 0xfffffffffffffffe
mov ebx, edx
mov rsi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14002b736
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002b75a
bt eax, 0xa
jae 0x14002b74f
test bl, bl
je 0x14002b803
and eax, 0x10
shr eax, 4
jmp 0x14002b805
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_base::FilePath___bool_
lea r8, str.xplat_third_partycrashpadutil_file_filesystem_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x82
call fcn.1400078c2
lea rdx, str.GetFileAttributes
mov rcx, rdi
call fcn.1400035ea
mov rdi, rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x14002b7aa
mov rax, qword [rsi]
lea rdx, [rbp + 0xc0]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xd0]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xe0]
cmp qword [rbp + 0xe8], 0xf
jbe 0x14002b7e3
mov rsi, qword [rbp + 0xd0]
mov rcx, rdi
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp + 0xd0]
call fcn.140005a44
lea rcx, [rbp - 0x48]
call fcn.1400078f2
xor eax, eax
add rsp, 0x178
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b87c
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov ebx, r8d
mov rsi, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14002b8aa
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14002ba36
test bl, bl
je 0x14002b98b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002b98b
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.14002b709
test al, al
jne 0x14002ba36
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_base::FilePath___crashpad::FilePermissions__bool_
lea r8, str.xplat_third_partycrashpadutil_file_filesystem_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x5d
call fcn.1400067ee
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x14002b91d
mov rax, qword [rsi]
lea rdx, [rbp + 0xc0]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xe0]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xf0]
cmp qword [rbp + 0xf8], 0xf
jbe 0x14002b956
mov rsi, qword [rbp + 0xe0]
lea rcx, [rbp - 0x48]
mov rdx, rsi
call fcn.14000468b
lea rdx, [0x1401233f1]
mov rcx, rax
call fcn.1400035ea
lea rcx, [rbp + 0xe0]
call fcn.140005a44
lea rcx, [rbp - 0x48]
call fcn.140006ed2
jmp 0x14002ba34
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_base::FilePath___crashpad::FilePermissions__bool_
lea r8, str.xplat_third_partycrashpadutil_file_filesystem_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x62
call fcn.1400078c2
lea rdx, str.CreateDirectory
mov rcx, rdi
call fcn.1400035ea
mov rdi, rax
cmp qword [rsi + 0x18], 7
mov rax, rsi
jbe 0x14002b9db
mov rax, qword [rsi]
lea rdx, [rbp + 0xd0]
mov qword [rdx], rax
mov rax, qword [rsi + 0x10]
mov qword [rdx + 8], rax
lea rsi, [rbp + 0xe0]
mov rcx, rsi
call fcn.14001d6fb
mov r8, qword [rbp + 0xf0]
cmp qword [rbp + 0xf8], 0xf
jbe 0x14002ba14
mov rsi, qword [rbp + 0xe0]
mov rcx, rdi
mov rdx, rsi
call fcn.14000468b
lea rcx, [rbp + 0xe0]
call fcn.140005a44
lea rcx, [rbp - 0x48]
call fcn.1400078f2
xor edi, edi
mov eax, edi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop rbp
ret