joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ef820
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402955d0]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ef880
lea rsi, [0x1402955c8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140190b30
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402955d0]
call fcn.14018f790
cmp dword [0x1402955d0], 0xffffffff
jne 0x1400ef85c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140192c80
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.14018f638
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140295618]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ef940
lea r8, [0x1402955e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400efa40
mov qword [0x1402955c8], rsi
lea rcx, [0x1402955d0]
call fcn.14018f828
jmp 0x1400ef85c
lea rcx, [0x140295618]
call fcn.14018f790
cmp dword [0x140295618], 0xffffffff
jne 0x1400ef911
xorps xmm0, xmm0
movups xmmword [0x140295608], xmm0
movups xmmword [0x1402955f8], xmm0
movups xmmword [0x1402955e8], xmm0
lea rcx, [0x1402955e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140295618]
call fcn.14018f828
jmp 0x1400ef911

Function at 0x1400ef990
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140295618]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ef9cb
movzx eax, word [0x1402955e8]
cmp eax, 9
jne 0x1400efa13
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140295618]
call fcn.14018f790
cmp dword [0x140295618], 0xffffffff
jne 0x1400ef9b5
xorps xmm0, xmm0
movups xmmword [0x140295608], xmm0
movups xmmword [0x1402955f8], xmm0
movups xmmword [0x1402955e8], xmm0
lea rcx, [0x1402955e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140295618]
call fcn.14018f828
jmp 0x1400ef9b5
test eax, eax
je 0x1400ef9c6
cmp eax, 6
jne 0x1400efa23
mov eax, 2
jmp 0x1400ef9c6
cmp eax, 0xc
jne 0x1400efa2f
mov eax, 3
jmp 0x1400ef9c6
mov eax, 4
jmp 0x1400ef9c6
Function at 0x1400f08a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400f0995
cmp qword [rsi], 0
jne 0x1400f0995
cmp dword [rsi + 0x14], 0
jne 0x1400f0995
cmp qword [rsi + 8], 0
jne 0x1400f0995
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400f0914
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400f097c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400f090c
mov qword [rsi], r14
call fcn.1401593f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400f094e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400f0964
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400f0946
mov qword [rsi + 8], r14
call fcn.1401593f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401593f0
mov rcx, qword [rsi + 8]
call fcn.140146f60
mov qword [rsi + 8], 0
jmp 0x1400f0933
call fcn.1401593f0
mov rcx, qword [rsi]
call fcn.140146f60
mov qword [rsi], 0
jmp 0x1400f08fa
mov rcx, rsi
call fcn.1401feab0
mov rax, qword [rsi]
jmp 0x1400f08da
Function at 0x1400f2d80
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x14024afc0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1401593d0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14014edc0
mov rcx, rsi
call fcn.14014c150
test al, al
je 0x1400f2eef
mov rcx, rsi
call fcn.1400d1090
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x1400f2e6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400f2f18
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400f2e61
mov qword [rsi + 0x40], rdi
call fcn.1401593f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400f2f33
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
movabs rbx, 0xfffffffc00000000
mov rax, rcx
and rax, rbx
cmp rax, qword [0x14027cdc8]
je 0x1400f2f37
and rbx, rdi
cmp rbx, qword [0x14027cdc8]
je 0x1400f2f41
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1400f2f33
lea rax, fcn.1401d70a0
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.140109820
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.14014f000
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140190b30
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401593f0
mov rcx, qword [rsi + 0x40]
call fcn.140146f60
mov qword [rsi + 0x40], 0
jmp 0x1400f2e4c
xor edi, edi
jmp 0x1400f2eef
call fcn.140133490
jmp 0x1400f2eb8
mov rcx, rdi
call fcn.140133350
jmp 0x1400f2ec4
Function at 0x1400f89f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400f8a51
test r12, r12
je 0x1400f8b68
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140190b30
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400f8ab6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x1400f8a9f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1401925d0
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x1400f8a1e
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x1400f8b94
lea rcx, [r15*8]
call fcn.14018f638
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x1400f8b33
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400f8b68
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1400f8b1b
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.1402006a0
mov r12, qword [rsi + 0x10]
jmp 0x1400f8a1e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1401d5d40
call fcn.1401ca5d0
int3
Function at 0x1400f97f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14028be4c]
cmp ecx, 0xffffffff
je 0x1400f98ca
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400f98ca
mov eax, dword [0x140296ee0]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f98d4
mov rbx, qword [0x140296ed8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400f991a
mov rax, qword [0x1402956c8]
inc rax
xor ecx, ecx
lea rdx, [0x1402956d0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400f9927
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140296ed0]
inc ecx
mov dword [0x140296ed0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1402956c8], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400f993c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f9940
jmp 0x1400f981a
lea rcx, [0x140296ee0]
call fcn.14018f790
cmp dword [0x140296ee0], 0xffffffff
jne 0x1400f983f
mov ecx, 8
call fcn.14018f638
mov rbx, rax
mov rcx, rax
call fcn.140147e60
mov qword [0x140296ed8], rbx
lea rcx, [0x140296ee0]
call fcn.14018f828
jmp 0x1400f983f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400f9857
inc rcx
cmp rcx, 0x100
jne 0x1400f986a
jmp 0x1400f98b0
int3

Function at 0x1400f9940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140190ad0
sub rsp, rax
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14028be4c]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400f99f4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400f9a57
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140192c80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14018f6ac
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1401925d0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140190b30
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1401139d0
test al, al
je 0x1400f9a5a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400f9a32
mov eax, 0xffffffff
lock cmpxchg dword [0x14028be4c], ecx
je 0x1400f9978
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14028be4c]
mov dword [rsp + 0x2c], ecx
jmp 0x1400f9978
lea rcx, [rsp + 0x2c]
call fcn.1401139d0
test al, al
je 0x1400f9a5d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400f9a5d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400f9a0b
int3
int3
int3
Function at 0x1400f9a70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14028be4c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400f9aae
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400f9aa7
call fcn.1400f9940
jmp 0x1400f9a8e

Function at 0x1400fd870
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14024afc0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400fd9ec
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1402974c0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1401b2db0
mov rcx, rbx
call fcn.1401b0dc4
sub r14, rax
lea rdx, [0x140253828]
mov rcx, rbx
mov r8, r14
call fcn.1401b2db0
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140192c80
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 0x1400fd94c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401b2df8
test eax, eax
je 0x1400fda10
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 0x1400fd987
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401b2df8
test eax, eax
je 0x1400fda10
xor eax, eax
mov byte [0x1402970b1], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140253442]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402600e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400fda17
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1402a8008]
test eax, eax
je 0x1400fda17
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1402976c0], al
mov byte [0x1402970b0], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140190b30
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400fd989
xor eax, eax
jmp 0x1400fd9df
Function at 0x1400fdd90
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 [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400fddc3
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400fdebc
bt ebx, 8
jae 0x1400fdddf
mov eax, ebx
and eax, 0x200
jne 0x1400fdebc
cmp edi, 2
lea rax, [0x1402970c0]
lea rcx, [0x1402972c0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400fdebc
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 0x1400fdebc
cmp byte [0x1402976c0], 0
setne al
bt ebx, 8
jb 0x1400fdebc
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400fdebc
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx r13d, byte [rsi + 0x17]
test r13b, r13b
jns 0x1400fdedb
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 0x1400fdea9
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1401ac2e8
test eax, eax
je 0x1400fdf06
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400fde89
cmp dword [rsp + 0x2c], 0
jne 0x1400fdee0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140190b30
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 0x1400fde6c
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400fdeec
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.1401ecb60
jmp 0x1400fdebc
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1400fdf14
test ecx, ecx
jne 0x1400fdea9
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400fdf43
cmp dword [rsp + 0x2c], 2
jne 0x1400fdf54
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1400fdf54
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x1400fdf6d
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400fdf5a
jmp 0x1400fdf70
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400fdeb0
Function at 0x1400febe0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [0x14027c038]
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 0x1400fec12
and eax, 0x7f
jmp 0x1400fec19
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rax
test rax, rax
js 0x1400fecda
test r8, r8
jne 0x1400fec3a
test rax, rax
jne 0x1400fed06
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140150c10
cmp byte [rsi + 0x17], 0
jns 0x1400fec5d
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.140150c10
cmp byte [rdi + 0x17], 0
jns 0x1400fec82
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 0x1400feca1
mov rcx, qword [rsp + 0x58]
call fcn.14018f674
cmp byte [rsp + 0x97], 0
jns 0x1400fecb8
mov rcx, qword [rsp + 0x80]
call fcn.14018f674
test esi, esi
setne bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140190b30
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.1401d5d40
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.1401d5d40
int3
Function at 0x1400fedc0
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 [0x14027c038]
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.140150c10
cmp byte [rdi + 0x17], 0
jns 0x1400fee07
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 0x1400fee28
mov rcx, qword [rsp + 0x68]
call fcn.14018f674
test rsi, rsi
je 0x1400feecf
test edi, edi
je 0x1400feecf
mov ecx, edi
add rcx, rcx
call fcn.14018f6ac
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.140150c10
cmp byte [r14 + 0x17], 0
jns 0x1400fee6b
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 0x1400fee8b
mov rcx, qword [rsp + 0x68]
call fcn.14018f674
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400feefd
mov rcx, rbx
call fcn.1401b0dc4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.140151070
cmp byte [rsi + 0x17], 0
js 0x1400feef3
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14018f6b4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140190b30
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14018f674
jmp 0x1400feeb6
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.1401d5d40
int3
Function at 0x1400ff830
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ff858
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400ff893
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400ff8b3
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140190b30
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1400ff990
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140190b30
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140158c90
test al, al
jne 0x1400ff8c5
xor esi, esi
jmp 0x1400ff896
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.1401f5220
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, reloc.WS2_32.dll_recv
call fcn.1401ca740
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400ff915
and r8d, 0x7f
jmp 0x1400ff91c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.14013ad10
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140151070
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400ff94c
and r8d, 0x7f
jmp 0x1400ff956
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401ca740
cmp byte [rsp + 0x57], 0
jns 0x1400ff972
mov rcx, qword [rsp + 0x40]
call fcn.14018f674
lea rcx, [rsp + 0x58]
call fcn.1401f52a0
jmp 0x1400ff8c1
Function at 0x1400ff990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ff9b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ff9e5
mov dil, 1
test al, 0x10
je 0x1400ff9f7
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140190b30
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140158c90
test al, al
jne 0x1400ffa66
xor edi, edi
jmp 0x1400ff9c9
mov ecx, 2
call fcn.140158c90
test al, al
je 0x1400ff9f3
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.1400dada0
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, shutdown
call fcn.1401ca740
mov rcx, rax
mov rdx, rsi
call fcn.1401f6040
lea rdx, str.:_not_a_directory
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, rax
call fcn.1401ca740
mov rcx, rdi
call fcn.1400db3f0
jmp 0x1400ff9f3
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.1401f5220
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, shutdown
call fcn.1401ca740
mov rcx, rax
mov rdx, rsi
call fcn.1401f6040
mov rcx, rdi
call fcn.1401f52a0
jmp 0x1400ff9f3