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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, qword [r9]
mov rcx, qword [r9 + 8]
mov rbp, rcx
sub rbp, r13
sub rcx, r13
jne 0x140041f24
xor edi, edi
xor r12d, r12d
mov rcx, qword [rbx + 0x80]
mov rax, qword [rbx + 0x88]
mov rdx, r12
sub rdx, rdi
sar rdx, 3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, r15
mov r8, r14
mov r9, rdi
call qword [0x14037e008]
test eax, eax
jne 0x140041eea
test rdi, rdi
jne 0x140041edb
mov rdx, qword [rsi]
test rdx, rdx
jne 0x140041ebf
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140156fe0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1401f9600
mov rcx, qword [rsi]
call fcn.140153bcc
jmp 0x140041e9a
add r12, 0xfffffffffffffff8
je 0x1400420a1
cmp r12, rdi
jne 0x140041ed1
mov rcx, rdi
call fcn.140153bcc
jmp 0x140041e92
cmp eax, 0xc
je 0x140041e8d
mov rcx, qword [rbx + 0x80]
mov rax, qword [rbx + 0x88]
xor edx, edx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], 1
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [0x14037e008]
jmp 0x140041e8d
js 0x1400420a7
sar rbp, 4
shr rcx, 1
call fcn.140153bd4
mov rdi, rax
lea r12, [rax + rbp*8]
lea rax, [rbp*8]
xor ecx, ecx
mov rdx, rdi
add rdx, rcx
je 0x14004209e
mov qword [rdx], 0
add rcx, 8
cmp rax, rcx
jne 0x140041f47
mov eax, 8
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov ecx, 0x20
call fcn.140153bd4
mov qword [rsp + 0x60], rax
xor edx, edx
mov dword [rsp + 0x70], edx
mov qword [rsp + 0x78], rdx
mov rcx, qword [rsp + 0x58]
mov eax, dword [r13 + rcx - 8]
mov dword [rsp + 0x70], eax
mov dword [r13 + rcx - 8], edx
mov rax, qword [r13 + rcx]
mov qword [r13 + rcx], rdx
mov qword [rsp + 0x50], rax
lea r13, [rax + 1]
cmp r13, 2
jb 0x140041fbf
call fcn.1400bcc80
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x78], rax
jne 0x14004201d
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
call fcn.1401fa6a0
cmp rbp, qword [rsp + 0x40]
je 0x1400420a4
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov qword [rdi + rcx*8], rax
inc rcx
mov r13, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, r13
sar rax, 4
add qword [rsp + 0x58], 0x10
mov qword [rsp + 0x40], rcx
cmp rcx, rax
jb 0x140041f74
jmp 0x140041e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x78]
inc rax
cmp rax, 2
jae 0x140042059
cmp r13, 2
jb 0x14004204a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
call fcn.1400bcc80
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140041fcb
call fcn.1400bcc80
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov rcx, qword [0x140362b78]
test rcx, rcx
je 0x140042090
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x68]
call qword [0x14037e008]
mov qword [rsp + 0x78], 0
jmp 0x140042035
call fcn.140053470
mov rcx, qword [0x140362b78]
jmp 0x140042074
int3
int3
int3
int3
Function at 0x140045d40
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov byte [rcx], al
mov ecx, dword [0x1403576e0]
mov r10, qword gs:[0x58]
mov rcx, qword [r10 + rcx*8]
lea rcx, [rcx + 0x218]
mov qword [rsi + 8], rcx
mov r10, qword [rcx]
mov qword [rcx], rsi
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], al
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x140355680], 9
jne 0x140045dcd
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140156fe0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [fcn.1400e35f0]
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [0x14037e008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x140045db6
Function at 0x140051d80
Capabilities:
Get token membership

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x2c]
mov dword [r9], 0x44
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8 + 0x30], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
movaps xmmword [r8], xmm0
mov dword [r8 + 0x40], 0
xor esi, esi
mov ecx, 0x16
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140051e03
lea rsi, [rsp + 0x28]
mov dword [rsi], 0
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
setne al
cmp dword [rsi], 0
setne sil
and sil, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0x80
pop rsi
ret
Function at 0x140052330
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14012e8a0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140052474
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14005249a
lea rdx, [0x14031181a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140052493
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14037e008]
mov rbx, rax
movsxd r9, dword [rsp + 0x4c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x30]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.14013e860
mov rcx, rsi
mov rdx, r14
call fcn.1400524e0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005242b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140052474
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
cmp rdi, rsi
je 0x14005246a
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x1400524ad
cmp byte [rdi + 0x17], 0
jns 0x140052459
mov rcx, qword [rdi]
call fcn.140153bcc
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x140052446
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.140153bcc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140156fe0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x1400523de
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400523db
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x41
call fcn.1401bf470
int3
Function at 0x1400536c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
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, 0x177
call fcn.1400c6940
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140066fa0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140053918
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jae 0x1400537be
bt ebx, 0x15
jb 0x140053978
or r8d, 0x20000000
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r12d, ebx
and r12d, 0x400
mov ecx, r12d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140053840
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14005389a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005393b
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005388f
mov qword [rsi], r14
call fcn.1400bcc80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400538c4
shr r12d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r12b
test bl, 4
jne 0x140053901
test bl, 0xa
jne 0x140053912
bt ebx, 0x15
jae 0x1400538d4
jmp 0x140053931
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8730
mov dword [rsi + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.140067230
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140156fe0
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400538bc
mov byte [rsi + 0x28], 1
jmp 0x1400538bc
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1401bfce0
jmp 0x1400538d4
mov rcx, rdi
call fcn.140129530
jmp 0x1400538d4
call fcn.1400bcc80
mov r15, qword [rsi]
mov rcx, qword [0x140362b78]
test rcx, rcx
je 0x14005396a
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [0x14037e008]
mov qword [rsi], 0
jmp 0x14005387b
call fcn.140053470
mov rcx, qword [0x140362b78]
jmp 0x14005394f
int3
Function at 0x140054790
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x140362880]
test rax, rax
jne 0x140054807
lea rcx, [0x140310bd0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14005486c
movsxd rax, dword [rcx + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x14005486c
movzx edx, word [rcx + rax + 0x14]
cmp edx, 0xf0
jne 0x14005486c
movzx eax, word [rcx + rax + 0x18]
cmp eax, 0x20b
jne 0x14005486c
xor eax, eax
lock cmpxchg qword [0x140362880], rcx
mov rax, qword [0x140362880]
test rax, rax
je 0x14005486f
mov rcx, qword [0x140362880]
lea rdx, str.NtSetInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140054872
mov rdi, rax
lea rbx, [rsp + 0x24]
mov dword [rbx], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x6a
mov r8, rbx
mov r9d, 4
mov rax, rdi
call qword [0x14037e008]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140156fe0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
int3
int3
int3
Function at 0x14005b640
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14005b700
mov eax, dword [rsi]
mov dword [0x140356398], eax
test al, 1
jne 0x14005b661
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1403629c8]
test rcx, rcx
jne 0x14005b67b
mov rcx, qword [0x1403629b8]
test rcx, rcx
je 0x14005b69f
jmp 0x14005b6c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1403629c8], 0
mov rcx, qword [0x1403629b8]
test rcx, rcx
jne 0x14005b6c1
and byte [0x140356398], 0xfe
mov ecx, 0x18
call fcn.140153bd4
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1403629b8], rax
mov rdx, qword [rsi + 8]
call fcn.140126550
cmp dword [rsi + 0x14], 0
jne 0x14005b6e6
mov rcx, qword [0x1403629b8]
cmp byte [rcx + 0x17], 0
jns 0x14005b6e0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1402443b0

