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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x14010db00]
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.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2dd
call fcn.14003ae50
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003f6a0
call fcn.140068090
test al, al
jne 0x1400585f1
cmp byte [rsi + 0x17], 0
jns 0x1400585b3
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.14003f720
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x14005860c
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.1400ece90
test eax, eax
jmp 0x1400585bf

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14010db00]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x30c
call fcn.14003ae50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14003f6a0
cmp byte [rdi + 0x17], 0
jns 0x140058692
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14003f720
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140079050
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400586e0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400ae900
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14005877f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400973f4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14003af80
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14005fd00
mov rcx, rsi
mov rdx, r14
call fcn.14003b1f0
mov rcx, r14
call fcn.14003b180
mov rcx, rbx
call fcn.14003b180
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140058ba0
Capabilities:
Check if file exists
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [0x14010db00]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3cd
call fcn.14003ae50
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14003f6a0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140058c23
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140058c6d
mov bl, 1
test al, 0x10
je 0x140058d1a
lea rcx, [rsp + 0x40]
call fcn.14003f720
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.14005f030
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x140058ca3
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x140058d8f
je 0x140058cb7
test rcx, rcx
je 0x140058da2
movsx rdx, byte [rsp + 0x37]
test rdx, rdx
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x140058d8f
je 0x140058ce0
test r14, r14
je 0x140058da2
cmp rdx, rax
je 0x140058d37
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140058ba0
test al, al
je 0x140058d88
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x140058d63
lea rcx, [rsp + 0x20]
call fcn.14003b180
jmp 0x140058c3b
test rsi, rsi
je 0x140058d25
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140058c3b
test rax, rax
je 0x140058d52
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x140058ce5
inc rdx
cmp rax, rdx
jne 0x140058d3e
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x140058d7e
jmp 0x140058d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x140058db5
test rsi, rsi
je 0x140058d80
mov ecx, ebp
call fcn.140067eb0
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140058d0b
lea rcx, [0x140110299]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_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.1400bde54
lea rcx, [0x140110299]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400bde54
mov rcx, rdi
call fcn.140058620
test al, al
jne 0x140058d0b
jmp 0x140058d72
Function at 0x140058dd0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14010db00]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401160c7]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x52d
call fcn.14003ae50
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14003f6a0
cmp byte [rdi + 0x17], 0
jns 0x140058e42
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14003f720
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140058e80
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400ae900
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.140059110
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14010db00]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.1400755b0
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x140058f18
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140058f5a
lea rcx, [rsp + 0x30]
call fcn.14003b180
lea rcx, [rsp + 0x298]
call fcn.140059260
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140079050
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400ae900
mov rcx, r15
mov rdx, r14
call fcn.1400592d0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140058fd3
test sil, 1
jne 0x140058fbb
mov rcx, r14
call fcn.140077b90
test al, al
je 0x140058fb7
mov rcx, r14
call fcn.140077b90
xor ebp, ebp
test al, al
je 0x140058fdf
jmp 0x140059021
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x140058fca
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.140077b90
test al, al
jne 0x140059019
test sil, 2
jne 0x14005906f
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x140058ff8
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
jne 0x140059021
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
jmp 0x140059021
xor ebp, ebp
test sil, 1
jne 0x140059096
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.14004ba00
mov rcx, r15
mov rdx, r14
call fcn.1400755b0
mov rcx, rbx
mov rdx, r14
call fcn.14003b1f0
mov rcx, r14
call fcn.14003b180
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x14005905e
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x140058f1d
jmp 0x140058f71
call fcn.140030d60
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
mov rcx, rbx
call fcn.1400e36b0
xor ebp, ebp
test al, al
je 0x140059001
jmp 0x140059021
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
call fcn.140058e80
mov ebp, eax
test eax, eax
jne 0x140059021
cmp byte [rsp + 0x47], 0
js 0x1400590bc
lea rcx, [rsp + 0x30]
jmp 0x1400590c1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140059021
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140059021
Function at 0x1400595f0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [0x14010db00]
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.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x4f
call fcn.14003ae50
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14003f6a0
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140059678
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x1400596c3
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.14003f720
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140079050
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ebp, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
lea r8, [rsp + 0xa0]
mov byte [r8], 0
mov edx, ebp
mov rcx, rdi
call fcn.140059790
mov r9, qword [rdi]
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14005976e
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xa0]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
xor ebx, ebx
test eax, eax
je 0x140059770
mov r14, qword [rsp + 0xa0]
test r14, r14
je 0x140059770
mov ecx, 0x38
call fcn.140077cc4
mov rbx, rax
movzx r8d, word [r14]
movzx r9d, word [r14 + 2]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400b04f0
jmp 0x140059770
xor ebx, ebx
mov qword [rsi], rbx
lea rcx, [rsp + 0xa0]
mov qword [rcx], rdi
call fcn.140025f1e
jmp 0x140059690
Function at 0x140060510
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.140065fe0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140060627
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14006064a
lea rdx, [0x140116a52]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140060643
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x14012a4d0]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.140061e20
mov rcx, rsi
mov rdx, r14
call fcn.1400b1390
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140060608
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140060627
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.140031630
mov rcx, qword [rsi]
call fcn.140077d00
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079050
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x1400605bb
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400605b8
Function at 0x140062e71
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ae900
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140062eec
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.140062dee
test al, al
jne 0x140062f19
add rbx, 8
cmp rbx, 0x18
jne 0x140062eb9
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x140062ef8

