Function at 0x3000c832
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov word [eax], si
call fcn.3000c2c6
cmp dword [0x300285e4], esi
jne 0x3000cf5a
push 0x106
push 0x10
call fcn.3001df79
cmp eax, esi
je 0x3000c88b
mov ecx, eax
call fcn.3000f7a0
mov dword [ebp - 4], eax
jmp 0x3000c88e
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x3000cf5a
push 2
push 0x14
push 0x14
push dword [ebp - 4]
call fcn.30020e4d
test eax, eax
je 0x3000cf5a
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [0x30024c10]
cmp dword [ebp + 0x10], esi
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
je 0x3000c8f0
cmp dword [0x300283c8], esi
jne 0x3000cf5a
mov ebx, SysReAllocString
mov dword [ebp - 0x88], 0xbfffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x30], eax
jmp 0x3000c8f6
mov ebx, dword [ebp - 0x8c]
cmp ebx, dword [ebp - 0x88]
jae 0x3000c990
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push 0x1c
push eax
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp eax, 0x1c
mov dword [ebp - 0xc], eax
je 0x3000c936
mov ebx, dword [ebp - 0x88]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
jmp 0x3000c97b
cmp dword [ebp - 0x60], 0x1000
jne 0x3000c97b
cmp dword [ebp - 0x5c], 4
jne 0x3000c97b
cmp dword [ebp - 0x58], 0x20000
jne 0x3000c97b
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xffffffff
jae 0x3000c97b
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x40], ecx
cdq
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], edx
push dword [ebp - 4]
mov dword [ebp - 0x24], ecx
call fcn.30020f83
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x64]
ja 0x3000c989
mov eax, dword [ebp - 0x64]
add ebx, eax
jmp 0x3000c8f6
lea eax, [ebp - 0x34]
push esi
push eax
push esi
push 4
push dword [0x300252c8]
call fcn.3001c70c
mov edx, dword [ebp - 0x34]
cmp edx, esi
je 0x3000cf5a
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000caf1
mov dword [ebp - 0x1c], esi
jmp 0x3000c9c0
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
lea ebx, [eax + edx + 4]
mov eax, dword [ebp - 4]
cmp word [eax], si
jbe 0x3000cadd
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebx + 4]
mov eax, dword [eax + 0xc]
lea esi, [ecx + eax]
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esi]
cmp eax, edi
ja 0x3000ca10
jb 0x3000c9f9
cmp ecx, dword [ebx]
ja 0x3000ca10
mov eax, dword [esi + 8]
mov edi, dword [ebx + 4]
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
cmp edi, ecx
jb 0x3000ca42
ja 0x3000ca10
cmp dword [ebx], eax
jb 0x3000ca42
cmp edi, dword [esi + 4]
ja 0x3000cb0a
jb 0x3000ca25
mov eax, dword [ebx]
cmp eax, dword [esi]
ja 0x3000cb0a
mov eax, dword [ebx + 8]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, dword [ebx + 4]
cmp dword [esi + 4], ecx
ja 0x3000cb0a
jb 0x3000ca42
cmp dword [esi], eax
jae 0x3000cb0a
lea edi, [ebp - 0x50]
push 1
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.300210f3
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000ca92
jb 0x3000ca67
cmp esi, dword [ebx]
jae 0x3000ca92
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx]
sub eax, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.30020f83
cmp eax, 0xffffffff
je 0x3000cf5a
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000cacb
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
sub edx, ecx
push dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], edx
call fcn.30020f83
cmp eax, 0xffffffff
je 0x3000cf5a
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000c9da
inc dword [ebp - 8]
add dword [ebp - 0x1c], 0x6c
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jb 0x3000c9be
xor esi, esi
cmp dword [ebp + 0x10], esi
jne 0x3000cca6
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000cca6
mov dword [ebp + 0x10], esi
jmp 0x3000cb15
inc dword [ebp - 0x14]
add dword [ebp - 0x38], 0x10
jmp 0x3000cace
xor esi, esi
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push ecx
lea edi, [eax + edx + 4]
lea ecx, [ebp - 0x54]
push 4
push ecx
mov eax, dword [edi]
mov dword [ebp - 0x1c], edi
add eax, 0x3c
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x3000cc7e
cmp dword [ebp - 0xc], 4
jne 0x3000cc7e
mov ebx, dword [ebp - 0x54]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
add ebx, dword [edi]
push eax
lea eax, [ebp - 0x18c]
push 0xf8
push eax
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x3000cc7e
cmp dword [ebp - 0xc], 0xf8
jne 0x3000cc7e
cmp dword [ebp - 0x18c], 0x4550
jne 0x3000cc7e
cmp word [ebp - 0x186], si
jbe 0x3000cc7e
movzx eax, word [ebp - 0x186]
lea esi, [eax + eax*4]
shl esi, 3
cmp dword [ebp - 0x10], esi
jae 0x3000cbda
cmp dword [ebp - 0x18], 0
je 0x3000cbc1
push dword [ebp - 0x18]
call fcn.3001dfaa
push 0x106
push esi
mov dword [ebp - 0x10], esi
call fcn.3001df79
test eax, eax
mov dword [ebp - 0x18], eax
je 0x3000cca4
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
and dword [ebp - 0xc], 0
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx eax, word [ebp - 0x178]
lea ecx, [ebp - 0xc]
push ecx
push esi
push dword [ebp - 0x18]
lea eax, [ebx + eax + 0x18]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x3000cc7e
cmp dword [ebp - 0xc], esi
jne 0x3000cc7e
xor esi, esi
cmp word [ebp - 0x186], si
jbe 0x3000cc7e
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
test eax, 0x80000000
je 0x3000cc6f
test eax, 0x40000000
je 0x3000cc6f
test al, 0xc0
je 0x3000cc6f
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx - 0x18]
add eax, dword [ecx]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx - 0x1c]
add dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.30020f83
movzx eax, word [ebp - 0x186]
add ebx, 0x28
inc esi
cmp esi, eax
jl 0x3000cc2b
inc dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add dword [ebp + 0x10], 0x6c
cmp eax, dword [edx]
jb 0x3000cb13
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x3000cca6
push dword [ebp - 0x18]
call fcn.3001dfaa
jmp 0x3000cca6
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
push esi
push 5
push dword [0x300252c8]
call fcn.3001c70c
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x3000cf5a
cmp dword [eax], esi
mov dword [ebp - 8], esi
jbe 0x3000ce0f
mov dword [ebp - 0x10], esi
jmp 0x3000ccd7
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
lea ebx, [ecx + eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ecx], ax
mov dword [ebp - 0x14], eax
jbe 0x3000cdfa
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + ecx + 4]
lea esi, [ecx + eax]
mov eax, dword [ebx]
cmp edx, edi
mov ecx, dword [esi]
ja 0x3000cd29
jb 0x3000cd13
cmp eax, ecx
ja 0x3000cd29
mov eax, dword [ebx + 8]
mov edi, dword [esi + 4]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, edx
cmp edi, ecx
jb 0x3000cd59
ja 0x3000cd29
cmp dword [esi], eax
jb 0x3000cd59
cmp edi, edx
ja 0x3000cde4
jb 0x3000cd3d
mov eax, dword [esi]
cmp eax, dword [ebx]
ja 0x3000cde4
mov eax, dword [esi + 8]
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
cmp edx, ecx
ja 0x3000cde4
jb 0x3000cd59
cmp dword [ebx], eax
jae 0x3000cde4
lea edi, [ebp - 0x50]
push 1
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.300210f3
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000cda9
jb 0x3000cd7e
cmp esi, dword [ebx]
jae 0x3000cda9
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx]
sub eax, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.30020f83
cmp eax, 0xffffffff
je 0x3000cf5a
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000cdeb
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
sub edx, ecx
push dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], edx
call fcn.30020f83
cmp eax, 0xffffffff
je 0x3000cf5a
jmp 0x3000cdeb
inc dword [ebp - 0x14]
add dword [ebp + 0x10], 0x10
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000ccf2
inc dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
add dword [ebp - 0x10], 0x10
cmp ecx, dword [eax]
jb 0x3000ccd4
mov ebx, dword [ebp - 4]
mov ax, word [ebx]
test ax, ax
jbe 0x3000cf5a
movzx ecx, ax
mov esi, ecx
shl esi, 4
add esi, 4
test ecx, ecx
jle 0x3000ce3e
mov eax, dword [ebx + 0xc]
add eax, 8
mov dword [eax + 4], esi
add esi, dword [eax]
add eax, 0x10
dec ecx
jne 0x3000ce33
call fcn.3000bb04
test eax, eax
je 0x3000cf5a
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x3000c828
push 0x30027108
push edi
call fcn.3000c6ea
test eax, eax
je 0x3000cf5a
xor eax, eax
push eax
push esi
push eax
push 4
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
xor ecx, ecx
mov dword [edi + 4], eax
cmp eax, ecx
je 0x3000cf5a
push ecx
push ecx
push ecx
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
mov dword [edi + 8], eax
je 0x3000cf5a
mov ecx, eax
mov dword [edi + 0xc], esi
movzx eax, word [ebx]
mov dword [ecx], eax
add ecx, 4
test eax, eax
mov dword [ebp + 0x10], ecx
jle 0x3000cee9
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
and ecx, 0xffff
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov edx, ecx
add dword [ebp - 0x10], 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
add dword [ebp + 0x10], ecx
dec dword [ebp - 0x1c]
jne 0x3000cec6
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], esi
jle 0x3000cf43
mov edi, dword [ebp + 0x10]
and dword [ebp - 0xc], 0
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0xc]
add eax, esi
push ecx
push dword [eax + 8]
push edi
push dword [eax]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x3000cf23
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + esi + 8]
jne 0x3000cf5a
jmp 0x3000cf2e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
and dword [eax + esi + 0xc], 0
mov eax, dword [ebx + 0xc]
add esi, 0x10
add edi, dword [eax + esi - 8]
inc dword [ebp - 8]
movzx eax, word [ebx]
cmp dword [ebp - 8], eax
jl 0x3000cef5
mov ecx, ebx
call fcn.3000f7bc
push ebx
call fcn.3001dfaa
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0xc]
call fcn.3000c416
mov esi, dword [ebp + 8]
xor edi, edi
cmp word [esi], di
je 0x3000cf72
push esi
call fcn.3000c454
push dword [ebp + 0xc]
call fcn.3000c2c6
cmp dword [ebp - 4], edi
mov word [esi], di
je 0x3000cf92
mov ecx, dword [ebp - 4]
call fcn.3000f7bc
push dword [ebp - 4]
call fcn.3001dfaa
xor eax, eax
jmp 0x3000cf53