Function at 0x14005c13f
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14005c166
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005c275
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14005c1a4
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140156fe0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14005c29b
cmp dword [0x1403629c0], 2
jg 0x14005c271
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x277
mov r9d, 2
call fcn.14009c6a0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140097cc9
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14005c203
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
jmp 0x14005c206
and eax, 0x7f
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
test rax, rax
js 0x14005c294
test rsi, rsi
jne 0x14005c21f
test rax, rax
jne 0x14005c297
lea rsi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400c7180
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14005c241
and r8d, 0x7f
jmp 0x14005c24b
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140097cc9
cmp byte [rsp + 0x4f], 0
jns 0x14005c267
mov rcx, qword [rsp + 0x38]
call fcn.140153bcc
lea rcx, [rsp + 0x50]
call fcn.14009c720
xor esi, esi
jmp 0x14005c278
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
int3
int3
Function at 0x14005c29b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14005c2c2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005c2f4
mov dil, 1
test al, 0x10
je 0x14005c3d0
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140156fe0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
cmp dword [0x1403629c0], 2
jg 0x14005c3c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x262
mov r9d, 2
call fcn.14009c6a0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140097cc9
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14005c34f
and eax, 0x7f
jmp 0x14005c356
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
test rax, rax
js 0x14005c4a9
test rsi, rsi
jne 0x14005c377
test rax, rax
jne 0x14005c4af
lea rsi, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1400c7180
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14005c399
and r8d, 0x7f
jmp 0x14005c3a3
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140097cc9
cmp byte [rsp + 0x5f], 0
jns 0x14005c3bf
mov rcx, qword [rsp + 0x48]
call fcn.140153bcc
lea rcx, [rsp + 0x60]
call fcn.14009c720
xor edi, edi
jmp 0x14005c2d8
cmp dword [0x1403629c0], 2
jg 0x14005c3c9
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x266
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140097cc9
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14005c41d
and eax, 0x7f
jmp 0x14005c424
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
test rax, rax
js 0x14005c4ac
test rsi, rsi
jne 0x14005c43d
test rax, rax
jne 0x14005c4b2
lea rsi, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400c7180
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14005c465
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14005c469
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.140097cc9
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140097cc9
cmp byte [rsp + 0x5f], 0
jns 0x14005c49a
mov rcx, qword [rsp + 0x48]
call fcn.140153bcc
lea rcx, [rsp + 0x60]
call fcn.14009caf0
jmp 0x14005c3c9
int3
int3
int3
int3
Function at 0x14005da30
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x140310816]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x4fe
call fcn.1400c6940
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140066fa0
cmp byte [rdi + 0x17], 0
jns 0x14005dab0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140067230
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140156fe0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005daf0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c8
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x140310801]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x4ee
call fcn.1400c6940
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140066fa0
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140159120
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x14005dc05
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14015468c
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400caf10
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400ae980
cmp byte [rsi + 0x17], 0
js 0x14005dc3a
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x5f], 0
mov word [rsp + 0x48], 0
cmp byte [rsp + 0x47], 0
jns 0x14005dc05
mov rcx, qword [rsp + 0x30]
call fcn.140153bcc
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.140067230
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140156fe0
mov eax, ebx
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.140153bcc
jmp 0x14005dbd7
Function at 0x14005ed3f
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
jne 0x14005edd3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14005ed87
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]
mov rsi, rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140156fe0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
mov cx, 6
xor edx, edx
xor r8d, r8d
call fcn.140151401
mov edi, 0x80003
test al, al
je 0x14005ed7e
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.140299b06
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14005ed7e
Function at 0x140066e40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140066e6c
call fcn.1400bcc80
mov qword [rsi], 0
test r14, r14
je 0x140066ea2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140066ee1
cmp r15, 2
jb 0x140066e9a
mov qword [rsi], r14
call fcn.1400bcc80
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
cmp byte [rdi + 0x1f], 0
js 0x140066f1f
lea rax, [rdi + 8]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400bcc80
mov rcx, qword [rsi]
call fcn.1400d2f70
mov qword [rsi], 0
jmp 0x140066e8c
mov byte [rsi + 0x1f], bl
cmp rcx, r14
ja 0x140066f0c
lea rax, [rcx + rbx*2]
add rax, 2
cmp rax, r14
ja 0x140066f69
inc rbx
add rbx, rbx
mov rdx, r14
mov r8, rbx
call fcn.140158a70
jmp 0x140066ebe
mov r14, qword [rdi + 8]
mov rbx, qword [rdi + 0x10]
cmp rbx, 0xa
jbe 0x140066ef7
movabs r15, 0x7fffffffffffffef
cmp rbx, r15
ja 0x140066f95
mov r12, rbx
or r12, 7
inc r12
js 0x140066f9a
lea rcx, [r12 + r12]
call fcn.140153bd4
mov rcx, rax
mov qword [rsi + 8], rax
add r15, 0x11
or r15, r12
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x10], rbx
jmp 0x140066efa
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x149
call fcn.1401bf470
call fcn.1401bf470
call fcn.1401bf470
int3