Function at 0x402ea0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4226e7
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x478], ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
mov dword [ebp - 0x480], 1
push 0
push eax
call fcn.0040f700
add esp, 0xc
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x4034c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x214], esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00402720
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov edx, dword [eax]
or edi, 0xffffffff
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x402f88
cmp dword [esi + 0xc], 0
jl 0x402f79
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x402f79
call fcn.00401a70
mov dword [ebp - 0x474], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f6e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x474]
add eax, 0x10
mov dword [ebp - 0x214], eax
jmp 0x402f88
push dword [edx - 0xc]
lea ecx, [ebp - 0x214]
push edx
call fcn.00401b50
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402fa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00404a60
mov edi, dword [ebp - 0x214]
cmp dword [edi - 4], 1
jle 0x402fd5
push dword [edi - 0xc]
lea ecx, [ebp - 0x214]
call fcn.00401d80
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x47c], eax
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x4034ca
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, 0x42c4fc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x403027
movzx eax, ax
push eax
call fcn.004018d0
jmp 0x403033
push 1
push 0x42c4fc
call fcn.00401b50
mov byte [ebp - 4], 3
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x4034d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x474]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402720
mov ecx, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x21c]
push eax
push eax
push dword [ecx]
lea eax, [ebp - 0x220]
push 0x42c500
push eax
call fcn.00404e80
mov byte [ebp - 4], 4
add esp, 0x14
mov edx, dword [ebp - 0x474]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4030ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x47c]
cmp eax, 0xffffffff
jne 0x403200
mov eax, dword [ebp - 0x220]
cmp dword [eax - 4], 1
jle 0x4030d5
push dword [eax - 0xc]
lea ecx, [ebp - 0x220]
call fcn.00401d80
push 0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x220]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x2b8
call fcn.0040d8df
mov esi, eax
add esp, 4
mov dword [ebp - 0x484], esi
push 0x2b8
push 0
push esi
mov byte [ebp - 4], 6
call fcn.0040f700
add esp, 0xc
mov ecx, esi
call fcn.00405850
mov esi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x474], esi
push eax
mov ecx, esi
call fcn.004061d0
mov eax, dword [ebx + 0x3c]
lea ecx, [ebx + 0x38]
cmp eax, dword [ecx + 8]
je 0x4031e7
mov dword [eax], esi
add dword [ecx + 4], 4
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x480]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40318c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4031ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4031c9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d81c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x474]
push edx
push eax
call fcn.00405580
jmp 0x403156
test byte [ebp - 0x470], 0x10
jne 0x40341d
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x4034c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00402720
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x40329a
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40328b
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40328b
call fcn.00401a70
mov dword [ebp - 0x474], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x403280
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x474]
add eax, 0x10
mov dword [ebp - 0x218], eax
jmp 0x40329a
push dword [edx - 0xc]
lea ecx, [ebp - 0x218]
push edx
call fcn.00401b50
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x484]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4032bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4032c5
sub ecx, edx
lea eax, [ebp - 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x218]
call fcn.00404d90
push 0x2b8
call fcn.0040d8df
mov esi, eax
add esp, 4
mov dword [ebp - 0x488], esi
push 0x2b8
push 0
push esi
mov byte [ebp - 4], 9
call fcn.0040f700
add esp, 0xc
mov ecx, esi
call fcn.00405850
mov ebx, eax
mov byte [ebp - 4], 7
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
mov dword [ebp - 0x474], ebx
push 0
push eax
call fcn.0040f700
mov esi, dword [ebp - 0x218]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x403359
push dword [esi - 0xc]
lea ecx, [ebp - 0x218]
call fcn.00401d80
mov esi, dword [ebp - 0x218]
push 0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.00405ef0
test al, al
je 0x4033a3
mov ecx, dword [ebp - 0x478]
add ecx, 0x38
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4033d0
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x4033f5
push 0
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.00405ef0
test al, al
je 0x4033df
mov ecx, dword [ebp - 0x478]
add ecx, 0x38
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4033d0
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x4033f5
lea edx, [ebp - 0x474]
push edx
push eax
call fcn.00405580
jmp 0x4033f5
test ebx, ebx
je 0x4033eb
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov dword [ebp - 0x480], 0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403411
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x47c]
mov ebx, dword [ebp - 0x478]
lea ecx, [ebp - 0x470]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403156
cmp dword [ebx + 0x34], 0
jne 0x403444
mov eax, dword [ebp - 0x47c]
jmp 0x403200
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov ecx, dword [ebx + 0x38]
sub eax, ecx
test eax, 0xfffffffc
jle 0x4034b6
xor edi, edi
mov dword [ebp - 0x478], esi
nop dword [eax]
mov ecx, dword [ecx + edi]
call fcn.00405c20
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebp - 0x478]
cmp dword [ecx + edx], 0
je 0x403494
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x40348a
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x478]
mov eax, dword [ebx + 0x38]
mov dword [eax + esi*4], 0
mov eax, dword [ebx + 0x3c]
inc esi
mov ecx, dword [ebx + 0x38]
add edx, 4
sub eax, ecx
mov dword [ebp - 0x478], edx
sar eax, 2
add edi, 4
cmp esi, eax
jl 0x403460
mov edi, dword [ebp - 0x214]
mov esi, 4
jmp 0x403168
push 0x80004005
call fcn.004012b0
push 0x80004005
call fcn.004012b0
push 0x80004005
call fcn.004012b0
int3