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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r12, rdx
mov r15d, ecx
xor r13d, r13d
lea rcx, [rbp + 0x3d0]
xor edx, edx
mov r8d, 0x208
mov esi, r13d
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], r13
lea rcx, str.S_1_5_18
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x50], r13
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov edx, 0x104
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
lea rax, [rbp + 0x3d0]
cmp word [rax], si
je 0x140002512
add rax, 2
sub rcx, 1
jne 0x140002503
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r13
je 0x140002577
mov edx, 0x104
lea rcx, [rbp + 0x3d0]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140002568
lea r9, str..dll
mov eax, 0x7ffffffe
sub r9, rcx
test rax, rax
je 0x140002568
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140002568
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140002547
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140002839
mov qword [rsp + 0x720], rbx
mov qword [rsp + 0x730], rdi
nop word [rax + rax]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x104
lea rax, [rbp + 0x1c0]
nop
cmp word [rax], r13w
je 0x1400025e0
add rax, 2
sub rcx, 1
jne 0x1400025d0
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r13
je 0x140002644
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x140002635
lea r9, [0x140007558]
mov r8d, 0x7ffffffe
sub r9, rcx
test r8, r8
je 0x140002635
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140002635
mov word [rcx], ax
dec r8
add rcx, 2
sub rdx, 1
jne 0x140002616
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
mov ecx, 0x104
lea rax, [rbp + 0x1c0]
cmp word [rax], r13w
je 0x140002660
add rax, 2
sub rcx, 1
jne 0x140002650
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r13
je 0x1400026c1
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x1400026b2
lea r9, [rbp - 0x64]
mov r8d, 0x7ffffffe
sub r9, rcx
test r8, r8
je 0x1400026b2
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400026b2
mov word [rcx], ax
dec r8
add rcx, 2
sub rdx, 1
jne 0x140002693
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1c0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x140002806
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1400027fd
cmp eax, r15d
jbe 0x1400027fd
lea rax, [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r13
mov r8d, edx
mov qword [rsp + 0x28], r13
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x1400027fd
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1400027f1
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1400027f1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, qword [rsp + 0x40]
mov ebx, r13d
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1400027fd
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r12], rax
test rax, rax
je 0x1400027fd
lea r9, [rbp + 0x1c0]
mov edx, 0x104
lea r8, [0x140007528]
mov rcx, rax
call fcn.140001070
mov esi, 1
jmp 0x1400027fd
lea rcx, str.ConvertSidToStringSid
call fcn.140003900
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140002820
test esi, esi
je 0x1400025b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x730]
mov rbx, qword [rsp + 0x720]
mov eax, esi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1400043b0
mov rsi, qword [rsp + 0x738]
add rsp, 0x6f0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret