Function at 0x10001551
Capabilities:
Enumerate processes
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3040c
call fcn.1000d0d0
mov eax, dword [0x100122cc]
xor eax, esp
mov dword [esp + 0x30408], eax
mov eax, dword [0x10013164]
push ebx
push esi
push edi
push 0x228
mov dword [esp + 0x24], eax
xor ebx, ebx
lea eax, [esp + 0x1e8]
push ebx
push eax
call fcn.10009fc0
add esp, 0xc
push ebx
push 2
mov dword [esp + 0x1e8], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x100015c8
xor eax, eax
mov ecx, dword [esp + 0x30414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100042df
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1e0]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x100015e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100015b1
xor eax, eax
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 7
pop ecx
xor eax, eax
mov byte [esp + 0x60], bl
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x15c
stosb byte es:[edi], al
lea eax, [esp + 0x84]
push ebx
push eax
mov byte [esp + 0x30], 2
call fcn.10009fc0
add esp, 0xc
mov esi, 0xfffe
push esi
lea eax, [esp + 0x20415]
push ebx
push eax
mov byte [esp + 0x2041c], bl
call fcn.10009fc0
add esp, 0xc
push esi
lea eax, [esp + 0x415]
push ebx
push eax
mov byte [esp + 0x41c], bl
call fcn.10009fc0
add esp, 0xc
push esi
lea eax, [esp + 0x10415]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1041c], bl
call fcn.10009fc0
add esp, 0xc
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x3c], ebx
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [esp + 0x410]
mov dword [esp + 0x10], eax
jmp 0x10001698
xor ebx, ebx
push 0x17c
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.10009fc0
lea eax, [esp + 0x210]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100016b5
push ebx
push ebx
push 0x20
sub eax, edx
lea ecx, [esp + 0x6c]
push ecx
sar eax, 1
push eax
lea eax, [esp + 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x1f8]
mov eax, dword [esp + 0x1e8]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x84]
push ecx
push eax
mov dword [esp + 0x94], eax
call fcn.10001dfe
add esp, 0xc
lea eax, [esp + 0x95]
push eax
push dword [esp + 0x8c]
call fcn.10001e94
push dword [esp + 0x90]
lea edi, [esp + 0x28]
lea ebx, [esp + 0xe1]
mov dword [esp + 0x28], 0x103
call fcn.1000206a
add esp, 0xc
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x1ec]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp word [esp + 0x3c], 9
jne 0x100017a9
mov eax, dword [esp + 0x88]
mov esi, eax
test eax, eax
je 0x1000179e
cmp eax, 4
je 0x1000179e
cmp eax, 8
je 0x1000179e
call fcn.1000232a
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.1000275f
pop ecx
jmp 0x100017a0
xor al, al
mov byte [esp + 0x94], al
jmp 0x100017b1
mov byte [esp + 0x94], 1
cmp dword [esp + 0x28], 0xac
jae 0x100017f2
mov edi, dword [esp + 0x10]
push 0x5f
mov eax, 0x17c
add dword [esp + 0x18], eax
add dword [esp + 0x14], eax
inc dword [esp + 0x2c]
pop ecx
lea eax, [esp + 0x1e0]
push eax
push dword [esp + 0x1c]
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10001696
xor ebx, ebx
cmp dword [esp + 0x28], ebx
je 0x10001891
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20410]
push eax
lea eax, [esp + 0x414]
push esi
push eax
call fcn.10002191
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x10001835
mov ecx, eax
and ecx, 7
je 0x10001833
sub eax, ecx
add eax, 8
mov ebx, eax
push ebx
lea eax, [esp + 0x20414]
push eax
lea eax, [esp + 0x10430]
push eax
call fcn.10002beb
add esp, 0xc
push 6
pop ecx
mov dword [esp + 0x2c], ebx
add ebx, 0x18
push ebx
lea eax, [esp + 0x10414]
push eax
push dword [esp + 0x28]
lea esi, [esp + 0x30]
lea edi, [esp + 0x1041c]
rep movsd dword es:[edi], dword [esi]
call fcn.10002466
add esp, 0xc
test eax, eax
jne 0x10001891
xor esi, esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100015b3
xor esi, esi
inc esi
jmp 0x10001880