Function at 0x140022e14
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 [0x140035078]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov qword [rbp - 0x51], r8
mov qword [rbp - 0x61], rsi
xor edx, edx
mov rcx, qword gs:[0x60]
mov r14d, esi
mov qword [rbp - 0x79], rsi
mov r12d, esi
lea r8d, [rsi + 0x6a]
mov qword [rbp - 0x59], rsi
mov r15d, esi
mov dword [rbp - 0x71], esi
mov rcx, qword [rcx + 0x30]
mov r13d, esi
mov dword [rbp - 0x6d], esi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140022e9a
mov ebx, 0xc0000017
jmp 0x140023291
lea rdx, [rbp - 0x6d]
lea rcx, [rbp - 0x71]
call fcn.140022780
test eax, eax
jns 0x140023219
lea rdx, str.Device
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov eax, 0x30
mov qword [rbp - 0x31], rsi
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400232d9
mov eax, 0x1000
mov esi, eax
mov r8d, eax
jmp 0x140022f77
mov rcx, qword [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8d, esi
mov dword [rbp - 0x69], eax
mov rdx, r14
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x105
jne 0x140022faa
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
add esi, 0x1000
mov r8d, esi
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
xor eax, eax
test r14, r14
jne 0x140022f18
mov ebx, 0xc0000017
jmp 0x1400232d9
mov ecx, 0x80000000
add eax, ecx
test ecx, eax
jne 0x140022fc1
cmp ebx, 0x8000001a
jne 0x1400231e2
cmp word [r14], r15w
je 0x14002320f
lea rsi, [r14 + 8]
mov r15, qword [rsi + 0x10]
lea rdx, str.Directory
mov rbx, qword [rsi]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140023055
lea rdx, str.SymbolicLink
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
xor r15d, r15d
test eax, eax
je 0x140023058
mov r10d, 1
add rsi, 0x20
cmp word [rsi - 8], r15w
jne 0x140022fcf
test r12d, r12d
je 0x14002320f
cmp r12d, r10d
jbe 0x1400231db
cmp r13d, r10d
je 0x1400231db
mov rcx, rdi
call fcn.14002283c
mov ebx, eax
test eax, eax
jns 0x140023242
mov ebx, 0xc0000451
jmp 0x1400232d9
xor r15d, r15d
mov r8d, 8
lea rdx, str.Harddisk
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002300d
lea rcx, [rbx + 0x10]
movzx eax, word [rcx]
test ax, ax
je 0x14002300d
mov r8d, 0x30
cmp ax, r8w
jne 0x14002309c
cmp word [rcx + 2], r15w
je 0x1400230c4
jmp 0x14002300d
mov edx, r15d
sub ax, r8w
cmp ax, 9
ja 0x14002300d
inc edx
cmp edx, 0xa
ja 0x14002300d
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14002309f
mov r9, qword [rsi]
lea r8, str.Device_sPartition_lu
mov edx, 0x6a
mov qword [rsp + 0x20], r15
mov rcx, rdi
call fcn.140022608
and qword [rbp - 5], 0
lea rax, [rbp + 7]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x20
lea r8, [rbp - 9]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rbp - 9], 1
movups xmmword [rbp + 7], xmm0
movzx ebx, r15b
movups xmmword [rbp + 0x17], xmm0
call fcn.1400224d4
test eax, eax
js 0x140023131
mov al, byte [rbp + 0x1f]
cmp al, 0xf
je 0x14002300d
cmp al, 0x10
mov eax, 1
cmove ebx, eax
cmp qword [rbp - 0x79], r15
je 0x14002315a
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x79]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov qword [rbp - 0x79], r15
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140022174
test eax, eax
js 0x14002300d
mov rax, qword [rbp - 0x79]
mov r10d, 1
cmp dword [rax], r10d
jne 0x140023013
cmp dword [rax + 4], r15d
jbe 0x140023013
mov edx, dword [rax + 4]
lea rcx, [rax + 0x50]
mov rax, qword [0x140028e30]
mov r8, qword [0x140028e28]
cmp qword [rcx], r8
jne 0x1400231ca
cmp qword [rcx + 8], rax
jne 0x1400231ca
test r12d, r12d
je 0x1400231b9
test r13d, r13d
jne 0x1400231c0
test bl, bl
je 0x1400231c0
mov r9, qword [rsi]
mov qword [rbp - 0x59], r9
add r12d, r10d
test bl, bl
je 0x1400231ca
add r13d, r10d
add rcx, 0x90
sub rdx, r10
jne 0x1400231a0
jmp 0x140023013
mov ebx, r15d
mov r15, qword [rbp - 0x59]
xor eax, eax
test ebx, ebx
js 0x1400232d6
test r15, r15
je 0x140023219
mov r9, r15
mov dword [rsp + 0x20], eax
lea r8, str.Device_sPartition_lu
mov rcx, rdi
lea edx, [rax + 0x6a]
call fcn.140022608
xor r15d, r15d
jmp 0x140023238
mov ebx, 0xc0000452
jmp 0x1400232d9
mov r9d, dword [rbp - 0x71]
lea r8, str.DeviceHarddisk_luPartition_lu
xor r15d, r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
lea edx, [r15 + 0x6a]
call fcn.140022608
mov ebx, eax
test eax, eax
js 0x1400232d9
mov rax, qword [rbp - 0x51]
mov qword [rax], rdi
cmp qword [rbp - 0x79], r15
je 0x14002326e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x79]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r14, r14
je 0x140023291
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x1400232a6
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140023d70
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]
nop dword [rax + rax]
jmp 0x140023249