Function at 0x3000cc58
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 + 0x10]
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.3000c5e4
cmp dword [0x3002ed10], esi
jne 0x3000d3ce
push 0x106
push 0x10
call fcn.30024221
cmp eax, esi
je 0x3000ccb1
mov ecx, eax
call fcn.30007943
mov dword [ebp - 4], eax
jmp 0x3000ccb4
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x3000d3ce
push 2
push 0x14
push 0x14
push dword [ebp - 4]
call fcn.3002714d
test eax, eax
je 0x3000d3ce
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [0x3002ac18]
cmp dword [ebp + 0x14], esi
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
je 0x3000cd16
cmp dword [0x3002eaf4], esi
jne 0x3000d3ce
mov ebx, 0x80000000
mov dword [ebp - 0x88], 0xbfffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x30], eax
jmp 0x3000cd1c
mov ebx, dword [ebp - 0x8c]
cmp ebx, dword [ebp - 0x88]
jae 0x3000cdbc
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 0x3000cd5c
mov ebx, dword [ebp - 0x88]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
jmp 0x3000cda7
cmp dword [ebp - 0x60], 0x1000
jne 0x3000cda7
cmp dword [ebp - 0x5c], 4
je 0x3000cd71
cmp dword [ebp - 0x5c], 0x40
jne 0x3000cda7
cmp dword [ebp - 0x58], 0x20000
jne 0x3000cda7
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xffffffff
jae 0x3000cda7
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.30027283
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x64]
ja 0x3000cdb5
mov eax, dword [ebp - 0x64]
add ebx, eax
jmp 0x3000cd1c
lea eax, [ebp - 0x34]
push esi
push eax
push esi
push 4
push dword [0x3002b2d0]
call fcn.30020011
mov edx, dword [ebp - 0x34]
cmp edx, esi
je 0x3000d3ce
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000cf1d
mov dword [ebp - 0x1c], esi
jmp 0x3000cdec
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 0x3000cf09
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 0x3000ce3c
jb 0x3000ce25
cmp ecx, dword [ebx]
ja 0x3000ce3c
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 0x3000ce6e
ja 0x3000ce3c
cmp dword [ebx], eax
jb 0x3000ce6e
cmp edi, dword [esi + 4]
ja 0x3000cf36
jb 0x3000ce51
mov eax, dword [ebx]
cmp eax, dword [esi]
ja 0x3000cf36
mov eax, dword [ebx + 8]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, dword [ebx + 4]
cmp dword [esi + 4], ecx
ja 0x3000cf36
jb 0x3000ce6e
cmp dword [esi], eax
jae 0x3000cf36
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.300273f3
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000cebe
jb 0x3000ce93
cmp esi, dword [ebx]
jae 0x3000cebe
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.30027283
cmp eax, 0xffffffff
je 0x3000d3ce
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000cef7
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.30027283
cmp eax, 0xffffffff
je 0x3000d3ce
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000ce06
inc dword [ebp - 8]
add dword [ebp - 0x1c], 0x6c
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jb 0x3000cdea
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x3000d0d2
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000d0d2
mov dword [ebp + 0x14], esi
jmp 0x3000cf41
inc dword [ebp - 0x14]
add dword [ebp - 0x38], 0x10
jmp 0x3000cefa
xor esi, esi
mov eax, dword [ebp + 0x14]
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 0x3000d0aa
cmp dword [ebp - 0xc], 4
jne 0x3000d0aa
mov dword [ebp - 0xc], esi
mov ebx, dword [edi]
add ebx, dword [ebp - 0x54]
lea eax, [ebp - 0xc]
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 0x3000d0aa
cmp dword [ebp - 0xc], 0xf8
jne 0x3000d0aa
cmp dword [ebp - 0x18c], 0x4550
jne 0x3000d0aa
cmp word [ebp - 0x186], si
jbe 0x3000d0aa
movzx eax, word [ebp - 0x186]
lea esi, [eax + eax*4]
shl esi, 3
cmp dword [ebp - 0x10], esi
jae 0x3000d006
cmp dword [ebp - 0x18], 0
je 0x3000cfed
push dword [ebp - 0x18]
call fcn.3002425c
push 0x106
push esi
mov dword [ebp - 0x10], esi
call fcn.30024221
test eax, eax
mov dword [ebp - 0x18], eax
je 0x3000d0d0
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 0x3000d0aa
cmp dword [ebp - 0xc], esi
jne 0x3000d0aa
xor esi, esi
cmp word [ebp - 0x186], si
jbe 0x3000d0aa
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
test eax, 0x80000000
je 0x3000d09b
test eax, 0x40000000
je 0x3000d09b
test al, 0xc0
je 0x3000d09b
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.30027283
movzx eax, word [ebp - 0x186]
add ebx, 0x28
inc esi
cmp esi, eax
jl 0x3000d057
inc dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add dword [ebp + 0x14], 0x6c
cmp eax, dword [edx]
jb 0x3000cf3f
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x3000d0d2
push dword [ebp - 0x18]
call fcn.3002425c
jmp 0x3000d0d2
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
push esi
push 5
push dword [0x3002b2d0]
call fcn.30020011
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x3000d3ce
cmp dword [eax], esi
mov dword [ebp - 8], esi
jbe 0x3000d23b
mov dword [ebp - 0x10], esi
jmp 0x3000d103
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 0x3000d226
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
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 0x3000d155
jb 0x3000d13f
cmp eax, ecx
ja 0x3000d155
mov eax, dword [ebx + 8]
mov edi, dword [esi + 4]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, edx
cmp edi, ecx
jb 0x3000d185
ja 0x3000d155
cmp dword [esi], eax
jb 0x3000d185
cmp edi, edx
ja 0x3000d210
jb 0x3000d169
mov eax, dword [esi]
cmp eax, dword [ebx]
ja 0x3000d210
mov eax, dword [esi + 8]
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
cmp edx, ecx
ja 0x3000d210
jb 0x3000d185
cmp dword [ebx], eax
jae 0x3000d210
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.300273f3
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000d1d5
jb 0x3000d1aa
cmp esi, dword [ebx]
jae 0x3000d1d5
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.30027283
cmp eax, 0xffffffff
je 0x3000d3ce
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000d217
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.30027283
cmp eax, 0xffffffff
je 0x3000d3ce
jmp 0x3000d217
inc dword [ebp - 0x14]
add dword [ebp + 0x14], 0x10
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000d11e
inc dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
add dword [ebp - 0x10], 0x10
cmp ecx, dword [eax]
jb 0x3000d100
mov ebx, dword [ebp - 4]
mov ax, word [ebx]
test ax, ax
jbe 0x3000d3ce
movzx ecx, ax
mov edi, ecx
shl edi, 4
add edi, 4
test ecx, ecx
mov dword [ebp - 0x10], edi
jle 0x3000d270
mov eax, dword [ebx + 0xc]
add eax, 8
mov dword [eax + 4], edi
add edi, dword [eax]
add eax, 0x10
dec ecx
jne 0x3000d262
mov dword [ebp - 0x10], edi
call fcn.3000bee7
test eax, eax
je 0x3000d3ce
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
push 0x3000cc4e
push 0x3002d838
push esi
call fcn.3000cb04
test eax, eax
je 0x3000d3ce
xor eax, eax
push eax
push edi
push eax
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x3000d3ce
xor ecx, ecx
push ecx
push ecx
push ecx
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], eax
je 0x3000d3ce
movzx edx, word [ebx]
and dword [ebp - 8], 0
mov ecx, eax
mov dword [esi + 0xc], edi
mov dword [ecx], edx
add ecx, 4
test edx, edx
mov dword [ebp + 0x14], ecx
jle 0x3000d341
mov ecx, dword [ebx + 4]
and ecx, 0xffff
and dword [ebp + 0xc], 0
mov dword [ebp - 0x38], ecx
jmp 0x3000d305
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 0x14]
add eax, edi
cmp eax, ecx
jb 0x3000d3ce
mov esi, dword [ebx + 0xc]
mov edi, dword [ebp + 0x14]
add esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add dword [ebp + 0xc], 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
add dword [ebp + 0x14], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
jl 0x3000d2ff
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
and dword [ebp - 8], 0
test edx, edx
jle 0x3000d3b7
and dword [ebp + 0xc], 0
and dword [ebp - 0xc], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 8]
sub edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [eax + 8]
add edx, edi
cmp edx, ecx
jb 0x3000d3ce
lea edx, [ebp - 0xc]
push edx
push ecx
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x3000d390
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + edx + 8]
jne 0x3000d3ce
jmp 0x3000d39b
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
and dword [eax + ecx + 0xc], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0x10
mov eax, dword [eax + ecx + 8]
add dword [ebp + 0x14], eax
inc dword [ebp - 8]
movzx eax, word [ebx]
cmp dword [ebp - 8], eax
jl 0x3000d34d
mov ecx, ebx
call fcn.3001047e
push ebx
call fcn.3002425c
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0x10]
call fcn.3000c734
mov esi, dword [ebp + 8]
xor edi, edi
cmp word [esi], di
je 0x3000d3e6
push esi
call fcn.3000c772
push dword [ebp + 0x10]
call fcn.3000c5e4
cmp dword [ebp - 4], edi
mov word [esi], di
je 0x3000d406
mov ecx, dword [ebp - 4]
call fcn.3001047e
push dword [ebp - 4]
call fcn.3002425c
xor eax, eax
jmp 0x3000d3c7