Function at 0x140015e30
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.1401b7d00
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.1401bd240
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x400
call fcn.1401bd240
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.1401bd240
xor edx, edx
lea rcx, [rbp + 0x2ad0]
mov r8d, 0x400
call fcn.1401bd240
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.1401bd240
lea rcx, [rbp + 0x2ad0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140015f20
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.140024bd0
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 0x140015f83
cmp eax, 0xc43
jne 0x14001683d
mov r8, qword [r14]
lea rcx, [rbp + 0x2d0]
mov edx, 0x400
call fcn.1401c9a7c
lea rdx, str.CSIDL_MYDOCUMENTS
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4c4
test rax, rax
je 0x140015fbd
mov esi, 5
lea rax, str.CSIDL_MYDOCUMENTS
jmp 0x140016031
lea rdx, str.CSIDL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4c4
test rax, rax
je 0x140015fe3
mov esi, 0x1a
lea rax, str.CSIDL_APPDATA
jmp 0x140016031
lea rdx, str.CSIDL_LOCAL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4c4
test rax, rax
je 0x140016009
mov esi, 0x1c
lea rax, str.CSIDL_LOCAL_APPDATA
jmp 0x140016031
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401bc4c4
test rax, rax
je 0x1400160ae
mov esi, 0x23
lea rax, str.CSIDL_COMMON_APPDATA
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140016040
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1401bd240
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 0x1400160ae
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.1401c9a7c
jmp 0x1400160d1
mov rax, qword [r14]
lea r8, [0x140267df4]
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 0x1400160e0
lea rax, [rbp + 0x2d0]
xor edx, edx
cmp byte [rcx + rax - 1], 0x5c
je 0x1400161b2
lea rcx, [rbp + 0x2d0]
call fcn.1401ca2b4
test eax, eax
jne 0x14001683d
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd240
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.140021ea0
lea r14, [0x1403a5790]
cmp byte [rbx + r14 + 0x10], 1
jne 0x140016844
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.140017260
jmp 0x140016844
mov r8d, 0x400
lea rcx, [rbp + 0x16d0]
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x12d0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x22d0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x26d0]
mov r8d, 0x400
call fcn.1401bd240
lea r8, [rbp + 0x2d0]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9a7c
lea r14, [0x1403a5790]
mov rax, qword [rbx + r14 + 0x18]
cmp byte [rax], 0
jne 0x140016243
lea r8, [rbp + 0x22d0]
lea rdx, str.Full_Directory_content__s:_r_n
lea rcx, [rbp + 0x16d0]
call fcn.140014f10
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd240
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016265
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.140024bd0
lea r8, [rbp + 0x22d0]
mov edx, 0x400
lea rcx, [rbp + 0x26d0]
call fcn.1401c9a7c
lea r8, [0x140267e20]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9cb4
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 0x140016844
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8b, 0x10
jne 0x1400163e4
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x1400163e4
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e24]
lea rcx, [rbp + 0x12d0]
call fcn.14000c9f0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.140021ea0
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.1401bd240
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400163a6
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.140024bd0
jmp 0x1400164c4
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400163f0
test rax, rax
je 0x14001650f
lea rcx, [rsp + 0x6c]
call fcn.1401bc4c4
test rax, rax
je 0x14001650a
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e24]
lea rcx, [rbp + 0x12d0]
call fcn.14000c9f0
cmp byte [rsp + 0x6c], 0x2e
je 0x14001681c
xor edx, edx
lea rcx, [rbp + 0x12d0]
call fcn.1401ca2b4
test eax, eax
jne 0x14001681c
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x140016472
cmp dword [rsp + 0x60], eax
ja 0x14001681c
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd240
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.140021ea0
cmp byte [rbx + r14 + 0x10], 1
jne 0x14001681c
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.140017260
jmp 0x14001681c
mov r8d, dword [rsp + 0x40]
cmp byte [rbx + r14 + 0x20], 0
je 0x14001681c
test r8b, 0x10
je 0x14001681c
cmp byte [rsp + 0x6c], 0x2e
je 0x14001681c
xor edx, edx
lea rcx, [rbp + 0x32d0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x2ed0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0x1ad0]
mov r8d, 0x400
call fcn.1401bd240
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 0x14001681a
nop dword [rax]
test byte [rbp + 0x80], 0x10
jne 0x1400166d4
mov rcx, qword [rbx + r14 + 0x18]
cmp byte [rcx], 0
jne 0x1400166d4
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e24]
lea rcx, [rbp + 0x1ad0]
call fcn.14000c9f0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.140021ea0
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.1401bd240
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140016696
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.140024bd0
jmp 0x1400167bc
mov rdx, qword [rbx + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400166e0
test rax, rax
je 0x1400167f9
lea rcx, [rbp + 0xac]
call fcn.1401bc4c4
test rax, rax
je 0x1400167f9
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140267e24]
lea rcx, [rbp + 0x1ad0]
call fcn.14000c9f0
cmp byte [rbp + 0xac], 0x2e
je 0x1400167f9
xor edx, edx
lea rcx, [rbp + 0x1ad0]
call fcn.1401ca2b4
test eax, eax
jne 0x1400167f9
mov eax, dword [rbx + r14 + 0x24]
test eax, eax
je 0x14001676a
cmp dword [rbp + 0xa0], eax
ja 0x1400167f9
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bd240
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bd240
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.140021ea0
cmp byte [rbx + r14 + 0x10], 1
jne 0x1400167f9
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.140017260
lea rdx, [rbp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400165f0
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 0x140016300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140016844
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 0x140015f70
mov rcx, qword [rbp + 0x36d0]
xor rcx, rsp
call fcn.1401b7280
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