joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f4a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rbp, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.140030550
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x14001f6dc
mov dword [rsp + 0x4c], 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]
test rax, rax
je 0x14001f549
mov rdi, rax
lea rdx, [0x1400a57de]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001f55c
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
mov r15, rax
jmp 0x14001f55f
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x14001f568
xor r15d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd r13, dword [rsp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test r13, r13
je 0x14001f67f
mov qword [rsp + 0x28], rbp
test r13d, r13d
js 0x14001f70f
shl r13, 3
lea rsi, [r13*2]
add rsi, r13
mov rcx, rsi
call fcn.14007957c
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rsi, rax
mov qword [rsp + 0x40], rsi
xor r14d, r14d
xorps xmm6, xmm6
jmp 0x14001f600
mov byte [rbx + 0x17], dil
mov rsi, rbx
test rdi, rdi
je 0x14001f5ed
mov r8, rdi
add r8, rdi
mov rcx, rsi
mov rdx, r12
call fcn.14007c250
mov word [rsi + rdi*2], 0
add rbx, 0x18
add r14, 8
cmp r13, r14
je 0x14001f675
mov r12, qword [r15 + r14]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov rcx, r12
call fcn.140090808
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x14001f702
cmp rdi, 0xb
jb 0x14001f5d0
lea rbp, [rdi + 8]
and rbp, 0xfffffffffffffff8
js 0x14001f70a
mov rcx, rbp
add rcx, rbp
lea rcx, [rbp + rbp]
call fcn.14007957c
mov rsi, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, rbp
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
jmp 0x14001f5dc
mov qword [rsp + 0x38], rbx
mov rbp, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14001f210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14001f6dc
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x14001f6b8
mov rcx, rsi
jmp 0x14001f6d2
mov rax, rdi
cmp rsi, rdi
je 0x14001f6cd
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x14001f6b0
mov rcx, qword [rax - 0x18]
call fcn.1400795d8
jmp 0x14001f6b0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.1400795d8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079940
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.14001c23c
call fcn.140089ad8
lea rcx, [rsp + 0x30]
call fcn.14001dff4
int3
Function at 0x140027340
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str..._.._base_file_version_info_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x4d
call fcn.14003d7b0
lea rcx, [rsp + 0x48]
mov rdx, rsi
xor r8d, r8d
call fcn.14003da30
cmp byte [rbx + 0x17], 0
jns 0x140027399
mov rbx, qword [rbx]
lea rdx, [rsp + 0x24]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14002748b
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.14007957c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14007c660
mov edx, dword [rsp + 0x24]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002747a
mov qword [rsp + 0x28], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x64]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002747a
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x14002747a
mov rbp, rdi
add rbp, rsi
mov ecx, 0x38
call fcn.14007957c
mov rsi, rax
mov eax, dword [rbx]
lea rcx, [0x1400a5cc0]
mov qword [rsi], rcx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rbp
mov qword [rsi + 0x20], rdi
mov dword [rsi + 0x28], eax
mov qword [rsp + 0x28], 0
lea rdx, [0x1400a5ee2]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x64]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400274b7
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x30], rax
mov qword [r14], rsi
jmp 0x140027492
mov qword [r14], 0
mov rcx, rdi
call fcn.1400795d8
jmp 0x140027492
mov qword [r14], 0
lea rcx, [rsp + 0x48]
call fcn.14003db60
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079940
mov rax, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400276a0
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov qword [rsp + 0x38], r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx esi, word [rcx + 0x28]
movzx r14d, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx r12d, word [rdi + 0x28]
call r15
mov r15d, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400278e0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002775c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002775c
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140027899
movzx eax, bp
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400278e0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400277c6
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400277c6
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140027899
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400278e0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002782e
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002782e
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x140027899
movzx eax, r15w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1400278e0
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400278d0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400278d0
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1400278d0
add r8d, 0xffffffff
mov rcx, qword [rsp + 0x38]
call fcn.14001ce8e
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400278aa
Function at 0x140027ec0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x1400a5f47]
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov r9d, 0x193
call fcn.14003d7b0
lea rcx, [rsp + 0x50]
mov rdx, rbp
xor r8d, r8d
call fcn.14003da30
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140027f1f
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140027f2b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov bpl, 1
test eax, eax
jne 0x140027f99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e040
mov r14d, eax
cmp byte [rdi + 0x17], 0
jns 0x140027f51
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140027f5a
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140027f99
test rsi, rsi
je 0x140027f97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e040
cmp eax, 0xfffffffc
cmovne r14d, eax
mov dword [rsi], r14d
xor ebp, ebp
lea rcx, [rsp + 0x50]
call fcn.14003db60
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079940
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.14003d7b0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003da30
cmp byte [rsi + 0x17], 0
jns 0x140028016
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.14003db60
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079940
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.14003d7b0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14003da30
cmp byte [rsi + 0x17], 0
jns 0x1400280a6
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.14003db60
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400280e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x60]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x102
jbe 0x140028120
xor esi, esi
jmp 0x140028185
mov qword [rsp + 0x20], rdi
cmp word [rsp + 0x60], 0
je 0x14002813e
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140028130
jmp 0x140028140
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140021d30
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140023260
mov rcx, rsi
mov rdx, rbx
call fcn.140021db0
mov rcx, rbx
call fcn.140021d80
mov rcx, rdi
call fcn.140021d80
mov sil, 1
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400281b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdi, [rsp + 0x60]
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 0x140028220
cmp word [rsp + 0x60], 0
je 0x140028220
mov qword [rsp + 0x50], rdi
xor eax, eax
nop
cmp word [rsp + rax*2 + 0x62], 0
lea rax, [rax + 1]
jne 0x140028200
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140021d30
jmp 0x140028274
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140021ce0
mov rcx, rdi
call fcn.1400280e0
test al, al
je 0x140028248
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140021d10
jmp 0x14002826a
lea rax, [0x1400a5f70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 3
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140021d30
lea rcx, [rsp + 0x38]
call fcn.140021d80
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140079940
mov rax, rsi
add rsp, 0x278
pop rdi
pop rsi
ret
Function at 0x140028570
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x265
call fcn.14003d7b0
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14003da30
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400285d6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002860d
mov bl, 1
test al, 0x10
jne 0x140028742
test r12, r12
je 0x1400285fb
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140028742
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140022840
movzx ecx, byte [rsp + 0x37]
mov rax, rcx
test cl, cl
jns 0x14002862e
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x14002863e
mov rdx, qword [rdi + 8]
cmp rax, rdx
jne 0x14002868b
test rax, rax
je 0x140028674
test cl, cl
jns 0x140028651
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x14002865c
mov rcx, qword [rdi]
xor edx, edx
nop
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14002868b
add rdx, 1
cmp rax, rdx
jne 0x140028660
test r12, r12
je 0x140028681
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x140028730
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140028570
test al, al
je 0x140028736
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140028738
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x14002871e
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1cc
call fcn.14003d7b0
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14003da30
cmp byte [rdi + 0x17], 0
jns 0x140028701
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14003db60
cmp edi, 0xffffffff
je 0x14002871e
and edi, 0x10
jne 0x140028738
test r12, r12
je 0x14002872e
mov ecx, ebp
call fcn.14003e040
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140021d80
lea rcx, [rsp + 0x38]
call fcn.14003db60
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140079940
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140028890
Capabilities:
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, 0x558
mov r15d, r8d
mov r14, rdx
mov rdx, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov qword [rsp + 0x20], r14
xor ebp, ebp
lea rsi, [rsp + 0x290]
mov rcx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.14003e730
lea rdi, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
call fcn.14003e860
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x1400288fc
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140028a32
lea rsi, [rsp + 0x290]
lea rbx, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x14002892c
mov r13d, ebp
test rax, rax
je 0x140028a32
mov rcx, rsi
mov rdx, rbx
call fcn.14003e7d0
mov edx, dword [rsp + 0x40]
test dl, 1
je 0x14002896d
test r15b, r15b
jne 0x140028955
mov rcx, rbx
call fcn.14003e570
test al, al
jne 0x14002896d
mov edx, dword [rsp + 0x40]
and edx, 0xfffffffe
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x140028967
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call fcn.14003e570
test al, al
je 0x1400289c0
xor ebp, ebp
test r15b, r15b
je 0x1400289ee
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140028890
mov ebp, eax
test eax, eax
jne 0x1400289ee
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x1400289a3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x1400289ee
jmp 0x1400289d8
cmp byte [rsp + 0x3f], 0
mov rcx, rdi
jns 0x1400289cf
mov rcx, qword [rsp + 0x28]
call r12
xor ebp, ebp
test eax, eax
jne 0x1400289ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
or eax, 1
cmp eax, 3
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rbx
call fcn.140002b00
mov rcx, rsi
mov rdx, rbx
call fcn.14003e860
mov rcx, rdi
mov rdx, rbx
call fcn.140021db0
mov rcx, rbx
call fcn.140021d80
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x140028920
mov rax, qword [rsp + 0x30]
jmp 0x140028920
lea rcx, [rsp + 0x28]
call fcn.140021d80
lea rcx, [rsp + 0x290]
call fcn.14003e760
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140079940
mov eax, ebp
add rsp, 0x558
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140028be0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140028c63
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140028c2e
call fcn.14003d7d0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.14003fa40
mov rcx, qword [rsi]
call fcn.14003f9d0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140028c53
mov qword [rsi], rdi
call fcn.14003d7d0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.14003fa00
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002bbf8
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002bc5a
mov ebx, eax
mov r12d, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp eax, 0xb
jae 0x14002bc6e
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
mov r13, rsi
mov rbp, rsi
jmp 0x14002bc9b
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14002bd38
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14007957c
mov rbp, rax
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
bts rdi, 0x3f
mov qword [rsi + 0x10], rdi
mov qword [rsi + 8], r12
mov r13, rsi
lea r8, [r12 + r12]
mov rcx, rbp
xor edx, edx
call fcn.14007c660
mov word [rbp + r12*2], 0
cmp byte [r13 + 0x17], 0
jns 0x14002bcbd
mov rsi, qword [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002bd17
mov edx, eax
movzx eax, byte [r13 + 0x17]
mov rcx, rax
test al, al
jns 0x14002bce3
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x14002bd1b
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.14001cf34
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
xorps xmm0, xmm0
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14002bd38
mov al, byte [r13 + 0x17]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x14002bd38
mov rcx, qword [rsp + 0x20]
call fcn.1400795d8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079940
mov rax, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14002bd59
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x14002bd66
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14002c330
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x14002c358
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002c387
test al, 0x10
jne 0x14002c3dd
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002c4ff
xor edi, edi
jmp 0x14002c4e5
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x14002c3aa
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002c443
lea r9, [rcx + rax*2]
add r9, 0xfffffffffffffffe
add rax, rax
neg rax
movzx edx, word [r9]
cmp dx, 0x5c
je 0x14002c3fb
cmp dx, 0x2f
je 0x14002c3fb
add r9, 0xfffffffffffffffe
add rax, 2
jne 0x14002c3c1
jmp 0x14002c443
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.14002c4ff
mov dil, 1
jmp 0x14002c4e5
sub r9, rcx
cmp r9, 0xfffffffffffffffe
je 0x14002c443
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14001cd82
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.14002c330
test al, al
je 0x14002c4c6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14002c4d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14002c4b2
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
call fcn.140019bf0
xor r14d, r14d
cmp byte [rbp + 0x17], r14b
jns 0x14002c482
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], r14b
jns 0x14002c4ad
mov rcx, qword [rsp + 0x28]
call fcn.1400795d8
test bpl, bpl
jne 0x14002c4d4
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.14002c4ff
jmp 0x14002c4d2
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.14002c4ff
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x14002c4e5
mov rcx, qword [rsp + 0x40]
call fcn.1400795d8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140079940
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret