joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048920
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 ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140114c60
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14006a8d0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, r14
mov rdx, rdi
call fcn.14006aba0
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x1400489bc
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140048b0c
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x1400489ec
mov r13d, ebp
test rax, rax
je 0x140048b0c
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140114c60
mov rcx, r15
mov rdx, r14
call fcn.14006aaf0
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140048a4a
test bl, bl
jne 0x140048a32
mov rcx, r14
call fcn.14006a8a0
test al, al
je 0x140048a2e
mov rcx, r14
call fcn.14006a8a0
test al, al
je 0x140048a90
jmp 0x140048aa6
mov edx, dword [rsp + 0x48]
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140048a41
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r14
call fcn.14006a8a0
test al, al
je 0x140048a90
xor ebp, ebp
test bl, bl
je 0x140048ac6
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140048920
mov ebp, eax
test eax, eax
jne 0x140048ac6
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140048a7f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140048ac6
jmp 0x140048ab0
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140048a9f
mov rcx, qword [rsp + 0x30]
call r12
test eax, eax
je 0x140048ab0
xor ebp, ebp
jmp 0x140048ac6
call qword [sym.imp.KERNEL32.dll_GetLastError]
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.1400032b0
mov rcx, r15
mov rdx, r14
call fcn.14006aba0
mov rcx, rdi
mov rdx, r14
call fcn.140055070
mov rcx, r14
call fcn.140055000
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x1400489e0
mov rax, qword [rsp + 0x38]
jmp 0x1400489e0
lea rcx, [rsp + 0x30]
call fcn.140055000
lea rcx, [rsp + 0x298]
call fcn.14006aa80
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140048b4d
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400e0180
int3
Function at 0x140048e80
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x4d
call fcn.140054de0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.140069250
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140048f05
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14004901d
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.1400dff64
mov rdi, rax
mov qword [rsp + 0x30], rax
add rax, r14
mov rcx, rdi
neg rcx
dec r14
cmp rcx, r14
cmovb r14, rcx
mov qword [rsp + 0x40], rax
inc r14
mov rcx, rdi
cmp r14, 0x21
jb 0x140048f90
mov ecx, r14d
and ecx, 0x1f
mov edx, 0x20
cmovne rdx, rcx
sub r14, rdx
mov rcx, rdi
add rcx, r14
xor edx, edx
xorps xmm0, xmm0
movups xmmword [rdi + rdx], xmm0
movups xmmword [rdi + rdx + 0x10], xmm0
add rdx, 0x20
cmp r14, rdx
jne 0x140048f70
nop word cs:[rax + rax]
test rcx, rcx
je 0x1400490a6
mov byte [rcx], 0
inc rcx
cmp rcx, rax
jne 0x140048f90
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14004900f
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x9c], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x9c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
sete al
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
sete cl
or cl, al
cmp cl, 1
jne 0x140049026
mov qword [rsi], 0
test rdi, rdi
jne 0x140049056
jmp 0x140049071
mov qword [rsi], 0
jmp 0x140049071
mov ecx, 0x38
call fcn.1400dff64
mov rdi, rax
movzx r8d, word [rbx]
movzx r9d, word [rbx + 2]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400490d0
mov qword [rsi], rdi
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140049071
mov rax, qword [rsp + 0x38]
mov rcx, rax
sub rcx, rdi
dec rax
cmp rcx, rax
ja 0x1400490b9
mov rcx, rdi
call fcn.1400dffa0
lea rcx, [rsp + 0x50]
call fcn.1400692f0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x1400490a0
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140044b40
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140044b40
int3
Function at 0x140057fa0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401649b8]
test rdi, rdi
jne 0x140058057
mov ecx, 0x50
call fcn.1400dff64
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400dff64
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140058080
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 [0x1401649b8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140058093
mov rcx, rax
call fcn.1400ffa68
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400580b0
test rdi, rdi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14005807a
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
call fcn.1400e0180
int3
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140044b40
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude_string_view:270:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140044b40
int3
Function at 0x1400580b0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov r8d, 3
call fcn.14006d3f0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140058259
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x14011ee78]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140058157
lea rdx, [0x14011eec8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005816a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140146120]
jmp 0x140058165
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
jmp 0x14005816c
xor ebx, ebx
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x1400581e7
test r12d, r12d
js 0x1400582a9
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400dff64
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
nop dword [rax + rax]
test r14, r14
je 0x140058283
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140001850
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x1400581c0
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140057bd0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005820e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140058259
mov rdi, qword [rsp + 0x28]
cmp rsi, rdi
je 0x140058251
add rdi, 0xffffffffffffffe8
jmp 0x14005823c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x140058251
test rdi, rdi
je 0x140058296
cmp byte [rdi + 0x17], 0
jns 0x140058230
mov rcx, qword [rdi]
call fcn.1400dffa0
jmp 0x140058230
mov rcx, rsi
call fcn.1400dffa0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14005827d
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400e0180
int3
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140044b40
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140044b40
lea rcx, [rsp + 0x20]
call fcn.14000deb0
int3
Function at 0x14005e040
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdx, qword [0x140164a10]
test rdx, rdx
je 0x14005e0a7
cmp rdi, rdx
je 0x14005e175
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x14005e13b
test r8b, r8b
js 0x14005e163
mov rax, qword [rdx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rdi], xmm0
jmp 0x14005e175
mov ecx, 0x18
call fcn.1400dff64
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [0x140164a10], rax
mov ecx, 0x18
call fcn.1400dff64
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [0x140164a18], rax
call fcn.140060960
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r12, [rsp + 0x20]
mov rcx, r12
mov rdx, rax
call fcn.140001850
mov rcx, r12
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.14005d610
mov ebx, eax
cmp byte [rsp + 0x37], 0
js 0x14005e151
test bl, bl
je 0x14005e15f
mov rdx, qword [0x140164a10]
cmp rdi, rdx
jne 0x14005e07c
jmp 0x14005e175
test r8b, r8b
jns 0x14005e147
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.140043ee0
jmp 0x14005e175
mov rcx, qword [rsp + 0x20]
call fcn.1400dffa0
test bl, bl
jne 0x14005e129
xor edi, edi
jmp 0x14005e1d1
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rdi
mov rdx, rax
call fcn.140043fb0
mov dil, 1
test rsi, rsi
je 0x14005e1d1
mov rdx, qword [0x140164a18]
cmp rsi, rdx
je 0x14005e1d1
cmp byte [rsi + 0x17], 0
movzx r8d, byte [rdx + 0x17]
js 0x14005e1a9
test r8b, r8b
js 0x14005e1bf
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
jmp 0x14005e1d1
test r8b, r8b
jns 0x14005e1b5
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, rsi
call fcn.140043ee0
jmp 0x14005e1d1
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.140043fb0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14005e1f7
mov eax, edi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400e0180
int3
Function at 0x14005e8a0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140114c60
mov word [rsp + 0x20], 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 0x14005e92e
mov ebx, eax
nop
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x14005e90f
dec rbx
jne 0x14005e900
jmp 0x14005e92e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e91b
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400f89c4
test eax, eax
je 0x14005ea11
mov word [rsp + 0x20], 0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005e98e
mov ebx, eax
nop word [rax + rax]
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x14005e96f
dec rbx
jne 0x14005e960
jmp 0x14005e98e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e97b
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400f89c4
test eax, eax
je 0x14005ea27
mov word [rsp + 0x20], 0
lea rcx, str.PROGRAMW6432
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005e9ea
mov ebx, eax
nop word [rax + rax]
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x14005e9cf
dec rbx
jne 0x14005e9c0
jmp 0x14005e9ea
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e9db
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400f89c4
test eax, eax
je 0x14005ea3d
xor eax, eax
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14005ea0b
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
call fcn.1400e0180
int3
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
js 0x14005ea53
mov al, 1
mov rdx, rcx
cmp rcx, rbx
je 0x14005e9ec
jmp 0x14005ea5e
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
js 0x14005ea7f
mov al, 1
mov rdx, rcx
cmp rcx, rbx
je 0x14005e9ec
jmp 0x14005ea8e
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
js 0x14005eaaf
mov al, 1
mov rdx, rcx
cmp rcx, rbx
je 0x14005e9ec
jmp 0x14005eabe
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x14005e9ec
cmp rbx, rdx
ja 0x14005eadc
mov rdx, rsi
test cl, cl
jns 0x14005ea6d
mov rdx, qword [rsi]
mov al, 1
cmp word [rdx + rbx*2], 0x5c
jne 0x14005e92e
jmp 0x14005e9ec
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x14005e9ec
cmp rbx, rdx
ja 0x14005eadc
mov rdx, rsi
test cl, cl
jns 0x14005ea9d
mov rdx, qword [rsi]
mov al, 1
cmp word [rdx + rbx*2], 0x5c
jne 0x14005e98e
jmp 0x14005e9ec
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x14005e9ec
cmp rbx, rdx
ja 0x14005eadc
test cl, cl
jns 0x14005eaca
mov rsi, qword [rsi]
mov al, 1
cmp word [rsi + rbx*2], 0x5c
jne 0x14005e9ea
jmp 0x14005e9ec
lea rcx, [0x140117223]
lea rdx, str....._third_partylibc_srcinclude_string:1331:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.140044b40
int3
Function at 0x14005f450
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 [0x140155cc0]
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 0x14005f4b4
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xb
jae 0x14005f4d4
mov byte [rsp + 0x37], bl
lea r14, [rsp + 0x20]
jmp 0x14005f515
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e0180
jmp 0x14005f5e7
mov rax, r15
or rax, 3
lea rcx, [rax + 1]
cmp rax, 0xb
mov r12d, 0xd
cmovne r12, rcx
lea rcx, [r12 + r12]
call fcn.1400dff64
mov r14, rax
mov qword [rsp + 0x20], rax
movabs rax, 0x8000000000000000
or rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.140114c60
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x37], 0
jns 0x14005f538
mov rdx, qword [rsp + 0x20]
jmp 0x14005f53d
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx edx, byte [rsp + 0x37]
test eax, eax
je 0x14005f567
mov ecx, eax
test dl, dl
js 0x14005f57b
cmp eax, edx
jae 0x14005f5ae
mov byte [rsp + 0x37], al
lea rax, [rsp + 0x20]
jmp 0x14005f58c
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
test dl, dl
jns 0x14005f5d6
jmp 0x14005f5cc
cmp qword [rsp + 0x28], rcx
jbe 0x14005f5be
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rcx
mov word [rax + rcx*2], 0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0x20]
mov qword [rsi], rax
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
jmp 0x14005f5d6
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14005f5d6
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x20]
call fcn.1400dffa0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14005f5f8
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400e0180
int3

Function at 0x14005f600
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x14005f60d
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 0x1400600b0
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 [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400600d8
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006010b
test al, 0x10
jne 0x140060227
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140060290
xor edi, edi
jmp 0x140060261
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 0x140060130
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
nop word cs:[rax + rax]
test r9, r9
je 0x1400601a2
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140060159
cmp ecx, 0x2f
jne 0x140060140
cmp r9, 0xfffffffffffffffe
je 0x1400601a2
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.140043d50
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.1400600b0
test al, al
je 0x140060242
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140060250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140060213
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140001850
cmp byte [rsp + 0x3f], 0
jns 0x1400601e3
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 0x14006020e
mov rcx, qword [rsp + 0x28]
call fcn.1400dffa0
test bpl, bpl
jne 0x140060250
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140060290
jmp 0x14006024e
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140060290
mov dil, 1
jmp 0x140060261
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140060290
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140060261
mov rcx, qword [rsp + 0x40]
call fcn.1400dffa0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x14006027f
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400e0180
int3
Function at 0x140060290
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x68]
mov qword [rsp + 0x38], rdi
call fcn.140003b00
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140164a30]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400e3c74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x140060310
add rsp, 0x48
pop rdi
pop rsi
ret
call fcn.1400e0180
int3