Function at 0x4036f0
Capabilities:
Check os version
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00403560
test al, al
jne 0x40385c
push 0x90
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00409100
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jb 0x40378b
cmp dword [ebp - 0x98], 1
jb 0x40378b
push str.CsrGetProcessId
push str.ntdll.dll
call esi
push eax
call ebx
test eax, eax
je 0x403784
call eax
jmp 0x403847
xor eax, eax
jmp 0x403847
push 0x124
lea eax, [ebp - 0x1c4]
push 0
push eax
call fcn.00409100
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40383f
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4037d7
push esi
call edi
jmp 0x40383f
lea eax, [ebp - 0x1a4]
push str.csrss.exe
push eax
call fcn.0041040e
add esp, 8
test eax, eax
jne 0x4037fa
push esi
call edi
mov eax, dword [ebp - 0x1c0]
jmp 0x403841
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x1c8]
push eax
push esi
call ebx
test eax, eax
je 0x403836
nop
lea eax, [ebp - 0x1a4]
push str.csrss.exe
push eax
call fcn.0041040e
add esp, 8
test eax, eax
je 0x40386f
lea eax, [ebp - 0x1c8]
push eax
push esi
call ebx
test eax, eax
jne 0x403810
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x403880
push eax
call edi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040730e
mov esp, ebp
pop ebp
ret
push esi
call edi
mov eax, dword [ebp - 0x1c0]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x403841
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x1cc], 0
call esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push 0
push 4
lea eax, [ebp - 0x1cc]
push eax
push 0x1e
call edi
push eax
call esi
test eax, eax
jne 0x4038bf
cmp dword [ebp - 0x1cc], eax
jne 0x40385c
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0
mov esi, eax
lea eax, [ebp - 0x1cc]
push 4
push eax
push 0x1f
call edi
push eax
call esi
test eax, eax
jne 0x403900
cmp dword [ebp - 0x1cc], eax
je 0x40385c
push 0x426c70
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40385c
call fcn.004035f0
test al, al
jne 0x40385c
call fcn.00403670
mov ecx, dword [ebp - 4]
test al, al
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040730e
mov esp, ebp
pop ebp
ret