joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025730
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400ba050
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x1400257cf
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400a3e48
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14006f380
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14002c160
mov rcx, rsi
mov rdx, r14
call fcn.14002a950
mov rcx, r14
call fcn.14006f4c0
mov rcx, rbx
call fcn.14006f4c0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400863f0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140025800
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ba050
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 0x140025895
cmp word [rsp + 0x70], 0
je 0x140025895
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400a3e48
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14006f380
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400863f0
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 [0x1400f6a90]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14006f320
mov rcx, rdi
call fcn.140025730
test al, al
jne 0x1400258e7
lea rax, [0x1400fc10e]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14006f380
jmp 0x1400258f4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14002a930
lea rcx, [rsp + 0x40]
call fcn.14006f4c0
jmp 0x140025877
Function at 0x140025d60
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 [0x14011c040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp byte [0x14012dd10], 0
jne 0x140025f32
mov rsi, rcx
movaps xmm6, xmmword [0x1400f6a90]
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, 0x2bc
call fcn.1400736c0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140073b00
test rsi, rsi
je 0x140025f36
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14006f320
mov ecx, 0x65
mov rdx, rdi
call fcn.140026f30
test al, al
je 0x140025f39
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.14002c030
mov rcx, rdi
mov rdx, rbx
call fcn.14002a950
mov rcx, rbx
call fcn.14006f4c0
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, 0x20e
call fcn.1400736c0
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140073b00
cmp byte [rsp + 0x47], 0
jns 0x140025eb3
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140073b80
cmp edi, 0xffffffff
je 0x140025f39
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140025520
test al, al
je 0x140025f39
lea rdi, [rsp + 0x30]
mov rcx, rsi
mov rdx, rdi
call fcn.14006f4d0
mov rcx, rdi
call fcn.14006f4c0
mov sil, 1
lea rcx, [rsp + 0x50]
call fcn.140073b80
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400863f0
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 0x140025f09
int3
lea rcx, [rsp + 0x30]
call fcn.14006f4c0
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], r15
movaps xmmword [rdi], xmm6
mov rcx, rdi
call fcn.14006f320
mov ecx, 0x67
mov rdx, rdi
call fcn.140026f30
test al, al
je 0x140025ff6
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, 0x20e
call fcn.1400736c0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140073b00
cmp byte [rsp + 0x47], 0
jns 0x140025fc1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, rbx
call fcn.140073b80
cmp edi, 0xffffffff
je 0x140025ff6
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8d, 0x40000000
call fcn.140025520
test al, al
jne 0x140025ee4
lea rcx, [rsp + 0x30]
call fcn.14006f4c0
xor esi, esi
jmp 0x140025eff
Function at 0x140026010
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movaps xmm6, xmmword [0x1400f6a90]
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 + 0xa0]
mov rcx, r14
mov r9d, 0x2f7
call fcn.1400736c0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140073b00
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140026098
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400260e4
mov bl, 1
test al, 0x10
je 0x140026281
lea rcx, [rsp + 0x40]
call fcn.140073b80
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1400863f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
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.14006f530
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x14002611a
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
js 0x140026232
sete dl
test rcx, rcx
setne r8b
or r8b, dl
je 0x140026232
movsx rdx, byte [rsp + 0x37]
test rdx, rdx
cmovs rdx, qword [rsp + 0x28]
cmovs r14, qword [rsp + 0x20]
test rdx, rdx
js 0x140026232
sete r8b
test r14, r14
setne r9b
or r9b, r8b
je 0x140026232
cmp rdx, rax
je 0x140026234
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.140026010
test al, al
je 0x14002626c
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1400261a6
lea rcx, [rsp + 0x20]
call fcn.14006f4c0
jmp 0x1400260b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x140026273
lea r14, [rsp + 0xa0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x80]
mov rcx, r15
mov r9d, 0x236
call fcn.1400736c0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140073b00
cmp byte [rdi + 0x17], 0
jns 0x14002620f
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.140073b80
cmp edi, 0xffffffff
je 0x140026273
and edi, 0x10
jne 0x140026197
jmp 0x140026273
ud2
test rax, rax
je 0x140026253
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x140026171
inc rdx
cmp rax, rdx
jne 0x14002623b
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x140026264
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x140026197
test rsi, rsi
je 0x140026264
mov ecx, ebp
call fcn.140038f00
jmp 0x140026262
test rsi, rsi
je 0x14002628c
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400260b0
Function at 0x1400269d0
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 [0x14011c040]
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.1400ba050
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14003aa30
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f6a90]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14003ac20
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140026a6a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140026b3e
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.1400ba050
mov rcx, r15
mov rdx, r14
call fcn.14003abd0
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x140026b7b
mov rcx, r14
call fcn.14003aa00
test al, al
jne 0x140026bd0
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140026ad8
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x140026bc9
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.1400185b0
mov rcx, r15
mov rdx, r14
call fcn.14003ac20
mov rcx, rdi
mov rdx, r14
call fcn.14002a950
mov rcx, r14
call fcn.14006f4c0
movsx rax, byte [rsp + 0x57]
test rax, rax
jns 0x140026b32
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x140026a91
lea rcx, [rsp + 0x40]
call fcn.14006f4c0
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14003ab60
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400863f0
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 0x140026ba3
cmp byte [rsp + 0x57], 0
js 0x140026b90
lea rcx, [rsp + 0x40]
jmp 0x140026b95
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140026ab9
lea rcx, [rsp + 0x58]
call fcn.14003aa00
test al, al
jne 0x140026bb7
mov edx, dword [rsp + 0x58]
jmp 0x140026b82
lea rcx, [rsp + 0x58]
call fcn.14003aa00
test al, al
je 0x140026ac9
xor ebp, ebp
jmp 0x140026af5
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140026af5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1400269d0
mov ebp, eax
test eax, eax
jne 0x140026af5
cmp byte [rsp + 0x57], 0
jns 0x140026c0d
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 0x140026af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140026af5
Function at 0x14002c970
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14012dda8]
test rdi, rdi
jne 0x14002ca23
mov ecx, 0x50
call fcn.140085054
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140085054
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002ca45
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 [0x14012dda8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002ca45
mov rcx, rax
call fcn.1400a3e48
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002ca50
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400863f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140030880
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ba050
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 0x14003090b
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140030a70
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400308f8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009f5d4
test eax, eax
je 0x140030a05
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 0x140030962
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140030a7e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003094f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009f5d4
test eax, eax
je 0x140030a37
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 0x1400309b5
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x140030a8c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400309a6
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14009f5d4
test eax, eax
je 0x1400309d6
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400863f0
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 0x1400309e7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400309b7
jb 0x140030a9a
test al, al
jns 0x1400309fb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x1400309b5
jmp 0x1400309b7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140030a16
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400309b7
jb 0x140030a9a
mov rcx, rsi
test al, al
jns 0x140030a29
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14003090b
jmp 0x1400309b7
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x140030a48
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x1400309b7
jb 0x140030a9a
mov rcx, rsi
test al, al
jns 0x140030a5f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x140030962
jmp 0x1400309b7
dec r14
jne 0x1400308df
jmp 0x14003090b
dec r14
jne 0x140030936
jmp 0x140030962
dec r14
jne 0x14003098d
jmp 0x1400309b5
ud2
Function at 0x1400317c0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14011c040]
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 0x14003197b
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400f6a90]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xb
jae 0x14003190f
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.1400ba050
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x37], 0
js 0x14003184d
lea rdx, [rsp + 0x20]
jmp 0x140031852
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140031959
mov edx, eax
movsx r8, byte [rsp + 0x37]
test r8, r8
mov rcx, qword [rsp + 0x28]
mov r9, r8
cmovs r9, rcx
cmp r9, rdx
jbe 0x140031959
test r8b, r8b
jns 0x1400318eb
cmp rcx, rdx
jb 0x1400318fd
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rdx
mov word [rcx + rdx*2], 0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp byte [rsp + 0x37], 0
js 0x14003196c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r8
cmp r8, rdx
jb 0x1400318fd
lea rcx, [rsp + 0x20]
mov byte [rcx + 0x17], al
jmp 0x14003189a
sub rdx, rcx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400676c0
jmp 0x1400318a0
mov eax, r15d
and eax, 0xfffffffc
add rax, 4
mov r12, r15
or r12, 3
cmp r12, 0xb
cmove r12, rax
lea rcx, [r12*2 + 2]
call fcn.140085054
mov r14, rax
mov qword [rsp + 0x20], rax
movabs rax, 0x8000000000000001
add rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
jmp 0x14003182a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400318c2
mov rcx, qword [rsp + 0x20]
call fcn.140085090
jmp 0x1400318cd
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400318cd
Function at 0x140031cf0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140031d18
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031d61
test al, 0x10
je 0x140031e8d
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031eb0
mov dil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400863f0
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movsx r9, byte [rdi + 0x17]
mov rax, rdi
test r9, r9
jns 0x140031d86
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140031df2
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140031da2
cmp ecx, 0x2f
jne 0x140031d89
cmp r9, 0xfffffffffffffffe
je 0x140031df2
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140067470
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140031cf0
test al, al
jne 0x140031df2
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140031eb0
jmp 0x140031e71
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140031e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140031e5f
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400660e0
cmp byte [r14 + 0x17], 0
jns 0x140031e2f
mov r14, qword [rsp + 0x28]
mov rcx, r14
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], 0
jns 0x140031e5a
mov rcx, qword [rsp + 0x28]
call fcn.140085090
test bpl, bpl
jne 0x140031e73
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140031eb0
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140031d47
mov rcx, qword [rsp + 0x40]
call fcn.140085090
jmp 0x140031d47
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140031eb0
xor edi, edi
jmp 0x140031d47

Function at 0x140031eb0
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140059290
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x14012de10]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140088d74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400863f0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140037ef0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012e740]
mov ecx, dword [0x14012ada8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037f50
lea rsi, [0x14012e738]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012e740]
call fcn.1400850dc
cmp dword [0x14012e740], 0xffffffff
jne 0x140037f2c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400ba050
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.140085054
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012e788]
mov ecx, dword [0x14012ada8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038010
lea r8, [0x14012e758]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038110
mov qword [0x14012e738], rsi
lea rcx, [0x14012e740]
call fcn.140085190
jmp 0x140037f2c
lea rcx, [0x14012e788]
call fcn.1400850dc
cmp dword [0x14012e788], 0xffffffff
jne 0x140037fe1
xorps xmm0, xmm0
movups xmmword [0x14012e778], xmm0
movups xmmword [0x14012e768], xmm0
movups xmmword [0x14012e758], xmm0
lea rcx, [0x14012e758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012e788]
call fcn.140085190
jmp 0x140037fe1

Function at 0x140038060
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012e788]
mov ecx, dword [0x14012ada8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003809b
movzx eax, word [0x14012e758]
cmp eax, 9
jne 0x1400380e3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14012e788]
call fcn.1400850dc
cmp dword [0x14012e788], 0xffffffff
jne 0x140038085
xorps xmm0, xmm0
movups xmmword [0x14012e778], xmm0
movups xmmword [0x14012e768], xmm0
movups xmmword [0x14012e758], xmm0
lea rcx, [0x14012e758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012e788]
call fcn.140085190
jmp 0x140038085
test eax, eax
je 0x140038096
cmp eax, 6
jne 0x1400380f3
mov eax, 2
jmp 0x140038096
cmp eax, 0xc
jne 0x1400380ff
mov eax, 3
jmp 0x140038096
mov eax, 4
jmp 0x140038096