Function at 0x140058bc0
Capabilities:
Check for time delay via gettickcount
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
xor edi, edi
mov rbx, r8
mov esi, r9d
mov r8, qword [0x14012fa58]
cmp byte [rbp + 0x6e8], dil
jne 0x140058c65
cmp word [rbx], di
jne 0x140058c4d
mov rax, r8
cmp byte [rax + 0x150], dil
mov dword [rax + 0x40], 0x57
lea rdx, [0x14010c7dc]
jne 0x140058c37
mov rcx, qword [0x140134400]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400ab090
xor eax, eax
jmp 0x1400592c8
lea r9, [0x140117ad8]
xor r8d, r8d
call fcn.140040a70
xor eax, eax
jmp 0x1400592c8
test r9d, r9d
mov dword [r8 + 0x40], edi
mov eax, 1
cmovne eax, r9d
mov esi, eax
mov dword [rbp + 0x6d8], eax
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140058c70
cmp rax, 0x104
jb 0x140058c95
cmp byte [r8 + 0x150], dil
mov dword [r8 + 0x40], WSAStartup
jmp 0x140058c0f
mov r8d, 0x3f
lea rcx, [rbp + 0x200]
call fcn.1400cc9b8
lea rdx, [rbp + 0x490]
mov word [rbp + 0x27e], di
sub rdx, rbx
mov rcx, rbx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140058cc0
lea rcx, [rbp + 0x280]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140058ce0
mov edx, 0x5c
lea rcx, [rbp + 0x280]
call fcn.1400c6d90
test rax, rax
je 0x140058d20
mov word [rax + 2], di
lea rcx, [rbp + 0x280]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140058d15
jmp 0x140058d2a
mov word [rbp + 0x280], di
mov rax, rdi
lea rcx, [rbp + 0x280]
mov edx, 0x5c
lea rcx, [rcx + rax*2]
mov qword [rsp + 0x48], rcx
mov ecx, 0x103
sub rcx, rax
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x490]
call fcn.1400c6d90
test rax, rax
je 0x140058d63
add rax, 2
jmp 0x140058d6a
lea rax, [rbp + 0x490]
mov qword [rsp + 0x40], rax
mov r8, rax
test rax, rax
je 0x140058db0
movzx edx, word [rax]
test dx, dx
je 0x140058db0
nop
lea rcx, [0x140116778]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x140058dbb
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140058d90
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140058d80
mov esi, 3
mov dword [rbp + 0x6d8], esi
xor ebx, ebx
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x490]
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword gs:[0x48]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x34], ecx
cmp rax, 0xffffffffffffffff
je 0x1400590e4
movsxd rsi, esi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fa58]
sub eax, dword [0x14013a19c]
cmp eax, dword [rcx + 0x118]
jbe 0x140058e5e
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rbp + 0x1c8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140058e4b
mov eax, dword [rsp + 0x34]
cmp dword [0x140139538], eax
jne 0x140058e4b
mov edx, 1
or ecx, 0xffffffff
call fcn.1400018b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fa58]
mov dword [0x14013a19c], eax
mov edx, dword [rsp + 0x60]
test dl, 0x10
je 0x140058e97
cmp word [rbp - 0x74], 0x2e
jne 0x140058e8c
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x1400590c1
cmp ax, 0x2e
jne 0x140058e8c
cmp word [rbp - 0x70], 0
je 0x1400590c1
cmp rsi, 1
jne 0x140058ea1
jmp 0x1400590c1
cmp rsi, 2
je 0x1400590c1
lea r8, [rbp - 0x74]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140058eb0
cmp rax, qword [rsp + 0x38]
jbe 0x140058ed4
inc ebx
mov dword [rcx + 0x40], WSAStartup
mov dword [rsp + 0x30], ebx
jmp 0x1400590c1
mov r8, qword [rsp + 0x48]
lea rax, [rbp - 0x74]
sub r8, rax
lea rcx, [rbp - 0x74]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [r8 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140058ef0
lea rsi, [rbp + 0x200]
cmp word [rbp + 0x200], ax
je 0x140059095
movzx ebx, word [rsi]
test ebx, 0xffffff80
jne 0x140058f37
mov edx, 2
mov ecx, ebx
call fcn.1400cb124
mov edx, dword [rsp + 0x60]
test eax, eax
je 0x140058f37
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x140058f63.44
lea r8, sym.MZ_kiv9nMDWjqg_I7rrTcpI88_u4Z_bB_FPuaQ9q_
cdqe
movzx eax, byte [r8 + rax + 0x59308]
mov ecx, dword [r8 + rax*4 + 0x592dc]
add rcx, r8
jmp rcx
mov edi, 1
jmp case.0x140058f63.44
mov edi, 2
jmp case.0x140058f63.44
mov edi, 3
jmp case.0x140058f63.44
cmp edi, 1
jne 0x140058f8f
or edx, edi
jmp 0x14005907f
cmp edi, 2
jne 0x140058f9c
and edx, 0xfffffffe
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
xor edx, 1
jmp 0x14005907f
cmp edi, 1
jne 0x140058fba
or edx, 0x20
jmp 0x14005907f
cmp edi, 2
jne 0x140058fc7
and edx, 0xffffffdf
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
xor edx, 0x20
jmp 0x14005907f
cmp edi, 1
jne 0x140058fe5
or edx, 4
jmp 0x14005907f
cmp edi, 2
jne 0x140058ff2
and edx, 0xfffffffb
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
xor edx, 4
jmp 0x14005907f
cmp edi, 1
jne 0x14005900a
or edx, 2
jmp 0x14005907f
cmp edi, 2
jne 0x140059014
and edx, 0xfffffffd
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
xor edx, 2
jmp 0x14005907f
cmp edi, 1
jne 0x140059029
bts edx, 7
jmp 0x14005907f
cmp edi, 2
jne 0x140059034
btr edx, 7
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
btc edx, 7
jmp 0x14005907f
cmp edi, 1
jne 0x14005904a
bts edx, 0xc
jmp 0x14005907f
cmp edi, 2
jne 0x140059055
btr edx, 0xc
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
btc edx, 0xc
jmp 0x14005907f
cmp edi, 1
jne 0x14005906b
bts edx, 8
jmp 0x14005907f
cmp edi, 2
jne 0x140059076
btr edx, 8
jmp 0x14005907f
cmp edi, 3
jne case.0x140058f63.44
btc edx, 8
mov dword [rsp + 0x60], edx
add rsi, 2
cmp word [rsi], 0
jne 0x140058f15
mov ebx, dword [rsp + 0x30]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400590bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14012fa58]
inc ebx
mov dword [rsp + 0x30], ebx
mov dword [rcx + 0x40], eax
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140058df6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
movzx esi, byte [rbp + 0x6e0]
test sil, sil
je 0x14005925d
cmp qword [rsp + 0x38], 2
jbe 0x14005925d
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
movabs rcx, 0x2a002e002a
mov qword [rax], rcx
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005925d
mov rax, qword [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140059140
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012fa58]
sub eax, dword [0x14013a19c]
cmp eax, dword [rcx + 0x118]
jbe 0x1400591b1
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rbp + 0x1c8]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400591a5
mov eax, dword [rsp + 0x34]
cmp dword [0x140139538], eax
jne 0x1400591a5
mov edx, 1
or ecx, 0xffffffff
call fcn.1400018b0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14013a19c], eax
test byte [rsp + 0x60], 0x10
je 0x14005923e
cmp word [rbp - 0x74], 0x2e
jne 0x1400591d9
movzx eax, word [rbp - 0x72]
test ax, ax
je 0x14005923e
cmp ax, 0x2e
jne 0x1400591d9
cmp word [rbp - 0x70], 0
je 0x14005923e
lea rcx, [rbp - 0x74]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400591e1
add rax, rbx
cmp rax, qword [rsp + 0x38]
jae 0x14005923e
mov r9, qword [rsp + 0x40]
lea r8, [rbp - 0x74]
mov rcx, qword [rsp + 0x48]
lea rdx, [0x14010ea88]
call fcn.140004f10
mov r9d, dword [rbp + 0x6d8]
lea r8, [rbp + 0x280]
mov rcx, qword [rbp + 0x6c0]
lea rdx, [rbp + 0x200]
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], sil
call fcn.140058bc0
add dword [rsp + 0x30], eax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140059150
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x6e8], 0
jne 0x1400592c2
movsxd rbx, dword [rsp + 0x30]
test ebx, ebx
je 0x1400592ae
mov rax, qword [0x14012fa58]
cmp byte [rax + 0x150], 0
je 0x1400592ae
mov r8d, 0xa
lea rdx, [rbp + 0x1b0]
mov ecx, ebx
call fcn.1400c8478
mov rcx, qword [rbp + 0x6c0]
lea r9, [0x140117ad8]
mov rdx, rax
xor r8d, r8d
call fcn.140040a70
jmp 0x1400592c6
mov rcx, qword [0x140134400]
mov rdx, rbx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001380
jmp 0x1400592c6
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x7c8]
add rsp, 0x7a0
pop rdi
pop rsi
pop rbp
ret