Function at 0x10004690
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x970
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x1000
push 0x40
mov dword [ebp - 0x14], 0x1000
call esi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], ebx
je 0x100049c9
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
jmp 0x100046df
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x10
call edi
test eax, eax
jge 0x10004722
cmp eax, 0xc0000004
push ebx
jne 0x100049c3
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
push edx
push 0x40
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x100046dc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov dword [ebp - 0x20], 0
test eax, eax
mov dword [ebp - 0x18], 0
jbe 0x100049a8
lea esi, [ebx + 0xa]
mov dword [ebp - 0x1c], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [esi - 6]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jne 0x10004991
xor ebx, ebx
lea ecx, [ebp - 0x97c]
mov bx, word [esi]
push ecx
push ebx
call fcn.100049e0
add esp, 8
test eax, eax
je 0x1000498e
lea ecx, [ebp - 0x17c]
call fcn.1001c840
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x1003d374
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
je 0x100047af
cmp word [edi], si
je 0x100047af
inc esi
cmp word [edi + esi*2], 0
jne 0x100047a4
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 1
call fcn.1001b390
test edi, edi
je 0x100047e5
push esi
push edi
lea ecx, [ebp - 0x50]
call fcn.1001d8f0
push 0
push eax
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 2
call fcn.1001d910
mov dword [ebp - 0x50], 0x1003d374
mov dword [ebp - 0x30], 0x1003d374
push 0
lea edx, [ebp - 0x97c]
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push edx
push eax
lea ecx, [ebp - 0x17c]
mov dword [ebp - 4], 3
call fcn.10019460
mov eax, dword [ebp - 0x3c]
xor edi, edi
cmp eax, edi
jle 0x1000482d
mov ecx, dword [ebp - 0x40]
cmp dword [ecx], edi
je 0x1000482d
push ebx
call fcn.10004670
add esp, 4
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], 0x1003d370
cmp eax, edi
je 0x10004844
push eax
call fcn.10030c72
add esp, 4
mov dword [ebp - 0x44], 0x1003d36c
mov eax, dword [ebp - 0x160]
xor esi, esi
cmp eax, edi
mov dword [ebp - 4], 0xa
jle 0x1000487d
mov edx, dword [ebp - 0x15c]
mov ecx, dword [edx + esi*4]
cmp ecx, edi
je 0x10004872
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov eax, dword [ebp - 0x160]
inc esi
cmp esi, eax
jl 0x1000485e
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x160], edi
test ecx, ecx
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x174], edi
je 0x100048dc
push 4
push 0x44
xor ebx, ebx
call fcn.1003114a
mov esi, eax
add esp, 8
test esi, esi
lea edi, [ebp - 0x94]
jle 0x100048c6
mov ecx, esi
mov eax, ebx
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea edi, [ebp + esi*4 - 0x94]
test edx, edx
je 0x100048dc
jle 0x100048dc
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 0x1003d374
test eax, eax
mov dword [ebp - 0x104], 0x1003d368
je 0x10004903
push eax
call fcn.10030c72
add esp, 4
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], 0x1003d364
test eax, eax
mov dword [ebp - 0x118], 0x1003d360
je 0x1000492a
push eax
call fcn.10030c72
add esp, 4
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x118], 0x1003d35c
test eax, eax
mov dword [ebp - 0x12c], 0x1003d350
je 0x10004951
push eax
call fcn.10030c72
add esp, 4
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x12c], 0x1003d34c
mov byte [ebp - 4], 5
call fcn.10019250
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
call fcn.10018c10
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 0xffffffff
call fcn.10018c10
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
jb 0x10004740
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret