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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r9
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
cmp byte [rdx + 0xb0], 0
je 0x14000cf1a
mov ecx, r14d
call fcn.140004600
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.14000ad40
mov r12, qword [rbp - 0x18]
test r12, r12
je 0x14000cf96
mov qword [rbp - 0x10], rbx
movups xmm0, xmmword [rdi + 8]
movaps xmmword [rbp - 0x40], xmm0
mov r15, qword [r12 + 0x40]
mov rbx, qword [r12 + 0x48]
mov r13d, 1
cmp r15, rbx
je 0x14000cf9c
mov byte [rbp - 1], r14b
lea r14, [rbp - 0x40]
nop dword [rax + rax]
mov rcx, r15
mov rdx, r14
call fcn.140045c60
test al, al
jne 0x14000cf7b
add r15, 0x70
cmp r15, rbx
jne 0x14000cf60
mov r15, rbx
cmp r15, qword [r12 + 0x48]
je 0x14000cf9c
cmp dword [r15 + 0x68], 1
jne 0x14000cf9c
cmp byte [r15 + 0x27], 0
jns 0x14000cfb9
mov rcx, qword [r15 + 0x10]
jmp 0x14000cfbd
mov r13d, 3
lea rcx, [rbp - 0x18]
call fcn.14000bbd0
mov eax, r13d
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [r15 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000cf9c
shr eax, 3
and eax, 2
mov r13d, eax
jne 0x14000cf9c
mov byte [r12 + 0x38], 1
xor ecx, ecx
call fcn.1400a3320
mov r13, rax
movzx eax, byte [rbp - 1]
mov byte [r15 + 0x48], al
lea rcx, [r15 + 0x28]
cmp rcx, qword [rbp - 0x10]
je 0x14000d04c
cmp byte [r15 + 0x3f], 0
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 0x17]
js 0x14000d01c
test al, al
js 0x14000d02d
mov rdx, qword [rbp - 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
jmp 0x14000d04c
test al, al
jns 0x14000d03f
mov rdx, qword [rbp - 0x10]
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
jmp 0x14000d047
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
call fcn.140008c80
jmp 0x14000d04c
movzx r8d, al
mov rdx, qword [rbp - 0x10]
call fcn.140008b50
mov qword [r15 + 0x50], r13
inc dword [r15 + 0x58]
xor eax, eax
cmp byte [rbp - 1], 0
je 0x14000d065
mov eax, 2
xor ecx, ecx
jmp 0x14000d069
movzx ecx, byte [rdi + 0x64]
mov dword [r15 + 0x68], eax
mov byte [r15 + 0x5c], cl
mov qword [rbp - 0x20], rsi
mov rax, qword [rsi + 0x40]
cmp rax, 0xffffffffffffffff
je 0x14000d09f
lea rcx, [rsi + 0x40]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x28], r14
lea r8, [0x14000e4b0]
lea rdx, [rbp - 0x28]
call fcn.1400433b0
add rsi, 0x20
mov rcx, rsi
mov rdx, r13
call fcn.140040e40
xor al, 1
movzx eax, al
lea r13d, [rax + rax*2]
jmp 0x14000cf9c
Function at 0x14000d100
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
lea rdx, [rbp + 0xf8]
call fcn.14000ad40
mov r12, qword [rbp + 0xf8]
test r12, r12
je 0x14000d25c
lea rcx, [rbp + 0xe0]
call fcn.140006700
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x50], xmm0
mov rbx, qword [r12 + 0x40]
mov r15, qword [r12 + 0x48]
cmp rbx, r15
je 0x14000d252
lea r14, [rbp - 0x50]
nop word cs:[rax + rax]
mov rcx, rbx
mov rdx, r14
call fcn.140045c60
test al, al
jne 0x14000d19b
add rbx, 0x70
cmp rbx, r15
jne 0x14000d180
mov rbx, r15
cmp rbx, qword [r12 + 0x48]
je 0x14000d252
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0xe0]
call fcn.140006840
mov r15, qword [r12 + 0x48]
mov r13, rbx
add r13, 0x70
cmp r13, r15
jne 0x14000d229
cmp r15, rbx
jne 0x14000d270
jmp 0x14000d2aa
mov rax, qword [r13 + 0x38]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [r13 + 0x28]
movups xmmword [r14], xmm0
mov byte [r13 + 0x3f], 0
mov byte [r13 + 0x28], 0
mov rax, qword [r13 + 0x60]
mov qword [rbx + 0x60], rax
movups xmm0, xmmword [r13 + 0x40]
movups xmm1, xmmword [r13 + 0x50]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x40], xmm0
mov eax, dword [r13 + 0x68]
mov dword [rbx + 0x68], eax
add r13, 0x70
add rbx, 0x70
cmp r13, r15
je 0x14000d266
movups xmm0, xmmword [r13]
movups xmmword [rbx], xmm0
lea rcx, [rbx + 0x10]
lea rdx, [r13 + 0x10]
call fcn.140006840
lea r14, [rbx + 0x28]
cmp byte [rbx + 0x3f], 0
jns 0x14000d1e0
mov rcx, qword [r14]
call fcn.14008de68
jmp 0x14000d1e0
mov ebx, 1
jmp 0x14000d346
mov ebx, 3
jmp 0x14000d352
mov r15, qword [r12 + 0x48]
cmp r15, rbx
je 0x14000d2aa
add r15, 0xffffffffffffffa0
jmp 0x14000d298
mov rcx, r15
call fcn.140006830
lea rax, [r15 - 0x70]
add r15, 0xfffffffffffffff0
cmp r15, rbx
mov r15, rax
je 0x14000d2aa
cmp byte [r15 + 0x2f], 0
jns 0x14000d280
mov rcx, qword [r15 + 0x18]
call fcn.14008de68
jmp 0x14000d280
mov qword [r12 + 0x48], rbx
mov byte [r12 + 0x38], 1
cmp byte [rbp + 0xf7], 0
lea rcx, [rbp + 0xe0]
jns 0x14000d2cc
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000d2e5
xor ebx, ebx
mov rcx, rdi
mov rdx, rsi
call fcn.1400428f0
jmp 0x14000d346
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.virtual_OperationStatus___cdecl_crashpad::CrashReportDatabaseWin::DeleteReport_const_UUID__
lea r8, str.third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rbp - 0x50]
mov r9d, 0x36f
call fcn.140005e40
lea rdx, str.DeleteFile
lea rcx, [rbp - 0x50]
mov r8d, 0xb
call fcn.140003fb0
lea rdx, [rbp + 0xe0]
mov rcx, rax
call fcn.140007410
lea rcx, [rbp - 0x50]
call fcn.140005e70
mov ebx, 2
lea rcx, [rbp + 0xe0]
call fcn.140006830
lea rcx, [rbp + 0xf8]
call fcn.14000bbd0
mov eax, ebx
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000d440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov ecx, r8d
call fcn.140004600
lea rdx, [rbp - 8]
mov rcx, rdi
call fcn.14000ad40
mov r14, qword [rbp - 8]
test r14, r14
je 0x14000d4d7
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x20], xmm0
mov rdi, qword [r14 + 0x40]
mov r15, qword [r14 + 0x48]
mov esi, 1
cmp rdi, r15
je 0x14000d4dc
lea rbx, [rbp - 0x20]
nop dword [rax]
mov rcx, rdi
mov rdx, rbx
call fcn.140045c60
test al, al
jne 0x14000d4bb
add rdi, 0x70
cmp rdi, r15
jne 0x14000d4a0
mov rdi, r15
cmp rdi, qword [r14 + 0x48]
je 0x14000d4dc
mov eax, dword [rdi + 0x68]
test eax, eax
je 0x14000d4f4
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
jmp 0x14000d4dc
mov esi, 3
lea rcx, [rbp - 8]
call fcn.14000bbd0
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
cmp byte [rdi + 0x27], 0
jns 0x14000d500
mov rcx, qword [rdi + 0x10]
jmp 0x14000d504
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d4dc
shr eax, 3
and eax, 2
mov esi, eax
jne 0x14000d4dc
mov byte [r14 + 0x38], 1
mov dword [rdi + 0x68], 2
mov byte [rdi + 0x5c], 0
xor esi, esi
jmp 0x14000d4dc
Function at 0x14000d680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
lea rdx, [rbp - 8]
call fcn.14000ad40
mov r14, qword [rbp - 8]
test r14, r14
je 0x14000d714
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x20], xmm0
mov rsi, qword [r14 + 0x40]
mov r15, qword [r14 + 0x48]
cmp rsi, r15
je 0x14000d721
lea rdi, [rbp - 0x20]
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, rdi
call fcn.140045c60
test al, al
jne 0x14000d6eb
add rsi, 0x70
cmp rsi, r15
jne 0x14000d6d0
mov rsi, r15
mov r15, qword [r14 + 0x48]
cmp rsi, r15
je 0x14000d71e
mov eax, dword [rsi + 0x68]
cmp eax, 1
je 0x14000d77b
cmp eax, 2
jne 0x14000d721
cmp byte [rsi + 0x27], 0
jns 0x14000d792
mov rcx, qword [rsi + 0x10]
jmp 0x14000d796
mov edi, 3
jmp 0x14000d7d8
mov r15, rsi
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x20], xmm0
mov rsi, qword [r14 + 0x40]
mov edi, 1
cmp rsi, r15
je 0x14000d775
lea rbx, [rbp - 0x20]
nop word [rax + rax]
mov rcx, rsi
mov rdx, rbx
call fcn.140045c60
test al, al
jne 0x14000d75b
add rsi, 0x70
cmp rsi, r15
jne 0x14000d740
mov rsi, r15
cmp rsi, qword [r14 + 0x48]
je 0x14000d775
mov eax, dword [rsi + 0x68]
test eax, eax
je 0x14000d786
xor ecx, ecx
cmp eax, 1
sete cl
lea edi, [rcx + rcx*2]
inc edi
test edi, edi
jne 0x14000d7d8
jmp 0x14000d7b6
mov edi, 4
test edi, edi
jne 0x14000d7d8
jmp 0x14000d7b6
cmp byte [rsi + 0x27], 0
jns 0x14000d7f0
mov rcx, qword [rsi + 0x10]
jmp 0x14000d7f4
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d80f
mov edi, eax
shr edi, 3
and edi, 2
jne 0x14000d7b2
mov byte [r14 + 0x38], 1
xor edi, edi
test edi, edi
jne 0x14000d7d8
mov edi, 5
cmp byte [rsi + 0x48], 0
jne 0x14000d7d8
mov byte [rsi + 0x5c], 1
mov dword [rsi + 0x68], 0
xor edi, edi
mov ecx, 1
call fcn.140004600
lea rcx, [rbp - 8]
call fcn.14000bbd0
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d775
shr eax, 3
and eax, 2
mov edi, eax
jne 0x14000d7b2
jmp 0x14000d7ab
mov r15, qword [r14 + 0x48]
jmp 0x14000d721
Function at 0x14001b3f0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [0x140102680]
test rax, rax
jne 0x14001b443
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
nop word cs:[rax + rax]
mov ecx, 1
call rdi
mov rax, qword [0x140102680]
test rax, rax
je 0x14001b430
cmp eax, 2
jne 0x14001b48a
mov dword [rsp + 0x20], 2
lea rdx, str.LONG___cdecl_crashpad::_anonymous_namespace_::UnhandledExceptionHandler_EXCEPTION_POINTERS__
lea r8, str.third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rbp - 0x58]
mov rcx, rsi
mov r9d, 0x8d
call fcn.140005340
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
mov rcx, rsi
call fcn.140003fb0
jmp 0x14001b512
mov eax, 1
lock xadd qword [0x1401026b8], rax
test rax, rax
jle 0x14001b4aa
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x140102628], eax
mov qword [0x140102620], rsi
mov rcx, qword [0x1400fe680]
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.third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rbp - 0x58]
mov rcx, rsi
mov r9d, 0xb9
call fcn.140005340
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
mov rcx, rsi
call fcn.140003fb0
lea rcx, [rbp - 0x58]
call fcn.140005c30
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, 0x150
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400281c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
movzx ebx, byte [rbp + 0x58]
test byte [r9 + 8], 1
jne 0x140028209
movzx eax, byte [rbp + 0x50]
movzx edx, bl
mov r10, qword [rcx]
mov dword [rsp + 0x28], edx
mov byte [rsp + 0x20], al
mov rdx, rsi
mov r8, rdi
call qword [r10 + 0x30]
jmp 0x14002835a
lea rdx, [rbp - 0x10]
mov rcx, r9
call fcn.14001e570
mov r14, qword [rbp - 0x10]
lea rax, [0x1401027b0]
mov qword [rbp - 0x30], rax
mov rax, qword [0x1401027b0]
cmp rax, 0xffffffffffffffff
je 0x140028258
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
lea rcx, [0x1401027b0]
lea r8, [0x14003fba0]
lea rdx, [rbp - 0x38]
call fcn.1400433b0
movsxd rax, dword [0x1401027b8]
lea rdx, [rax - 1]
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140028368
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140028368
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
lock xadd dword [rax + 8], edx
test edx, edx
jne 0x1400282aa
mov rdx, qword [rax]
mov r14, rcx
mov rcx, rax
call qword [rdx + 8]
mov rcx, r14
mov rax, qword [rcx]
xor bl, 1
movzx r8d, bl
lea rbx, [rbp - 0x28]
mov rdx, rbx
call qword [rax + r8*8 + 0x28]
movzx eax, byte [rbp - 0x11]
mov rdx, rax
test al, al
jns 0x1400282cf
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
test rdx, rdx
je 0x14002834e
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x1400282fb
add rdx, r8
inc r14
cmp r14, rdx
je 0x14002834e
test rdi, rdi
je 0x140028331
movzx eax, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x140028320
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140028333
movzx edx, al
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
jne 0x140028333
xor edi, edi
movzx eax, byte [rbp - 0x11]
mov rcx, qword [rbp - 0x28]
mov rdx, rbx
mov r8, rax
test al, al
jns 0x1400282f0
mov r8, qword [rbp - 0x20]
mov rdx, rcx
jmp 0x1400282f0
mov qword [rsi], rdi
test al, al
jns 0x14002835a
call fcn.14008de68
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14001e3d0
int3
Function at 0x140028860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
movzx ebx, byte [rbp + 0x58]
test byte [r9 + 8], 1
jne 0x1400288aa
movzx eax, word [rbp + 0x50]
movzx edx, bl
mov r10, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, rsi
mov r8, rdi
call qword [r10 + 0x30]
jmp 0x1400289fe
lea rdx, [rbp - 0x10]
mov rcx, r9
call fcn.14001e570
mov r14, qword [rbp - 0x10]
lea rax, [0x1401027c0]
mov qword [rbp - 0x30], rax
mov rax, qword [0x1401027c0]
cmp rax, 0xffffffffffffffff
je 0x1400288f9
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
lea rcx, [0x1401027c0]
lea r8, [0x14003fba0]
lea rdx, [rbp - 0x38]
call fcn.1400433b0
movsxd rax, dword [0x1401027c8]
lea rdx, [rax - 1]
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140028a0c
mov rcx, qword [rcx + rax*8 - 8]
test rcx, rcx
je 0x140028a0c
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
lock xadd dword [rax + 8], edx
test edx, edx
jne 0x14002894b
mov rdx, qword [rax]
mov r14, rcx
mov rcx, rax
call qword [rdx + 8]
mov rcx, r14
mov rax, qword [rcx]
xor bl, 1
movzx r8d, bl
lea rbx, [rbp - 0x28]
mov rdx, rbx
call qword [rax + r8*8 + 0x28]
movzx eax, byte [rbp - 0x11]
test al, al
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x1400289f2
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x1400289b0
xor edi, edi
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x1400289f2
test rdi, rdi
je 0x140028990
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400289d0
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
jmp 0x1400289dc
mov r8, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [r8 + 0x60]
cmp ax, 0xffff
jne 0x1400289e4
xor edi, edi
movzx eax, byte [rbp - 0x11]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
jmp 0x140028992
mov qword [rsi], rdi
test al, al
jns 0x1400289fe
call fcn.14008de68
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14001e3d0
int3
Function at 0x140043af0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x150
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140043b7a
mov dword [rsp + 0x30], 0xffffffff
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140043b74
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140044690
test rax, rax
je 0x140043b74
mov qword [rsp + 0x20], rax
lea rdx, str.FileOperationResult___cdecl_crashpad::internal::NativeWriteFile_FileHandle__const_void___size_t_
lea r8, str.third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r9d, 0x66
call fcn.140005a60
mov rcx, rsi
call fcn.140005c30
mov eax, dword [rsp + 0x2c]
jmp 0x140043b81
mov rax, 0xffffffffffffffff
add rsp, 0x150
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140043af0

