Function at 0x10009260
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 [0x106e1028], 0
mov dword [ebp - 0x328], 0x1003f
jne 0x10009422
lea esi, [ebp - 0x20]
push 0xc
push 0x10690a6d
push 0x18
push 0x10690a55
push esi
call fcn.1000ae10
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x100092dd
test ebx, ebx
je 0x10009315
xor edx, edx
nop word [eax + eax]
cmp byte [eax + edx], 0
je 0x100092f4
inc edx
cmp ebx, edx
jne 0x100092d0
jmp 0x10009315
push ebx
push eax
push 0
mov esi, eax
call fcn.100e11a0
add esp, 0xc
test eax, eax
mov eax, esi
lea esi, [ebp - 0x20]
je 0x10009315
cmp edi, 0x80000000
je 0x1000932c
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 0x10690a8c
jmp 0x1000953e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
push eax
call fcn.100d1340
add esp, 4
mov ebx, edx
mov dword [ebp - 0x10], eax
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x10009349
push dword [ebp - 0x10]
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x100098d1
mov dword [ebp - 0x14], eax
push 0xc
push 0x10690aba
push 0x1e
push 0x10690a9c
push esi
call fcn.1000ae10
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x1000938d
test edi, edi
je 0x100093c3
xor edx, edx
nop word [eax + eax]
cmp byte [esi + edx], 0
je 0x100093a3
inc edx
cmp edi, edx
jne 0x10009380
jmp 0x100093c3
push edi
push esi
push 0
mov dword [ebp - 0x3c], eax
call fcn.100e11a0
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x100093c3
cmp eax, 0x80000000
je 0x100093dc
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 0x10690ac8
jmp 0x1000953e
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.100d1340
add esp, 4
mov esi, eax
mov edi, edx
push esi
push dword [ebp - 0x14]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x1000972c
test edi, edi
mov byte [0x106e1028], 1
mov dword [0x106e102c], eax
mov byte [esi], 0
je 0x1000940c
push 1
push edi
push esi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x10009422
push 1
push ebx
push eax
call fcn.1000d080
add esp, 0xc
cmp byte [0x106e1030], 0
jne 0x100095af
lea esi, [ebp - 0x20]
push 0xc
push 0x10690af1
push 0x19
push 0x10690ad8
push esi
call fcn.1000ae10
add esp, 0x14
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ebx, 7
ja 0x1000946d
test ebx, ebx
je 0x100094a5
xor edx, edx
nop dword [eax]
cmp byte [eax + edx], 0
je 0x10009484
inc edx
cmp ebx, edx
jne 0x10009460
jmp 0x100094a5
push ebx
push eax
push 0
mov esi, eax
call fcn.100e11a0
add esp, 0xc
test eax, eax
mov eax, esi
lea esi, [ebp - 0x20]
je 0x100094a5
cmp edi, 0x80000000
je 0x100094bc
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 0x10690b00
jmp 0x1000953e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ebx
push eax
call fcn.100d1340
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 0x10690b2e
push 0x1e
push 0x10690b10
push esi
call fcn.1000ae10
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp edi, 7
ja 0x1000950d
test edi, edi
je 0x10009550
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi + edx], 0
je 0x10009523
inc edx
cmp edi, edx
jne 0x10009500
jmp 0x10009550
push edi
push esi
push 0
mov dword [ebp - 0x3c], eax
call fcn.100e11a0
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x10009550
cmp eax, 0x80000000
je 0x10009569
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 0x10690b3c
push 0x106909c4
push eax
push 0x2b
push 0x106909d4
call fcn.100dc670
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
push eax
call fcn.100d1340
add esp, 4
mov esi, eax
mov edi, edx
push esi
push dword [ebp - 0x14]
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x1000972c
test edi, edi
mov byte [0x106e1030], 1
mov dword [0x106e1034], eax
mov byte [esi], 0
je 0x10009599
push 1
push edi
push esi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x100095af
push 1
push ebx
push eax
call fcn.1000d080
add esp, 0xc
push 0x10009190
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 0x100095ee
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [0x106b6680]
movzx eax, byte [eax]
push 1
push 0x100000
call fcn.1000d070
add esp, 8
test eax, eax
je 0x100098f8
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 0x1000986b
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 0x1000986b
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 0x100096a0
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + ecx]
test eax, eax
je 0x1000976d
add ecx, eax
cmp ecx, dword [ebp - 0x54]
jb 0x10009670
jmp 0x1000976d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax + ecx + 4]
test ebx, ebx
je 0x1000967c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x100096d0
mov eax, dword [ebp - 0x1c]
mov dword [eax + edi*4], ecx
inc edi
mov dword [ebp - 0x18], edi
add esi, 0x40
dec ebx
je 0x1000967c
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 0x100096ca
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x48]
cmp edi, dword [ebp - 0x20]
jne 0x100096c0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], ecx
call fcn.10006070
mov ecx, dword [ebp - 0x10]
add esp, 4
jmp 0x100096c0
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 0x10009756
push 1
push edi
push esi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
mov byte [eax], 0
je 0x100098c3
push 1
push ebx
push eax
jmp 0x100098bb
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x10009856
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push 1
push 0x100000
push ebx
call fcn.1000d080
add esp, 0xc
shl edi, 2
mov dword [ebp - 0x14], esi
nop word [eax + eax]
test esi, esi
je 0x1000983e
mov ebx, dword [esi]
lea eax, [ebp - 0x328]
push eax
push ebx
call sub.ntdll.dll_NtGetContextThread
test eax, eax
jne 0x10009894
cmp byte [0x106e1028], 1
jne 0x100097ed
mov eax, dword [0x106e102c]
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 [0x106e1030], 1
jne 0x1000981b
mov eax, dword [0x106e1034]
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 0x10009894
add esi, 4
push ebx
call sub.ntdll.dll_NtClose
add edi, 0xfffffffc
jne 0x100097a0
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 0x100098b2
jmp 0x100098c3
test eax, eax
je 0x1000986b
shl eax, 2
push 4
push eax
push dword [ebp - 0x1c]
call fcn.1000d080
add esp, 0xc
push 1
push 0x100000
push ebx
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0
jmp 0x100098c3
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 0x100098c3
shl eax, 2
push 4
push eax
push dword [ebp - 0x14]
call fcn.1000d080
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 0x10009764
jmp 0x100098c3
push 0x100000
push 1
call fcn.100d0890
nop
nop
nop
nop
nop
nop