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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401667f0]
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, 0x211
call fcn.140081060
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400872d0
cmp byte [rdi + 0x17], 0
jns 0x1400387d2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140087350
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1401667f0]
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.PathHasAccess
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x21a
call fcn.140081060
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400872d0
cmp byte [rdi + 0x17], 0
jns 0x140038892
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038925
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x140038908
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rdi, 0xffffffffffffffff
je 0x140038951
call fcn.140081080
mov r14, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
setne bl
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140038925
call fcn.140081080
mov rcx, r14
call fcn.14007c410
lea rcx, [rsp + 0x60]
call fcn.140087350
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140038900
Function at 0x140038960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1401667f0]
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, 0x239
call fcn.140081060
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400872d0
cmp byte [rdi + 0x17], 0
jns 0x1400389d2
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.140087350
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b4140
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140038a20
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e6840
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140038abf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400cfb08
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400810f0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14003f0d0
mov rcx, rsi
mov rdx, r14
call fcn.14003dce0
mov rcx, r14
call fcn.140081240
mov rcx, rbx
call fcn.140081240
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140038af0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6840
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 0x140038b85
cmp word [rsp + 0x70], 0
je 0x140038b85
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400cfb08
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400810f0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400b4140
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 [0x1401667f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140081090
mov rcx, rdi
call fcn.140038a20
test al, al
jne 0x140038bd7
lea rax, [0x14016c534]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400810f0
jmp 0x140038be4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003dc60
lea rcx, [rsp + 0x40]
call fcn.140081240
jmp 0x140038b67
Function at 0x140038c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x1401a38e8], 0
jne 0x140038ea1
mov rsi, rcx
movaps xmm6, xmmword [0x1401667f0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetSecureSystemTemp
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r9d, 0x2bf
call fcn.140081060
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400872d0
test rsi, rsi
je 0x140038ea5
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140081090
mov ecx, 0x65
mov rdx, rdi
call fcn.14003abe0
test al, al
je 0x140038d6f
lea rax, str.SystemTemp
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov qword [r8 + 8], 0xa
lea rbx, [rsp + 0xb0]
mov rcx, rdi
mov rdx, rbx
call fcn.14003ef40
mov rcx, rdi
mov rdx, rbx
call fcn.14003dce0
mov rcx, rbx
call fcn.140081240
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x211
call fcn.140081060
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400872d0
cmp byte [rsp + 0x47], 0
jns 0x140038d53
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140087350
cmp edi, 0xffffffff
jne 0x140038e36
lea rcx, [rsp + 0x30]
call fcn.140081240
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.140081090
mov ecx, 0x67
mov rdx, rdi
call fcn.14003abe0
test al, al
je 0x140038e28
lea rbx, [rsp + 0xb0]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x90]
mov rcx, r14
mov r9d, 0x211
call fcn.140081060
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400872d0
cmp byte [rsp + 0x47], 0
jns 0x140038df7
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140087350
cmp edi, 0xffffffff
je 0x140038e28
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140038810
test al, al
jne 0x140038e53
lea rcx, [rsp + 0x30]
call fcn.140081240
xor esi, esi
jmp 0x140038e6e
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140038810
test al, al
je 0x140038d6f
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.14003dc80
mov rcx, rdi
call fcn.140081240
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.140087350
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400b4140
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor esi, esi
jmp 0x140038e78
int3
Function at 0x140039940
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, 0x578
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x570], rax
lea r14, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400e6840
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140039ec0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401667f0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14003a100
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x1400399da
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140039aae
lea r14, [rsp + 0x58]
lea r15, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400e6840
mov rcx, r15
mov rdx, r14
call fcn.14003a0b0
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x140039aeb
mov rcx, r14
call fcn.140039e50
test al, al
jne 0x140039b40
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140039a48
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x140039b39
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.1400248b0
mov rcx, r15
mov rdx, r14
call fcn.14003a100
mov rcx, rdi
mov rdx, r14
call fcn.14003dce0
mov rcx, r14
call fcn.140081240
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x140039aa2
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x140039a01
lea rcx, [rsp + 0x40]
call fcn.140081240
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14003a040
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x37], 0
je 0x140039b13
cmp byte [rsp + 0x57], 0
js 0x140039b00
lea rcx, [rsp + 0x40]
jmp 0x140039b05
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140039a29
lea rcx, [rsp + 0x58]
call fcn.140039e50
test al, al
jne 0x140039b27
mov edx, dword [rsp + 0x58]
jmp 0x140039af2
lea rcx, [rsp + 0x58]
call fcn.140039e50
test al, al
je 0x140039a39
xor ebp, ebp
jmp 0x140039a65
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140039a65
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.140039940
mov ebp, eax
test eax, eax
jne 0x140039a65
cmp byte [rsp + 0x57], 0
jns 0x140039b7d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140039a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140039a65
Function at 0x14003c560
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.14003c720
mov eax, dword [rsi]
mov dword [0x140194144], eax
mov bl, 1
test al, 1
jne 0x14003c5a7
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1401a3928]
test rcx, rcx
je 0x14003c5d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401a3928], 0
cmp qword [0x1401a3930], 0
jne 0x14003c5d5
and byte [0x140194144], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14003c5fe
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x14003c5ec
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x14003c677
mov qword [0x1401a3928], rax
jmp 0x14003c58e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x14003c60c
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14003c6c6
lea rdi, [rsi + 8]
mov rcx, qword [0x1401a3930]
test rcx, rcx
jne 0x14003c647
mov ecx, 0x18
call fcn.1400b2e18
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401a3930], rax
mov rdx, rdi
call fcn.1400790f0
cmp dword [rsi + 0x24], 0
jne 0x14003c66b
mov rcx, qword [0x1401a3930]
cmp byte [rcx + 0x17], 0
jns 0x14003c665
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140103f80
mov ebx, eax
jmp 0x14003c58e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.140081060
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.14010be20
mov rcx, r14
call fcn.14010c030
mov rax, qword [rsi + 0x28]
jmp 0x14003c5f5
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.140081060
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.14010be20
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.140103f50
mov rcx, rbx
call fcn.14010c030
jmp 0x14003c615
Function at 0x14003fa40
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401a3998]
test rdi, rdi
jne 0x14003faf3
mov ecx, 0x50
call fcn.1400b2e18
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400b2e18
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14003fb15
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 [0x1401a3998], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14003fb28
mov rcx, rax
call fcn.1400cfb08
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14003fb40
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401668da]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.1400e9b50
lea rcx, [0x1401668da]
lea rdx, str....._third_partylibc_srcinclude_string_view:268:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.1400e9b50
int3
Function at 0x140042c70
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6840
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140042cfb
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140042e60
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140042ce8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400cb0a4
test eax, eax
je 0x140042df5
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140042d52
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140042e6e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140042d3f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400cb0a4
test eax, eax
je 0x140042e27
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140042da5
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140042e7c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140042d96
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400cb0a4
test eax, eax
je 0x140042dc6
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140042dd7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140042da7
jb 0x140042e8a
test al, al
jns 0x140042deb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x140042da5
jmp 0x140042da7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140042e06
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140042da7
jb 0x140042e8a
mov rcx, rsi
test al, al
jns 0x140042e19
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140042cfb
jmp 0x140042da7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140042e38
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x140042da7
jb 0x140042e8a
mov rcx, rsi
test al, al
jns 0x140042e4f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140042d52
jmp 0x140042da7
dec r14
jne 0x140042ccf
jmp 0x140042cfb
dec r14
jne 0x140042d26
jmp 0x140042d52
dec r14
jne 0x140042d7d
jmp 0x140042da5
lea rcx, [0x1401668da]
lea rdx, str....._third_partylibc_srcinclude_string:1241:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.1400e9b50
int3
Function at 0x140044640
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401a3a48]
mov ecx, dword [0x1401a0798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400446a0
lea rsi, [0x1401a3a40]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400b4140
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401a3a48]
call fcn.1400b2e9c
cmp dword [0x1401a3a48], 0xffffffff
jne 0x14004467c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400e6840
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, 0x88
call fcn.1400b2e18
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401a3a90]
mov ecx, dword [0x1401a0798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140044760
lea r8, [0x1401a3a60]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140044860
mov qword [0x1401a3a40], rsi
lea rcx, [0x1401a3a48]
call fcn.1400b2f50
jmp 0x14004467c
lea rcx, [0x1401a3a90]
call fcn.1400b2e9c
cmp dword [0x1401a3a90], 0xffffffff
jne 0x140044731
xorps xmm0, xmm0
movups xmmword [0x1401a3a80], xmm0
movups xmmword [0x1401a3a70], xmm0
movups xmmword [0x1401a3a60], xmm0
lea rcx, [0x1401a3a60]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401a3a90]
call fcn.1400b2f50
jmp 0x140044731

