joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052ea0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140052f97
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x14015bda0]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140052f09
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x14015bdb0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140053026
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140052ffc
movdqa xmm1, xmmword [0x14015bdb0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x14015bdc0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14005a6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r13, qword [rcx]
lea rdx, str.ReadValue
lea r8, str....._basewin_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a6
call fcn.1400374b0
mov rcx, rbx
mov rdx, rbp
mov r8, r13
mov r9d, 1
call fcn.140051ed0
mov rcx, qword [r12]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, rbx
call fcn.1400512c0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14009ec00
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14005a770
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.14009eba0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400a0d50
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.14005a6b0
test eax, eax
jne 0x14005a81d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x14005a821
lea rdx, [rsp + 0x830]
mov rcx, rsi
call fcn.140058046
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14009ec00
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14005a7fe
mov edi, 0x3f4
cmp eax, 2
jne 0x14005a7fe
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a0d50
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14005a7fe
lea rdx, [rsp + 0x30]
jmp 0x14005a7f4
Function at 0x14005ab90
Capabilities:
Read 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 [0x140185028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140155bd0]
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.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x65
call fcn.1400374b0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14003bcb0
test esi, esi
js 0x14005ac95
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14003e420
test al, al
jne 0x14005aca1
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005acbd
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14005ac9c
lea rcx, [rsp + 0x30]
call fcn.14003e4b0
lea rcx, [rsp + 0x50]
call fcn.14003bd10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009ec00
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14005ac6a
int3
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14011abd0
jmp 0x14005ac30
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14005ac60

Function at 0x14005acd0
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 [0x140185028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140155bd0]
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, 0x9d
call fcn.1400374b0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14003bcb0
test esi, esi
js 0x14005add6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14003e420
test al, al
jne 0x14005addd
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.14003e4b0
lea rcx, [rsp + 0x50]
call fcn.14003bd10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009ec00
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14005adab
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14011abd0
jmp 0x14005ad70
Function at 0x14005ae00
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x140155bd0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xb2
call fcn.1400374b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003bcb0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.14003e420
test al, al
jne 0x14005aedc
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14003e4b0
lea rcx, [rsp + 0x50]
call fcn.14003bd10
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14009ec00
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.14011abd0
jmp 0x14005ae89
Function at 0x14005b310
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp 0x14005b020

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x140155bd0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2d7
call fcn.1400374b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003bcb0
call fcn.1400761d0
test al, al
jne 0x14005b3e1
cmp byte [rsi + 0x17], 0
jns 0x14005b3a3
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.14003bd10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009ec00
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x14005b3fc
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.14011ae20
test eax, eax
jmp 0x14005b3af

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140155bd0]
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, 0x306
call fcn.1400374b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14003bcb0
cmp byte [rdi + 0x17], 0
jns 0x14005b482
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.14003bd10
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009ec00
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005b4d0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a0d50
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14005b56f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400ba984
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140037640
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140061210
mov rcx, rsi
mov rdx, r14
call fcn.1400377e0
mov rcx, r14
call fcn.140037770
mov rcx, rbx
call fcn.140037770
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14009ec00
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14005b5a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm6, xmmword [0x140155bd0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3c7
call fcn.1400374b0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14003bcb0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14005b623
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005b66d
mov bl, 1
test al, 0x10
je 0x14005b716
lea rcx, [rsp + 0x40]
call fcn.14003bd10
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009ec00
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmmword [r14], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.1400608b0
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x14005b6a1
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x14005b78b
je 0x14005b6b5
test rcx, rcx
je 0x14005b79e
movzx edx, byte [rsp + 0x37]
test dl, dl
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x14005b78b
je 0x14005b6dc
test r14, r14
je 0x14005b79e
cmp rdx, rax
je 0x14005b733
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.14005b5a0
test al, al
je 0x14005b784
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x14005b75f
lea rcx, [rsp + 0x20]
call fcn.140037770
jmp 0x14005b63b
test rsi, rsi
je 0x14005b721
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14005b63b
test rax, rax
je 0x14005b74e
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x14005b6e1
inc rdx
cmp rax, rdx
jne 0x14005b73a
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x14005b77a
jmp 0x14005b77c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x14005b7b1
test rsi, rsi
je 0x14005b77c
mov ecx, ebp
call fcn.14005af00
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14005b707
lea rcx, [0x1401586b1]
lea rdx, str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.1400de3f4
lea rcx, [0x1401586b1]
lea rdx, str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.1400de3f4
mov rcx, rdi
call fcn.14005b410
test al, al
jne 0x14005b707
jmp 0x14005b76e
Function at 0x14005b950
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x140155bd0]
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, [0x14015ec9f]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x527
call fcn.1400374b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14003bcb0
cmp byte [rdi + 0x17], 0
jns 0x14005b9c2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14003bd10
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14009ec00
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005ba00
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400a0d50
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.14005bfa0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140155bd0]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14009acf0
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x14005ba96
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14005bad8
lea rcx, [rsp + 0x30]
call fcn.140037770
lea rcx, [rsp + 0x298]
call fcn.14005c0f0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14009ec00
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400a0d50
mov rcx, r15
mov rdx, r14
call fcn.14005c160
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14005bb99
mov rcx, r14
call fcn.14005bf30
test al, al
jne 0x14005bc2a
test sil, 2
jne 0x14005bbeb
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x14005bb40
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x14005bc12
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400512c0
mov rcx, r15
mov rdx, r14
call fcn.14009acf0
mov rcx, rbx
mov rdx, r14
call fcn.1400377e0
mov rcx, r14
call fcn.140037770
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14005bb88
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
je 0x14005ba9b
jmp 0x14005baef
test sil, 1
jne 0x14005bbb1
lea rcx, [rsp + 0x48]
call fcn.14005bf30
test al, al
jne 0x14005bbd2
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
js 0x14005bbbf
lea rcx, [rsp + 0x30]
jmp 0x14005bbc4
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14005bb17
lea rcx, [rsp + 0x48]
call fcn.14005bf30
test al, al
je 0x14005bb27
xor ebp, ebp
jmp 0x14005bb4d
call fcn.14003d790
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.1400ff5c0
xor ebp, ebp
test al, al
jne 0x14005bb4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14005bb4d
xor ebp, ebp
test sil, 1
je 0x14005bb4d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov r8d, esi
call fcn.14005ba00
mov ebp, eax
test eax, eax
jne 0x14005bb4d
cmp byte [rsp + 0x47], 0
jns 0x14005bc66
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
jmp 0x14005bb45
Function at 0x14005e1e0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14005e2b0
mov eax, dword [rsi]
mov dword [0x140186f80], eax
test al, 1
jne 0x14005e201
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140197b60]
test rcx, rcx
jne 0x14005e21b
mov rcx, qword [0x140197b38]
test rcx, rcx
je 0x14005e23f
jmp 0x14005e261
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140197b60], 0
mov rcx, qword [0x140197b38]
test rcx, rcx
jne 0x14005e261
and byte [0x140186f80], 0xfe
mov ecx, 0x18
call fcn.14009d740
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140197b38], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14005e296
call fcn.140058046
cmp dword [rsi + 0x14], 0
jne 0x14005e28b
mov rcx, qword [0x140197b38]
cmp byte [rcx + 0x17], 0
jns 0x14005e285
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400d2390
lea rcx, [0x1401586b1]
lea rdx, str....._third_partylibc_srcinclude_string:2706:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.1400de3f4
int3
Function at 0x140061f70
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140185028]
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.140066580
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140062087
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400620aa
lea rdx, [0x14015f31a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400620a3
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140177320]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.140063ab0
mov rcx, rsi
mov rdx, r14
call fcn.1400d2850
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140062068
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140062087
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.140026af0
mov rcx, qword [rsi]
call fcn.14009d77c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009ec00
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ebx, ebx
jmp 0x14006201b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140062018

Function at 0x140064a43
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140185028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a0d50
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140064abe
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.1400649c2
test al, al
jne 0x140064aeb
add rbx, 8
cmp rbx, 0x18
jne 0x140064a8b
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14009ec00
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x140064aca