joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046df0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140046e24
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rax
test rax, rax
js 0x140046ed9
je 0x140046e42
test r8, r8
je 0x140046eec
lea rsi, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140067150
cmp byte [rsi + 0x17], 0
jns 0x140046e5f
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.140067150
cmp byte [rdi + 0x17], 0
jns 0x140046e84
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x140046ea3
mov rcx, qword [rsp + 0x48]
call fcn.140085b34
cmp byte [rsp + 0x87], 0
jns 0x140046eb7
mov rcx, qword [rsp + 0x70]
call fcn.140085b34
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140087020
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1400bcb80
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400bcb80
int3
Function at 0x140046f80
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140067150
cmp byte [rdi + 0x17], 0
jns 0x140046fc1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140046fe2
mov rcx, qword [rsp + 0x58]
call fcn.140085b34
test rsi, rsi
je 0x140047089
test edi, edi
je 0x140047089
mov ecx, edi
add rcx, rcx
call fcn.140085b6c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.140067150
cmp byte [r14 + 0x17], 0
jns 0x140047025
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140047045
mov rcx, qword [rsp + 0x58]
call fcn.140085b34
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400470a7
mov rcx, rbx
call fcn.1400a58f8
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140067180
cmp byte [rsi + 0x17], 0
js 0x1400470ba
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140085b74
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140087020
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.1400bcb80
mov rcx, qword [rsi]
call fcn.140085b34
jmp 0x140047070
Function at 0x1400479b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400479d7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140047a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140047a30
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140087020
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140047b20
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140087020
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140070d70
test al, al
jne 0x140047a42
xor esi, esi
jmp 0x140047a14
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x265
mov r9d, 2
call fcn.1400d8610
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400bc4d0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140047a91
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
test rax, rax
js 0x140047af8
je 0x140047aa7
test rsi, rsi
je 0x140047b0b
lea rsi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140067180
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140047acd
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400bc4d0
cmp byte [rsp + 0x4f], 0
jns 0x140047ae9
mov rcx, qword [rsp + 0x38]
call fcn.140085b34
lea rcx, [rsp + 0x50]
call fcn.1400d8690
jmp 0x140047a3e
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1400bcb80
lea rcx, [0x1400fc149]
lea rdx, str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400bcb80
int3
Function at 0x140047b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x140047b47
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047b85
mov dil, 1
test al, 0x10
je 0x140047b75
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140087020
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140070d70
test al, al
je 0x140047b93
jmp 0x140047bec
mov ecx, 2
call fcn.140070d70
test al, al
jne 0x140047b97
xor edi, edi
jmp 0x140047b59
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.1400d8610
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400bc4d0
mov rcx, rax
mov rdx, rsi
call fcn.1400d5560
mov rcx, rdi
call fcn.1400d8690
jmp 0x140047b93
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.14003aa70
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400bc4d0
mov rcx, rax
mov rdx, rsi
call fcn.1400d5560
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400bc4d0
mov rcx, rdi
call fcn.14003b060
jmp 0x140047b93
Function at 0x14004c700
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400fc100]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004c7ec
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140089170
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004c7f3
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.14004c850
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004c7f3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004c7fc
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 + 0x180]
xor rcx, rsp
call fcn.140087020
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004e4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e568
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004e552
cmp dword [rsp + 0x38], 4
jne 0x14004e552
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087020
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14004e552

Function at 0x14004e570
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140086fc0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140089170
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e623
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004e627
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400273d0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140087020
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004e604
cmp eax, 2
jne 0x14004e66f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140089170
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14004e676
lea rdx, [rsp + 0x40]
jmp 0x14004e5fa
mov edi, 0x3f4
jmp 0x14004e604
mov edi, 0xea
jmp 0x14004e604
Function at 0x14004f4a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14004f5e9
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1400fc100]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401149e8]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401149e8]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401149e8]
test r14, r14
je 0x14004f583
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14004f573
mov ecx, 1
call fcn.14007e2b0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x14004f5ed
call fcn.140002fe0
lea rax, [0x140001d60]
lea rcx, section..text
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140087020
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14004f5cc
bt eax, 9
jae 0x14004f608
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [0x1400042a0]
jmp 0x14004f5b3
call fcn.1400e0640
lea rax, [0x1400e0e40]
lea rcx, [0x1400e0520]
jmp 0x14004f5b3

Function at 0x14004f630
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.14007e2b0
mov ebp, eax
bt eax, 0x1d
jb 0x14004f673
not ebp
test ebp, 0x128
jne 0x14004f699
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400100b0
mov ecx, 1
call fcn.14007e2b0
bt eax, 9
jae 0x14004f653
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000ef40
mov ecx, 1
call fcn.14007e2b0
mov ebp, eax
bt eax, 0x1c
jae 0x14004f6b8
xor ecx, ecx
call fcn.14007e2b0
bt eax, 0x1e
jb 0x14004f65d
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x14004f6d4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000df00
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000f210
Function at 0x14004fc60
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004fc70
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 0x14004fc91
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004fcb1
cmp byte [r14 + 0x50], 0
jne 0x14004fd3c
or edi, 0x20000000
test dil, 8
jne 0x14004fd47
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004fccf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004fce0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004fd6e
cmp byte [r14 + 0x18], 0
jne 0x14004fd7f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004fd8f
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 0x14004fd64
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 0x14004fcb1
cmp byte [r14 + 0x68], 0
je 0x14004fd59
or edi, 0x40000000
jmp 0x14004fcbb
or edi, 0x10000000
jmp 0x14004fcbb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004fd27
lea rcx, [r14 + 0x20]
call fcn.14003c070
mov r15, rax
jmp 0x14004fceb
mov rcx, r14
call fcn.14003c070
mov r9, rax
jmp 0x14004fcf9
cmp ebx, 4
jne 0x14004fd9e
mov edx, 6
jmp 0x14004fd06
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004fdb0
mov edx, 7
jmp 0x14004fd06
cmp ebx, 1
jne 0x14004fdbf
mov edx, 4
jmp 0x14004fd06
xor edx, edx
jmp 0x14004fd06
Function at 0x14004fc70
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004fc70
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 0x14004fc91
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004fcb1
cmp byte [r14 + 0x50], 0
jne 0x14004fd3c
or edi, 0x20000000
test dil, 8
jne 0x14004fd47
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004fccf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004fce0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004fd6e
cmp byte [r14 + 0x18], 0
jne 0x14004fd7f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004fd8f
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 0x14004fd64
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 0x14004fcb1
cmp byte [r14 + 0x68], 0
je 0x14004fd59
or edi, 0x40000000
jmp 0x14004fcbb
or edi, 0x10000000
jmp 0x14004fcbb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004fd27
lea rcx, [r14 + 0x20]
call fcn.14003c070
mov r15, rax
jmp 0x14004fceb
mov rcx, r14
call fcn.14003c070
mov r9, rax
jmp 0x14004fcf9
cmp ebx, 4
jne 0x14004fd9e
mov edx, 6
jmp 0x14004fd06
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004fdb0
mov edx, 7
jmp 0x14004fd06
cmp ebx, 1
jne 0x14004fdbf
mov edx, 4
jmp 0x14004fd06
xor edx, edx
jmp 0x14004fd06

Function at 0x14004fdd0
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 0x14004fe08
cmp byte [r15 + 0x50], 0
jne 0x14004fe9f
or edi, 0x20000000
test dil, 8
jne 0x14004feaa
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004fe26
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004fe37
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x14004fed1
cmp byte [r15 + 0x18], 0
jne 0x14004fee2
xor r9d, r9d
cmp ebx, 4
jne 0x14004fe90
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 0x14004fec7
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 0x14004fef2
mov edx, 7
jmp 0x14004fe5a
or edi, 0x80000000
jmp 0x14004fe08
cmp byte [r15 + 0x68], 0
je 0x14004febc
or edi, 0x40000000
jmp 0x14004fe12
or edi, 0x10000000
jmp 0x14004fe12
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004fe7b
lea rcx, [r15 + 0x20]
call fcn.14003c070
mov r14, rax
jmp 0x14004fe42
mov rcx, r15
call fcn.14003c070
mov r9, rax
jmp 0x14004fe50
mov edx, 1
test ebx, ebx
je 0x14004fe5a
cmp ebx, 1
jne 0x14004ff0e
mov edx, 4
jmp 0x14004fe5a
xor edx, edx
jmp 0x14004fe5a
Function at 0x140050ad0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140050b47
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140123c90], rax
jne 0x140050b4a
mov rsi, rcx
call fcn.140084340
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140050b60
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14007f6e0
mov ecx, dword [0x140135d00]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14012fdc0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3

Function at 0x140054370
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140121038]
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 0x1400543d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400543d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087020
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400543b9
int3
mov rcx, qword [rcx + 8]
jmp 0x140054370

Function at 0x1400543e0
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 [0x140121038]
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 0x140054486
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140054472
cmp eax, 0xffffffff
je 0x140054483
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087020
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 0x140054421
mov eax, dword [rsp + 0x2c]
jmp 0x140054452
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140054454

Function at 0x140054990
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140054890
test rax, rax
jne 0x1400549cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400549eb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140087020
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140070d70
test al, al
jne 0x1400549fd
xor esi, esi
jmp 0x1400549cf
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.1400d8610
lea rcx, [rsp + 0x40]
lea rdx, [0x14010daf2]
mov r8d, 0xc
call fcn.1400bc4d0
mov rcx, rsi
call fcn.1400d8690
jmp 0x1400549f9
Function at 0x140054ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140121038]
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 0x1400543d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400543d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140087020
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400543b9
int3
mov rcx, qword [rcx + 8]
jmp 0x140054370

Function at 0x140056c10
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 [0x140121038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140056be0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140136b68]
lea rdx, [0x140056a80]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140056d08
cmp dword [0x140136b70], 0
jne 0x140056d15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140136b74]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140056cbc
mov ecx, 1
mov edx, 0x28
call fcn.14006d170
test rax, rax
je 0x140056d15
mov r14, rax
mov ecx, dword [0x140136b74]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140056d0d
lea r15, [0x140136b78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140136b80]
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.140087020
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14009e900
mov rcx, r14
call fcn.14006d0d0
mov rcx, rsi
mov rax, rdi
call qword [0x1401149e8]
xor esi, esi
jmp 0x140056cec

Function at 0x140058390
Capabilities:
Allocate thread local storage

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