Function at 0x3000caae
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.3000c52c
cmp dword [0x3002ed10], esi
jne 0x3000d224
push 0x106
push 0x10
call fcn.30024069
cmp eax, esi
je 0x3000cb07
mov ecx, eax
call fcn.30007889
mov dword [ebp - 4], eax
jmp 0x3000cb0a
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x3000d224
push 2
push 0x14
push 0x14
push dword [ebp - 4]
call fcn.30026f9d
test eax, eax
je 0x3000d224
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 0x3000cb6c
cmp dword [0x3002eaf4], esi
jne 0x3000d224
mov ebx, SysReAllocString
mov dword [ebp - 0x88], 0xbfffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x30], eax
jmp 0x3000cb72
mov ebx, dword [ebp - 0x8c]
cmp ebx, dword [ebp - 0x88]
jae 0x3000cc12
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 0x3000cbb2
mov ebx, dword [ebp - 0x88]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
jmp 0x3000cbfd
cmp dword [ebp - 0x60], 0x1000
jne 0x3000cbfd
cmp dword [ebp - 0x5c], 4
je 0x3000cbc7
cmp dword [ebp - 0x5c], 0x40
jne 0x3000cbfd
cmp dword [ebp - 0x58], 0x20000
jne 0x3000cbfd
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xffffffff
jae 0x3000cbfd
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.300270d3
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x64]
ja 0x3000cc0b
mov eax, dword [ebp - 0x64]
add ebx, eax
jmp 0x3000cb72
lea eax, [ebp - 0x34]
push esi
push eax
push esi
push 4
push dword [0x3002b2d0]
call fcn.3001fe59
mov edx, dword [ebp - 0x34]
cmp edx, esi
je 0x3000d224
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000cd73
mov dword [ebp - 0x1c], esi
jmp 0x3000cc42
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 0x3000cd5f
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 0x3000cc92
jb 0x3000cc7b
cmp ecx, dword [ebx]
ja 0x3000cc92
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 0x3000ccc4
ja 0x3000cc92
cmp dword [ebx], eax
jb 0x3000ccc4
cmp edi, dword [esi + 4]
ja 0x3000cd8c
jb 0x3000cca7
mov eax, dword [ebx]
cmp eax, dword [esi]
ja 0x3000cd8c
mov eax, dword [ebx + 8]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, dword [ebx + 4]
cmp dword [esi + 4], ecx
ja 0x3000cd8c
jb 0x3000ccc4
cmp dword [esi], eax
jae 0x3000cd8c
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.30027243
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000cd14
jb 0x3000cce9
cmp esi, dword [ebx]
jae 0x3000cd14
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.300270d3
cmp eax, 0xffffffff
je 0x3000d224
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000cd4d
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.300270d3
cmp eax, 0xffffffff
je 0x3000d224
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000cc5c
inc dword [ebp - 8]
add dword [ebp - 0x1c], 0x6c
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jb 0x3000cc40
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x3000cf28
cmp dword [edx], esi
mov dword [ebp - 8], esi
jbe 0x3000cf28
mov dword [ebp + 0x14], esi
jmp 0x3000cd97
inc dword [ebp - 0x14]
add dword [ebp - 0x38], 0x10
jmp 0x3000cd50
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 0x3000cf00
cmp dword [ebp - 0xc], 4
jne 0x3000cf00
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 0x3000cf00
cmp dword [ebp - 0xc], 0xf8
jne 0x3000cf00
cmp dword [ebp - 0x18c], 0x4550
jne 0x3000cf00
cmp word [ebp - 0x186], si
jbe 0x3000cf00
movzx eax, word [ebp - 0x186]
lea esi, [eax + eax*4]
shl esi, 3
cmp dword [ebp - 0x10], esi
jae 0x3000ce5c
cmp dword [ebp - 0x18], 0
je 0x3000ce43
push dword [ebp - 0x18]
call fcn.300240a4
push 0x106
push esi
mov dword [ebp - 0x10], esi
call fcn.30024069
test eax, eax
mov dword [ebp - 0x18], eax
je 0x3000cf26
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 0x3000cf00
cmp dword [ebp - 0xc], esi
jne 0x3000cf00
xor esi, esi
cmp word [ebp - 0x186], si
jbe 0x3000cf00
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
test eax, 0x80000000
je 0x3000cef1
test eax, 0x40000000
je 0x3000cef1
test al, 0xc0
je 0x3000cef1
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.300270d3
movzx eax, word [ebp - 0x186]
add ebx, 0x28
inc esi
cmp esi, eax
jl 0x3000cead
inc dword [ebp - 8]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add dword [ebp + 0x14], 0x6c
cmp eax, dword [edx]
jb 0x3000cd95
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x3000cf28
push dword [ebp - 0x18]
call fcn.300240a4
jmp 0x3000cf28
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
push esi
push 5
push dword [0x3002b2d0]
call fcn.3001fe59
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x3000d224
cmp dword [eax], esi
mov dword [ebp - 8], esi
jbe 0x3000d091
mov dword [ebp - 0x10], esi
jmp 0x3000cf59
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 0x3000d07c
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 0x3000cfab
jb 0x3000cf95
cmp eax, ecx
ja 0x3000cfab
mov eax, dword [ebx + 8]
mov edi, dword [esi + 4]
xor ecx, ecx
add eax, dword [ebx]
adc ecx, edx
cmp edi, ecx
jb 0x3000cfdb
ja 0x3000cfab
cmp dword [esi], eax
jb 0x3000cfdb
cmp edi, edx
ja 0x3000d066
jb 0x3000cfbf
mov eax, dword [esi]
cmp eax, dword [ebx]
ja 0x3000d066
mov eax, dword [esi + 8]
xor ecx, ecx
add eax, dword [esi]
adc ecx, dword [esi + 4]
cmp edx, ecx
ja 0x3000d066
jb 0x3000cfdb
cmp dword [ebx], eax
jae 0x3000d066
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.30027243
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
ja 0x3000d02b
jb 0x3000d000
cmp esi, dword [ebx]
jae 0x3000d02b
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.300270d3
cmp eax, 0xffffffff
je 0x3000d224
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 8]
add ecx, dword [ebx]
lea edx, [esi + eax]
cmp edx, ecx
jbe 0x3000d06d
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.300270d3
cmp eax, 0xffffffff
je 0x3000d224
jmp 0x3000d06d
inc dword [ebp - 0x14]
add dword [ebp + 0x14], 0x10
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x14], eax
jl 0x3000cf74
inc dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
add dword [ebp - 0x10], 0x10
cmp ecx, dword [eax]
jb 0x3000cf56
mov ebx, dword [ebp - 4]
mov ax, word [ebx]
test ax, ax
jbe 0x3000d224
movzx ecx, ax
mov edi, ecx
shl edi, 4
add edi, 4
test ecx, ecx
mov dword [ebp - 0x10], edi
jle 0x3000d0c6
mov eax, dword [ebx + 0xc]
add eax, 8
mov dword [eax + 4], edi
add edi, dword [eax]
add eax, 0x10
dec ecx
jne 0x3000d0b8
mov dword [ebp - 0x10], edi
call fcn.3000be2f
test eax, eax
je 0x3000d224
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
push 0x3000caa4
push 0x3002d838
push esi
call fcn.3000c95a
test eax, eax
je 0x3000d224
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 0x3000d224
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 0x3000d224
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 0x3000d197
mov ecx, dword [ebx + 4]
and ecx, 0xffff
and dword [ebp + 0xc], 0
mov dword [ebp - 0x38], ecx
jmp 0x3000d15b
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 0x14]
add eax, edi
cmp eax, ecx
jb 0x3000d224
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 0x3000d155
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x10]
and dword [ebp - 8], 0
test edx, edx
jle 0x3000d20d
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 0x3000d224
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 0x3000d1e6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + edx + 8]
jne 0x3000d224
jmp 0x3000d1f1
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 0x3000d1a3
mov ecx, ebx
call fcn.30013db5
push ebx
call fcn.300240a4
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0x10]
call fcn.3000c67c
mov esi, dword [ebp + 8]
xor edi, edi
cmp word [esi], di
je 0x3000d23c
push esi
call fcn.3000c6ba
push dword [ebp + 0x10]
call fcn.3000c52c
cmp dword [ebp - 4], edi
mov word [esi], di
je 0x3000d25c
mov ecx, dword [ebp - 4]
call fcn.30013db5
push dword [ebp - 4]
call fcn.300240a4
xor eax, eax
jmp 0x3000d21d