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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x6c], 0
jne 0x140048966
mov rdi, rdx
mov rsi, rcx
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
test rdi, rdi
jne 0x14004896d
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14004899e
mov rdi, qword [rsp + 0x38]
cmp qword [rsi + 0x48], rdi
je 0x1400488d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x48]
inc rax
cmp rax, 2
jae 0x14004894b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400488cb
mov qword [rsi + 0x48], rdi
call fcn.1400f24d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x48]
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
movaps xmm0, xmmword [0x140261350]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.1400489e0
cmp byte [rbx], 0
je 0x1400489a8
lea rcx, [rsi + 0x58]
cmp byte [rsi + 0x50], 0
lea rbx, [rsp + 0x48]
mov rdx, rbx
jne 0x1400489af
call fcn.140048ae0
mov byte [rsi + 0x50], 1
cmp byte [rsp + 0x40], 0
je 0x14004892c
mov rcx, rbx
call fcn.1400487a0
mov byte [rsi + 0x6c], 1
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401756e0
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f24d0
mov rcx, qword [rsi + 0x48]
call fcn.1401571e0
mov qword [rsi + 0x48], 0
jmp 0x1400488b8
mov edi, 0x4df
jmp 0x140048932
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x14004888c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140048932
mov edi, 0x3f0
jmp 0x140048932
call fcn.1400d74d0
xor edi, edi
cmp byte [rsp + 0x40], 0
mov byte [rsi + 0x6c], 1
je 0x140048932
mov rcx, rbx
call fcn.1400487a0
jmp 0x140048932

