Function at 0x140015c10
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x36e0]
mov eax, 0x37e0
call fcn.1401b77d0
sub rsp, rax
mov rax, qword [0x1402ac7a8]
xor rax, rsp
mov qword [rbp + 0x36d0], rax
mov rbx, rdx
mov r13, rcx
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x400
call fcn.1401bcd10
xor edi, edi
lea rcx, [rbp + 0x2d0]
xor edx, edx
mov dword [rsp + 0x34], edi
mov r8d, 0x400
mov dword [rsp + 0x30], edi
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x2ad0]
mov r8d, 0x400
call fcn.1401bcd10
lea r8, str.Search_for_files__r_n
mov edx, 0x104
lea rcx, [rbp + 0x2ad0]
call fcn.14000ca40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea rcx, [rbp + 0x2ad0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140015d00
lea rcx, [rbp + 0xad0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x2ad0]
xor ecx, ecx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0xad0]
call fcn.1400245e0
mov r12d, dword [rbx]
lea rax, [0x140396670]
mov rbx, rdi
lea r14, str.CSIDL_LOCAL_APPDATALGHUB_settings.db
mov r15, rdi
mov eax, dword [rbx + rax]
cmp r12d, eax
je 0x140015d63
cmp eax, 0xc3b
jne 0x14001661d
mov r8, qword [r14]
lea rcx, [rbp + 0x2d0]
mov edx, 0x400
call fcn.1401c954c
lea rdx, str.CSIDL_MYDOCUMENTS
lea rcx, [rbp + 0x2d0]
call fcn.1401bbf94
test rax, rax
je 0x140015d9d
mov esi, 5
lea rax, str.CSIDL_MYDOCUMENTS
jmp 0x140015e11
lea rdx, str.CSIDL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bbf94
test rax, rax
je 0x140015dc3
mov esi, 0x1a
lea rax, str.CSIDL_APPDATA
jmp 0x140015e11
lea rdx, str.CSIDL_LOCAL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bbf94
test rax, rax
je 0x140015de9
mov esi, 0x1c
lea rax, str.CSIDL_LOCAL_APPDATA
jmp 0x140015e11
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bbf94
test rax, rax
je 0x140015e8e
mov esi, 0x23
lea rax, str.CSIDL_COMMON_APPDATA
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140015e20
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1401bcd10
lea rax, [rbp + 0x1c0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140015e8e
lea rdx, [rbp + 0x2d0]
add rdx, rdi
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea r8, [rbp + 0x1c0]
mov edx, 0x400
lea rcx, [rbp + 0x2d0]
call fcn.1401c954c
jmp 0x140015eb1
mov rax, qword [r14]
lea r8, [0x140266ddc]
mov r9, r13
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rbp + 0x2d0]
call fcn.14000ca40
lea rax, [rbp + 0x2d0]
mov rcx, 0xffffffffffffffff
nop
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140015ec0
lea rax, [rbp + 0x2d0]
xor edx, edx
cmp byte [rcx + rax - 1], 0x5c
je 0x140015f92
lea rcx, [rbp + 0x2d0]
call fcn.1401c9d84
test eax, eax
jne 0x14001661d
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x2d0]
call fcn.140021c20
lea r14, [0x140396670]
cmp byte [rbx + r14 + 0x10], 1
jne 0x140016624
movzx eax, byte [rbx + r14 + 0x29]
lea r9, [rbp + 0xad0]
mov byte [rsp + 0x28], al
lea r8, [rbp + 0x6d0]
movzx eax, byte [rbx + r14 + 0x28]
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x2d0]
mov byte [rsp + 0x20], al
call fcn.140017040
jmp 0x140016624
mov r8d, 0x400
lea rcx, [rbp + 0x16d0]
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x12d0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x22d0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x26d0]
mov r8d, 0x400
call fcn.1401bcd10
lea r8, [rbp + 0x2d0]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c954c
lea r14, [0x140396670]
mov rax, qword [rbx + r14 + 0x18]
cmp byte [rax], 0
jne 0x140016023
lea r8, [rbp + 0x22d0]
lea rdx, str.Full_Directory_content__s:_r_n
lea rcx, [rbp + 0x16d0]
call fcn.140014d80
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016045
lea rcx, [rbp + 0xad0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x16d0]
xor ecx, ecx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0xad0]
call fcn.1400245e0
lea r8, [rbp + 0x22d0]
mov edx, 0x400
lea rcx, [rbp + 0x26d0]
call fcn.1401c954c
lea r8, [0x140266e08]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9784
xor edi, edi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], edi
lea rcx, [rbp + 0x22d0]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140016624
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8b, 0x10
jne 0x1400161c4
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x1400161c4
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266e0c]
lea rcx, [rbp + 0x12d0]
call fcn.14000ca40
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.140021c20
lea rax, [rbp + 0x6d0]
mov edx, 0x104
lea r9, [rbp + 0x12d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_SHAS2:__s__r_n
lea rcx, [rbp + 0x16d0]
call fcn.14000ca40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016186
lea rcx, [rbp + 0xad0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x16d0]
xor ecx, ecx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0xad0]
call fcn.1400245e0
jmp 0x1400162a4
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400161d0
test rax, rax
je 0x1400162ef
lea rcx, [rsp + 0x6c]
call fcn.1401bbf94
test rax, rax
je 0x1400162ea
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266e0c]
lea rcx, [rbp + 0x12d0]
call fcn.14000ca40
cmp byte [rsp + 0x6c], 0x2e
je 0x1400165fc
xor edx, edx
lea rcx, [rbp + 0x12d0]
call fcn.1401c9d84
test eax, eax
jne 0x1400165fc
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x140016252
cmp dword [rsp + 0x60], eax
ja 0x1400165fc
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x12d0]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.140021c20
cmp byte [rbx + r14 + 0x10], 1
jne 0x1400165fc
movzx eax, byte [rbx + r14 + 0x29]
lea r9, [rbp + 0xad0]
mov byte [rsp + 0x28], al
lea r8, [rbp + 0x6d0]
movzx eax, byte [rbx + r14 + 0x28]
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x12d0]
mov byte [rsp + 0x20], al
call fcn.140017040
jmp 0x1400165fc
mov r8d, dword [rsp + 0x40]
cmp byte [rbx + r14 + 0x20], 0
je 0x1400165fc
test r8b, 0x10
je 0x1400165fc
cmp byte [rsp + 0x6c], 0x2e
je 0x1400165fc
xor edx, edx
lea rcx, [rbp + 0x32d0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x2ed0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x1ad0]
mov r8d, 0x400
call fcn.1401bcd10
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s.
lea rcx, [rbp + 0x32d0]
call fcn.14000ca40
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s_
lea rcx, [rbp + 0x2ed0]
call fcn.14000ca40
xor r9d, r9d
mov dword [rsp + 0x28], edi
lea r8, [rbp + 0x80]
mov qword [rsp + 0x20], rdi
xor edx, edx
lea rcx, [rbp + 0x32d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400165fa
nop dword [rax]
test byte [rbp + 0x80], 0x10
jne 0x1400164b4
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x1400164b4
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266e0c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000ca40
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.140021c20
lea rax, [rbp + 0x6d0]
mov edx, 0x104
lea r9, [rbp + 0x1ad0]
mov qword [rsp + 0x20], rax
lea r8, str._s_SHAS2:__s__r_n
lea rcx, [rbp + 0x16d0]
call fcn.14000ca40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016476
lea rcx, [rbp + 0xad0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x16d0]
xor ecx, ecx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rbp + 0xad0]
call fcn.1400245e0
jmp 0x14001659c
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400164c0
test rax, rax
je 0x1400165d9
lea rcx, [rbp + 0xac]
call fcn.1401bbf94
test rax, rax
je 0x1400165d9
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266e0c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000ca40
cmp byte [rbp + 0xac], 0x2e
je 0x1400165d9
xor edx, edx
lea rcx, [rbp + 0x1ad0]
call fcn.1401c9d84
test eax, eax
jne 0x1400165d9
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x14001654a
cmp dword [rbp + 0xa0], eax
ja 0x1400165d9
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcd10
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x1ad0]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumA]
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.140021c20
cmp byte [rbx + r14 + 0x10], 1
jne 0x1400165d9
movzx eax, byte [rbx + r14 + 0x29]
lea r9, [rbp + 0xad0]
mov byte [rsp + 0x28], al
lea r8, [rbp + 0x6d0]
movzx eax, byte [rbx + r14 + 0x28]
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x1ad0]
mov byte [rsp + 0x20], al
call fcn.140017040
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400163d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400160e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140016624
lea r14, [0x140396670]
inc r15
lea rax, [0x140396670]
add r14, 8
lea rbx, [r15 + r15*2]
shl rbx, 4
add r14, rbx
cmp qword [r14], 0
jne 0x140015d50
mov rcx, qword [rbp + 0x36d0]
xor rcx, rsp
call fcn.1401b6d50
lea r11, [rsp + 0x37e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret