Function at 0x10020bf
Capabilities:
Enumerate process modules
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x100609c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x380], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x374], edi
mov byte [ebp - 0x34f], 0
mov byte [ebp - 0x34d], 0
jne 0x1002116
xor al, al
jmp 0x10026bb
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x360], edi
push edi
push 0x410
mov dword [ebp - 0x368], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x35c], esi
jne 0x1002151
push 0x400028a0
push 1
call fcn.01001e7b
pop ecx
pop ecx
jmp 0x10026b8
push edi
push edi
push esi
call dword [sym.imp.DBGHELP.dll_SymInitialize]
test eax, eax
jne 0x1002171
push 0x400028a0
push 1
call fcn.01001e7b
pop ecx
pop ecx
jmp 0x100266a
cmp dword [ebp + 0x10], edi
push ebx
jne 0x1002206
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x10021f5
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100219b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
sub eax, edx
mov esi, eax
cmp esi, 0xb
jne 0x10021c3
push 0x1001224
lea eax, [ebp - 0x104]
push eax
call ebx
test eax, eax
je 0x1002206
cmp esi, 0xc
jne 0x10021da
push 0x1001214
lea eax, [ebp - 0x104]
push eax
call ebx
test eax, eax
je 0x1002206
lea eax, [ebp - 0x104]
push eax
push 0x400028a5
push 1
call fcn.01001e7b
add esp, 0xc
jmp 0x1002669
push 0x400028a2
push 1
call fcn.01001e7b
jmp 0x1002667
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor esi, esi
lea eax, [ebp - 0x364]
push eax
push esi
push dword [ebp - 0x360]
push 0xb
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
test edi, edi
jge 0x1002292
cmp dword [ebp - 0x360], 0
je 0x1002254
mov eax, dword fs:[0x18]
push dword [ebp - 0x360]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 0x360], 0
cmp edi, 0xc0000004
jne 0x10025f8
cmp dword [ebp - 0x364], esi
jbe 0x10025f8
mov esi, dword [ebp - 0x364]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call ebx
test eax, eax
mov dword [ebp - 0x360], eax
jne 0x100220e
jmp 0x10025f8
mov esi, dword [ebp - 0x360]
test esi, esi
jne 0x10022aa
push 0x400028a0
push 1
call fcn.01001e7b
pop ecx
pop ecx
push 0x10011f8
push dword [ebp - 0x35c]
call dword [sym.imp.DBGHELP.dll_SymSetSearchPath]
mov ecx, dword [ebp - 0x360]
xor eax, eax
add esi, 4
xor edi, edi
cmp dword [ecx], eax
jbe 0x1002303
jmp 0x10022d0
xor eax, eax
movzx ecx, word [esi + 0x1a]
push eax
push eax
push dword [esi + 0xc]
lea ecx, [ecx + esi + 0x1c]
push eax
push dword [esi + 8]
push eax
push ecx
push eax
push dword [ebp - 0x35c]
call dword [sym.imp.DBGHELP.dll_SymLoadModuleEx]
mov eax, dword [ebp - 0x360]
inc edi
add esi, 0x11c
cmp edi, dword [eax]
jb 0x10022ce
xor eax, eax
lea ecx, [ebp - 0x358]
push ecx
push eax
push eax
push dword [ebp - 0x35c]
call fcn.01003c36
xor edi, edi
cmp dword [ebp - 0x358], edi
jbe 0x1002382
push dword [ebp - 0x358]
push edi
push dword [ebp - 0x378]
call ebx
cmp eax, edi
mov dword [ebp - 0x368], eax
je 0x10025f8
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 0x358]
push dword [ebp - 0x368]
push dword [ebp - 0x35c]
call fcn.01003c36
test eax, eax
jne 0x1002373
push 0x400028a2
push 1
call fcn.01001e7b
pop ecx
pop ecx
jmp 0x10025f8
mov eax, dword [ebp - 0x358]
shr eax, 2
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x354], edi
mov eax, dword [ebp - 0x380]
mov ecx, dword [ebp - 0x354]
lea esi, [eax + ecx*8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, eax
or edx, ecx
mov dword [ebp - 0x37c], esi
je 0x10025f8
lea edx, [ebp - 0x34c]
push edx
push ecx
push eax
push dword [ebp - 0x35c]
mov dword [ebp - 0x34c], 0x248
call dword [sym.imp.DBGHELP.dll_SymGetModuleInfo64]
test eax, eax
je 0x1002459
cmp byte [ebp - 0x34f], 0
je 0x1002406
mov eax, dword [ebp - 0x38c]
cmp eax, dword [ebp - 0x344]
jne 0x1002406
mov eax, dword [ebp - 0x388]
cmp eax, dword [ebp - 0x340]
jne 0x1002406
mov eax, dword [ebp - 0x384]
cmp eax, dword [ebp - 0x33c]
je 0x100244e
lea eax, [ebp - 0x308]
push eax
push 0x400028a4
push 1
call fcn.01001e7b
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x340]
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x33c]
add esp, 0xc
mov dword [ebp - 0x384], eax
mov byte [ebp - 0x34f], 1
mov byte [ebp - 0x34d], 0
inc dword [ebp - 0x354]
jmp 0x10025eb
cmp dword [ebp - 0x374], edi
mov byte [ebp - 0x34f], 0
mov dword [ebp - 0x370], edi
jbe 0x10025b7
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x36c], eax
push 0xc
lea eax, [ebp - 0x398]
push eax
mov eax, dword [ebp - 0x36c]
push dword [eax]
push dword [ebp - 0x35c]
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x1002635
mov eax, dword [ebp - 0x398]
mov ecx, dword [esi + 4]
mov edi, dword [esi]
cdq
cmp ecx, edx
mov byte [ebp - 0x34e], 0
mov ebx, eax
jb 0x1002635
ja 0x10024c9
cmp edi, ebx
jb 0x1002635
mov eax, dword [ebp - 0x394]
xor esi, esi
add eax, ebx
adc esi, edx
cmp ecx, esi
ja 0x100259e
jb 0x10024e7
cmp edi, eax
jae 0x100259e
cmp byte [ebp - 0x34e], 0
je 0x10024f8
inc dword [ebp - 0x354]
jmp 0x1002567
mov edi, dword [ebp - 0x36c]
mov esi, 0x100
push esi
lea eax, [ebp - 0x104]
push eax
push dword [edi]
push dword [ebp - 0x35c]
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x1002520
cmp eax, esi
jne 0x100253d
push esi
lea eax, [ebp - 0x104]
push eax
push dword [edi]
push dword [ebp - 0x35c]
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x100262f
inc dword [ebp - 0x354]
lea eax, [ebp - 0x104]
push eax
push 0x400028a4
push 1
mov byte [ebp - 0x34e], 1
call fcn.01001e7b
add esp, 0xc
mov byte [ebp - 0x34d], 0
mov eax, dword [ebp - 0x398]
mov ecx, dword [ebp - 0x354]
cdq
mov ebx, eax
mov eax, dword [ebp - 0x380]
lea esi, [eax + ecx*8]
mov ecx, dword [esi + 4]
cmp ecx, edx
mov edi, dword [esi]
mov dword [ebp - 0x37c], esi
ja 0x10024c9
jb 0x10025a4
cmp edi, ebx
jae 0x10024c9
jmp 0x10025a4
mov esi, dword [ebp - 0x37c]
cmp byte [ebp - 0x34e], 0
je 0x1002635
dec dword [ebp - 0x354]
mov eax, dword [ebp - 0x374]
cmp dword [ebp - 0x370], eax
jne 0x10025e3
cmp byte [ebp - 0x34d], 0
jne 0x10025e3
push 0x400028a3
push 1
call fcn.01001e7b
pop ecx
pop ecx
mov byte [ebp - 0x34d], 1
inc dword [ebp - 0x354]
xor edi, edi
cmp dword [ebp - 0x354], 0x10
jb 0x1002388
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x35c]
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x1002659
lea eax, [ebp - 0x104]
push eax
push 0x400028a5
push 1
call fcn.01001e7b
add esp, 0xc
xor edi, edi
jmp 0x1002669
mov esi, dword [ebp - 0x37c]
inc dword [ebp - 0x370]
mov eax, dword [ebp - 0x370]
add dword [ebp - 0x36c], 4
cmp eax, dword [ebp - 0x374]
jb 0x100247e
jmp 0x10025b7
push 0x400028a2
push 1
call fcn.01001e7b
xor edi, edi
pop ecx
pop ecx
pop ebx
push dword [ebp - 0x35c]
call dword [sym.imp.DBGHELP.dll_SymCleanup]
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x360], edi
je 0x100269d
push dword [ebp - 0x360]
push edi
push dword [ebp - 0x378]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x368], edi
je 0x10026b8
push dword [ebp - 0x368]
push edi
push dword [ebp - 0x378]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.010038e4
leave
ret 0xc