joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140140cf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140140d06
mov al, 1
jmp 0x140140d66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140140d17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140140d64
mov ecx, dword [rcx + 0x18]
nop
call fcn.14011d4ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140140d64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140140d64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140140d64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140140d66
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140149430
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x140149443
cmp dword [0x140211250], ecx
jle 0x14014944a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.140149490
test edi, edi
je 0x140149443
cmp byte [rdi + rsi - 1], 0xa
je 0x140149443
lea rcx, [0x1401d31ff]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140149490

Function at 0x140149490
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1401494de
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14014951c
cmp rdi, rsi
jae 0x14014951c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401494d7
jmp 0x1401494d4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010aeb0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140154fc0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdi, [rsp + 0x28]
mov qword [rdi], rdx
mov rdx, rdi
call fcn.1400c2a90
lea rdx, [rsi + 0xa0]
mov r8d, dword [rdi]
mov rcx, qword [rsi + 0x90]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14015501b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140155048
mov byte [rsi + 0xc0], 1
mov eax, 1
lock xadd dword [rsi + 8], eax
cmp eax, 0x7fffffff
je 0x140155054
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010aeb0
nop
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call fcn.140033430
jmp 0x140155033
int3
Function at 0x14017aaa0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14017ab11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14017ab1b
mov dil, 1
test bl, bl
je 0x14017aafa
cmp byte [rsi + 8], 0
je 0x14017ab16
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010aeb0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14017aacd
mov rcx, qword [rsi]
jmp 0x14017aaef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14017ab43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14017ab48
xor edi, edi
jmp 0x14017aafa
mov rcx, qword [rsi]
jmp 0x14017ab30
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14017ab6f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14017aafa
mov rcx, qword [rsi]
jmp 0x14017ab5f
Function at 0x14017c960
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14021b960], 0
je 0x14017c9a6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14010aeb0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14021b938]
test rdi, rdi
je 0x14017ca47
test byte [0x14020d050], 1
je 0x14017c989
cmp byte [rdi + 0x17], 0
jns 0x14017c9c8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14021b960], rax
inc rax
cmp rax, 1
ja 0x14017c989
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14010cff0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x14017cb10
xor esi, esi
jmp 0x14017c989
mov ecx, 0x18
call fcn.140109878
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14010cff0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401cd260]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140146ce0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14017caad
and eax, 0x7f
mov rcx, rdi
jmp 0x14017cab4
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14017caef
lea r8, [rax + rax]
test r8, r8
je 0x14017caef
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x14017cabd
cmp rdx, 0xfffffffffffffffe
je 0x14017caef
sar rdx, 1
cmp rax, rdx
jbe 0x14017cbd7
inc rdx
mov rcx, rdi
call fcn.14017a890
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140058160
mov qword [0x14021b938], rdi
jmp 0x14017c9b6
mov rdi, qword [0x14021b938]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14012f334
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140058060
mov rcx, qword [0x14021b938]
call fcn.140175810
cmp word [rax], 0x5c
je 0x14017cb5d
mov rcx, qword [0x14021b938]
lea rdx, [0x1401d9ca8]
mov r8d, 1
call fcn.140058160
mov rcx, qword [0x14021b938]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140058160
mov rcx, qword [0x14021b938]
cmp byte [rcx + 0x17], 0
jns 0x14017cb86
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14021b960], rax
inc rax
cmp rax, 1
ja 0x14017c989
mov qword [0x14021b960], 0
jmp 0x14017ca40
mov rcx, rdi
call fcn.140147570
int3
Function at 0x140191440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x1401914d4
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.14019a870
test al, al
jne 0x14019149c
add rdi, 0x70
cmp rdi, r12
jne 0x140191481
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x1401914d4
cmp byte [rdi + 0x27], 0
js 0x1401914ae
lea rcx, [rdi + 0x10]
jmp 0x1401914b2
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x1401914d4
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010aeb0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x1401916db
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.14019a870
test al, al
jne 0x1401916c0
add r14, 0x70
cmp r14, r12
jne 0x1401916a5
mov r14, r12
cmp r14, qword [rbx + 0x58]
je 0x1401916db
mov eax, dword [r14 + 0x68]
cmp eax, ebp
je 0x1401916f9
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010aeb0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp byte [r14 + 0x27], 0
js 0x140191706
lea rcx, [r14 + 0x10]
jmp 0x14019170a
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401916db
shr eax, 3
and eax, 2
mov esi, eax
jne 0x1401916db
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x1401916db
Function at 0x1401936e0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x14021bf28]
test rax, rax
jne 0x140193724
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x14021bf28]
test rax, rax
je 0x140193711
cmp eax, 2
jne 0x14019377c
mov ecx, 2
call fcn.1400ea5c0
test al, al
je 0x1401937d5
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.140147010
mov rcx, rsi
call fcn.140066c80
jmp 0x1401937d5
mov eax, 1
lock xadd qword [0x14021bf60], rax
test rax, rax
jle 0x14019379c
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14021bee0], eax
mov qword [0x14021bed8], rsi
mov rcx, qword [0x14020d0a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x140193805
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14010aeb0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xba
mov r9d, 2
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x14019376d
Function at 0x140199c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140199caa
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140199cc9
mov edi, eax
bt eax, 0xa
jae 0x140199cc1
test bl, bl
je 0x140199cd7
and edi, 0x10
shr edi, 4
jmp 0x140199cd9
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x140199cf6
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14010aeb0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.14017cef0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140147010
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199d46
and r8d, 0x7f
jmp 0x140199d4d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b6570
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400e1890
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199d7d
and r8d, 0x7f
jmp 0x140199d87
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140147010
cmp byte [rsp + 0x57], 0
jns 0x140199da3
mov rcx, qword [rsp + 0x40]
call fcn.1401098c8
lea rcx, [rsp + 0x58]
call fcn.14017cf70
jmp 0x140199cd7
Function at 0x140199dc0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x140199deb
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140199e1b
test bl, bl
je 0x140199e0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140199e38
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x140199e5c
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14010aeb0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140199c80
test al, al
jne 0x140199e1b
mov ecx, 2
call fcn.1400ea5c0
test al, al
je 0x140199e19
jmp 0x140199f27
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.14017cef0
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140147010
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199eac
and r8d, 0x7f
jmp 0x140199eb3
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b6570
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1400e1890
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199ee6
and r8d, 0x7f
jmp 0x140199ef6
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.140147010
cmp byte [rsp + 0x1a7], 0
jns 0x140199f18
mov rcx, qword [rsp + 0x190]
call fcn.1401098c8
lea rcx, [rsp + 0x40]
call fcn.14017cf70
jmp 0x140199e19
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.140066750
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199f54
and r8d, 0x7f
jmp 0x140199f5b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x180]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b6570
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1400e1890
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140199f96
and r8d, 0x7f
jmp 0x140199fa6
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.140147010
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.140147010
cmp byte [rsp + 0x1a7], 0
jns 0x140199fdd
mov rcx, qword [rsp + 0x190]
call fcn.1401098c8
lea rcx, [rsp + 0x40]
call fcn.140066c80
jmp 0x140199e19
Function at 0x140199ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14019a018
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14019a049
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14010aeb0
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x14019a05b
xor esi, esi
jmp 0x14019a02c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x75
mov r9d, 2
call fcn.14017cef0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140147010
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14019a0ab
and r8d, 0x7f
jmp 0x14019a0b2
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b6570
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400e1890
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14019a0e2
and r8d, 0x7f
jmp 0x14019a0ec
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140147010
cmp byte [rsp + 0x57], 0
jns 0x14019a108
mov rcx, qword [rsp + 0x40]
call fcn.1401098c8
lea rcx, [rsp + 0x58]
call fcn.14017cf70
jmp 0x14019a057
Function at 0x14019a120
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14019a148
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14019a15f
and eax, 0x410
cmp eax, 0x410
je 0x14019a1a5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14019a16b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x14019a188
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x14019a1c7
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14010aeb0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14010aeb0
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.14019a290
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x95
mov r9d, 2
call fcn.14017cef0
lea rcx, [rsp + 0x68]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140147010
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14019a217
and r8d, 0x7f
jmp 0x14019a21e
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400b6570
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400e1890
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14019a24e
and r8d, 0x7f
jmp 0x14019a258
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140147010
cmp byte [rsp + 0x57], 0
jns 0x14019a274
mov rcx, qword [rsp + 0x40]
call fcn.1401098c8
lea rcx, [rsp + 0x58]
call fcn.14017cf70
jmp 0x14019a186
Function at 0x14019a290
Capabilities:
Delete directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x198
mov rdi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14019a2ba
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x14019a2d4
mov ecx, 2
call fcn.1400ea5c0
test al, al
jne 0x14019a2f8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14010aeb0
mov eax, ebx
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x30
mov r9d, 2
call fcn.14017cef0
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140147010
mov rbx, rax
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x14019a348
and r8d, 0x7f
jmp 0x14019a34f
mov r8, qword [rdi + 8]
mov rdi, qword [rdi]
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rdi
call fcn.1400b6570
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, r14
call fcn.1400e1890
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x14019a37f
and r8d, 0x7f
jmp 0x14019a389
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, rdi
call fcn.140147010
cmp byte [rsp + 0x4f], 0
jns 0x14019a3a5
mov rcx, qword [rsp + 0x38]
call fcn.1401098c8
lea rcx, [rsp + 0x50]
call fcn.14017cf70
jmp 0x14019a2d4
Function at 0x1401a83d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x1401a8430
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010aeb0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401a84f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1401cd260]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x1401a8544
mov ecx, 1
call fcn.1400ea5c0
test al, al
jne 0x1401a8573
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14010aeb0
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x117
mov r9d, 1
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.140147010
mov rcx, rsi
call fcn.140066c80
jmp 0x1401a8544
Function at 0x1401b4640
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401fd028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401cd260]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.140146860
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1401b9350
test al, al
je 0x1401b4795
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1401b470d
mov rcx, r14
call fcn.140146860
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1401b9350
test al, al
je 0x1401b4756
cmp dword [rbx], 0x4550
jne 0x1401b47c6
mov sil, 1
test rdi, rdi
je 0x1401b47a5
mov qword [rdi], r14
jmp 0x1401b47a5
mov ecx, 1
call fcn.1400ea5c0
test al, al
je 0x1401b47a3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1401b483a
mov ecx, 1
call fcn.1400ea5c0
test al, al
je 0x1401b47a3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1401b4834
mov ecx, 1
call fcn.1400ea5c0
test al, al
jne 0x1401b4808
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14010aeb0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400ea5c0
test al, al
je 0x1401b47a3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1401b483a
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140066750
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.140147010
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1401b484f
and r8d, 0x7f
jmp 0x1401b4856
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140147010
mov rcx, rdi
call fcn.140066c80
jmp 0x1401b47a3