joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14006e4a0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401db948]
lea rdx, [0x14006e340]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006e5c8
cmp dword [0x1401db950], 0
jne 0x14006e5d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401db954]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14006e57c
mov ecx, 1
mov edx, 0x28
call fcn.1400bafe0
test rax, rax
je 0x14006e5d5
mov r14, rax
mov ecx, dword [0x1401db954]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006e5cd
lea r15, [0x1401db958]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401db960]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400f2790
mov rcx, r14
call fcn.1400baf40
mov rcx, rsi
mov rax, rdi
call qword [0x1401eb008]
xor esi, esi
jmp 0x14006e5ac

Function at 0x14006ea40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401c86d0]
cmp ecx, 0xffffffff
je 0x14006ea62
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006ea67
call fcn.14006eb90
mov eax, dword [0x1401dd1b0]
mov ecx, dword [0x1401c9138]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006eb20
mov rbx, qword [0x1401dd1a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006eb69
mov rcx, qword [0x1401db998]
inc rcx
xor edx, edx
lea rax, [0x1401db9a0]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x14006eb76
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x1401dd1a0]
inc edx
mov dword [0x1401dd1a0], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x1401db998], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14006eb66
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401dd1b0]
call fcn.1400dcf30
cmp dword [0x1401dd1b0], 0xffffffff
jne 0x14006ea8c
mov ecx, 8
call fcn.1400dcdd8
mov rbx, rax
mov rcx, rax
call fcn.1400a9670
mov qword [0x1401dd1a8], rbx
lea rcx, [0x1401dd1b0]
call fcn.1400dcfc8
jmp 0x14006ea8c
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14006eaa4
inc rdx
cmp rdx, 0x100
jne 0x14006eab7
jmp 0x14006eb06
Function at 0x14006eb90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400de2a0
sub rsp, rax
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401c86d0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14006ec44
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14006ec82
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400e0440
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400dce4c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400dfd90
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400de300
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140083d40
test al, al
je 0x14006ec85
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14006ec88
mov eax, 0xffffffff
lock cmpxchg dword [0x1401c86d0], ecx
je 0x14006ebc8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401c86d0]
mov dword [rsp + 0x2c], ecx
jmp 0x14006ebc8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140083d40
test al, al
je 0x14006ecad
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14006ecad
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14006ec5b
int3

Function at 0x14006ecc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1401c86d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x14006ed09
and rax, 0xfffffffffffffffc
je 0x14006ed3c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14006ed3c
mov rsi, qword [rax + rcx]
jmp 0x14006ed3e
lea rdx, [0x1401a070a]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400b5990
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.140132a90
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400de300
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14006ed60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401c86d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006ed9e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14006ed97
call fcn.14006eb90
jmp 0x14006ed7e
Function at 0x14006f380
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14006f390
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14006f3b1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14006f3d1
cmp byte [r14 + 0x50], 0
jne 0x14006f45c
or edi, 0x20000000
test dil, 8
jne 0x14006f467
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14006f3ef
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14006f400
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14006f48e
cmp byte [r14 + 0x18], 0
jne 0x14006f49f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14006f4af
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14006f484
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14006f3d1
cmp byte [r14 + 0x68], 0
je 0x14006f479
or edi, 0x40000000
jmp 0x14006f3db
or edi, 0x10000000
jmp 0x14006f3db
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006f447
lea rcx, [r14 + 0x20]
call fcn.14003ecc0
mov r15, rax
jmp 0x14006f40b
mov rcx, r14
call fcn.14003ecc0
mov r9, rax
jmp 0x14006f419
cmp ebx, 4
jne 0x14006f4be
mov edx, 6
jmp 0x14006f426
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14006f4d0
mov edx, 7
jmp 0x14006f426
cmp ebx, 1
jne 0x14006f4df
mov edx, 4
jmp 0x14006f426
xor edx, edx
jmp 0x14006f426
Function at 0x14006f390
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14006f390
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14006f3b1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14006f3d1
cmp byte [r14 + 0x50], 0
jne 0x14006f45c
or edi, 0x20000000
test dil, 8
jne 0x14006f467
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14006f3ef
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14006f400
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14006f48e
cmp byte [r14 + 0x18], 0
jne 0x14006f49f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14006f4af
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14006f484
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14006f3d1
cmp byte [r14 + 0x68], 0
je 0x14006f479
or edi, 0x40000000
jmp 0x14006f3db
or edi, 0x10000000
jmp 0x14006f3db
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006f447
lea rcx, [r14 + 0x20]
call fcn.14003ecc0
mov r15, rax
jmp 0x14006f40b
mov rcx, r14
call fcn.14003ecc0
mov r9, rax
jmp 0x14006f419
cmp ebx, 4
jne 0x14006f4be
mov edx, 6
jmp 0x14006f426
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14006f4d0
mov edx, 7
jmp 0x14006f426
cmp ebx, 1
jne 0x14006f4df
mov edx, 4
jmp 0x14006f426
xor edx, edx
jmp 0x14006f426

