Function at 0x418d60
Capabilities:
Enumerate files on windows
Enumerate files recursively
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e43c6
mov eax, dword fs:[0]
push eax
sub esp, 0x8d4
mov eax, dword [0x52610c]
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 byte [ebp - 0x8c9], dl
mov ebx, ecx
mov dword [ebp - 0x8d8], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b9940
add esp, 8
mov edx, 0x104
push ebx
push ecx
lea ecx, [ebp - 0x218]
call fcn.00419470
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418dd0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
je 0x418e03
push 0x507d60
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c776b
add esp, 0xc
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x218]
call fcn.004193e0
test eax, eax
js 0x418e3b
mov eax, dword [ebp - 0x8d4]
mov edx, 0x104
push ecx
push 0x507d64
push ecx
lea ecx, [ebp - 0x218]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00419470
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x8d4], esi
cmp esi, 0xffffffff
je 0x4193ba
test byte [ebp - 0x698], 0x10
lea eax, [ebp - 0x66c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
je 0x418f80
mov ecx, 0x507d6c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418eaa
test dx, dx
je 0x418ea6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418eaa
add eax, 4
add ecx, 4
test dx, dx
jne 0x418e84
xor eax, eax
jmp 0x418eaf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4190c5
mov ecx, 0x507d70
lea eax, [ebp - 0x66c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418ee8
test dx, dx
je 0x418ee4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418ee8
add eax, 4
add ecx, 4
test dx, dx
jne 0x418ec2
xor eax, eax
jmp 0x418eed
sbb eax, eax
or eax, 1
test eax, eax
je 0x4190c5
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004b9940
add esp, 0xc
lea ecx, [ebp - 0x428]
push dword [ebp - 0x8d8]
call fcn.00419430
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418f25
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x42a], 0x5c
je 0x418f4f
push 0x507d60
lea ecx, [ebp - 0x428]
call fcn.00419430
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004c776b
mov dl, byte [ebp - 0x8c9]
lea ecx, [ebp - 0x428]
add esp, 0xc
call fcn.00418d60
jmp 0x4190c5
push 0x2e
push eax
call fcn.004b8da0
add esp, 8
test eax, eax
je 0x4190c5
mov ecx, str..exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418fbe
test dx, dx
je 0x418fba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418fbe
add eax, 4
add ecx, 4
test dx, dx
jne 0x418f98
xor eax, eax
jmp 0x418fc3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4190c5
cmp byte [ebp - 0x8c9], al
je 0x419043
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004b9940
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x66c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x419036
test dx, dx
je 0x419032
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x419036
add ecx, 4
add eax, 4
test dx, dx
jne 0x419010
xor eax, eax
jmp 0x41903b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4190c5
xor esi, esi
mov dword [ebp - 0x8d0], 0xffffffff
push esi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x8d0], eax
push ecx
lea eax, [ebp - 0x448]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x448], 0x22c
push eax
lea ecx, [ebp - 0x8d0]
call fcn.00418850
test eax, eax
je 0x4190a6
push dword [ebp - 0x440]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4190a6
push 0x14d
push eax
call edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x8d0]
cmp ecx, 0xffffffff
je 0x4190bb
push ecx
call ebx
test esi, esi
jne 0x419043
mov esi, dword [ebp - 0x8d4]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x698]
push eax
push esi
call edi
test eax, eax
je 0x4193ba
nop dword [eax]
test byte [ebp - 0x698], 0x10
lea eax, [ebp - 0x66c]
je 0x419242
mov ecx, 0x507d6c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41911e
test dx, dx
je 0x41911a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41911e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4190f8
xor eax, eax
jmp 0x419123
sbb eax, eax
or eax, 1
test eax, eax
je 0x4193a8
mov ecx, 0x507d70
lea eax, [ebp - 0x66c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41915c
test dx, dx
je 0x419158
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41915c
add eax, 4
add ecx, 4
test dx, dx
jne 0x419136
xor eax, eax
jmp 0x419161
sbb eax, eax
or eax, 1
test eax, eax
je 0x4193a8
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004b9940
add esp, 8
mov edx, 0x104
push dword [ebp - 0x8d8]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00419470
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4191a0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x42a], 0x5c
je 0x4191f2
lea eax, [ebp - 0x8dc]
push eax
lea ecx, [ebp - 0x428]
call fcn.004193e0
test eax, eax
js 0x4191f2
mov eax, dword [ebp - 0x8dc]
mov edx, 0x104
push ecx
push 0x507d60
push ecx
lea ecx, [ebp - 0x428]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00419470
lea eax, [ebp - 0x8e0]
push eax
lea ecx, [ebp - 0x428]
call fcn.004193e0
test eax, eax
js 0x41922c
push ecx
lea eax, [ebp - 0x66c]
mov edx, 0x104
push eax
mov eax, dword [ebp - 0x8e0]
sub edx, eax
push ecx
lea ecx, [ebp - 0x428]
lea ecx, [ecx + eax*2]
call fcn.00419470
mov dl, byte [ebp - 0x8c9]
lea ecx, [ebp - 0x428]
call fcn.00418d60
jmp 0x4193a8
push 0x2e
push eax
call fcn.004b8da0
add esp, 8
test eax, eax
je 0x4193a8
mov ecx, str..exe
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419286
test dx, dx
je 0x419282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419286
add eax, 4
add ecx, 4
test dx, dx
jne 0x419260
xor eax, eax
jmp 0x41928b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4193a8
cmp byte [ebp - 0x8c9], al
je 0x419310
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004b9940
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x66c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4192fd
test dx, dx
je 0x4192f9
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4192fd
add ecx, 4
add eax, 4
test dx, dx
jne 0x4192d7
xor eax, eax
jmp 0x419302
sbb eax, eax
or eax, 1
test eax, eax
je 0x4193a8
nop word [eax + eax]
xor esi, esi
mov dword [ebp - 0x8d0], 0xffffffff
push esi
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x8d0], eax
push ecx
lea eax, [ebp - 0x8c8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x8c8], 0x22c
push eax
lea ecx, [ebp - 0x8d0]
call fcn.00418850
test eax, eax
je 0x41937b
push dword [ebp - 0x8c0]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x41937b
push 0x14d
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x8d0]
cmp ecx, 0xffffffff
je 0x41939a
push ecx
call ebx
mov dword [ebp - 0x8d0], 0xffffffff
test esi, esi
jne 0x419310
mov esi, dword [ebp - 0x8d4]
lea eax, [ebp - 0x698]
push eax
push esi
call edi
test eax, eax
jne 0x4190e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.004a0535
mov esp, ebp
pop ebp
ret