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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x900
mov rax, qword [0x1800964f0]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov r14, rcx
mov r15, rdx
xor esi, esi
lea rcx, [rsp + 0x6d1]
xor edx, edx
mov r8d, 0x103
mov qword [rsp + 0x38], r9
mov ebp, esi
mov byte [rsp + 0x6d0], sil
call fcn.180055310
lea rcx, [rsp + 0x7e1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x7e0], sil
call fcn.180055310
lea rcx, [rsp + 0x181]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x180], sil
call fcn.180055310
lea rcx, [rsp + 0x291]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x290], sil
call fcn.180055310
lea rcx, [rsp + 0x3a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x3a0], sil
call fcn.180055310
lea rcx, [rsp + 0x5c1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x5c0], sil
call fcn.180055310
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x10]
xor ecx, ecx
mov dword [0x1800a5424], esi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180030de3
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x6d0]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea r8, [rsp + 0x30]
mov edx, 0x19
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180030e0c
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x7e0]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov r12d, esi
mov r13d, esi
lea rcx, [rsp + 0x180]
mov r8d, 0x104
lea rdx, [rsp + 0x6d0]
test r12d, r12d
je 0x180030e35
lea rdx, [rsp + 0x7e0]
call fcn.180054180
lea rcx, [rsp + 0x3a0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
mov rdx, rsi
movzx eax, byte [rsp + rdx + 0x180]
inc rdx
mov byte [rsp + rdx + 0x39f], al
test al, al
jne 0x180030e52
lea rcx, [rsp + 0x4b0]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
mov rdx, rsi
movzx eax, byte [rsp + rdx + 0x180]
inc rdx
mov byte [rsp + rdx + 0x4af], al
test al, al
jne 0x180030e80
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x180]
repne scasb al, byte [rdi]
mov eax, dword [str._.]
lea rdx, [rsp + 0x40]
mov dword [rdi - 1], eax
movzx eax, byte [0x180080684]
lea rcx, [rsp + 0x180]
mov byte [rdi + 3], al
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180031108
nop dword [rax]
lea rcx, [rsp + 0x290]
xor edx, edx
mov r8d, 0x104
call fcn.180055310
mov rdx, rsi
nop dword [rax + rax]
movzx ecx, byte [rsp + rdx + 0x6c]
inc rdx
mov byte [rsp + rdx + 0x28f], cl
test cl, cl
jne 0x180030f00
mov rcx, rsi
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x6c]
inc rcx
mov byte [rsp + rcx + 0x5bf], al
test al, al
jne 0x180030f20
lea rsi, [rsp + 0x290]
lea rdi, [0x180080260]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x180030fa6
lea rsi, [rsp + 0x290]
lea rdi, [0x180080264]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x180030fa6
lea rcx, [rsp + 0x290]
mov edx, 0x2e
call fcn.180051920
test rax, rax
je 0x180030fa6
mov byte [rax], 0
lea rax, [rsp + 0x290]
mov rdi, r14
sub rdi, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x180030fa2
inc rax
test ecx, ecx
jne 0x180030f90
test edx, edx
je 0x180030fc3
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x180031102
xor esi, esi
jmp 0x180030ee0
lea rdx, str..vbs
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180030ffb
lea rdx, str..bat
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x18003107e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x4b0]
repne scasb al, byte [rdi]
movzx eax, word [0x180080268]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x4b0]
repne scasb al, byte [rdi]
mov dword [0x1800a5424], 1
lea rdx, [rsp + 0x6c]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180031040
lea rax, [rsp + 0x4b0]
mov rdx, r15
lea rcx, [rsp + 0x4b0]
sub rdx, rax
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x180031070
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x3a0]
repne scasb al, byte [rdi]
movzx eax, word [0x180080268]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x3a0]
repne scasb al, byte [rdi]
mov r13d, 1
lea rdx, [rsp + 0x6c]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1800310c0
mov r9, qword [rsp + 0x38]
lea rcx, [rsp + 0x3a0]
mov r8d, 0x400
mov rdx, r15
mov dword [rsp + 0x20], 0x400
call fcn.180033f70
cmp byte [r15], 0
mov esi, 0
mov ebp, eax
cmove ebp, esi
jmp 0x180031108
or rbx, 0xffffffffffffffff
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13d, r13d
jne 0x180031123
inc r12d
cmp r12d, 2
jl 0x180030e12
mov eax, ebp
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.180050540
mov rbx, qword [rsp + 0x940]
add rsp, 0x900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret