Function at 0x140006748
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 [0x14000f098]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor eax, eax
mov dword [rbp - 0x61], ecx
mov qword [rbp - 0x59], rax
mov ebx, ecx
mov rcx, qword gs:[0x60]
mov r14, r8
mov qword [rbp - 0x49], r8
xor edx, edx
lea r8d, [rax + 0x6a]
mov qword [rbp - 0x71], rax
mov esi, eax
mov qword [rbp - 0x51], rax
mov rcx, qword [rcx + 0x30]
mov r12d, eax
mov r15d, eax
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x79], eax
mov r13d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x1400067cf
mov ebx, 0xc0000017
jmp 0x140006b91
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x69]
call fcn.140006150
test eax, eax
jns 0x140006b02
lea rdx, str.Device
lea rcx, [rbp - 0x41]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r14d, r14d
mov dword [rbp - 0x19], 0x40
mov eax, 0x30
mov qword [rbp - 0x29], r14
mov dword [rbp - 0x31], eax
lea r8, [rbp - 0x31]
lea rax, [rbp - 0x41]
xorps xmm0, xmm0
lea edx, [r14 + 1]
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x59]
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov ebx, eax
test eax, eax
js 0x140006bd2
mov eax, 0x1000
mov r14d, eax
mov r8d, eax
jmp 0x140006898
mov rcx, qword [rbp - 0x59]
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 0x1400068c1
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 0x140006844
mov ebx, 0xc0000017
jmp 0x140006bd2
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x1400068d8
cmp ebx, 0x8000001a
jne 0x140006af3
cmp word [rsi], r15w
je 0x140006b2b
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 0x14000695e
lea rdx, str.SymbolicLink
mov rcx, r15
call sub.msvcrt.dll__wcsicmp
xor r15d, r15d
test eax, eax
je 0x140006961
mov r10d, 1
add r14, 0x20
cmp word [r14 - 8], r15w
jne 0x1400068e6
test r12d, r12d
je 0x140006b2b
cmp r12d, r10d
jbe 0x140006aec
cmp r13d, r10d
je 0x140006aec
mov rcx, rdi
call fcn.140006208
mov ebx, eax
test eax, eax
jns 0x140006ae3
mov ebx, 0xc0000451
jmp 0x140006bd2
xor r15d, r15d
mov r8d, 8
lea rdx, str.Harddisk
mov rcx, rbx
call sub.msvcrt.dll__wcsnicmp
test eax, eax
jne 0x140006916
lea rcx, [rbx + 0x10]
movzx eax, word [rcx]
test ax, ax
je 0x140006916
mov r8d, 0x30
cmp ax, r8w
jne 0x14000699e
cmp word [rcx + 2], r15w
je 0x1400069c6
jmp 0x140006916
mov edx, r15d
sub ax, r8w
cmp ax, 9
ja 0x140006916
inc edx
cmp edx, 0xa
ja 0x140006916
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400069a1
mov r9, qword [r14]
lea r8, str.Device_sPartition_lu
mov edx, 0x6a
mov qword [rsp + 0x20], r15
mov rcx, rdi
call fcn.140002fe8
and qword [rbp + 3], 0
lea rcx, [rbp + 0xf]
xor edx, edx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rbp + 0xf]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp - 1]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rbp - 1], 1
mov bl, r15b
call fcn.140005f54
test eax, eax
js 0x140006a39
mov al, byte [rbp + 0x27]
cmp al, 0xf
je 0x140006916
cmp al, 0x10
movzx ebx, bl
mov eax, 1
cmove ebx, eax
cmp qword [rbp - 0x71], r15
je 0x140006a5c
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.140005c4c
test eax, eax
js 0x140006916
mov rax, qword [rbp - 0x71]
mov r10d, 1
cmp dword [rax], r10d
jne 0x14000691c
cmp dword [rax + 4], r15d
jbe 0x14000691c
mov edx, dword [rax + 4]
lea rcx, [rax + 0x48]
mov r8, qword [0x14000d600]
mov r9, qword [0x14000d5f8]
cmp qword [rcx + 8], r9
jne 0x140006ad2
cmp qword [rcx + 0x10], r8
jne 0x140006ad2
test r12d, r12d
je 0x140006abc
test r13d, r13d
jne 0x140006ac8
test bl, bl
je 0x140006ac8
mov rax, qword [r14]
mov qword [rbp - 0x51], rax
mov eax, dword [rcx]
mov dword [rbp - 0x79], eax
add r12d, r10d
test bl, bl
je 0x140006ad2
add r13d, r10d
add rcx, 0x90
sub rdx, r10
jne 0x140006aa2
jmp 0x14000691c
mov rax, qword [rbp - 0x49]
mov qword [rax], rdi
jmp 0x140006b55
mov ebx, r15d
mov r15, qword [rbp - 0x51]
test ebx, ebx
js 0x140006bcf
mov r14, qword [rbp - 0x49]
mov ebx, dword [rbp - 0x61]
neg ebx
mov edx, 0x6a
mov rcx, rdi
sbb eax, eax
and eax, dword [rbp - 0x79]
mov dword [rsp + 0x20], eax
test r15, r15
je 0x140006b35
mov r9, r15
lea r8, str.Device_sPartition_lu
call fcn.140002fe8
jmp 0x140006b45
mov ebx, 0xc0000452
jmp 0x140006bd2
mov r9d, dword [rbp - 0x69]
lea r8, str.DeviceHarddisk_luPartition_lu
call fcn.140002fe8
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x140006bd2
mov qword [r14], rdi
cmp qword [rbp - 0x71], r15
je 0x140006b74
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 0x140006b91
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 - 0x59]
test rcx, rcx
je 0x140006ba0
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007520
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 0x140006b55