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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x140148a18], 0
jne 0x14003dde2
mov rsi, rcx
movaps xmm6, xmmword [0x1401101b0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x2bc
call fcn.14007a8c0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14007e7d0
test rsi, rsi
je 0x14003dde6
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14007a9e0
mov ecx, 0x65
mov rdx, rdi
call fcn.14004ea00
test al, al
je 0x14003dde9
lea rax, str.SystemTemp
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea rbx, [rsp + 0xb0]
mov rcx, rdi
mov rdx, rbx
call fcn.140031440
mov rcx, rdi
mov rdx, rbx
call fcn.140030160
mov rcx, rbx
call fcn.14007ab80
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x20e
call fcn.14007a8c0
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007e7d0
cmp byte [rsp + 0x47], 0
jns 0x14003dd63
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14007e850
cmp edi, 0xffffffff
je 0x14003dde9
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14003d820
test al, al
je 0x14003dde9
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.14007ab90
mov rcx, rdi
call fcn.14007ab80
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.14007e850
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140092400
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor esi, esi
jmp 0x14003ddb9
int3
lea rcx, [rsp + 0x30]
call fcn.14007ab80
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14007a9e0
mov ecx, 0x67
mov rdx, rdi
call fcn.14004ea00
test al, al
je 0x14003dea6
lea rbx, [rsp + 0xb0]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x20e
call fcn.14007a8c0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007e7d0
cmp byte [rsp + 0x47], 0
jns 0x14003de71
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.14007e850
cmp edi, 0xffffffff
je 0x14003dea6
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.14003d820
test al, al
jne 0x14003dd94
lea rcx, [rsp + 0x30]
call fcn.14007ab80
xor esi, esi
jmp 0x14003ddaf
Function at 0x1400431d0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1401101b0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14004334c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140148ed0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400b229c
mov rcx, rbx
call fcn.1400b1e48
sub r14, rax
lea rdx, [0x140113908]
mov rcx, rbx
mov r8, r14
call fcn.1400b229c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400d07c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400432ac
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b22e4
test eax, eax
je 0x140043370
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400432e7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b22e4
test eax, eax
je 0x140043370
xor eax, eax
mov byte [0x140148ac9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401203bb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140043377
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14012add0]
test eax, eax
je 0x140043377
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401490d0], al
mov byte [0x140148ac8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400432e9
xor eax, eax
jmp 0x14004333f
Function at 0x1400435a0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400435d4
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400436cf
bt ebx, 8
jae 0x1400435f0
mov eax, ebx
and eax, 0x200
jne 0x1400436cf
cmp edi, 2
lea rax, [0x140148ad0]
lea rcx, [0x140148cd0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400436cf
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400436cf
bt ebx, 8
jb 0x1400436cf
shr ebx, 9
and ebx, 1
or bl, byte [0x1401490d0]
je 0x1400436cf
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x1400436ee
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400436b8
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400ac9ec
test eax, eax
je 0x1400436f3
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140043698
cmp dword [rsp + 0x2c], 0
jne 0x14004376e
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140092400
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140043677
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140043701
test ecx, ecx
jne 0x1400436b8
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004372d
cmp dword [rsp + 0x2c], 2
jne 0x14004373e
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x14004373e
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x140043757
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140043744
jmp 0x14004375a
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400436bf
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14004377a
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x1400437b0
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400b1e48
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.140029c30
jmp 0x1400436cf
ud2
Function at 0x140049b00
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140049b35
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rax
test rax, rax
js 0x140049bf0
sete al
test r8, r8
setne cl
or cl, al
je 0x140049bf0
lea rsi, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400784a0
cmp byte [rsi + 0x17], 0
jns 0x140049b76
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.1400784a0
cmp byte [rdi + 0x17], 0
jns 0x140049b9b
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 0x140049bba
mov rcx, qword [rsp + 0x48]
call fcn.140091090
cmp byte [rsp + 0x87], 0
jns 0x140049bce
mov rcx, qword [rsp + 0x70]
call fcn.140091090
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
ud2

Function at 0x140049c80
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1400923a0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401101b0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1400784a0
test rsi, rsi
je 0x140049d58
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400d07c0
cmp byte [rsp + 0x47], 0
jns 0x140049cfb
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x140049d2a
cmp eax, 0x7fff
jae 0x140049d7d
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14002dbc0
cmp byte [rsp + 0x47], 0
jns 0x140049d3b
mov rcx, qword [rsp + 0x30]
call fcn.140091090
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140092400
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140049d66
lea rcx, [rsp + 0x30]
jmp 0x140049d6b
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x140049d2a
int3
Function at 0x14004a7b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14004a7d7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004a811
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14004a830
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140092400
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14004a910
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140092400
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400795d0
test al, al
je 0x14004a8fb
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.1400eb7f0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14001e3f0
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14004a893
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x14004a902
sete al
test rsi, rsi
setne cl
or cl, al
je 0x14004a902
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400784d0
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x14004a8d5
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14001e3f0
cmp byte [rsp + 0x57], 0
jns 0x14004a8f1
mov rcx, qword [rsp + 0x40]
call fcn.140091090
lea rcx, [rsp + 0x58]
call fcn.1400eb860
xor esi, esi
jmp 0x14004a814
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14004a937
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004a9dd
mov dil, 1
test al, 0x10
je 0x14004a969
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140092400
mov eax, edi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400795d0
test al, al
je 0x14004a9d6
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.14002e350
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001e3f0
mov rcx, rax
mov rdx, rsi
call fcn.1400eca90
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14001e3f0
mov rcx, rdi
call fcn.14002e920
xor edi, edi
jmp 0x14004a94d
mov ecx, 2
call fcn.1400795d0
test al, al
je 0x14004a9d6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1400eb7f0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001e3f0
mov rcx, rax
mov rdx, rsi
call fcn.1400eca90
mov rcx, rdi
call fcn.1400eb860
jmp 0x14004a9d6
Function at 0x14004c340
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401101b0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004c42c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1400d07c0
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 0x14004c433
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.14004c490
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004c433
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004c43c
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.140092400
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140051070
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400510e7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140138d50], rax
jne 0x1400510ea
mov rsi, rcx
call fcn.14005f3f0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140051be0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140051100
mov ecx, dword [0x14014b190]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140144ee0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14005be40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140136040]
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 0x14005bea0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14005bea9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092400
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14005be89
int3
mov rcx, qword [rcx + 8]
jmp 0x14005be40

Function at 0x14005beb0
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 [0x140136040]
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 0x14005bf56
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14005bf42
cmp eax, 0xffffffff
je 0x14005bf53
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092400
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 0x14005bef1
mov eax, dword [rsp + 0x2c]
jmp 0x14005bf22
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14005bf24

Function at 0x14005c440
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14005c340
test rax, rax
jne 0x14005c47f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14005c49b
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140092400
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400795d0
test al, al
je 0x14005c4f1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1400eb7f0
lea rcx, [rsp + 0x38]
lea rdx, [0x140125062]
mov r8d, 0xc
call fcn.14001e3f0
mov rcx, rsi
call fcn.1400eb860
xor esi, esi
jmp 0x14005c47f

Function at 0x14005c960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140136040]
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 0x14005bea0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14005bea9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140092400
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14005be89
int3
mov rcx, qword [rcx + 8]
jmp 0x14005be40
Function at 0x14005ce40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140136040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14005cf92
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401101b0]
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 [0x14012add0]
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 [0x14012add0]
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 [0x14012add0]
test r14, r14
je 0x14005cf23
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14005cf13
mov ecx, 1
call fcn.14008ea10
bt eax, 0x19
jae 0x14005cf9d
not eax
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
test eax, 0x12000000
jne 0x14005cf96
call fcn.1400032c0
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.140092400
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14005cf75
call fcn.140002fd0
jmp 0x14005cf4e
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 9
jae 0x14005cfc5
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [0x1400042a0]
jmp 0x14005cf5c
call fcn.1400ff340
lea rax, [0x1400fff70]
lea rcx, [0x1400ff220]
jmp 0x14005cf5c
Function at 0x14005e2c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14005e2d0
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 0x14005e2f1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14005e311
cmp byte [r14 + 0x50], 1
je 0x14005e39c
or edi, 0x20000000
test dil, 8
jne 0x14005e3a7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14005e32f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14005e340
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14005e3ce
cmp byte [r14 + 0x18], 1
je 0x14005e3df
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14005e3ef
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 0x14005e3c4
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 0x14005e311
cmp byte [r14 + 0x68], 1
jne 0x14005e3b9
or edi, 0x40000000
jmp 0x14005e31b
or edi, 0x10000000
jmp 0x14005e31b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14005e387
lea rcx, [r14 + 0x20]
call fcn.14004fa40
mov r15, rax
jmp 0x14005e34b
mov rcx, r14
call fcn.14004fa40
mov r9, rax
jmp 0x14005e359
cmp ebx, 4
jne 0x14005e3fe
mov edx, 6
jmp 0x14005e366
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14005e410
mov edx, 7
jmp 0x14005e366
cmp ebx, 1
jne 0x14005e41f
mov edx, 4
jmp 0x14005e366
xor edx, edx
jmp 0x14005e366