Function at 0x4077c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550678
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b0], ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
cmp ecx, eax
je 0x407831
mov edx, dword [ebp - 0x1b4]
push edx
push eax
call fcn.00409d40
mov ebx, eax
mov eax, dword [ebp - 0x1b0]
mov edi, dword [eax + 4]
add esp, 8
mov eax, ebx
call fcn.00409180
mov ecx, dword [ebp - 0x1b0]
mov dword [ecx + 4], ebx
xor ebx, ebx
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1b4], esp
push 0xffffffffffffffff
push ebx
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push esi
mov byte [ecx], 0
call fcn.00403c30
call fcn.004066a0
add esp, 0x20
cmp eax, ebx
jne 0x407881
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x40787a
mov edx, dword [ebp + 8]
push edx
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x407d06
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
call fcn.00403c30
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x4078a7
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
cmp byte [eax + ecx - 1], 0x5c
je 0x4078c0
push 1
mov eax, 0x5805c0
lea ecx, [ebp - 0x30]
call fcn.004042f0
cmp dword [ebp + 0x18], ebx
je 0x40798a
mov ecx, 0x5805bc
lea edi, [ebp + 8]
call fcn.00409950
test al, al
jne 0x40798a
lea edx, [ebp - 0x4c]
push 0x5806b0
push edx
mov ebx, edi
call fcn.00409880
add esp, 8
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004047c0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
jb 0x407919
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0042465c
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jae 0x40792b
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x1ac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1b4], eax
cmp eax, 0xffffffff
jne 0x4079a0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], esi
jb 0x407959
mov edx, dword [ebp - 0x30]
push edx
call fcn.0042465c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
cmp dword [ebp + 0x1c], esi
jb 0x40787a
mov eax, dword [ebp + 8]
push eax
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x407d06
push 3
mov eax, 0x5806ac
lea ecx, [ebp - 0x30]
call fcn.004042f0
jmp 0x40791b
mov eax, dword [ebp - 0x1ac]
test al, 0x10
je 0x407ada
test eax, 0x400
jne 0x407c53
cmp byte [ebp - 0x180], 0x2e
je 0x407c53
mov ecx, 0x5806b4
lea edi, [ebp + 8]
call fcn.00409950
test al, al
lea eax, [ebp - 0x180]
je 0x407a7f
mov ecx, str.debug.log
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407a06
test dl, dl
je 0x407a02
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407a06
add eax, 2
add ecx, 2
test dl, dl
jne 0x4079e6
xor eax, eax
jmp 0x407a0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407c53
mov ecx, str.system.log
lea eax, [ebp - 0x180]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407a40
test dl, dl
je 0x407a3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407a40
add eax, 2
add ecx, 2
test dl, dl
jne 0x407a20
xor eax, eax
jmp 0x407a45
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407c53
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00402c60
mov edi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00408960
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00402cc0
jmp 0x407c53
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a90
sub eax, edx
push eax
lea edx, [ebp - 0x180]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00404410
mov edi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00408960
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
jb 0x407c53
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0042465c
add esp, 4
jmp 0x407c53
mov esi, dword [ebp + 0x18]
mov eax, esi
cmp esi, 3
jb 0x407ae9
mov eax, 3
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 8]
jae 0x407af5
lea edx, [ebp + 8]
mov ecx, 0x5806b4
call fcn.00405130
cmp eax, ebx
jne 0x407b17
cmp esi, 3
jae 0x407b0d
or eax, 0xffffffff
jmp 0x407b15
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete al
test al, al
lea eax, [ebp - 0x180]
je 0x407bf3
mov ecx, str.debug.log
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b50
test dl, dl
je 0x407b4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b50
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b30
xor eax, eax
jmp 0x407b55
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407c53
mov ecx, str.system.log
lea eax, [ebp - 0x180]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b88
test dl, dl
je 0x407b84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b88
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b68
xor eax, eax
jmp 0x407b8d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407c53
lea eax, [ebp - 0x180]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bb0
sub eax, edx
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00404410
mov edi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00408960
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
jb 0x407c53
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0042465c
add esp, 4
jmp 0x407c53
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c04
sub eax, edx
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x68]
call fcn.00404410
mov edi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00408960
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0x10
jb 0x407c45
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0042465c
add esp, 4
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], 0
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079a0
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1b0]
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov ecx, esi
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
push edi
call fcn.00409c00
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esp, 0xc
add esi, edx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x407cdd
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0042465c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], 0
jb 0x407d04
mov edx, dword [ebp + 8]
push edx
call fcn.0042465c
add esp, 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 - 0x14]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret