joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008a6d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x1800f9010]
mov rdi, rax
test rax, rax
je 0x18008a74d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x18008a778
cmp ebx, esi
je 0x18008a778
cmp ebx, 0x8000
ja 0x18008a778
cmp ebx, esi
jb 0x18008a773
mov edx, ebx
mov rcx, rdi
call qword [0x1800f9010]
mov rdi, rax
test rax, rax
jne 0x18008a710
mov rcx, rbp
call qword [fcn.1800aee8e]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x18008a758
mov rcx, rdi
jmp 0x18008a750
Function at 0x14000d840
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14000d960
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14000d8a0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14000d8a0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14000d8a0

Function at 0x1400240e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140024127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140024141
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002411f
mov qword [rsi], rdi
call fcn.14004a5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140024157
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004a5a0
mov rcx, qword [rsi]
call fcn.14004a5b0
mov qword [rsi], 0
jmp 0x14002410d
int3
Function at 0x1400244f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x140024536
mov r14, r12
test r14, r14
je 0x140024638
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140024598
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 0x140024584
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400920d0
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x140024512
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14002465e
lea rcx, [r13*8]
call fcn.1400622a0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x1400245fe
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140024638
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1400245e6
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x14002461e
add r12, 0xfffffffffffffff8
jne 0x140024611
jmp 0x14002464b
test r15, r15
je 0x140024512
mov rcx, r15
call fcn.1400622dc
mov r14, qword [rsi + 0x10]
jmp 0x140024512
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140093730
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140093730
call fcn.1400932d0
int3
Function at 0x140025d90
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140025e70
mov eax, dword [rsi]
mov dword [0x1400ee120], eax
test al, 1
jne 0x140025db1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1400fd628]
test rcx, rcx
je 0x140025ddf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400fd628], 0
cmp qword [0x1400fd630], 0
jne 0x140025ddf
and byte [0x1400ee120], 0xfe
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140025df1
mov qword [0x1400fd628], rax
jmp 0x140025da9
mov rcx, qword [0x1400fd630]
test rcx, rcx
jne 0x140025e1f
mov ecx, 0x18
call fcn.1400622a0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400fd630], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140025e54
call fcn.140023c80
cmp dword [rsi + 0x14], 0
jne 0x140025e49
mov rcx, qword [0x1400fd630]
cmp byte [rcx + 0x17], 0
jns 0x140025e43
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400ac990
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140093730
int3
Function at 0x140028750
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400fd698]
test rdi, rdi
jne 0x140028803
mov ecx, 0x50
call fcn.1400622a0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400622a0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140028825
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400fd698], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140028838
mov rcx, rax
call fcn.14007bb08
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140028850
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400634f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140093730
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140093730
int3
Function at 0x140028850
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400ec040]
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.14002dd30
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400289dc
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400d4268]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140028a33
lea rdx, [0x1400d42b8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028a22
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400e0e00]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x140028972
test r12d, r12d
js 0x140028a29
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400622a0
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x1400289fc
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a240
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002894b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400284c0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140028999
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x1400289dc
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x1400289d4
add rdi, 0xffffffffffffffe8
jmp 0x1400289c7
mov rcx, qword [rdi]
call fcn.1400622dc
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x1400289d4
test rdi, rdi
je 0x140028a0f
cmp byte [rdi + 0x17], 0
js 0x1400289b3
jmp 0x1400289bb
mov rcx, rsi
call fcn.1400622dc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400634f0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140093730
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140093730
xor ebx, ebx
jmp 0x1400288ff
lea rcx, [rsp + 0x20]
call fcn.1400936a0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400288fc
Function at 0x14002aef0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400fd6c8]
mov ecx, dword [0x1400fa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002af50
lea rsi, [0x1400fd6c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400634f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400fd6c8]
call fcn.14006232c
cmp dword [0x1400fd6c8], 0xffffffff
jne 0x14002af2c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140092770
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.1400622a0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fd710]
mov ecx, dword [0x1400fa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002b010
lea r8, [0x1400fd6e0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002b110
mov qword [0x1400fd6c0], rsi
lea rcx, [0x1400fd6c8]
call fcn.1400623e0
jmp 0x14002af2c
lea rcx, [0x1400fd710]
call fcn.14006232c
cmp dword [0x1400fd710], 0xffffffff
jne 0x14002afe1
xorps xmm0, xmm0
movups xmmword [0x1400fd700], xmm0
movups xmmword [0x1400fd6f0], xmm0
movups xmmword [0x1400fd6e0], xmm0
lea rcx, [0x1400fd6e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fd710]
call fcn.1400623e0
jmp 0x14002afe1

Function at 0x14002b060
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fd710]
mov ecx, dword [0x1400fa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002b09b
movzx eax, word [0x1400fd6e0]
cmp eax, 9
jne 0x14002b0e3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400fd710]
call fcn.14006232c
cmp dword [0x1400fd710], 0xffffffff
jne 0x14002b085
xorps xmm0, xmm0
movups xmmword [0x1400fd700], xmm0
movups xmmword [0x1400fd6f0], xmm0
movups xmmword [0x1400fd6e0], xmm0
lea rcx, [0x1400fd6e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fd710]
call fcn.1400623e0
jmp 0x14002b085
test eax, eax
je 0x14002b096
cmp eax, 6
jne 0x14002b0f3
mov eax, 2
jmp 0x14002b096
cmp eax, 0xc
jne 0x14002b0ff
mov eax, 3
jmp 0x14002b096
mov eax, 4
jmp 0x14002b096
Function at 0x14002c5e0
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 0x14002c6d5
cmp qword [rsi], 0
jne 0x14002c6d5
cmp dword [rsi + 0x14], 0
jne 0x14002c6d5
cmp qword [rsi + 8], 0
jne 0x14002c6d5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002c654
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c6bc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c64c
mov qword [rsi], r14
call fcn.14004a5a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002c68e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002c6a4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c686
mov qword [rsi + 8], r14
call fcn.14004a5a0
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.14004a5a0
mov rcx, qword [rsi + 8]
call fcn.14004a5b0
mov qword [rsi + 8], 0
jmp 0x14002c673
call fcn.14004a5a0
mov rcx, qword [rsi]
call fcn.14004a5b0
mov qword [rsi], 0
jmp 0x14002c63a
mov rcx, rsi
call fcn.140045310
lea rcx, [rsi + 8]
call fcn.140045310
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x14002c61a

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400cfa40]
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.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20c
call fcn.14004a580
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004b420
cmp byte [rdi + 0x17], 0
jns 0x14002c952
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14004b4a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400634f0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002c990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400cfa40]
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, 0x234
call fcn.14004a580
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004b420
cmp byte [rdi + 0x17], 0
jns 0x14002ca02
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.14004b4a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400634f0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002ca50
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140092770
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002caef
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14007bb08
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400479b0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140027e30
mov rcx, rsi
mov rdx, r14
call fcn.140027220
mov rcx, r14
call fcn.140047ae0
mov rcx, rbx
call fcn.140047ae0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400634f0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002cb20
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140092770
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002cbb5
cmp word [rsp + 0x70], 0
je 0x14002cbb5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14007bb08
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400479b0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400634f0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400cfa40]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140047990
mov rcx, rdi
call fcn.14002ca50
test al, al
jne 0x14002cc07
lea rax, [0x1400db526]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400479b0
jmp 0x14002cc14
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400271a0
lea rcx, [rsp + 0x40]
call fcn.140047ae0
jmp 0x14002cb97
Function at 0x140030220
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140063490
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140092770
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030363
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140030367
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140023c80
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400634f0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140030344
cmp eax, 2
jne 0x1400303af
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140092770
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400303b6
lea rdx, [rsp + 0x40]
jmp 0x14003033a
mov edi, 0x3f4
jmp 0x140030344
mov edi, 0xea
jmp 0x140030344
Function at 0x140033140
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1400ec040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14004cfe0
cmp byte [rdi + 0x17], 0
jns 0x140033181
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1400331a2
mov rcx, qword [rsp + 0x58]
call fcn.1400622dc
test rsi, rsi
je 0x140033249
test edi, edi
je 0x140033249
mov ecx, edi
add rcx, rcx
call fcn.14006231c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.14004cfe0
cmp byte [r14 + 0x17], 0
jns 0x1400331e5
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140033205
mov rcx, qword [rsp + 0x58]
call fcn.1400622dc
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140033267
mov rcx, rbx
call fcn.14007bb08
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14004d010
cmp byte [rsi + 0x17], 0
js 0x14003327a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140062324
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400634f0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400cfb03]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140093730
mov rcx, qword [rsi]
call fcn.1400622dc
jmp 0x140033230

Function at 0x140033650
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400336c7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400ee630], rax
jne 0x1400336ca
mov rsi, rcx
call fcn.140036e50
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.1400336e0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140055ee0
mov ecx, dword [0x1400ff570]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400fa718]
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