Function at 0x1400447b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401a3a90]
mov ecx, dword [0x1401a0798]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400447eb
movzx eax, word [0x1401a3a60]
cmp eax, 9
jne 0x140044833
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401a3a90]
call fcn.1400b2e9c
cmp dword [0x1401a3a90], 0xffffffff
jne 0x1400447d5
xorps xmm0, xmm0
movups xmmword [0x1401a3a80], xmm0
movups xmmword [0x1401a3a70], xmm0
movups xmmword [0x1401a3a60], xmm0
lea rcx, [0x1401a3a60]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401a3a90]
call fcn.1400b2f50
jmp 0x1400447d5
test eax, eax
je 0x1400447e6
cmp eax, 6
jne 0x140044843
mov eax, 2
jmp 0x1400447e6
cmp eax, 0xc
jne 0x14004484f
mov eax, 3
jmp 0x1400447e6
mov eax, 4
jmp 0x1400447e6
Function at 0x140045e10
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 0x140045f05
cmp qword [rsi], 0
jne 0x140045f05
cmp dword [rsi + 0x14], 0
jne 0x140045f05
cmp qword [rsi + 8], 0
jne 0x140045f05
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140045e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140045eec
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140045e7c
mov qword [rsi], r14
call fcn.140081080
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140045ebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140045ed4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140045eb6
mov qword [rsi + 8], r14
call fcn.140081080
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.140081080
mov rcx, qword [rsi + 8]
call fcn.14007c410
mov qword [rsi + 8], 0
jmp 0x140045ea3
call fcn.140081080
mov rcx, qword [rsi]
call fcn.14007c410
mov qword [rsi], 0
jmp 0x140045e6a
mov rcx, rsi
call fcn.14007c660
lea rcx, [rsi + 8]
call fcn.14007c660
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x140045e4a
Function at 0x1400497c0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140192040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1401667f0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14004993c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1401a40c0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400cff5c
mov rcx, rbx
call fcn.1400cfb08
sub r14, rax
lea rdx, [0x14016a12e]
mov rcx, rbx
mov r8, r14
call fcn.1400cff5c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400e6840
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 0x14004989c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400cffa4
test eax, eax
je 0x140049960
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 0x1400498d7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400cffa4
test eax, eax
je 0x140049960
xor eax, eax
mov byte [0x1401a3cb1], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401774e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140049967
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140185120]
test eax, eax
je 0x140049967
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401a42c0], al
mov byte [0x1401a3cb0], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b4140
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400498d9
xor eax, eax
jmp 0x14004992f