Function at 0x404170
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x328
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x330]
push 0x2c8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x5c1038], 0
mov dword [ebp - 0x334], 0x1003f
jne 0x4042ef
lea eax, [0x56ad08]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x5f39dc80
push dword [ebp - 0x3c]
push eax
call fcn.00403d60
add esp, 8
mov ecx, 0x8bfb5972
mov edx, 0xfa784a18
xor ecx, dword [eax]
xor edx, dword [eax + 4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
lea esi, [ebp - 0x50]
lea eax, [ebp - 0x24]
push 8
push esi
push eax
call fcn.004cebc0
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x4047d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
mov edi, eax
test eax, eax
jne 0x40422f
push dword [ebp - 0x14]
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test eax, eax
je 0x404787
lea eax, [0x5660db]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x15fa94e5
push dword [ebp - 0x3c]
push eax
call fcn.00403ea0
add esp, 8
mov ecx, 0x86a13edd
mov edx, 0x8e230260
mov ebx, 0x2381dfb7
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor ebx, dword [eax + 8]
movzx eax, word [eax + 0xc]
xor al, 0xc
xor ah, 0x42
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], ah
push 0xe
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.004cebc0
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x404803
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push esi
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4046a1
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov byte [0x5c1038], 1
mov dword [0x5c103c], eax
mov byte [esi], 0
je 0x4042d6
push 1
push ebx
push esi
call main
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov byte [edi], 0
test eax, eax
je 0x4042ef
push 1
push eax
push edi
call main
add esp, 0xc
cmp byte [0x5c1040], 0
jne 0x404432
lea eax, [0x567d23]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0xedd0dce1
push dword [ebp - 0x3c]
push eax
call fcn.00403fb0
add esp, 8
mov ecx, 0x4b4516b9
mov edx, 0xdbda0c70
xor ecx, dword [eax]
xor edx, dword [eax + 4]
movzx eax, byte [eax + 8]
xor al, 0x1a
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x48], al
lea ebx, [ebp - 0x50]
lea eax, [ebp - 0x24]
push 9
push ebx
push eax
call fcn.004cebc0
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x404836
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
mov edi, eax
lea eax, [0x563c8b]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3a526d79
push dword [ebp - 0x3c]
push eax
call fcn.00403e10
add esp, 8
mov ecx, 0x8260712c
mov edx, 0x4f356ce
mov esi, 0xab7e9abb
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor esi, dword [eax + 8]
movzx eax, word [eax + 0xc]
xor al, 0x4f
xor ah, 0x13
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x44], al
mov byte [ebp - 0x43], ah
push 0xe
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.004cebc0
add esp, 0xc
cmp dword [ebp - 0x24], 0x80000000
jne 0x404866
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
push ebx
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4046d7
test esi, esi
mov byte [0x5c1040], 1
mov dword [0x5c1044], eax
mov byte [ebx], 0
je 0x404416
push 1
push esi
push ebx
call main
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
mov byte [eax], 0
je 0x404432
push 1
push ecx
push eax
call main
add esp, 0xc
push 0x4040a0
push 1
call sub.kernel32.dll_AddVectoredExceptionHandler
xorps xmm0, xmm0
mov esi, eax
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x3c]
push 0
push 0x18
push eax
push 0
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
mov dword [ebp - 0x54], 1
jne 0x404471
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [0x593ab0]
movzx eax, byte [eax]
push 1
push 0x100000
call fcn.00409a80
add esp, 8
test eax, eax
je 0x4047c4
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push ecx
push 0x100000
mov dword [ebp - 0x40], eax
push eax
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x404736
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
test eax, eax
mov dword [ebp - 0x68], eax
je 0x404736
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x60], esi
mov eax, ecx
add eax, 0xb8
mov dword [ebp - 0x64], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
cmp dword [ecx + edx + 0x44], eax
je 0x404520
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + edx]
test eax, eax
je 0x4045ac
add edx, eax
cmp edx, dword [ebp - 0x68]
jb 0x4044f0
jmp 0x4045ac
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x4044fc
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
jmp 0x404553
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp - 0x1c], edi
add esi, 0x40
dec ebx
je 0x4044fc
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
movsd qword [ebp - 0x2c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x1fffff
lea eax, [ebp - 0x5c]
push eax
call sub.ntdll.dll_NtOpenThread
test eax, eax
js 0x40454d
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jne 0x404540
lea eax, [ebp - 0x24]
push eax
call fcn.004050c0
add esp, 4
jmp 0x404540
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
test edi, edi
je 0x40471e
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push 1
push 0x100000
push ecx
call main
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x10], esi
nop word cs:[eax + eax]
test esi, esi
je 0x404682
mov ebx, dword [esi]
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x40475e
cmp byte [0x5c1038], 1
jne 0x40462d
mov eax, dword [0x5c103c]
mov dword [ebp - 0x330], eax
movzx eax, word [ebp - 0x31c]
or eax, 1
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], 0
cmp byte [0x5c1040], 1
jne 0x40465b
mov eax, dword [0x5c1044]
mov dword [ebp - 0x32c], eax
movzx eax, word [ebp - 0x31c]
or eax, 4
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], 0
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.ntdll.dll_NtSetContextThread
test eax, eax
jne 0x40475e
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x4045e0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x60]
mov dword [ebx + 4], eax
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40477c
jmp 0x4047b7
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
test ebx, ebx
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [esi], 0
je 0x40479e
push 1
push ebx
push esi
call main
add esp, 0xc
jmp 0x40479e
mov eax, dword [ebp + 8]
test esi, esi
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [ebx], 0
je 0x404701
push 1
push esi
push ebx
call main
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
mov byte [eax], 0
je 0x4047b7
push 1
push ecx
push eax
jmp 0x4047af
mov ebx, dword [ebp + 8]
test eax, eax
je 0x404736
shl eax, 2
push 4
push eax
push dword [ebp - 0x20]
call main
add esp, 0xc
push 1
push 0x100000
push dword [ebp - 0x40]
call main
add esp, 0xc
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
jmp 0x4047b7
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4047b7
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
jmp 0x4047af
mov edi, dword [ebp - 0x14]
mov dword [ebx], 0
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov byte [edi], 0
test eax, eax
je 0x4047b7
push 1
push eax
push edi
call main
add esp, 0xc
mov eax, ebx
add esp, 0x328
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100000
push 1
call fcn.004ce340
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x56f77c
push 0x56f708
push edi
push 0x2b
push 0x56f718
call fcn.004da120
add esp, 0x14
jmp 0x404897
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x56f78c
push 0x56f708
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x56f718
call fcn.004da120
add esp, 0x14
jmp 0x404897
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x56f79c
push 0x56f708
push esi
push 0x2b
push 0x56f718
call fcn.004da120
add esp, 0x14
jmp 0x404897
movsd xmm0, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0x34], xmm1
movsd qword [ebp - 0x3c], xmm0
push 0x56f7ac
push 0x56f708
lea eax, [ebp - 0x3c]
push eax
push 0x2b
push 0x56f718
call fcn.004da120
add esp, 0x14
ud2