Function at 0x14006f4f0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14006f528
cmp byte [r15 + 0x50], 0
jne 0x14006f5bf
or edi, 0x20000000
test dil, 8
jne 0x14006f5ca
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14006f546
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14006f557
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x14006f5f1
cmp byte [r15 + 0x18], 0
jne 0x14006f602
xor r9d, r9d
cmp ebx, 4
jne 0x14006f5b0
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x14006f5e7
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14006f612
mov edx, 7
jmp 0x14006f57a
or edi, 0x80000000
jmp 0x14006f528
cmp byte [r15 + 0x68], 0
je 0x14006f5dc
or edi, 0x40000000
jmp 0x14006f532
or edi, 0x10000000
jmp 0x14006f532
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006f59b
lea rcx, [r15 + 0x20]
call fcn.14003ecc0
mov r14, rax
jmp 0x14006f562
mov rcx, r15
call fcn.14003ecc0
mov r9, rax
jmp 0x14006f570
mov edx, 1
test ebx, ebx
je 0x14006f57a
cmp ebx, 1
jne 0x14006f62e
mov edx, 4
jmp 0x14006f57a
xor edx, edx
jmp 0x14006f57a
Function at 0x140072e10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401dd1f0], 0
jne 0x140072e4d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140072e40
mov dword [rdi], eax
mov dword [0x1401dd1f8], eax
mov qword [0x1401dd1f0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140073db8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140073df3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140073e13
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400de300
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.140073ef0
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400b5710
test al, al
jne 0x140073e25
xor esi, esi
jmp 0x140073df6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.1401318e0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401151c0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140073e75
and r8d, 0x7f
jmp 0x140073e7c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14009bb10
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400ae1d0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140073eac
and r8d, 0x7f
jmp 0x140073eb6
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401151c0
cmp byte [rsp + 0x57], 0
jns 0x140073ed2
mov rcx, qword [rsp + 0x40]
call fcn.1400dce14
lea rcx, [rsp + 0x58]
call fcn.140131960
jmp 0x140073e21
Function at 0x140073ef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x140073f17
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140073f55
mov dil, 1
test al, 0x10
je 0x140073f45
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400de300
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400b5710
test al, al
je 0x140073f63
jmp 0x140073fbc
mov ecx, 2
call fcn.1400b5710
test al, al
jne 0x140073f67
xor edi, edi
jmp 0x140073f29
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1401318e0
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401151c0
mov rcx, rax
mov rdx, rsi
call fcn.140132690
mov rcx, rdi
call fcn.140131960
jmp 0x140073f63
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140048390
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401151c0
mov rcx, rax
mov rdx, rsi
call fcn.140132690
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401151c0
mov rcx, rdi
call fcn.1400489e0
jmp 0x140073f63
Function at 0x140075490
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1400740b0
mov rax, qword [rsi]
test rax, rax
je 0x140075507
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x140075523
lea rcx, [rsp + 0x28]
call fcn.140074b60
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x1400754e0
mov rcx, r14
mov rdx, rbx
call fcn.1400763c0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x140075530
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x14007553b
add rbx, 0x70
cmp rbx, r15
je 0x1400754e0
jmp 0x14007552a
cmp byte [rbx + 0x27], 0
js 0x140075547
lea rcx, [rbx + 0x10]
jmp 0x14007554b
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x140075530
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jb 0x14007550e
mov rcx, rdi
mov rdx, rbx
call fcn.1400761f0
mov r14, rax
jmp 0x14007551d

Function at 0x140075570
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1400740b0
mov rax, qword [rsi]
test rax, rax
je 0x1400755e7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x1400755ee
lea rcx, [rsp + 0x28]
call fcn.140074b60
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x1400755c0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14007562f
cmp byte [rbx + 0x27], 0
js 0x140075607
lea rcx, [rbx + 0x10]
jmp 0x14007560b
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x14007562f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14007563a
mov rcx, r14
mov rdx, rbx
call fcn.1400763c0
add r14, 0x68
mov qword [rdi + 8], r14
add rbx, 0x70
cmp rbx, r15
je 0x1400755c0
jmp 0x1400755f5
mov rcx, rdi
mov rdx, rbx
call fcn.1400761f0
mov r14, rax
jmp 0x14007562b
Function at 0x140083b30
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140083c51
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 0x140083c8d
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
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 0x140083c95
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
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140083c87
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140083c99
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x140083c80
xor r10d, r10d
jmp 0x140083b8f
xor eax, eax
jmp 0x140083c24
cmp byte [r8 + 0x1a], 0
je 0x140083c84
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140083c84
cmp ecx, 0x666f736f
jne 0x140083c84
cmp edx, 0x76482074
jne 0x140083c84
mov byte [r8 + 0x19], 1
jmp 0x140083c84

Function at 0x140083d40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140083d55
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140087470
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400874d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400874d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400874b9
int3
mov rcx, qword [rcx + 8]
jmp 0x140087470
Function at 0x1400874e0
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 [0x1401ba028]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140087586
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140087572
cmp eax, 0xffffffff
je 0x140087583
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140087521
mov eax, dword [rsp + 0x2c]
jmp 0x140087552
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140087554

Function at 0x140087a70
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140087970
test rax, rax
jne 0x140087aaf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140087acb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400b5710
test al, al
jne 0x140087add
xor esi, esi
jmp 0x140087aaf
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1401318e0
lea rcx, [rsp + 0x40]
lea rdx, [0x1401a59ab]
mov r8d, 0xc
call fcn.1401151c0
mov rcx, rsi
call fcn.140131960
jmp 0x140087ad9

Function at 0x140087fc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400874d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400874d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400de300
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400874b9
int3
mov rcx, qword [rcx + 8]
jmp 0x140087470