Function at 0x407640
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43850e
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x44d958]
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
cmp dword [0x636730], 0
je 0x40769c
cmp dword [0x6366ec], 0
jne 0x40769c
push 0x40030
push str.Loading___Please_wait
push str.Waiting_for_rc7...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40790a
push 0x140
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.00430eb0
mov dword [ebp - 0x18], 0
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x180]
push eax
push str.C:RC7_AUTORUN.lua
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x989680
push 0
push 0x715368
mov edi, eax
call fcn.00430eb0
add esp, 0xc
cmp edi, 0xffffffff
je 0x4078d5
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x154], 0
jne 0x40771d
xor ecx, ecx
jmp 0x40772f
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407726
sub ecx, edx
push ecx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.004028e0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push 0x43a8a0
push eax
call fcn.004045a0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4077c2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4077a7
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x40779e
test cl, 0x1f
jne 0x407926
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407926
sub ecx, eax
cmp ecx, 4
jb 0x407926
cmp ecx, 0x23
ja 0x407926
mov ecx, eax
push ecx
call fcn.0042eb69
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404750
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40780c
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x407803
test cl, 0x1f
jne 0x407926
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407926
sub ecx, eax
cmp ecx, 4
jb 0x407926
cmp ecx, 0x23
ja 0x407926
mov ecx, eax
push ecx
call fcn.0042eb69
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 5
push connect
push eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4078a0
push 0
lea eax, [ebp - 0x184]
push eax
push 0x989680
push 0x715368
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x715368
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407870
sub ecx, edx
cmp ecx, 1
jbe 0x4078a0
push dword [0x6366f0]
push dword [0x6366ec]
push 0x715368
call fcn.00402030
add esp, 0xc
test eax, eax
je 0x4078a0
call fcn.004079a0
push esi
call ebx
push 0x989680
push 0
push 0x715368
call fcn.00430eb0
add esp, 0xc
push 0x5a
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407710
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4078f8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004029e0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
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.0042eb7c
mov esp, ebp
pop ebp
ret
call fcn.004179ef
int3