Function at 0x140043b90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rsi, rdx
mov rdi, rcx
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140043c7b
lea r14, str.bytes_read___static_cast_DWORD___1_
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileType]
mov rbp, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
mov dword [rsp + 0x38], 0xffffffff
mov eax, dword [rsp + 0x34]
cmp eax, 0xffffffff
jne 0x140043c51
mov rcx, r15
mov rdx, r12
mov r8, r14
call fcn.140044690
test rax, rax
je 0x140043c4d
mov qword [rsp + 0x20], rax
mov rcx, r12
lea rdx, str.FileOperationResult___cdecl_crashpad::ReadFile_FileHandle__void___size_t_
lea r8, str.third_party_crashpad_crashpad_util_file_file_io_win.cc
mov r9d, 0x7f
call fcn.140005a60
mov rcx, r12
call fcn.140005c30
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x140043c94
mov rcx, rdi
call r13
cmp eax, 3
jne 0x140043c90
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r15
call rbp
test eax, eax
jne 0x140043c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x140043c96
mov eax, dword [rsp + 0x34]
mov eax, eax
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140044500
Capabilities:
Clear file content

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov rdi, rcx
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140044420
test rax, rax
jne 0x140044592
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x140044592
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingTruncateFile_FileHandle_
lea r8, str.third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0xfc
call fcn.140005e40
lea rdx, [0x1400c3a3b]
mov r8d, 0xc
mov rcx, rsi
call fcn.140003fb0
lea rcx, [rbp - 0x50]
call fcn.140005e70
xor esi, esi
mov eax, esi
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret

Function at 0x140044d70
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x150
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140043b7a
mov dword [rsp + 0x30], 0xffffffff
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140043b74
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140044690
test rax, rax
je 0x140043b74
mov qword [rsp + 0x20], rax
lea rdx, str.FileOperationResult___cdecl_crashpad::internal::NativeWriteFile_FileHandle__const_void___size_t_
lea r8, str.third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r9d, 0x66
call fcn.140005a60
mov rcx, rsi
call fcn.140005c30
mov eax, dword [rsp + 0x2c]
jmp 0x140043b81
mov rax, 0xffffffffffffffff
add rsp, 0x150
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140043af0

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov ebx, edx
mov rsi, rcx
cmp byte [rcx + 0x17], 0
jns 0x14004523c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140045256
test eax, 0x400
je 0x1400452b4
test bl, bl
jne 0x1400452b4
xor eax, eax
jmp 0x1400452ba
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_base::FilePath___bool_
lea r8, str.third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x80
call fcn.140005e40
lea rdx, str.GetFileAttributes
mov r8d, 0x12
mov rcx, rdi
call fcn.140003fb0
mov rcx, rax
mov rdx, rsi
call fcn.140007410
lea rcx, [rbp - 0x48]
call fcn.140005e70
xor eax, eax
jmp 0x1400452ba
and eax, 0x10
shr eax, 4
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140045300
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov ebx, r8d
mov rsi, rcx
cmp byte [rcx + 0x17], 0
jns 0x14004532d
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140045415
test bl, bl
je 0x1400453b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400453b9
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140045210
test al, al
jne 0x140045415
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_base::FilePath___FilePermissions__bool_
lea r8, str.third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x5c
call fcn.140005340
mov rcx, rdi
mov rdx, rsi
call fcn.140007410
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.140003fb0
lea rcx, [rbp - 0x48]
call fcn.140005c30
jmp 0x140045413
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_base::FilePath___FilePermissions__bool_
lea r8, str.third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r9d, 0x61
call fcn.140005e40
lea rdx, str.CreateDirectory
mov r8d, 0x10
mov rcx, rdi
call fcn.140003fb0
mov rcx, rax
mov rdx, rsi
call fcn.140007410
lea rcx, [rbp - 0x48]
call fcn.140005e70
xor edi, edi
mov eax, edi
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x17], 0
jns 0x1400454b9
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400454ce
test eax, 0x410
sete al
jmp 0x14004552a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::IsRegularFile_const_base::FilePath__
lea r8, str.third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rdi, [rbp - 0x50]
mov rcx, rdi
mov r9d, 0x73
call fcn.140005e40
lea rdx, str.GetFileAttributes
mov r8d, 0x12
mov rcx, rdi
call fcn.140003fb0
mov rcx, rax
mov rdx, rsi
call fcn.140007410
lea rcx, [rbp - 0x50]
call fcn.140005e70
xor eax, eax
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret