Function at 0x140094040
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0xc18]
sub rsp, 0xd00
mov rax, qword [0x140379a08]
xor rax, rsp
mov qword [rbp + 0xbf0], rax
mov r15d, 0x104
lea r9, [rbp + 0x1a0]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
xor edx, edx
lea rcx, [0x140306c80]
call qword [sym.imp.api_ms_win_storage_exports_internal_l1_1_0.dll_SHGetFolderPathEx]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x140094189
lea edx, [rax + 0x20]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_core_shlwapi_obsolete_l1_1_0.dll_StrChrW]
nop dword [rax + rax]
mov rbx, rax
mov edi, r15d
mov rcx, rbx
lea rax, [rbp + 0x1a0]
sub rcx, rax
sar rcx, 1
sub rdi, rcx
test rbx, rbx
je 0x140094189
lea r8, [rbp + 0x1a0]
mov edx, r15d
lea rcx, [rbp + 0x5c0]
call fcn.14003dd20
lea r8, [rbp + 0x1a0]
mov word [rbx], r14w
mov edx, r15d
lea rcx, [rbp + 0x9e0]
call fcn.14003dd20
lea rax, [rdi - 1]
mov ecx, 0x7ffffffe
lea r13d, [r14 + 1]
cmp rax, rcx
ja 0x140181e7a
sub rcx, rdi
lea rdx, [0x1403053a0]
sub rdx, rbx
lea rax, [rcx + rdi]
test rax, rax
je 0x140094155
movzx eax, word [rdx + rbx]
test ax, ax
je 0x140094155
mov word [rbx], ax
add rbx, 2
sub rdi, r13
jne 0x140094137
test rdi, rdi
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140181e8c
mov rcx, qword [rbp + 0xbf0]
xor rcx, rsp
call fcn.1400a2260
lea r11, [rsp + 0xd00]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test rdi, rdi
je 0x140094164
mov word [rbx], r14w
jmp 0x140094164
lea r8, [rbp + 0x1a0]
mov rdx, r15
lea rcx, [rbp + 0x3b0]
call fcn.14003dd20
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathRemoveFileSpecW]
nop dword [rax + rax]
lea r8, [rsp + 0x7c]
mov rdx, r15
lea rcx, [rbp + 0x3b0]
call fcn.1400589ec
mov eax, dword [rsp + 0x50]
mov ebx, r14d
and eax, 0x410
cmp eax, 0x410
jne 0x140181fb1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], r14
lea r9, [0x1402fd8d8]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x1403373a0]
mov r8d, 0x4001
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140181f46
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
call fcn.1401a8d38
mov rcx, qword [rsp + 0x48]
mov esi, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
test esi, esi
js 0x140181fb1
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x7d0]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, r15d
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x14006c37f.0]
test eax, eax
jne 0x140181f9f
or r9d, 0xffffffff
mov dword [rsp + 0x20], r13d
or edx, r9d
lea r8, [rbp + 0x5c0]
lea rcx, [rbp + 0x7d0]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
cmove ebx, r13d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006c37f.0]
test byte [rsp + 0x50], 0x10
je 0x140181fd6
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp + 0x9e0]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140182031
test ebx, ebx
jne 0x140182031
mov rbx, qword [0x14037b618]
call qword [0x14039e7d0]
nop dword [rax + rax]
lea rcx, str.RogueProgramName
mov r8d, SafeArrayUnaccessData
mov qword [rsp + 0x30], rcx
lea r9, [0x1401a65a0]
lea rcx, [rbp + 0x3b0]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rcx
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_shlwapi_winrt_storage_l1_1_1.dll_Ordinal_292]
nop dword [rax + rax]
cmp eax, 5
je 0x14018204d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140181e8c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
nop
jmp 0x140094189