Function at 0x14006321a
Capabilities:
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1400ae900
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14010db00]
movaps xmmword [rdi], xmm0
mov rcx, rsi
call fcn.1400973f4
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.14002fd1e
lea rdx, str.usp10.dll
mov r8d, 0xa
mov rcx, rdi
call fcn.14002fefe
cmp byte [rax + 0x17], 0
jns 0x1400632af
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [rsp + 0x37], 0
jns 0x1400632cb
mov rcx, qword [rsp + 0x20]
call fcn.140077d00
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret

Function at 0x14006542f
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140065336
test rax, rax
jne 0x14006546e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14006548a
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140039200
test al, al
je 0x1400654e0
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, 0x103
mov r9d, 2
call fcn.1400e4c40
lea rcx, [rsp + 0x38]
lea rdx, [0x140118fb2]
mov r8d, 0xc
call fcn.14002217e
mov rcx, rsi
call fcn.1400e4cb0
xor esi, esi
jmp 0x14006546e
Function at 0x140065a00
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140075c33
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140137040]
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 0x140075c93
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140075c9c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140079050
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140075c7c
int3
Function at 0x140067d80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14010db00]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x9c
call fcn.14003ae50
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14003f6a0
test esi, esi
js 0x140067e86
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140048ec0
test al, al
jne 0x140067e8d
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140049220
lea rcx, [rsp + 0x50]
call fcn.14003f720
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140067e5b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400f7b60
jmp 0x140067e20
Function at 0x14006a450
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp r9, 0x30
ja 0x14006a504
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
test r9, r9
jne 0x14006a508
xor eax, eax
lea rcx, [0x140121d90]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 0x30
jne 0x14006a49a
lea r8, [rsi + 0xf8]
mov qword [rsp + 0x20], 0x20
lea rdi, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r9, rdi
call fcn.14006a140
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0x68
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14006a4ee
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp r9, rax
je 0x14006a491
jmp 0x14006a50a

Function at 0x14006a520
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp r8, 0x30
ja 0x14006a659
mov rbx, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14010db00]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r13, [rsp + 0x40]
lea r12, [rcx + 0xf8]
lea r14, [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 + 0x30]
mov rcx, r14
mov r8, rsi
call qword [0x14012a4d0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r14
mov rdx, r13
mov r8, rsi
call qword [0x14012a4d0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, r14
mov rdx, rdi
mov r8, rsi
call qword [0x14012a4d0]
test rbx, rbx
je 0x14006a60c
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp rbx, rax
jne 0x14006a5fc
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x30]
mov rcx, rsi
xor edx, edx
mov r8, r12
call fcn.14006a140
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [r14], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079050
mov eax, esi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x14006a63a
Function at 0x14006ca46
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14010db00]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14006cbc2
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14014a3f0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400980ec
mov rcx, rbx
call fcn.1400973f4
sub r14, rax
lea rdx, [0x140113b5a]
mov rcx, rbx
mov r8, r14
call fcn.1400980ec
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400ae900
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 0x14006cb22
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140098134
test eax, eax
je 0x14006cbe6
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 0x14006cb5d
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140098134
test eax, eax
je 0x14006cbe6
xor eax, eax
mov byte [0x140149fe1], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401190f1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006cbed
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14012a4d0]
test eax, eax
je 0x14006cbed
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14014a5f0], al
mov byte [0x140149fe0], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140079050
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x14006cb5f
xor eax, eax
jmp 0x14006cbb5