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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140034e08
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034e3c
test al, 0x10
je 0x140034ed4
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140034fb0
mov dil, 1
jmp 0x140034eec
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
cmovs r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140034e8c
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140034e82
cmp ecx, 0x2f
jne 0x140034e69
cmp r9, 0xfffffffffffffffe
jne 0x140034f5b
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140034ec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140034f06
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140034fb0
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140034eec
mov rcx, qword [rsp + 0x40]
call fcn.14009e6a4
jmp 0x140034eec
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140034fb0
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14009fb90
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400d4c10
cmp byte [r14 + 0x17], 0
jns 0x140034f22
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x140034f4d
mov rcx, qword [rsp + 0x28]
call fcn.14009e6a4
test bpl, bpl
je 0x140034ead
jmp 0x140034ec1
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400281f0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140034de0
test al, al
jne 0x140034e8c
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140034fb0
jmp 0x140034ebf

Function at 0x140034fb0
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.1400605f0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140152de0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400a30e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009fb90
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14003ae60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401536c0]
mov ecx, dword [0x14014fde0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003aec0
lea rsi, [0x1401536b8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14009fb90
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401536c0]
call fcn.14009e7c0
cmp dword [0x1401536c0], 0xffffffff
jne 0x14003ae9c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400a1ce0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14009e668
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140153708]
mov ecx, dword [0x14014fde0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003af80
lea r8, [0x1401536d8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14003b080
mov qword [0x1401536b8], rsi
lea rcx, [0x1401536c0]
call fcn.14009e858
jmp 0x14003ae9c
lea rcx, [0x140153708]
call fcn.14009e7c0
cmp dword [0x140153708], 0xffffffff
jne 0x14003af51
xorps xmm0, xmm0
movups xmmword [0x1401536f8], xmm0
movups xmmword [0x1401536e8], xmm0
movups xmmword [0x1401536d8], xmm0
lea rcx, [0x1401536d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140153708]
call fcn.14009e858
jmp 0x14003af51

Function at 0x14003afd0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140153708]
mov ecx, dword [0x14014fde0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003b00b
movzx eax, word [0x1401536d8]
cmp eax, 9
jne 0x14003b053
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140153708]
call fcn.14009e7c0
cmp dword [0x140153708], 0xffffffff
jne 0x14003aff5
xorps xmm0, xmm0
movups xmmword [0x1401536f8], xmm0
movups xmmword [0x1401536e8], xmm0
movups xmmword [0x1401536d8], xmm0
lea rcx, [0x1401536d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140153708]
call fcn.14009e858
jmp 0x14003aff5
test eax, eax
je 0x14003b006
cmp eax, 6
jne 0x14003b063
mov eax, 2
jmp 0x14003b006
cmp eax, 0xc
jne 0x14003b06f
mov eax, 3
jmp 0x14003b006
mov eax, 4
jmp 0x14003b006
Function at 0x14003b9d0
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 [0x140141038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14011c230]
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, 0x97
call fcn.140076130
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140076160
test esi, esi
js 0x14003bad6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140087970
test al, al
jne 0x14003badd
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.140087cc0
lea rcx, [rsp + 0x50]
call fcn.1400761e0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009fb90
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003baab
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400fb030
jmp 0x14003ba70
Function at 0x14003bc10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14011c230]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140076130
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140076160
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14003be7c
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x14003be51
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14003bd73
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14003bdcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003be63
mov rax, r14
inc rax
cmp rax, 2
jb 0x14003bdc2
mov qword [rsi], r14
call fcn.140076150
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14003be24
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14003be36
test bl, 0xa
je 0x14003bdf3
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14003be47
lea rcx, [rsp + 0x60]
call fcn.1400761e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009fb90
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003bb00
mov dword [rsi + 0x24], eax
jmp 0x14003bdf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14003bdf3
mov rcx, rdi
call fcn.14002a700
jmp 0x14003bdf9
bt ebx, 0x15
jb 0x14003be98
or r8d, 0x20000000
jmp 0x14003bcf1
call fcn.140076150
mov rcx, qword [rsi]
call fcn.1400779a0
mov qword [rsi], 0
jmp 0x14003bdae
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400ef660
jmp 0x14003bdf9
int3
Function at 0x140044350
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14011c230]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400444cc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140153f70]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400be8bc
mov rcx, rbx
call fcn.1400be468
sub r14, rax
lea rdx, [0x14011dd6a]
mov rcx, rbx
mov r8, r14
call fcn.1400be8bc
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400a1ce0
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 0x14004442c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400be904
test eax, eax
je 0x1400444f0
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 0x140044467
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400be904
test eax, eax
je 0x1400444f0
xor eax, eax
mov byte [0x140153b65], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140128633]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400444f7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14016c008]
test eax, eax
je 0x1400444f7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140154170], al
mov byte [0x140153b64], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14009fb90
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140044469
xor eax, eax
jmp 0x1400444bf
Function at 0x1400447e0
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 [0x140141038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140044813
mov rax, qword [rsi + 8]
test rax, rax
je 0x140044910
bt ebx, 8
jae 0x14004482f
mov eax, ebx
and eax, 0x200
jne 0x140044910
cmp edi, 2
lea rax, [0x140153b70]
lea rcx, [0x140153d70]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140044910
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 0x140044910
cmp byte [0x140154170], 0
setne al
bt ebx, 8
jb 0x140044910
shr ebx, 9
and ebx, 1
or bl, al
je 0x140044910
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx r13d, byte [rsi + 0x17]
test r13b, r13b
jns 0x14004492f
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400448f9
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400b9bf8
test eax, eax
je 0x140044934
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400448d9
cmp dword [rsp + 0x2c], 0
jne 0x1400449b2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14009fb90
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 0x1400448bc
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140044942
test ecx, ecx
jne 0x1400448f9
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140044971
cmp dword [rsp + 0x2c], 2
jne 0x140044982
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140044982
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14004499b
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140044988
jmp 0x14004499e
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x140044900
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400449be
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400ecd40
jmp 0x140044910
Function at 0x140046500
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
js 0x140046532
and eax, 0x7f
jmp 0x140046539
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rax
test rax, rax
js 0x1400465fa
test r8, r8
jne 0x14004655a
test rax, rax
jne 0x140046626
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14006e270
cmp byte [rsi + 0x17], 0
jns 0x14004657d
mov rsi, qword [rsp + 0x80]
movaps xmm0, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14006e270
cmp byte [rdi + 0x17], 0
jns 0x1400465a2
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1400465c1
mov rcx, qword [rsp + 0x58]
call fcn.14009e6a4
cmp byte [rsp + 0x97], 0
jns 0x1400465d8
mov rcx, qword [rsp + 0x80]
call fcn.14009e6a4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009fb90
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1400d5940
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1400d5940
int3
Function at 0x1400466e0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.14006e270
cmp byte [rdi + 0x17], 0
jns 0x140046727
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x140046748
mov rcx, qword [rsp + 0x68]
call fcn.14009e6a4
test rsi, rsi
je 0x1400467ef
test edi, edi
je 0x1400467ef
mov ecx, edi
add rcx, rcx
call fcn.14009e6dc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.14006e270
cmp byte [r14 + 0x17], 0
jns 0x14004678b
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x1400467ab
mov rcx, qword [rsp + 0x68]
call fcn.14009e6a4
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14004681d
mov rcx, rbx
call fcn.1400be468
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.14006e2a0
cmp byte [rsi + 0x17], 0
js 0x140046813
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14009e6e4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009fb90
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14009e6a4
jmp 0x1400467d6
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400d5940
int3
Function at 0x140047130
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140047158
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140047193
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400471b3
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14009fb90
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.140047290
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14009fb90
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140078f00
test al, al
jne 0x1400471c5
xor esi, esi
jmp 0x140047196
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.1400f2390
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400d4ed0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140047215
and r8d, 0x7f
jmp 0x14004721c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400607e0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.14006e2a0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14004724c
and r8d, 0x7f
jmp 0x140047256
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400d4ed0
cmp byte [rsp + 0x57], 0
jns 0x140047272
mov rcx, qword [rsp + 0x40]
call fcn.14009e6a4
lea rcx, [rsp + 0x58]
call fcn.1400f2410
jmp 0x1400471c1

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

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1400472b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400472f5
mov dil, 1
test al, 0x10
je 0x1400472e5
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14009fb90
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140078f00
test al, al
je 0x140047303
jmp 0x14004735c
mov ecx, 2
call fcn.140078f00
test al, al
jne 0x140047307
xor edi, edi
jmp 0x1400472c9
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.1400f2390
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400d4ed0
mov rcx, rax
mov rdx, rsi
call fcn.1400eee20
mov rcx, rdi
call fcn.1400f2410
jmp 0x140047303
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.14003c620
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400d4ed0
mov rcx, rax
mov rdx, rsi
call fcn.1400eee20
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400d4ed0
mov rcx, rdi
call fcn.14003cc70
jmp 0x140047303
Function at 0x14004bde0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14011c230]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004becc
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1400a1ce0
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 0x14004bed3
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.14004bf30
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004bed3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004bedc
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.14009fb90
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret