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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140137ae8]
test rdi, rdi
jne 0x140029603
mov ecx, 0x50
call fcn.140089b6c
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140089b6c
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140029625
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 [0x140137ae8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140029651
mov rcx, rax
call fcn.1400a9710
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140029660
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400bdb10
int3
Function at 0x140029660
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140037a10
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400297f4
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x14010cdd8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140029871
lea rdx, [0x14010ce28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029884
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14014b008]
mov r15, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14002988c
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x140029896
lea r14, [r12 + r12*2]
mov rcx, r14
call fcn.140089b6c
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r14
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r14, rbx
test r14, r14
je 0x140029819
mov rdx, qword [r15 + r13]
mov rcx, r14
call fcn.1400bd1d0
add r14, 0x18
add r13, 8
cmp r12, r13
jne 0x14002976c
mov qword [rsp + 0x38], r14
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140029360
movups xmmword [rsi], xmm6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400297ba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x1400297f4
cmp r14, rbx
je 0x1400297ec
add r14, 0xffffffffffffffe8
test r14, r14
je 0x140029845
cmp byte [r14 + 0x17], 0
js 0x1400297e2
lea rax, [r14 - 0x18]
cmp r14, rbx
mov r14, rax
jne 0x1400297c8
jmp 0x1400297ec
mov rcx, qword [r14]
call fcn.140089ba8
jmp 0x1400297d4
mov rcx, rbx
call fcn.140089ba8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008b000
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400bdb10
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400bdb10
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140029711
xor r15d, r15d
jmp 0x140029714
xor r14d, r14d
xor ebx, ebx
jmp 0x140029793
call fcn.1400a2400
int3
Function at 0x14002ed40
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 rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebp, word [rcx + 0x28]
movzx r12d, word [rcx + 0x2a]
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov r14d, eax
movzx r13d, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r15
mov word [rsp + 0x3e], ax
lea r15, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.14008d130
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.14002efe0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002ee46
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002ee46
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14002ee46
dec r8d
mov rcx, rsi
call fcn.140068f20
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14008b000
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.14008d130
movzx eax, r14w
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r15
call fcn.14002efe0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r15
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002eec7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002eec7
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002ee12
lea r14, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
mov qword [rsp + 0x30], rbx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.14002efe0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002ef4b
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002ef4b
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002ee12
lea r14, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
movzx eax, word [rsp + 0x3e]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
call fcn.14002efe0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002efd0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14002efd0
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x14002ee12
xor esi, esi
jmp 0x14002ee20
Function at 0x14002f4d0
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x14010d27d]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x196
call fcn.14006fe10
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14006fe40
lea r14, [rsp + 0x240]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002f585
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.14006b100
mov rcx, r14
call fcn.14005db20
lea r14, [rsp + 0x30]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14002f5bc
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.14006b100
mov rcx, r14
call fcn.14005db20
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14002f5de
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14002f5ea
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14002f670
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003db00
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14002f61d
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14002f626
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x14002f641
test eax, eax
je 0x14002f675
lea rcx, [rsp + 0x450]
call fcn.14006fea0
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.14008b000
mov eax, edi
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x14002f641
cmp ebp, 0xfffffffc
jne 0x14002f681
call fcn.1400dd300
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x14002f641

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1c9
call fcn.14006fe10
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14006fe40
cmp byte [rdi + 0x17], 0
jns 0x14002f714
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14006fea0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002f750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [rsi + 0x40], xmm0
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, 0x1f1
call fcn.14006fe10
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14006fe40
cmp byte [rdi + 0x17], 0
jns 0x14002f7d4
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.14006fea0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008b000
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002f820
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14008d130
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14002f8c3
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400a9710
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140064c80
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14002c510
mov rcx, rsi
mov rdx, r14
call fcn.14002b800
mov rcx, r14
call fcn.140064e00
mov rcx, rbx
call fcn.140064e00
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002f8f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008d130
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 0x14002f985
cmp word [rsp + 0x70], 0
je 0x14002f985
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400a9710
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140064c80
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14008b000
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 [0x140109be0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140064b50
mov rcx, rdi
call fcn.14002f820
test al, al
je 0x14002f9c5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140064c60
jmp 0x14002f9e4
lea rax, [0x14010d2a6]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140064c80
lea rcx, [rsp + 0x40]
call fcn.140064e00
jmp 0x14002f967
Function at 0x140030200
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 [0x140125038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14003e770
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14003e970
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x140030298
mov rax, qword [rsp + 0x38]
jmp 0x14003029b
and eax, 0x7f
test rax, rax
jne 0x1400302dd
lea rcx, [rsp + 0x30]
call fcn.140064e00
lea rcx, [rsp + 0x298]
call fcn.14003e8c0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14008b000
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.14008d130
mov rcx, r15
mov rdx, r14
call fcn.14003e930
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400303fe
mov rcx, r14
call fcn.14003e740
test al, al
jne 0x1400303ad
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003033b
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140030433
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.140019c10
mov rcx, r15
mov rdx, r14
call fcn.14003e970
mov rcx, rdi
mov rdx, r14
call fcn.14002b800
mov rcx, r14
call fcn.140064e00
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140030399
mov rax, qword [rsp + 0x38]
jmp 0x14003039c
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x1400302a0
jmp 0x1400302f4
xor ebp, ebp
test bl, bl
je 0x14003035c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140030200
test eax, eax
jne 0x140030450
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400303d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003035c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14003035c
test bl, bl
je 0x140030413
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14003043a
mov rcx, qword [rsp + 0x30]
jmp 0x14003043f
lea rcx, [rsp + 0x48]
call fcn.14003e740
test al, al
je 0x14003044a
lea rcx, [rsp + 0x48]
call fcn.14003e740
test al, al
je 0x14003032c
xor ebp, ebp
jmp 0x14003035c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14003031c
mov edx, dword [rsp + 0x48]
jmp 0x140030402
mov ebp, eax
jmp 0x14003035c
Function at 0x140031910
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140125038]
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 0x140031a07
mov ebx, eax
mov edx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x140109be0]
movaps xmmword [r14], xmm0
mov rcx, r14
xor r8d, r8d
call fcn.140022c90
cmp byte [r14 + 0x17], 0
jns 0x14003197d
mov r14, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400319f7
mov edx, eax
movzx eax, byte [rsp + 0x37]
test al, al
jns 0x1400319a2
mov rax, qword [rsp + 0x28]
jmp 0x1400319a5
and eax, 0x7f
cmp rax, rdx
jbe 0x1400319f7
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.140064140
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
cmp byte [rsp + 0x37], 0
js 0x140031a17
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008b000
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400319d6
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400319dd
mov rcx, qword [rsp + 0x20]
call fcn.140089ba8
jmp 0x1400319dd
Function at 0x140031f80
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 [0x140125038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140031fa8
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031fdb
test al, 0x10
jne 0x140032073
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140032160
xor edi, edi
jmp 0x14003208c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
cmovs r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140032027
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140032021
cmp ecx, 0x2f
jne 0x140032008
cmp r9, 0xfffffffffffffffe
jne 0x1400320a6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140032060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140032107
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140032160
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x14003208c
mov rcx, qword [rsp + 0x40]
call fcn.140089ba8
jmp 0x14003208c
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140032160
mov dil, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008b000
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400282d0
cmp byte [rsp + 0x57], 0
jns 0x1400320d3
mov rcx, qword [rsp + 0x40]
call fcn.140089ba8
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rcx], xmm0
call fcn.140031f80
test al, al
jne 0x140032027
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140032160
jmp 0x14003205e
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400bd1d0
cmp byte [r14 + 0x17], 0
jns 0x140032123
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 0x14003214e
mov rcx, qword [rsp + 0x28]
call fcn.140089ba8
test bpl, bpl
je 0x14003204c
jmp 0x140032060
Function at 0x140032160
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 [0x140125038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14005e8d0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140137b50]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14008e3f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008b000
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140032cb0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140125038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008d130
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 0x140032d45
mov eax, eax
inc rax
cmp rax, 1
je 0x140032d45
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140032d11
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140032d32
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a4bb4
test eax, eax
je 0x140032e24
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 0x140032da6
mov eax, eax
inc rax
cmp rax, 1
je 0x140032da6
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140032d72
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140032d93
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a4bb4
test eax, eax
je 0x140032e32
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 0x140032e03
mov eax, eax
inc rax
cmp rax, 1
je 0x140032e03
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140032dd3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140032df4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400a4bb4
test eax, eax
je 0x140032e40
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008b000
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140032e4e
mov rax, qword [rsi + 8]
jmp 0x140032e51
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140032e6f
mov rax, qword [rsi + 8]
jmp 0x140032e72
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140032e93
mov rax, qword [rsi + 8]
jmp 0x140032e96
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x140032e05
mov rcx, rsi
mov rdx, r14
call fcn.1400cdfe0
cmp word [rax], 0x5c
jne 0x140032d45
jmp 0x140032e05
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x140032e05
mov rcx, rsi
mov rdx, r14
call fcn.1400cdfe0
cmp word [rax], 0x5c
jne 0x140032da6
jmp 0x140032e05
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x140032e05
mov rcx, rsi
mov rdx, r14
call fcn.1400cdfe0
cmp word [rax], 0x5c
jne 0x140032e03
jmp 0x140032e05