Function at 0x407430
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 [0x5c9038], 0
mov dword [ebp - 0x328], 0x1003f
jne 0x4075f2
lea esi, [ebp - 0x20]
push 0xc
push 0x57a6bd
push 0x18
push 0x57a6a5
push esi
call fcn.004088a0
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x4074ad
test ebx, ebx
je 0x4074e3
xor edx, edx
nop word [eax + eax]
cmp byte [ecx + edx], 0
je 0x4074c4
inc edx
cmp ebx, edx
jne 0x4074a0
jmp 0x4074e3
push ebx
push ecx
push 0
mov esi, ecx
call fcn.004dfdc0
mov ecx, esi
lea esi, [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x4074e3
mov eax, edi
neg eax
jo 0x4074fc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
push 0x57a6dc
jmp 0x40770d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
push eax
call fcn.004cfde0
add esp, 4
mov ecx, eax
mov ebx, edx
push ecx
mov edi, ecx
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
mov dword [ebp - 0x14], edi
jne 0x407519
push edi
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x407aa1
mov dword [ebp - 0x10], eax
push 0xc
push 0x57a70a
push 0x1e
push 0x57a6ec
push esi
call fcn.004088a0
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x40755d
test edi, edi
je 0x407592
xor edx, edx
nop word [eax + eax]
cmp byte [esi + edx], 0
je 0x407573
inc edx
cmp edi, edx
jne 0x407550
jmp 0x407592
push edi
push esi
push 0
mov dword [ebp - 0x3c], ecx
call fcn.004dfdc0
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x407592
mov eax, ecx
neg eax
jo 0x4075ab
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
push 0x57a718
jmp 0x40770d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.004cfde0
add esp, 4
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x10]
push esi
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4078fc
test edi, edi
mov byte [0x5c9038], 1
mov dword [0x5c903c], eax
mov byte [esi], 0
je 0x4075dc
push 1
push edi
push esi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x14]
test ebx, ebx
mov byte [eax], 0
je 0x4075f2
push 1
push ebx
push eax
call fcn.0040cd20
add esp, 0xc
cmp byte [0x5c9040], 0
jne 0x40777f
lea esi, [ebp - 0x20]
push 0xc
push 0x57a741
push 0x19
push 0x57a728
push esi
call fcn.004088a0
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x40763d
test ebx, ebx
je 0x407673
xor edx, edx
nop dword [eax]
cmp byte [ecx + edx], 0
je 0x407654
inc edx
cmp ebx, edx
jne 0x407630
jmp 0x407673
push ebx
push ecx
push 0
mov esi, ecx
call fcn.004dfdc0
mov ecx, esi
lea esi, [ebp - 0x20]
add esp, 0xc
test eax, eax
je 0x407673
mov eax, edi
neg eax
jo 0x40768c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
push 0x57a750
jmp 0x40770d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
push eax
call fcn.004cfde0
add esp, 4
mov ecx, eax
mov ebx, edx
mov dword [ebp - 0x14], ecx
push ecx
call sub.kernel32.dll_GetModuleHandleA
mov dword [ebp - 0x10], eax
push 0xc
push 0x57a77e
push 0x1e
push 0x57a760
push esi
call fcn.004088a0
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x4076dd
test edi, edi
je 0x40771f
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi + edx], 0
je 0x4076f3
inc edx
cmp edi, edx
jne 0x4076d0
jmp 0x40771f
push edi
push esi
push 0
mov dword [ebp - 0x3c], ecx
call fcn.004dfdc0
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x40771f
mov eax, ecx
neg eax
jo 0x407738
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
push 0x57a78c
push 0x57a614
push eax
push 0x2b
push 0x57a624
call fcn.004dafa0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.004cfde0
add esp, 4
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x10]
push esi
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x4078fc
test edi, edi
mov byte [0x5c9040], 1
mov dword [0x5c9044], eax
mov byte [esi], 0
je 0x407769
push 1
push edi
push esi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x14]
test ebx, ebx
mov byte [eax], 0
je 0x40777f
push 1
push ebx
push eax
call fcn.0040cd20
add esp, 0xc
push 0x407360
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 0x4077be
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push 0x100000
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x407ac8
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 0x407a3b
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 0x407a3b
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 - 0x10], ecx
cmp dword [ebx + ecx + 0x44], eax
je 0x407870
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + ecx]
test eax, eax
je 0x40793d
add ecx, eax
cmp ecx, dword [ebp - 0x54]
jb 0x407840
jmp 0x40793d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x40784c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
jmp 0x4078a0
mov eax, dword [ebp - 0x1c]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp - 0x18], edi
add esi, 0x40
dec ebx
je 0x40784c
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 0x40789a
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x48]
cmp edi, dword [ebp - 0x20]
jne 0x407890
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00408c30
mov ecx, dword [ebp - 0x14]
add esp, 4
jmp 0x407890
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 0x407926
push 1
push edi
push esi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x14]
test ebx, ebx
mov byte [eax], 0
je 0x407a93
push 1
push ebx
push eax
jmp 0x407a8b
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x407a26
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push 1
push 0x100000
push ebx
call fcn.0040cd20
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x10], esi
nop word [eax + eax]
test esi, esi
je 0x407a0e
mov ebx, dword [esi]
lea eax, [ebp - 0x328]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x407a64
cmp byte [0x5c9038], 1
jne 0x4079bd
mov eax, dword [0x5c903c]
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 [0x5c9040], 1
jne 0x4079eb
mov eax, dword [0x5c9044]
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 0x407a64
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x407970
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 4], ecx
mov dword [eax], 0x80000000
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x407a82
jmp 0x407a93
test eax, eax
je 0x407a3b
shl eax, 2
push 4
push eax
push dword [ebp - 0x1c]
call fcn.0040cd20
add esp, 0xc
push 1
push 0x100000
push ebx
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
jmp 0x407a93
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407a93
shl eax, 2
push 4
push eax
push dword [ebp - 0x10]
call fcn.0040cd20
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 - 0x14]
test ebx, ebx
mov byte [eax], 0
jne 0x407934
jmp 0x407a93
push 0x100000
push 1
call fcn.004cf340
nop
nop
nop
nop
nop
nop