Function at 0x140017c7c
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov qword [r11 - 0x6e8], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rdx
lea r12, str.base_stor_vss_tools_vssagent_vsdoc.cpp
mov qword [r11 - 0x810], r12
lea r13, str.CVssXmlDiagDocument::GetNtBackupFiles
mov qword [r11 - 0x808], r13
lea r15, str.TST__
mov qword [r11 - 0x800], r15
mov dword [rsp + 0xa0], 0xa2b
mov r14d, 9
mov dword [r11 - 0x7f4], r14d
mov dword [rsp + 0xa8], 0xdc
xor ebx, ebx
mov dword [rsp + 0x128], 0x1000000
xor edx, edx
lea r8d, [r14 + 0x6f]
lea rcx, [r11 - 0x7e8]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x140]
call fcn.14004058c
nop
mov r8d, 0x104
lea rdx, [rsp + 0x640]
lea rcx, str._USERPROFILE_Local_SettingsApplication_DataMicrosoftWindows_NTNTBackupdata
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140018138
lea r9, [rsp + 0x640]
lea r8, str._s.log
mov edx, 0x104
lea rcx, [rsp + 0x430]
call fcn.140002d64
mov r14d, eax
test eax, eax
js 0x14001817a
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r15
mov dword [rsp + 0xa0], 0xa36
mov dword [rsp + 0xa4], 9
mov dword [rsp + 0xa8], 0xdc
mov dword [rsp + 0x128], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_memset
lea r9, str.StringCchPrintfW_STRING_CCH_PARAM_wszSearchPath___L__s.log___wszLogPath_
lea r8, str.___OK___S_n
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x140]
call fcn.140041324
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r14, rax
lea rax, [0x140053140]
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], r14
cmp r14, 0xffffffffffffffff
jne 0x140017eb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
jne 0x14001820e
or rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x140]
call fcn.1400406a0
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140017e9b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140017eb1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
jmp 0x14001810a
lea rax, str.NT_Backup
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.NtBackupFiles
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14001f25c
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x140017f01
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140017f21
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20c]
lea r8, [rsp + 0x640]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140016e84
lea rdx, [rsp + 0x1e0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140017eda
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
jne 0x140018260
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140005fe8
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017fa2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140017fba
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140017fd5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140017fed
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
test r14, r14
je 0x140018002
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
nop
jmp 0x140018010
cmp dword [rsp + 0x148], ebx
jge 0x140018080
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x14001803e
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x14001805a
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], eax
lea r9, str.Error:_0x_08lx
lea r8, str.FAILURE_GetOSFiles
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001f4fc
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x1400180a5
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x1400180c1
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001f468
nop
lea rcx, [rsp + 0x140]
call fcn.1400406a0
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400180f4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001810a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.1400438c0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0xa33
mov r9, r13
mov r8, r15
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.1400400dc
lea r8, str.ExpandEnvironmentStrings
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140041e40
mov ecx, eax
call fcn.140001f2c
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r15, str.StringCchPrintfW_STRING_CCH_PARAM_wszSearchPath___L__s.log___wszLogPath_
mov r8, r15
lea rdx, str.__ERROR:_Call__S_not_succeeded.__n_t__Error_Code__0x_08lx._Error_description___s_n
lea rcx, [rsp + 0x140]
call fcn.140041860
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0xa36
mov r9, r13
lea r8, str.TST__
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.1400400dc
mov rbx, rax
mov ecx, r14d
call fcn.140001f2c
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
lea r9, str._S__0x_08lx___s_
mov r8d, r14d
mov rdx, rbx
lea rcx, [rsp + 0x140]
call fcn.140042060
nop
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0xa3e
mov r9, r13
lea r8, str.TST__
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.1400400dc
lea r9, [rsp + 0x430]
lea r8, str.FindFirstFile__s_
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140041e40
nop
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0xa4a
mov r9, r13
lea r8, str.TST__
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.1400400dc
lea r9, [rsp + 0x430]
lea r8, str.FindNextFile__s_
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140041e40
int3