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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x31c
lea eax, [ebp - 0x324]
push 0x2c8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x586038], 0
mov dword [ebp - 0x328], 0x1003f
jne 0x408c42
lea esi, [ebp - 0x20]
push 0xc
push str.a9e
push 0x18
push 0x535ffd
push esi
call fcn.0040afd0
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x408afd
test ebx, ebx
je 0x408b35
xor edx, edx
nop word [eax + eax]
cmp byte [eax + edx], 0
je 0x408b14
inc edx
cmp ebx, edx
jne 0x408af0
jmp 0x408b35
push ebx
push eax
push 0
mov esi, eax
call fcn.004e1300
add esp, 0xc
test eax, eax
mov eax, esi
lea esi, [ebp - 0x20]
je 0x408b35
cmp edi, 0x80000000
je 0x408b4c
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
push 0x536034
jmp 0x408d5e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
push eax
call fcn.004d14a0
add esp, 4
mov ebx, edx
mov dword [ebp - 0x10], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x408b69
push dword [ebp - 0x10]
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x4090f1
mov dword [ebp - 0x14], eax
push 0xc
push 0x536062
push 0x1e
push 0x536044
push esi
call fcn.0040afd0
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x408bad
test edi, edi
je 0x408be3
xor edx, edx
nop word [eax + eax]
cmp byte [esi + edx], 0
je 0x408bc3
inc edx
cmp edi, edx
jne 0x408ba0
jmp 0x408be3
push edi
push esi
push 0
mov dword [ebp - 0x3c], eax
call fcn.004e1300
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x408be3
cmp eax, 0x80000000
je 0x408bfc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
push 0x536070
jmp 0x408d5e
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.004d14a0
add esp, 4
mov esi, eax
mov edi, edx
push esi
push dword [ebp - 0x14]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x408f4c
test edi, edi
mov byte [0x586038], 1
mov dword [0x58603c], eax
mov byte [esi], 0
je 0x408c2c
push 1
push edi
push esi
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x408c42
push 1
push ebx
push eax
call fcn.0040d1e0
add esp, 0xc
cmp byte [0x586040], 0
jne 0x408dcf
lea esi, [ebp - 0x20]
push 0xc
push 0x536099
push 0x19
push 0x536080
push esi
call fcn.0040afd0
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x408c8d
test ebx, ebx
je 0x408cc5
xor edx, edx
nop dword [eax]
cmp byte [eax + edx], 0
je 0x408ca4
inc edx
cmp ebx, edx
jne 0x408c80
jmp 0x408cc5
push ebx
push eax
push 0
mov esi, eax
call fcn.004e1300
add esp, 0xc
test eax, eax
mov eax, esi
lea esi, [ebp - 0x20]
je 0x408cc5
cmp edi, 0x80000000
je 0x408cdc
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
push 0x5360a8
jmp 0x408d5e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
push eax
call fcn.004d14a0
add esp, 4
mov ebx, edx
mov dword [ebp - 0x10], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 0x14], eax
push 0xc
push 0x5360d6
push 0x1e
push 0x5360b8
push esi
call fcn.0040afd0
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x408d2d
test edi, edi
je 0x408d70
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi + edx], 0
je 0x408d43
inc edx
cmp edi, edx
jne 0x408d20
jmp 0x408d70
push edi
push esi
push 0
mov dword [ebp - 0x3c], eax
call fcn.004e1300
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x408d70
cmp eax, 0x80000000
je 0x408d89
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
push 0x5360e4
push 0x535f6c
push eax
push 0x2b
push 0x535f7c
call fcn.004dc7d0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.004d14a0
add esp, 4
mov esi, eax
mov edi, edx
push esi
push dword [ebp - 0x14]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x408f4c
test edi, edi
mov byte [0x586040], 1
mov dword [0x586044], eax
mov byte [esi], 0
je 0x408db9
push 1
push edi
push esi
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x408dcf
push 1
push ebx
push eax
call fcn.0040d1e0
add esp, 0xc
push 0x4089b0
push 1
call sub.kernel32.dll_AddVectoredExceptionHandler
xorps xmm0, xmm0
mov esi, eax
lea eax, [ebp - 0x38]
movsd qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
push 0
push 0x18
push eax
push 0
push 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
mov dword [ebp - 0x40], 1
jne 0x408e0e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [0x55bd94]
movzx eax, byte [eax]
push 1
push 0x100000
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x409118
mov ebx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x100000
push ebx
push 5
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
js 0x40908b
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0
test eax, eax
mov dword [ebp - 0x54], eax
je 0x40908b
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], ebx
add eax, 0xb8
mov dword [ebp - 0x50], eax
nop word cs:[eax + eax]
nop
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
cmp dword [ebx + ecx + 0x44], eax
je 0x408ec0
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + ecx]
test eax, eax
je 0x408f8d
add ecx, eax
cmp ecx, dword [ebp - 0x54]
jb 0x408e90
jmp 0x408f8d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x408e9c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x408ef0
mov eax, dword [ebp - 0x1c]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp - 0x18], edi
add esi, 0x40
dec ebx
je 0x408e9c
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], 0
movsd qword [ebp - 0x28], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1fffff
lea eax, [ebp - 0x48]
push eax
call sub.ntdll.dll_NtOpenThread
test eax, eax
js 0x408eea
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x48]
cmp edi, dword [ebp - 0x20]
jne 0x408ee0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], ecx
call fcn.00406170
mov ecx, dword [ebp - 0x10]
add esp, 4
jmp 0x408ee0
mov eax, dword [ebp + 8]
test edi, edi
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [esi], 0
je 0x408f76
push 1
push edi
push esi
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x4090e3
push 1
push ebx
push eax
jmp 0x4090db
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x409076
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push 1
push 0x100000
push ebx
call fcn.0040d1e0
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x14], esi
nop word [eax + eax]
test esi, esi
je 0x40905e
mov ebx, dword [esi]
lea eax, [ebp - 0x328]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x4090b4
cmp byte [0x586038], 1
jne 0x40900d
mov eax, dword [0x58603c]
mov dword [ebp - 0x324], eax
movzx eax, word [ebp - 0x310]
or eax, 1
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x314], 0
cmp byte [0x586040], 1
jne 0x40903b
mov eax, dword [0x586044]
mov dword [ebp - 0x320], eax
movzx eax, word [ebp - 0x310]
or eax, 4
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x328]
push eax
push ebx
call sub.ntdll.dll_NtSetContextThread
test eax, eax
jne 0x4090b4
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x408fc0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 4], ecx
mov dword [eax], 0x80000000
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4090d2
jmp 0x4090e3
test eax, eax
je 0x40908b
shl eax, 2
push 4
push eax
push dword [ebp - 0x1c]
call fcn.0040d1e0
add esp, 0xc
push 1
push 0x100000
push ebx
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
jmp 0x4090e3
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4090e3
shl eax, 2
push 4
push eax
push dword [ebp - 0x14]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp + 8]
add esp, 0x31c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
jne 0x408f84
jmp 0x4090e3
push 0x100000
push 1
call fcn.004d09f0
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebx + 4]
push dword [ebx + 8]
push edi
push esi
call fcn.004a35a0
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x40915e
push 1
push eax
push edi
call fcn.0040d1e0
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret