Function at 0x140014f90
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.1401b24e0
sub rsp, rax
mov rax, qword [0x14029f7a8]
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.1401b5d40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x6d0]
mov r8d, 0x400
call fcn.1401b5d40
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.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x2ad0]
mov r8d, 0x400
call fcn.1401b5d40
lea r8, str.Search_for_files__r_n
mov edx, 0x104
lea rcx, [rbp + 0x2ad0]
call fcn.14000bde0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
lea rcx, [rbp + 0x2ad0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x140015080
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.140020970
mov r12d, dword [rbx]
lea rax, [0x14036fbd0]
mov r15, rdi
lea r14, str.CSIDL_APPDATACorsairCUEprofiles_
nop dword [rax]
mov eax, dword [rdi + rax]
cmp r12d, eax
je 0x1400150e3
cmp eax, 0xc2b
jne 0x140015993
mov r8, qword [r14]
lea rcx, [rbp + 0x2d0]
mov edx, 0x400
call fcn.1401c0788
lea rdx, str.CSIDL_MYDOCUMENTS
lea rcx, [rbp + 0x2d0]
call fcn.1401b4fc4
test rax, rax
je 0x14001511d
mov esi, 5
lea rax, str.CSIDL_MYDOCUMENTS
jmp 0x140015191
lea rdx, str.CSIDL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401b4fc4
test rax, rax
je 0x140015143
mov esi, 0x1a
lea rax, str.CSIDL_APPDATA
jmp 0x140015191
lea rdx, str.CSIDL_LOCAL_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401b4fc4
test rax, rax
je 0x140015169
mov esi, 0x1c
lea rax, str.CSIDL_LOCAL_APPDATA
jmp 0x140015191
lea rdx, str.CSIDL_COMMON_APPDATA
lea rcx, [rbp + 0x2d0]
call fcn.1401b4fc4
test rax, rax
je 0x14001520e
mov esi, 0x23
lea rax, str.CSIDL_COMMON_APPDATA
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400151a0
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x104
call fcn.1401b5d40
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 0x14001520e
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.1401c0788
jmp 0x140015231
mov rax, qword [r14]
lea r8, [0x14025b56c]
mov r9, r13
mov qword [rsp + 0x20], rax
mov edx, 0x400
lea rcx, [rbp + 0x2d0]
call fcn.14000bde0
lea rax, [rbp + 0x2d0]
mov rcx, 0xffffffffffffffff
nop
cmp byte [rax + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140015240
lea rax, [rbp + 0x2d0]
xor edx, edx
cmp byte [rcx + rax - 1], 0x5c
je 0x140015308
lea rcx, [rbp + 0x2d0]
call fcn.1401c0fc0
test eax, eax
jne 0x140015993
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
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.14001e6c0
lea r14, [0x14036fbd0]
cmp byte [rdi + r14 + 0x10], 1
jne 0x14001599a
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.1400163b0
jmp 0x14001599a
mov r8d, 0x400
lea rcx, [rbp + 0x16d0]
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x12d0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x22d0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x26d0]
mov r8d, 0x400
call fcn.1401b5d40
lea r8, [rbp + 0x2d0]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c0788
lea r14, [0x14036fbd0]
mov rax, qword [rdi + r14 + 0x18]
cmp byte [rax], 0
jne 0x140015399
lea r8, [rbp + 0x22d0]
lea rdx, str.Full_Directory_content__s:_r_n
lea rcx, [rbp + 0x16d0]
call fcn.140014120
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400153c0
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.140020970
lea r8, [rbp + 0x22d0]
mov edx, 0x400
lea rcx, [rbp + 0x26d0]
call fcn.1401c0788
lea r8, [0x14025b598]
mov edx, 0x400
lea rcx, [rbp + 0x22d0]
call fcn.1401c09c0
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 0x14001599a
nop dword [rax + rax]
mov r8d, dword [rsp + 0x40]
test r8b, 0x10
jne 0x140015544
mov rcx, qword [rdi + r14 + 0x18]
cmp byte [rcx], 0
jne 0x140015544
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x14025b59c]
lea rcx, [rbp + 0x12d0]
call fcn.14000bde0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x12d0]
call fcn.14001e6c0
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.14000bde0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140015506
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.140020970
jmp 0x140015624
mov rdx, qword [rdi + r14 + 0x18]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140015550
test rax, rax
je 0x140015665
lea rcx, [rsp + 0x6c]
call fcn.1401b4fc4
test rax, rax
je 0x140015660
lea rax, [rsp + 0x6c]
mov edx, 0x400
lea r9, [rbp + 0x26d0]
mov qword [rsp + 0x20], rax
lea r8, [0x14025b59c]
lea rcx, [rbp + 0x12d0]
call fcn.14000bde0
cmp byte [rsp + 0x6c], 0x2e
je 0x140015972
xor edx, edx
lea rcx, [rbp + 0x12d0]
call fcn.1401c0fc0
test eax, eax
jne 0x140015972
mov eax, dword [rdi + r14 + 0x24]
test eax, eax
je 0x1400155d2
cmp dword [rsp + 0x60], eax
ja 0x140015972
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
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.14001e6c0
cmp byte [rdi + r14 + 0x10], 1
jne 0x140015972
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.1400163b0
jmp 0x140015972
mov r8d, dword [rsp + 0x40]
cmp byte [rdi + r14 + 0x20], 0
je 0x140015972
test r8b, 0x10
je 0x140015972
cmp byte [rsp + 0x6c], 0x2e
je 0x140015972
xor edx, edx
lea rcx, [rbp + 0x32d0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x2ed0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x1ad0]
mov r8d, 0x400
call fcn.1401b5d40
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.14000bde0
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.14000bde0
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 0x140015970
test byte [rbp + 0x80], 0x10
jne 0x14001582e
mov rcx, qword [rdi + r14 + 0x18]
cmp byte [rcx], 0
jne 0x14001582e
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x14025b59c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000bde0
lea rdx, [rbp + 0x6d0]
lea rcx, [rbp + 0x1ad0]
call fcn.14001e6c0
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.14000bde0
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
lea rcx, [rbp + 0x16d0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400157f0
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.140020970
jmp 0x14001591c
mov rdx, qword [rdi + r14 + 0x18]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140015840
test rax, rax
je 0x14001594f
lea rcx, [rbp + 0xac]
call fcn.1401b4fc4
test rax, rax
je 0x14001594f
lea rax, [rbp + 0xac]
mov edx, 0x400
lea r9, [rbp + 0x2ed0]
mov qword [rsp + 0x20], rax
lea r8, [0x14025b59c]
lea rcx, [rbp + 0x1ad0]
call fcn.14000bde0
cmp byte [rbp + 0xac], 0x2e
je 0x14001594f
xor edx, edx
lea rcx, [rbp + 0x1ad0]
call fcn.1401c0fc0
test eax, eax
jne 0x14001594f
mov eax, dword [rdi + r14 + 0x24]
test eax, eax
je 0x1400158ca
cmp dword [rbp + 0xa0], eax
ja 0x14001594f
xor edx, edx
lea rcx, [rbp + 0x1ed0]
mov r8d, 0x400
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0xad0]
mov r8d, 0x800
call fcn.1401b5d40
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.14001e6c0
cmp byte [rdi + r14 + 0x10], 1
jne 0x14001594f
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.1400163b0
lea rdx, [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140015743
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 0x140015460
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001599a
lea r14, [0x14036fbd0]
inc r15
lea rax, [0x14036fbd0]
add r14, 8
lea rdi, [r15 + r15*2]
shl rdi, 4
add r14, rdi
cmp qword [r14], 0
jne 0x1400150d0
mov rcx, qword [rbp + 0x36d0]
xor rcx, rsp
call fcn.1401b1a60
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