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.1401b79c0
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.1401bcf00
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x400
call fcn.1401bcf00
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.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x2ad0]
mov r8d, 0x400
call fcn.1401bcf00
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.1401bcf00
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.1400247d0
mov r12d, dword [rbx]
lea rax, [0x140391200]
mov r15, rdi
lea r14, str.xU_
nop dword [rax]
mov eax, dword [rdi + rax]
cmp r12d, eax
je 0x140015d63
cmp eax, 0xc38
jne 0x140016613
mov r8, qword [r14]
lea rcx, [rbp + 0x2d0]
mov edx, 0x400
call fcn.1401c973c
lea rdx, str.CSIDL_MYDOCUMENTS
lea rcx, [rbp + 0x2d0]
call fcn.1401bc184
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.1401bc184
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.1401bc184
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.1401bc184
test rax, rax
je 0x140015e8e
mov esi, 0x23
lea rax, str.CSIDL_COMMON_APPDATA
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140015e20
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1401bcf00
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, rbx
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea r8, [rbp + 0x1c0]
mov edx, 0x400
lea rcx, [rbp + 0x2d0]
call fcn.1401c973c
jmp 0x140015eb1
mov rax, qword [r14]
lea r8, [0x140266d4c]
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 0x140015f88
lea rcx, [rbp + 0x2d0]
call fcn.1401c9f74
test eax, eax
jne 0x140016613
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcf00
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.140021b80
lea r14, [0x140391200]
cmp byte [rdi + r14 + 0x10], 1
jne 0x14001661a
movzx eax, byte [rdi + r14 + 0x28]
lea r9, [rbp + 0xad0]
lea r8, [rbp + 0x6d0]
mov byte [rsp + 0x20], al
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x2d0]
call fcn.140017030
jmp 0x14001661a
mov r8d, 0x400
lea rcx, [rbp + 0x16d0]
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x12d0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x22d0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x26d0]
mov r8d, 0x400
call fcn.1401bcf00
lea r8, [rbp + 0x2d0]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c973c
lea r14, [0x140391200]
mov rax, qword [rdi + r14 + 0x18]
cmp byte [rax], 0
jne 0x140016019
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.1401bcf00
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140016040
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.1400247d0
lea r8, [rbp + 0x22d0]
mov edx, 0x400
lea rcx, [rbp + 0x26d0]
call fcn.1401c973c
lea r8, [0x140266d78]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c9974
xor ebx, ebx
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x22d0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001661a
nop dword [rax + rax]
mov r8d, dword [rsp + 0x40]
test r8b, 0x10
jne 0x1400161c4
mov rcx, qword [rdi + 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, [0x140266d7c]
lea rcx, [rbp + 0x12d0]
call fcn.14000ca40
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.140021b80
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.1401bcf00
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.1400247d0
jmp 0x1400162a4
mov rdx, qword [rdi + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x1400161d0
test rax, rax
je 0x1400162e5
lea rcx, [rsp + 0x6c]
call fcn.1401bc184
test rax, rax
je 0x1400162e0
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266d7c]
lea rcx, [rbp + 0x12d0]
call fcn.14000ca40
cmp byte [rsp + 0x6c], 0x2e
je 0x1400165f2
xor edx, edx
lea rcx, [rbp + 0x12d0]
call fcn.1401c9f74
test eax, eax
jne 0x1400165f2
mov eax, dword [rdi + r14 + 0x24]
test eax, eax
je 0x140016252
cmp dword [rsp + 0x60], eax
ja 0x1400165f2
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcf00
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.140021b80
cmp byte [rdi + r14 + 0x10], 1
jne 0x1400165f2
movzx eax, byte [rdi + r14 + 0x28]
lea r9, [rbp + 0xad0]
lea r8, [rbp + 0x6d0]
mov byte [rsp + 0x20], al
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x12d0]
call fcn.140017030
jmp 0x1400165f2
mov r8d, dword [rsp + 0x40]
cmp byte [rdi + r14 + 0x20], 0
je 0x1400165f2
test r8b, 0x10
je 0x1400165f2
cmp byte [rsp + 0x6c], 0x2e
je 0x1400165f2
xor edx, edx
lea rcx, [rbp + 0x32d0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x2ed0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0x1ad0]
mov r8d, 0x400
call fcn.1401bcf00
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], ebx
lea r8, [rbp + 0x80]
mov qword [rsp + 0x20], rbx
xor edx, edx
lea rcx, [rbp + 0x32d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400165f0
test byte [rbp + 0x80], 0x10
jne 0x1400164ae
mov rcx, qword [rdi + r14 + 0x18]
cmp byte [rcx], 0
jne 0x1400164ae
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266d7c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000ca40
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.140021b80
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.1401bcf00
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140016470
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.1400247d0
jmp 0x14001659c
mov rdx, qword [rdi + r14 + 0x18]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400164c0
test rax, rax
je 0x1400165cf
lea rcx, [rbp + 0xac]
call fcn.1401bc184
test rax, rax
je 0x1400165cf
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x140266d7c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000ca40
cmp byte [rbp + 0xac], 0x2e
je 0x1400165cf
xor edx, edx
lea rcx, [rbp + 0x1ad0]
call fcn.1401c9f74
test eax, eax
jne 0x1400165cf
mov eax, dword [rdi + r14 + 0x24]
test eax, eax
je 0x14001654a
cmp dword [rbp + 0xa0], eax
ja 0x1400165cf
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401bcf00
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401bcf00
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.140021b80
cmp byte [rdi + r14 + 0x10], 1
jne 0x1400165cf
movzx eax, byte [rdi + r14 + 0x28]
lea r9, [rbp + 0xad0]
lea r8, [rbp + 0x6d0]
mov byte [rsp + 0x20], al
lea rdx, [rbp + 0x1ed0]
lea rcx, [rbp + 0x1ad0]
call fcn.140017030
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400163c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
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 0x14001661a
lea r14, [0x140391200]
inc r15
lea rax, [0x140391200]
add r14, 8
lea rdi, [r15 + r15*2]
shl rdi, 4
add r14, rdi
cmp qword [r14], 0
jne 0x140015d50
mov rcx, qword [rbp + 0x36d0]
xor rcx, rsp
call fcn.1401b6f40
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