Function at 0x140048ae0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140048b06
call fcn.1400f24d0
cmp qword [rsi], rbx
je 0x140048b35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140048b42
cmp r14, 2
jb 0x140048b2d
mov qword [rsi], rbx
call fcn.1400f24d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f24d0
mov rcx, qword [rsi]
call fcn.1401571e0
mov qword [rsi], 0
jmp 0x140048b1f
Function at 0x140049270
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [rcx + 0x6c], 0
je 0x1400493cf
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rdx], 0
call fcn.140049620
test eax, eax
jne 0x1400493d6
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 2
xor esi, esi
mov rcx, rdi
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400493e2
mov r14, qword [rsp + 0x38]
cmp qword [rbx], r14
je 0x14004932c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140049375
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140049324
mov qword [rbx], r14
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004935b
call fcn.1400f24d0
cmp qword [0x1402a1a18], 0
je 0x14004938b
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x1401d7990.0]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400f24d0
mov rcx, qword [rbx]
call fcn.1401571e0
mov qword [rbx], 0
jmp 0x140049312
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400493ef
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400493c9
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x140049345
xor ecx, ecx
mov dl, 1
jmp 0x1400493bf
mov esi, 0x3f0
jmp 0x14004935b
mov esi, eax
mov rdi, qword [rsp + 0x40]
jmp 0x14004932c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004932c
xor ecx, ecx
jmp 0x1400493bd
Function at 0x140049400
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x6c], 0
je 0x140049609
mov rdi, rcx
cmp byte [rcx + 0x50], 0
je 0x140049610
mov rsi, rdx
mov rdx, qword [rdi + 0x58]
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r8d, 2
call fcn.14004a2f0
mov r13, qword [rbx]
mov rbp, qword [rbx + 8]
cmp r13, rbp
je 0x14004956f
lea rbx, [rdi + 0x18]
xorps xmm6, xmm6
mov eax, dword [r13 + 0x18]
cmp eax, 0xbfffffff
ja 0x140049538
and eax, 0x20
jne 0x140049538
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r15, r12
je 0x1400494ae
mov rdx, qword [r13]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140049538
add r15, 0x18
jmp 0x14004948e
mov r15, qword [r13]
mov r12, qword [r13 + 8]
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
sub r12, r15
je 0x1400494f8
js 0x1400495d8
mov rcx, r12
call fcn.140172a4c
mov qword [rsp + 0x30], rax
lea r14, [rax + r12]
mov qword [rsp + 0x40], r14
mov rcx, rax
mov rdx, r15
mov r8, r12
call fcn.140177150
mov qword [rsp + 0x38], r14
mov rax, qword [rdi + 0x20]
cmp rax, qword [rdi + 0x28]
jae 0x140049547
test rax, rax
je 0x1400495dd
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
add rax, 0x18
mov qword [rdi + 0x20], rax
add r13, 0x20
cmp r13, rbp
jne 0x14004946f
jmp 0x14004956a
mov rcx, rbx
lea rdx, [rsp + 0x30]
call fcn.140048d80
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140049538
mov qword [rsp + 0x38], rcx
call fcn.140172a44
jmp 0x140049538
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x1400495ae
mov rax, qword [rsp + 0x58]
mov rcx, r13
cmp rax, r13
je 0x1400495a4
lea rsi, [rax - 0x20]
mov rcx, qword [rax - 0x20]
test rcx, rcx
je 0x140049597
mov qword [rax - 0x18], rcx
call fcn.140172a44
mov rax, rsi
cmp rsi, r13
jne 0x140049581
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], r13
call fcn.140172a44
xor esi, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14018c460
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401b2820
mov esi, 0x3f0
jmp 0x1400495b0
ud2
Function at 0x14004b3b0
Capabilities:
Read 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 [0x140287028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004b478
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004b440
cmp eax, 0xffffffff
je 0x14004b451
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401756e0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x14004b454
mov eax, dword [rsp + 0x2c]
jmp 0x14004b420
int3
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14004b413
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004b422
Function at 0x140055bd0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140177800
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140055c65
cmp word [rsp + 0x70], 0
je 0x140055c65
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140173694
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140133380
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401756e0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.14005e330
test al, al
je 0x140055c90
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401710f0
jmp 0x140055caf
lea rax, [0x140266006]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140133380
cmp byte [rsp + 0x57], 0
jns 0x140055c47
mov rcx, qword [rsp + 0x40]
call fcn.140172a44
jmp 0x140055c47
Function at 0x140056330
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140056452
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140056488
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 3
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140056490
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140056494
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14005649a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14005638c
xor eax, eax
jmp 0x140056421
mov dl, byte [r8 + 0x19]
jmp 0x140056481
cmp byte [r8 + 0x1a], 0
je 0x140056485
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140056485
cmp ecx, 0x666f736f
jne 0x140056485
cmp edx, 0x76482074
jne 0x140056485
mov byte [r8 + 0x19], 1
jmp 0x140056485
Function at 0x1400566e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov rax, qword [rcx + 0x4a8]
mov rax, qword [rcx + 0x3e0]
lea r12, [rcx + 0x3e8]
xor ebp, ebp
cmp rax, r12
je 0x140056802
lea rbx, [rsp + 0x28]
mov r15, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test rax, rax
je 0x14005692b
mov rcx, qword [rax + 8]
mov rdx, rax
test rcx, rcx
jne 0x1400567f1
mov r13, qword [rdx + 0x10]
cmp qword [r13], rdx
mov rdx, r13
jne 0x140056751
mov r14, qword [rax + 0x20]
test bpl, bpl
jne 0x1400567bb
mov rax, qword [fcn.140158d50]
lea rcx, [0x140171950]
cmp rax, rcx
jne 0x140056905
mov qword [rsp + 0x28], 0
mov rcx, rbx
call r15
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14005692e
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov rdi, rax
mov bpl, 1
mov rcx, r14
mov rdx, rdi
call fcn.1400012a0
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x1400567e3
call fcn.1400ec440
mov rcx, qword [r14 + 0xb8]
call fcn.1400ec440
mov rax, r13
cmp r13, r12
jne 0x140056738
jmp 0x140056802
mov r13, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005675e
jmp 0x1400567f1
mov rax, qword [rsi + 0x3f8]
add rsi, 0x400
cmp rax, rsi
jne 0x140056834
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401756e0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [0x140171950]
lea rbx, [rsp + 0x28]
mov r12, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test rax, rax
je 0x140056958
mov rcx, qword [rax + 8]
mov rdx, rax
test rcx, rcx
jne 0x14005686b
mov r13, qword [rdx + 0x10]
cmp qword [r13], rdx
mov rdx, r13
je 0x140056876
jmp 0x14005685c
mov r13, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14005686b
mov r14, qword [rax + 0x20]
test bpl, bpl
jne 0x1400568cc
mov rax, qword [fcn.140158d50]
cmp rax, r15
jne 0x14005691b
mov qword [rsp + 0x28], 0
mov rcx, rbx
call r12
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x14005695b
imul rax, rax, 0xf4240
cqo
idiv qword [0x14029b670]
mov rdi, rax
mov bpl, 1
mov rcx, r14
mov rdx, rdi
call fcn.1400012a0
mov rcx, qword [r14 + 0xb0]
test rcx, rcx
je 0x1400568f4
call fcn.1400ec440
mov rcx, qword [r14 + 0xb8]
call fcn.1400ec440
mov rax, r13
cmp r13, rsi
je 0x140056815
jmp 0x140056847
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [case.0x1401d7990.0]
mov rdi, qword [rdi]
jmp 0x1400567b8
mov rcx, rbx
call qword [case.0x1401d7990.0]
mov rdi, qword [rsp + 0x28]
jmp 0x1400568c9
int3
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x1400567b8
int3
mov rcx, qword [0x14029b670]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
mov rdi, rax
add rdi, r8
jmp 0x1400568c9
Function at 0x140056cc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140056ce7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140056d21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140056d40
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401756e0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140056e10
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
cmp dword [0x140299b30], 2
jg 0x140056dfe
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, 0x266
mov r9d, 2
call fcn.1401d2730
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401af730
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14013c980
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140056dd4
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x140056dd8
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401af730
cmp byte [rsp + 0x4f], 0
jns 0x140056df4
mov rcx, qword [rsp + 0x38]
call fcn.140172a44
lea rcx, [rsp + 0x50]
call fcn.1401d27b0
xor esi, esi
jmp 0x140056d24
Function at 0x140056e10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140056e37
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140056e69
mov dil, 1
test al, 0x10
je 0x140056f04
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401756e0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
cmp dword [0x140299b30], 2
jg 0x140056ff9
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, 0x251
mov r9d, 2
call fcn.1401d2730
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401af730
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14013c980
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140056f8e
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x140056f92
cmp dword [0x140299b30], 2
jg 0x140056ff9
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140007b50
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401af730
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14013c980
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140056fba
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x140056fbe
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401af730
cmp byte [rsp + 0x5f], 0
jns 0x140056fae
mov rcx, qword [rsp + 0x48]
call fcn.140172a44
lea rcx, [rsp + 0x60]
call fcn.1401d27b0
jmp 0x140056ff9
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401af730
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401af730
cmp byte [rsp + 0x5f], 0
jns 0x140056fef
mov rcx, qword [rsp + 0x48]
call fcn.140172a44
lea rcx, [rsp + 0x60]
call fcn.140007c40
xor edi, edi
jmp 0x140056e4d
Function at 0x14005a520
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov r15, qword [r8]
mov qword [r8], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x14005a55f
call fcn.1400f24d0
cmp qword [rsi + 0x18], r15
je 0x14005a595
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14005a65b
cmp r12, 2
jb 0x14005a58d
mov qword [rsi + 0x18], r15
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov qword [rsi + 0x20], rax
mov r12, qword [rbx]
mov qword [rbx], rax
lea r13, [r12 + 1]
cmp r13, 2
jb 0x14005a5b1
call fcn.1400f24d0
mov r15, qword [rsp + 0x90]
cmp qword [rsi + 0x20], r12
je 0x14005a5ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x14005a676
cmp r13, 2
jb 0x14005a5e7
mov qword [rsi + 0x20], r12
call fcn.1400f24d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [rsp + 0x98]
xor eax, eax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], r14
mov qword [rsi + 0x38], rax
mov rax, qword [0x14028a5a0]
and rax, r15
cmp rax, qword [0x14028a588]
je 0x14005a691
mov qword [rsi + 0x40], r15
lea rcx, [rsi + 0x58]
xorps xmm0, xmm0
movups xmmword [rsi + 0x48], xmm0
mov rdx, r12
call fcn.14005a6d0
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14005a69e
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14005a6b4
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400f24d0
mov rcx, qword [rsi + 0x18]
call fcn.1401571e0
mov qword [rsi + 0x18], 0
jmp 0x14005a57e
call fcn.1400f24d0
mov rcx, qword [rsi + 0x20]
call fcn.1401571e0
mov qword [rsi + 0x20], 0
jmp 0x14005a5d8
mov rcx, r15
call fcn.1400eaf60
jmp 0x14005a618
call fcn.1400f24d0
mov rcx, qword [rbx]
call fcn.1401571e0
mov qword [rbx], 0
jmp 0x14005a63b
call fcn.1400f24d0
mov rcx, qword [rdi]
call fcn.1401571e0
mov qword [rdi], 0
jmp 0x14005a647
Function at 0x14005a910
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x14025efc0]
mov qword [rcx], rax
lea rax, [0x14025dcc8]
mov qword [rcx + 8], rax
mov eax, dword [0x1402a1940]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005aa98
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005ab2a
mov rcx, qword [0x1402a1930]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a1938]
jne 0x14005ab2a
mov rdi, qword [rax + rcx]
lea rbx, [rsi + 8]
mov rax, qword [0x14028a5a0]
and rax, rdi
cmp rax, qword [0x14028a588]
je 0x14005aa3e
lea rcx, [rdi + 0x468]
mov rdx, rbx
call fcn.14002d7a0
mov rax, qword [0x14028a5a0]
and rax, rdi
cmp rax, qword [0x14028a588]
je 0x14005ab31
mov rdi, qword [rsi + 0x28]
test rdi, rdi
je 0x14005aa20
mov rax, qword [rdi]
mov rax, qword [rax + 8]
mov rcx, rdi
call qword [case.0x1401d7990.0]
cmp byte [rdi + 0xc], 0
jne 0x14005aa0d
mov rcx, qword [rdi + 0x10]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
jne 0x14005aa05
call fcn.1400ebe70
mov qword [rdi + 0x10], 0
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14005aa20
lock dec dword [rcx + 8]
je 0x14005ab3e
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14005aa65
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x14005aa4b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.1400eaf60
jmp 0x14005a9a4
lock dec dword [rcx]
jne 0x14005aa36
mov rax, qword [rcx + 0x10]
mov rdx, qword [case.0x1401d7990.0]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp rdx
call fcn.1400f24d0
mov rdi, qword [rsi + 0x18]
cmp qword [0x1402a1a18], 0
je 0x14005aae6
mov rcx, qword [0x1402a1a18]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x1401d7990.0]
mov qword [rsi + 0x18], 0
jmp 0x14005aa2d
lea rcx, [0x1402a1940]
call fcn.140172b08
cmp dword [0x1402a1940], 0xffffffff
jne 0x14005a954
mov qword [0x1402a1938], 0
lea rcx, [0x1402a1930]
mov qword [0x1402a1930], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x1402a1940]
call fcn.140172aa8
jmp 0x14005a954
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14026b3c1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005ab4d
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14005ab24
call qword [case.0x1401d7990.0]
mov rcx, rax
xor edx, edx
call fcn.14003cbf0
jmp 0x14005aa78
xor ecx, ecx
mov dl, 1
jmp 0x14005ab1a
xor edi, edi
jmp 0x14005a989
mov rcx, rdi
call fcn.1400ebe70
jmp 0x14005a9ca
mov edx, 1
call fcn.140046680
jmp 0x14005aa20
xor ecx, ecx
jmp 0x14005ab18