Function at 0x7fff25d6c410
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], eax
mov byte [r11 + 0x20], al
mov qword [rsp + 0xc8], rdx
lea rdx, [0x7fff25f08ab0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsp + 0x98], 0x30
xor r13d, r13d
mov qword [rsp + 0xa0], r13
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
lea r8, [rsp + 0x98]
lea r15d, [r13 + 1]
mov edx, r15d
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x7fff25d6cc69
mov dword [rsp + 0x44], r13d
mov r14d, r13d
mov qword [rsp + 0x60], r13
test rsi, rsi
je 0x7fff25d6c64f
mov rdx, rsi
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsp + 0x98], 0x30
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
lea r8, [rsp + 0x98]
mov edx, r15d
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x7fff25d6c607
mov qword [rsp + 0x80], rdi
mov word [rsp + 0x78], r13w
mov ecx, 0xffff
cmp r12d, 0x7fffffff
ja 0x7fff25d6c60f
lea eax, [r12 + r12]
mov dword [rsp + 0x50], eax
cmp eax, ecx
ja 0x7fff25d6c61e
mov word [rsp + 0x7a], ax
mov dword [rsp + 0x68], r13d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x7fff25d6c607
mov ecx, dword [rsp + 0x68]
shr ecx, 1
mov dword [rsp + 0x44], ecx
je 0x7fff25d6c628
test ecx, ecx
je 0x7fff25d6c5f2
lea eax, [rcx - 1]
cmp word [rdi + rax*2], r13w
jne 0x7fff25d6c628
mov ecx, dword [rsp + 0x44]
cmp ecx, r12d
jae 0x7fff25d6c63f
mov eax, ecx
mov word [rdi + rcx*2], r13w
add dword [rsp + 0x44], r15d
xor r8d, r8d
jmp 0x7fff25d6cc13
or r15d, 0xffffffff
mov dword [rsp + 0x50], r15d
mov r15d, 1
mov word [rsp + 0x7a], cx
jmp 0x7fff25d6c597
mov ecx, dword [rsp + 0x44]
cmp ecx, r12d
jae 0x7fff25d6c63f
mov eax, ecx
mov word [rdi + rcx*2], r13w
add dword [rsp + 0x44], r15d
jmp 0x7fff25d6c5f2
mov dword [rsp + 0x44], r13d
mov ebx, 0xc0000023
mov dword [rsp + 0x40], ebx
jmp 0x7fff25d6c607
mov rax, qword [0x7fff25fd0dd0]
cmp byte [rax + 0x9cc], r15b
jne 0x7fff25d6c695
mov byte [rsp + 0x4c], r15b
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x58]
call fcn.7fff25e4cad0
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
js 0x7fff25d6c695
movzx eax, byte [rsp + 0x138]
cmp byte [rsp + 0x4c], r13b
cmove eax, r15d
mov byte [rsp + 0x138], al
mov dword [rsp + 0x6c], r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
or r15d, 0xffffffff
cmp r12d, 0x7fffffff
jbe 0x7fff25d6c6c4
mov dword [rsp + 0x50], r15d
mov esi, r15d
jmp 0x7fff25d6c6cc
lea esi, [r12 + r12]
mov dword [rsp + 0x50], esi
mov word [rsp + 0x48], r13w
mov r14, r13
mov qword [rsp + 0x60], r13
cmp word [rsp + 0x48], 3
jae 0x7fff25d6c7f4
mov r8d, esi
mov rcx, qword gs:[0x60]
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x7fff25d6c778
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov edi, 1
mov byte [rsp + 0x20], dil
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x7fff25d6c782
cmp eax, 0x8000001a
jne 0x7fff25d6c607
mov ebx, r13d
mov dword [rsp + 0x40], ebx
mov rdi, qword [rsp + 0x128]
jmp 0x7fff25d6c800
mov ebx, 0xc000009a
jmp 0x7fff25d6c649
cmp eax, 0x105
jne 0x7fff25d6c8cc
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r14, r13
mov qword [rsp + 0x60], r13
cmp esi, r15d
je 0x7fff25d6c7e8
mov eax, esi
not eax
cmp eax, esi
jb 0x7fff25d6c7ca
add esi, esi
mov dword [rsp + 0x50], esi
jmp 0x7fff25d6c7d2
mov dword [rsp + 0x50], r15d
mov esi, r15d
add word [rsp + 0x48], di
mov rdi, qword [rsp + 0x128]
mov ebx, dword [rsp + 0x40]
jmp 0x7fff25d6c6d2
mov rdi, qword [rsp + 0x128]
mov ebx, dword [rsp + 0x40]
cmp ebx, 0x105
je 0x7fff25d6c644
mov rax, qword [0x7fff25fd0dd0]
mov esi, 1
cmp byte [rax + 0x9cc], sil
jne 0x7fff25d6cbc3
test ebx, ebx
js 0x7fff25d6c607
cmp byte [rsp + 0x138], sil
jne 0x7fff25d6cbc3
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7fff25d6c84a
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rsp + 0x58], r13
lea rdx, str.GLOBAL__
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], r13
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
lea r8, [rsp + 0x98]
mov edx, esi
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x7fff25d6c9a1
mov qword [rsp + 0x58], r13
jmp 0x7fff25d6c607
mov rsi, r14
mov qword [rsp + 0x88], r14
mov rdi, qword [rsp + 0x128]
mov r8d, 0x20
mov rdx, rsi
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
cmp rax, 0x20
je 0x7fff25d6c7f4
lea rdx, str.SymbolicLink
mov rcx, qword [rsi + 0x18]
call sub.ntdll.dll_wcscmp
test eax, eax
jne 0x7fff25d6c990
movzx edx, word [rsi]
mov r13d, edx
shr r13d, 1
mov ecx, dword [rsp + 0x44]
cmp ecx, r12d
ja 0x7fff25d6c644
mov eax, r12d
sub eax, ecx
cmp r13d, eax
ja 0x7fff25d6c644
mov eax, r12d
sub eax, r13d
sub eax, ecx
cmp eax, 2
jb 0x7fff25d6c644
mov r8d, edx
mov rdx, qword [rsi + 8]
mov rcx, rdi
call sub.ntdll.dll_memcpy
lea rdi, [rdi + r13*2]
mov qword [rsp + 0x128], rdi
xor eax, eax
mov word [rdi], ax
add rdi, 2
mov qword [rsp + 0x128], rdi
mov eax, dword [rsp + 0x44]
lea ecx, [rax + 1]
add ecx, r13d
mov dword [rsp + 0x44], ecx
inc dword [rsp + 0x6c]
xor r13d, r13d
add rsi, 0x20
mov qword [rsp + 0x88], rsi
jmp 0x7fff25d6c8df
cmp word [rsp + 0x48], 3
jae 0x7fff25d6cbb7
test r14, r14
jne 0x7fff25d6c9ef
mov r8d, dword [rsp + 0x50]
mov rcx, qword gs:[0x60]
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x7fff25d6c778
mov rdi, qword [rsp + 0x128]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], sil
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x7fff25d6ca45
cmp eax, 0x8000001a
jne 0x7fff25d6c607
mov ebx, r13d
mov dword [rsp + 0x40], ebx
jmp 0x7fff25d6cbcb
cmp eax, 0x105
jne 0x7fff25d6cabb
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r14, r13
mov qword [rsp + 0x60], r13
mov ecx, dword [rsp + 0x50]
cmp ecx, r15d
je 0x7fff25d6caaa
mov eax, r15d
sub eax, ecx
cmp eax, ecx
jb 0x7fff25d6ca8f
lea eax, [rcx + rcx]
mov dword [rsp + 0x50], eax
jmp 0x7fff25d6ca94
mov dword [rsp + 0x50], r15d
add word [rsp + 0x48], si
mov rdi, qword [rsp + 0x128]
mov ebx, dword [rsp + 0x40]
jmp 0x7fff25d6c9a1
mov rdi, qword [rsp + 0x128]
mov ebx, dword [rsp + 0x40]
jmp 0x7fff25d6cbb7
mov rsi, r14
mov qword [rsp + 0x88], r14
mov r13, qword [rsp + 0xc8]
mov r8d, 0x20
mov rdx, rsi
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
cmp rax, 0x20
je 0x7fff25d6cbb0
lea rdx, str.SymbolicLink
mov rcx, qword [rsi + 0x18]
call sub.ntdll.dll_wcscmp
test eax, eax
jne 0x7fff25d6cb94
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x6c]
mov rdx, r13
mov rcx, qword [rsi + 8]
call fcn.7fff25e4ca40
xor r8d, r8d
test eax, eax
jne 0x7fff25d6cb94
cmp byte [rsp + 0x54], r8b
jne 0x7fff25d6cb94
movzx edx, word [rsi]
mov r15d, edx
shr r15d, 1
mov ecx, dword [rsp + 0x44]
cmp ecx, r12d
ja 0x7fff25d6cba5
mov eax, r12d
sub eax, ecx
cmp r15d, eax
ja 0x7fff25d6cba5
mov eax, r12d
sub eax, r15d
sub eax, ecx
cmp eax, 2
jb 0x7fff25d6cba5
mov r8d, edx
mov rdx, qword [rsi + 8]
mov rcx, rdi
call sub.ntdll.dll_memcpy
lea rdi, [rdi + r15*2]
mov qword [rsp + 0x128], rdi
xor eax, eax
mov word [rdi], ax
add rdi, 2
mov qword [rsp + 0x128], rdi
mov eax, dword [rsp + 0x44]
lea ecx, [rax + 1]
add ecx, r15d
mov dword [rsp + 0x44], ecx
add rsi, 0x20
mov qword [rsp + 0x88], rsi
jmp 0x7fff25d6cace
mov ebx, 0xc0000023
mov dword [rsp + 0x40], ebx
jmp 0x7fff25d6cc13
xor r13d, r13d
lea esi, [r13 + 1]
cmp ebx, 0x105
je 0x7fff25d6c644
test ebx, ebx
js 0x7fff25d6c607
cmp dword [rsp + 0x44], r13d
jne 0x7fff25d6cbef
test r12d, r12d
je 0x7fff25d6c644
mov word [rdi], r13w
add rdi, 2
mov qword [rsp + 0x128], rdi
mov dword [rsp + 0x44], esi
cmp dword [rsp + 0x44], r12d
jae 0x7fff25d6c644
mov word [rdi], r13w
add rdi, 2
mov qword [rsp + 0x128], rdi
add dword [rsp + 0x44], esi
jmp 0x7fff25d6c607
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x7fff25d6cc2c
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor r8d, r8d
test r14, r14
jne 0x7fff25de5c5c
test ebx, ebx
js 0x7fff25d6cc5b
mov eax, dword [rsp + 0x44]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0x44], r8d
mov ecx, ebx
call fcn.7fff25d6b370
jmp 0x7fff25d6cc39
mov ecx, eax
call fcn.7fff25d6b370
xor eax, eax
jmp 0x7fff25d6cc3d
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
xor r8d, r8d
jmp 0x7fff25d6cc35