Function at 0x421bc4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x42c044]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
mov dword [esp + 0x38], eax
mov eax, dword fs:[0x30]
push 0x6a
push ecx
mov dword [esp + 0x2c], ecx
push dword [eax + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x421c32
mov esi, 0xc0000017
jmp 0x421f25
lea edx, [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.00421690
test eax, eax
jns 0x421eb4
push 0x40d6cc
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x58]
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x48], eax
xor ecx, ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ecx
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], 0x40
push eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
mov esi, eax
test esi, esi
js 0x421ed6
mov eax, 0x1000
push eax
mov esi, eax
mov dword [esp + 0x18], eax
xor eax, eax
push eax
jmp 0x421cf2
xor ecx, ecx
lea eax, [esp + 0x3c]
push ecx
push eax
push 1
push ecx
push esi
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
call dword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
mov esi, eax
cmp esi, 0x105
jne 0x421d15
mov eax, dword fs:[0x30]
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0x14]
add esi, 0x1000
push esi
mov dword [esp + 0x18], esi
push ebx
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x421caa
mov esi, 0xc0000017
jmp 0x421ed6
test esi, esi
jns 0x421d2a
cmp esi, 0x8000001a
je 0x421d2a
mov ebx, dword [esp + 0x10]
jmp 0x421e95
xor eax, eax
cmp word [ebx], ax
je 0x421ead
lea esi, [ebx + 4]
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [esi]
call fcn.00421aec
test al, al
je 0x421e5c
xor eax, eax
push eax
push dword [esi]
push 0x40d6dc
push 0x6a
push edi
call fcn.004215a2
add esp, 0x14
mov dword [esp + 0x60], 1
xor eax, eax
lea edi, [esp + 0x6c]
xor edx, edx
mov dword [esp + 0x68], edx
push 8
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x6c]
push 0x20
push eax
push ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], edx
push eax
mov ecx, edi
mov byte [esp + 0x1f], dl
call fcn.004214f3
test eax, eax
js 0x421db8
mov al, byte [esp + 0x84]
cmp al, 0xf
je 0x421e5c
cmp al, 0x10
jne 0x421db8
mov byte [esp + 0xf], 1
test ebx, ebx
je 0x421dd3
mov eax, dword fs:[0x30]
push ebx
xor ebx, ebx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.004210ec
mov ebx, dword [esp + 0x10]
test eax, eax
js 0x421e5c
cmp dword [ebx], 1
jne 0x421e5c
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x421e5c
lea edx, [ebx + 0x48]
mov bl, byte [esp + 0xf]
xor eax, eax
mov ecx, eax
mov eax, dword [edx + ecx*4 + 8]
mov edi, 0x40ae90
cmp eax, dword [edi + ecx*4]
mov edi, dword [esp + 0x18]
jne 0x421e47
inc ecx
cmp ecx, 4
jne 0x421e01
test edi, edi
je 0x421e29
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x421e39
test bl, bl
je 0x421e39
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x18], edi
test bl, bl
je 0x421e47
inc eax
mov dword [esp + 0x1c], eax
add edx, 0x90
sub dword [esp + 0x14], 1
jne 0x421dfd
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
add esi, 0x10
xor ecx, ecx
cmp word [esi - 4], cx
jne 0x421d3c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421ead
cmp eax, 1
jbe 0x421e93
cmp dword [esp + 0x1c], 1
je 0x421e93
mov ecx, edi
call fcn.00421710
mov esi, eax
test esi, esi
jns 0x421eef
mov esi, 0xc0000451
jmp 0x421ed6
mov esi, ecx
test esi, esi
js 0x421ed6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x421eb8
push dword [esp + 0x20]
push eax
push 0x40d6dc
jmp 0x421ec5
mov esi, 0xc0000452
jmp 0x421ed6
mov ebx, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [esp + 0x38]
push 0x40d710
push 0x6a
push edi
call fcn.004215a2
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x421eef
mov eax, dword fs:[0x30]
push edi
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x10]
jmp 0x421ef7
mov eax, dword [esp + 0x38]
mov dword [eax], edi
xor edi, edi
test ebx, ebx
je 0x421f0c
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x421f25
push eax
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [esp + 0x24], 0
je 0x421f36
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a860
mov esp, ebp
pop ebp
ret 4