Function at 0x140015d90
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.1401b7d20
sub rsp, rax
mov rax, qword [0x1402ad7a8]
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.1401bd260
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x400
call fcn.1401bd260
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.1401bd260
xor edx, edx
lea rcx, [rbp + 0x2ad0]
mov r8d, 0x400
call fcn.1401bd260
lea r8, str.Search_for_files__r_n
mov edx, 0x104
lea rcx, [rbp + 0x2ad0]
call fcn.14000c9f0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
lea rcx, [rbp + 0x2ad0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140015e80
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.140024b30
mov r12d, dword [rbx]
lea rax, [0x1403a5790]
mov rbx, rdi
lea r14, str._be_
mov r15, rdi
mov eax, dword [rbx + rax]
cmp r12d, eax
je 0x140015ee3
cmp eax, 0xc43
jne 0x14001679d
mov r8, qword [r14]
lea rcx, [rbp + 0x2d0]
mov edx, 0x400
call fcn.1401c9a9c
lea rdx, str.CSIDL_MYDOCUMENTS
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4e4
test rax, rax
je 0x140015f1d
mov esi, 5
lea rax, str.CSIDL_MYDOCUMENTS
jmp 0x140015f91
lea rdx, str.CSIDL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4e4
test rax, rax
je 0x140015f43
mov esi, 0x1a
lea rax, str.CSIDL_APPDATA
jmp 0x140015f91
lea rdx, str.CSIDL_LOCAL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4e4
test rax, rax
je 0x140015f69
mov esi, 0x1c
lea rax, str.CSIDL_LOCAL_APPDATA
jmp 0x140015f91
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4e4
test rax, rax
je 0x14001600e
mov esi, 0x23
lea rax, str.CSIDL_COMMON_APPDATA
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140015fa0
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1401bd260
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 0x14001600e
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.1401c9a9c
jmp 0x140016031
mov rax, qword [r14]
lea r8, [0x140267dec]
mov r9, r13
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rbp + 0x2d0]
call fcn.14000c9f0
lea rax, [rbp + 0x2d0]
mov rcx, 0xffffffffffffffff
nop
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140016040
lea rax, [rbp + 0x2d0]
xor edx, edx
cmp byte [rcx + rax - 1], 0x5c
je 0x140016112
lea rcx, [rbp + 0x2d0]
call fcn.1401ca2d4
test eax, eax
jne 0x14001679d
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
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.140021e00
lea r14, [0x1403a5790]
cmp byte [rbx + r14 + 0x10], 1
jne 0x1400167a4
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.1400171c0
jmp 0x1400167a4
mov r8d, 0x400
lea rcx, [rbp + 0x16d0]
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x12d0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x22d0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x26d0]
mov r8d, 0x400
call fcn.1401bd260
lea r8, [rbp + 0x2d0]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9a9c
lea r14, [0x1403a5790]
mov rax, qword [rbx + r14 + 0x18]
cmp byte [rax], 0
jne 0x1400161a3
lea r8, [rbp + 0x22d0]
lea rdx, str.Full_Directory_content__s:_r_n
lea rcx, [rbp + 0x16d0]
call fcn.140014f00
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400161c5
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.140024b30
lea r8, [rbp + 0x22d0]
mov edx, 0x400
lea rcx, [rbp + 0x26d0]
call fcn.1401c9a9c
lea r8, [0x140267e18]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9cd4
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 0x1400167a4
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8b, 0x10
jne 0x140016344
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x140016344
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e1c]
lea rcx, [rbp + 0x12d0]
call fcn.14000c9f0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.140021e00
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.14000c9f0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016306
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.140024b30
jmp 0x140016424
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140016350
test rax, rax
je 0x14001646f
lea rcx, [rsp + 0x6c]
call fcn.1401bc4e4
test rax, rax
je 0x14001646a
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e1c]
lea rcx, [rbp + 0x12d0]
call fcn.14000c9f0
cmp byte [rsp + 0x6c], 0x2e
je 0x14001677c
xor edx, edx
lea rcx, [rbp + 0x12d0]
call fcn.1401ca2d4
test eax, eax
jne 0x14001677c
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x1400163d2
cmp dword [rsp + 0x60], eax
ja 0x14001677c
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
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.140021e00
cmp byte [rbx + r14 + 0x10], 1
jne 0x14001677c
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.1400171c0
jmp 0x14001677c
mov r8d, dword [rsp + 0x40]
cmp byte [rbx + r14 + 0x20], 0
je 0x14001677c
test r8b, 0x10
je 0x14001677c
cmp byte [rsp + 0x6c], 0x2e
je 0x14001677c
xor edx, edx
lea rcx, [rbp + 0x32d0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x2ed0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x1ad0]
mov r8d, 0x400
call fcn.1401bd260
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.14000c9f0
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.14000c9f0
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 0x14001677a
nop dword [rax]
test byte [rbp + 0x80], 0x10
jne 0x140016634
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x140016634
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e1c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000c9f0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.140021e00
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.14000c9f0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400165f6
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.140024b30
jmp 0x14001671c
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140016640
test rax, rax
je 0x140016759
lea rcx, [rbp + 0xac]
call fcn.1401bc4e4
test rax, rax
je 0x140016759
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e1c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000c9f0
cmp byte [rbp + 0xac], 0x2e
je 0x140016759
xor edx, edx
lea rcx, [rbp + 0x1ad0]
call fcn.1401ca2d4
test eax, eax
jne 0x140016759
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x1400166ca
cmp dword [rbp + 0xa0], eax
ja 0x140016759
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd260
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.140021e00
cmp byte [rbx + r14 + 0x10], 1
jne 0x140016759
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.1400171c0
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140016550
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 0x140016260
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400167a4
lea r14, [0x1403a5790]
inc r15
lea rax, [0x1403a5790]
add r14, 8
lea rbx, [r15 + r15*2]
shl rbx, 4
add r14, rbx
cmp qword [r14], 0
jne 0x140015ed0
mov rcx, qword [rbp + 0x36d0]
xor rcx, rsp
call fcn.1401b72a0
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