Function at 0x410970
Capabilities:
Create thread
Enumerate processes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59acd6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x6dd8d0]
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
push 0
xor bl, bl
push 2
mov byte [ebp - 0x141], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x150], edi
cmp edi, 0xffffffff
je 0x410c64
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
jmp 0x4109e0
push dword [ebp - 0x138]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x14c], esi
test esi, esi
je 0x410c49
mov edi, 0x5e5414
xor ebx, ebx
lea ebx, [ebx]
lea eax, [ebp - 0x148]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push dword [edi - 4]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x410c2a
cmp dword [ebp - 0x148], 8
jne 0x410c2a
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x410c2a
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
jne 0x410c2a
push 0
push esi
mov byte [ebp - 0x141], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x6ee264], 1
jne 0x410afd
push 1
push 0x40
push 8
push 0x5ab868
lea ecx, [ebp - 0x2a8]
call fcn.0040c520
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 0
push str._nD_Scan:
push eax
call fcn.0040afa0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040afa0
add esp, 0x10
lea ecx, [ebp - 0x2a4]
call fcn.0040a310
test eax, eax
jne 0x410adf
push eax
mov eax, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x2a8]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x248]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6ee274], 1
jne 0x410bfd
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.MSVCR120.dll__time64]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0x200]
mov esi, eax
push 1
push 0x40
push 8
push 0x5ab88c
call fcn.0040c520
lea eax, [ebp - 0x200]
mov dword [ebp - 4], 1
push 0x5ab890
push eax
call fcn.0040afa0
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040afa0
lea eax, [ebp - 0x200]
push str.D_Scan:
push eax
call fcn.0040afa0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040afa0
lea eax, [ebp - 0x200]
push 0x5ab8b0
push eax
call fcn.0040afa0
add esp, 0x2c
lea ecx, [ebp - 0x1fc]
call fcn.0040a310
test eax, eax
jne 0x410bcc
push eax
mov eax, dword [ebp - 0x200]
lea ecx, [ebp - 0x200]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x5ab8d8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x1a0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, dword [ebp - 0x14c]
mov eax, dword [0x6ee268]
cmp eax, 1
je 0x410cf4
cmp eax, 2
je 0x410ce7
cmp eax, 3
je 0x410cbf
cmp eax, 4
je 0x410c89
test eax, eax
je 0x410cb7
add ebx, 0xc
add edi, 0xc
cmp ebx, 0xbc4
jb 0x410a10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x150]
lea eax, [ebp - 0x140]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4109e0
mov bl, byte [ebp - 0x141]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.0059978a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x40f490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push str.D_Scan
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x410e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x410d10
jmp 0x410cca
push 0
push 0
push 0
push 0x410d90
jmp 0x410cca