Function at 0x140015168
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov rax, qword [0x140036068]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r14d, r14d
mov qword [rbp - 0x51], r8
mov qword [rbp - 0x61], r14
xor edx, edx
mov rcx, qword gs:[0x60]
mov esi, r14d
mov qword [rbp - 0x71], r14
mov r12d, r14d
lea r8d, [r14 + 0x6a]
mov qword [rbp - 0x59], r14
mov r15d, r14d
mov dword [rbp - 0x69], r14d
mov rcx, qword [rcx + 0x30]
mov r13d, r14d
mov dword [rbp - 0x79], r14d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1400151eb
mov ebx, 0xc0000017
jmp 0x1400155ab
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x69]
call fcn.140014c08
test eax, eax
jns 0x14001553c
lea rdx, str.Device
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0x30
mov qword [rbp - 0x31], r14
mov dword [rbp - 0x39], eax
lea r8, [rbp - 0x39]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x21], 0x40
xorps xmm0, xmm0
mov qword [rbp - 0x29], rax
mov edx, 1
lea rcx, [rbp - 0x61]
movdqu xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov ebx, eax
test eax, eax
js 0x1400155ec
mov eax, 0x1000
mov r14d, eax
mov r8d, eax
jmp 0x1400152b2
mov rcx, qword [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, r14d
mov dword [rbp - 0x65], eax
mov rdx, rsi
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov ebx, eax
cmp eax, 0x105
jne 0x1400152db
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add r14d, 0x1000
mov r8d, r14d
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
xor eax, eax
test rsi, rsi
jne 0x14001525e
mov ebx, 0xc0000017
jmp 0x1400155ec
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x1400152f2
cmp ebx, 0x8000001a
jne 0x140015505
cmp word [rsi], r15w
je 0x140015532
lea r14, [rsi + 8]
mov r15, qword [r14 + 0x10]
lea rdx, str.Directory
mov rbx, qword [r14]
mov rcx, r15
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x140015378
lea rdx, str.SymbolicLink
mov rcx, r15
call sub.msvcrt.dll__wcsicmp
xor r15d, r15d
test eax, eax
je 0x14001537b
mov r10d, 1
add r14, 0x20
cmp word [r14 - 8], r15w
jne 0x140015300
test r12d, r12d
je 0x140015532
cmp r12d, r10d
jbe 0x1400154fe
cmp r13d, r10d
je 0x1400154fe
mov rcx, rdi
call fcn.140014cc0
mov ebx, eax
test eax, eax
jns 0x140015568
mov ebx, 0xc0000451
jmp 0x1400155ec
xor r15d, r15d
mov r8d, 8
lea rdx, str.Harddisk
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140015330
lea rcx, [rbx + 0x10]
movzx eax, word [rcx]
test ax, ax
je 0x140015330
mov r8d, 0x30
cmp ax, r8w
jne 0x1400153b9
cmp word [rcx + 2], r15w
je 0x1400153e1
jmp 0x140015330
mov edx, r15d
sub ax, r8w
cmp ax, 9
ja 0x140015330
inc edx
cmp edx, 0xa
ja 0x140015330
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400153bc
mov r9, qword [r14]
lea r8, str.Device_sPartition_lu
mov edx, 0x6a
mov qword [rsp + 0x20], r15
mov rcx, rdi
call fcn.140014ab0
and qword [rbp - 5], 0
lea rcx, [rbp + 7]
xor edx, edx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp - 9]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rbp - 9], 1
mov bl, r15b
call fcn.14001498c
test eax, eax
js 0x140015454
mov al, byte [rbp + 0x1f]
cmp al, 0xf
je 0x140015330
cmp al, 0x10
movzx ebx, bl
mov eax, 1
cmove ebx, eax
cmp qword [rbp - 0x71], r15
je 0x140015477
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x71]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rbp - 0x71], r15
lea rdx, [rbp - 0x71]
mov rcx, rdi
call fcn.140014504
test eax, eax
js 0x140015330
mov rax, qword [rbp - 0x71]
mov r10d, 1
cmp dword [rax], r10d
jne 0x140015336
cmp dword [rax + 4], r15d
jbe 0x140015336
mov edx, dword [rax + 4]
lea rcx, [rax + 0x48]
mov r8, qword [0x14002c898]
mov r9, qword [0x14002c890]
cmp qword [rcx + 8], r9
jne 0x1400154ed
cmp qword [rcx + 0x10], r8
jne 0x1400154ed
test r12d, r12d
je 0x1400154d7
test r13d, r13d
jne 0x1400154e3
test bl, bl
je 0x1400154e3
mov rax, qword [r14]
mov qword [rbp - 0x59], rax
mov eax, dword [rcx]
mov dword [rbp - 0x79], eax
add r12d, r10d
test bl, bl
je 0x1400154ed
add r13d, r10d
add rcx, 0x90
sub rdx, r10
jne 0x1400154bd
jmp 0x140015336
mov ebx, r15d
mov r15, qword [rbp - 0x59]
test ebx, ebx
js 0x1400155e9
test r15, r15
je 0x14001553c
mov eax, dword [rbp - 0x79]
lea r8, str.Device_sPartition_lu
mov r9, r15
mov dword [rsp + 0x20], eax
mov edx, 0x6a
mov rcx, rdi
call fcn.140014ab0
jmp 0x14001555b
mov ebx, 0xc0000452
jmp 0x1400155ec
mov eax, dword [rbp - 0x79]
lea r8, str.DeviceHarddisk_luPartition_lu
mov r9d, dword [rbp - 0x69]
mov edx, 0x6a
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140014ab0
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x1400155ec
mov rax, qword [rbp - 0x51]
mov qword [rax], rdi
cmp qword [rbp - 0x71], r15
je 0x14001558e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x71]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x1400155ab
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1400155ba
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001fbe0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r15d, r15d
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14001556f