Function at 0x1800013b0
Capabilities:
Accept command line arguments
Enumerate files on windows
Get common file path
Get disk information
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6d0
mov rax, qword [0x18001a2b0]
xor rax, rsp
mov qword [rsp + 0x6c0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
mov rbp, rax
test rax, rax
je 0x180001446
cmp dword [rsp + 0x30], ebx
mov edi, ebx
jle 0x18000143d
mov rsi, rax
nop word [rax + rax]
mov rcx, qword [rsi]
lea rdx, [0x180014598]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x18001be00]
test eax, eax
cmovne ecx, edi
inc edi
add rsi, 8
cmp edi, dword [rsp + 0x30]
mov dword [0x18001be00], ecx
jl 0x180001410
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x11c
call fcn.1800045f0
lea rdx, [rsp + 0x2a0]
lea rbp, [0x180000000]
mov rax, qword [rbp + 0x14588]
lea rcx, [0x18001a210]
mov dword [rsp + 0x40], 0x11c
mov qword [rdx], rax
movzx eax, word [rbp + 0x14590]
mov word [rdx + 8], ax
mov edx, 0xd
call section..text
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18001a210]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800016b9
lea rdx, [rsp + 0x4e0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r11, [rsp + 0x460]
lea r9, [rsp + 0x3e0]
lea r8, [rsp + 0x5f0]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x4e0]
mov qword [rsp + 0x20], r11
call fcn.180004520
mov esi, 1
cmp byte [rsp + 0x2b0], bl
je 0x180001584
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
dec eax
cmp eax, 5
ja case.default.0x180001534
mov ecx, dword [rbp + rax*4 + 0x16ec]
add rcx, rbp
jmp rcx
mov dword [0x18001bdfc], esi
jmp 0x180001584
mov dword [0x18001bdfc], 2
jmp 0x180001584
mov dword [0x18001bdfc], 3
jmp 0x180001584
mov dword [0x18001bdfc], 4
jmp 0x180001584
mov dword [0x18001bdfc], 5
jmp 0x180001584
mov dword [0x18001bdfc], 6
jmp 0x180001584
mov dword [0x18001bdfc], 7
lea rcx, [rsp + 0x40]
call rdi
test eax, eax
jne 0x1800016b9
mov eax, dword [rsp + 0x44]
cmp eax, 6
jb 0x1800016b9
lea rax, [rsp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8015
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x180001661
lea rdx, str..tmp
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180001612
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Invalid_file_handle._Error_is__u._n
mov edx, eax
call fcn.180003fd4
jmp 0x180001661
lea rdx, [rsp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x180001658
nop word [rax + rax]
lea rcx, [rsp + 0x18c]
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180001630
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x18001bcc8]
mov ebx, esi
cmp dword [rsp + 0x48], ebx
cmova eax, esi
mov dword [0x18001bcc8], eax
mov eax, dword [rsp + 0x44]
cmp eax, 6
jbe 0x1800016b9
lea rcx, [0x18001a200]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp rax, 0xffffffffffffffff
jne 0x1800016ad
lea rdi, [0x18001a200]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [0x18001bcc8], esi
mov dword [0x18001bccc], esi
mov eax, ebx
mov dword [0x18001bdd4], ebx
mov rcx, qword [rsp + 0x6c0]
xor rcx, rsp
call fcn.1800045c0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret