Function at 0x1800370b0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0xc0000001
mov dword [rsp + 0x54], 0xc0000001
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0xe0], 0
jne 0x18003713c
mov eax, 0xc00000f2
jmp 0x18003733f
cmp qword [rsp + 0xd0], 0
je 0x1800371e4
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
lea r8, [rsp + 0x88]
mov edx, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800371e2
mov eax, dword [rsp + 0x40]
jmp 0x18003733f
jmp 0x1800371f9
cmp qword [rsp + 0xd8], 0
jne 0x1800371f9
mov eax, 0xc00000f0
jmp 0x18003733f
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xc0000023
je 0x180037238
jmp 0x18003731e
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x60], rax
call fcn.18002d6e0
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov edx, 8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180037276
jmp 0x18003731e
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x1800372ca
call fcn.18002d6e0
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x18003731e
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x54], eax
call fcn.18002d6e0
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [rsp + 0x54], 0
jl 0x180037313
mov dword [rsp + 0x40], 0
jmp 0x18003731e
xor eax, eax
cmp eax, 1
jne 0x1800371f9
cmp qword [rsp + 0x58], 0
je 0x180037331
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x18003733b
mov eax, dword [rsp + 0x40]
add rsp, 0xc0
pop rdi
ret