Function at 0x1008e700
Capabilities:
Get system information on windows
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
xor cl, cl
push edi
push 0x74
xorps xmm0, xmm0
mov byte [esp + 0x16], cl
lea eax, [esi + 4]
movlpd qword [esp + 0x24], xmm0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esi + 0x64], eax
xor eax, eax
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
xor edi, edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edi
mov edi, 0x1019df98
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x14], edi
cmp dword [edi + 4], edx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
sete bh
cmp dword [edi], ecx
sete bl
and bh, bl
mov byte [esp + 0x13], bh
xor ebx, ebx
cmp dword [esi - 4], eax
movzx edi, byte [esp + 0x13]
mov esi, dword [ebp + 8]
cmove ebx, edi
test bl, bl
jne 0x1008e7cd
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc ebx
add edi, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
cmp ebx, 4
jb 0x1008e785
jmp 0x1008e7dd
mov edi, dword [esp + 0x18]
shl edi, 4
mov eax, dword [edi + 0x1019df90]
mov dword [esi + 0x54], eax
cmp dword [esp + 0x1c], 1
jb 0x1008ea3e
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x2c]
mov ecx, edx
shr ecx, 8
mov edi, edx
shr edi, 4
and ecx, 0xf
mov eax, edx
mov dword [esi + 0x58], ecx
and edi, 0xf
and eax, 0xf
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
cmp ecx, 0xf
jne 0x1008e847
mov eax, edx
shr eax, 0x14
movzx eax, al
add eax, ecx
mov dword [esi + 0x58], eax
mov eax, edx
shr eax, 0xc
and eax, 0xf0
add eax, edi
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x30]
movzx ecx, al
mov dword [esi + 0x7c], ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 8
movzx eax, al
shr edx, 0xc
movzx ecx, cl
and edx, 3
shl ecx, 3
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x78], edx
mov dword [esi + 0x80], ecx
test al, 1
je 0x1008e886
or dword [esi + 0x68], 0x100000
test al, 2
je 0x1008e891
or dword [esi + 0x68], 0x80000000
test al, 8
je 0x1008e89c
or dword [esi + 0x68], 0x4000000
test eax, 0x200
je 0x1008e8aa
or dword [esi + 0x68], 0x200000
test eax, 0x2000
je 0x1008e8b5
or dword [esi + 0x68], 0x40
test eax, 0x80000
je 0x1008e8c3
or dword [esi + 0x68], 0x800000
test eax, 0x100000
je 0x1008e8d1
or dword [esi + 0x68], 0x1000000
test eax, 0x400000
je 0x1008e8df
or dword [esi + 0x68], 0x8000000
test eax, 0x800000
je 0x1008e8ed
or dword [esi + 0x68], 0x10000000
test eax, 0x2000000
je 0x1008e8fb
or dword [esi + 0x68], 0x40000000
test eax, 0x4000000
je 0x1008e906
or dword [esi + 0x6c], 8
test eax, 0x8000000
je 0x1008e911
or dword [esi + 0x6c], 0x10
test eax, 0x40000000
je 0x1008e91c
or dword [esi + 0x6c], 1
mov ecx, dword [esp + 0x38]
test cl, 0x10
je 0x1008e929
or dword [esi + 0x68], 4
test ecx, 0x100
je 0x1008e935
or dword [esi + 0x68], 0x20
test ecx, 0x8000
je 0x1008e941
or dword [esi + 0x68], 0x10
test ecx, 0x80000
je 0x1008e950
or dword [esi + 0x68], 0x80
test ecx, 0x800000
je 0x1008e95f
or dword [esi + 0x68], 0x4000
test ecx, 0x1000000
je 0x1008e96e
or dword [esi + 0x68], 0x1000
test ecx, 0x2000000
je 0x1008e984
or dword [esi + 0x68], 0x40000
or dword [esi + 0x68], 0x8000
test ecx, 0x4000000
je 0x1008e99a
or dword [esi + 0x68], 0x40000
or dword [esi + 0x68], 0x80000
and ecx, 0x10000000
je 0x1008e9a6
or dword [esi + 0x68], 2
cmp dword [esi + 0x64], 1
jne 0x1008e9bd
cmp dword [esi + 0x54], 2
jne 0x1008e9bd
test ecx, ecx
je 0x1008e9bd
mov dword [esi + 0x64], 2
mov ecx, eax
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x1008e9da
xor ecx, ecx
xgetbv
mov ebx, eax
mov eax, dword [esp + 0x34]
jmp 0x1008e9de
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, 0x10000000
je 0x1008ea46
mov ecx, ebx
and ecx, 6
cmp cl, 6
jne 0x1008ea46
mov ecx, dword [esi + 0x6c]
or ecx, 0x20
mov dword [esi + 0x6c], ecx
test eax, 0x800
je 0x1008ea0c
or ecx, 0x400
mov dword [esi + 0x6c], ecx
test eax, 0x4000
je 0x1008ea1c
or ecx, 0x100
mov dword [esi + 0x6c], ecx
test eax, 0x10000
je 0x1008ea2c
or ecx, 0x200
mov dword [esi + 0x6c], ecx
test eax, 0x20000000
je 0x1008ea46
or ecx, 0x80
mov dword [esi + 0x6c], ecx
jmp 0x1008ea46
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], 7
jb 0x1008ebc3
mov eax, 7
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x6c]
test al, 1
je 0x1008ea81
or edx, 0x20000
mov dword [esi + 0x6c], edx
mov ecx, edx
test al, 8
je 0x1008ea92
or ecx, 0x800
mov dword [esi + 0x6c], ecx
mov edx, ecx
test al, 0x10
je 0x1008eaa1
or ecx, 0x2000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test eax, 0x100
je 0x1008eab3
or ecx, 0x1000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test eax, 0x200
je 0x1008eac5
or ecx, 0x40000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test eax, 0x800
je 0x1008ead7
or ecx, 0x4000
mov dword [esi + 0x6c], ecx
mov edx, ecx
mov ebx, eax
shr ebx, 0xe
and bl, 1
test eax, 0x40000
je 0x1008eaee
or ecx, 2
mov dword [esi + 0x6c], ecx
mov edx, ecx
test eax, 0x80000
je 0x1008eb00
or ecx, 0x8000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test eax, 0x800000
je 0x1008eb10
or dword [esi + 0x68], 0x100
mov ecx, edx
test eax, 0x20000000
je 0x1008eb1d
or ecx, 4
mov dword [esi + 0x6c], ecx
test byte [esp + 0x34], 1
je 0x1008eb2b
or dword [esi + 0x68], 0x400
mov edi, dword [esi + 0x6c]
mov ecx, edi
shr ecx, 5
mov edx, edi
test cl, 1
je 0x1008eb44
test al, 0x20
je 0x1008eb44
or edx, 0x40
mov dword [esi + 0x6c], edx
mov cl, bl
test eax, 0x10000
je 0x1008ebcb
mov ecx, dword [esp + 0x14]
and ecx, 0x76
cmp cl, 0x76
jne 0x1008ebc9
or edx, 0x80000
mov dword [esi + 0x6c], edx
test eax, 0x20000
je 0x1008eb72
or edx, 0x800000
mov dword [esi + 0x6c], edx
test eax, 0x4000000
je 0x1008eb82
or edx, 0x200000
mov dword [esi + 0x6c], edx
test eax, 0x8000000
je 0x1008eb92
or edx, 0x400000
mov dword [esi + 0x6c], edx
test eax, 0x10000000
je 0x1008eba2
or edx, 0x100000
mov dword [esi + 0x6c], edx
test eax, 0x40000000
je 0x1008ebb2
or edx, 0x1000000
mov dword [esi + 0x6c], edx
mov cl, bl
test eax, eax
jns 0x1008ebcb
or edx, 0x2000000
mov dword [esi + 0x6c], edx
jmp 0x1008ebcb
mov cl, byte [esp + 0x12]
jmp 0x1008ebcb
mov cl, bl
cmp dword [esp + 0x1c], 0xd
jb 0x1008ec08
test cl, cl
je 0x1008ec08
mov eax, 0xd
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
and eax, dword [esp + 0x2c]
and eax, 0x18
cmp al, 0x18
jne 0x1008ec08
or dword [esi + 0x6c], 0x10000
mov eax, connect
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
lea eax, [esi + 0x14]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, connect
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
cmp ebx, reloc.WS2_32.dll_connect
jae 0x1008ec54
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jb 0x1008ed6c
jmp 0x1008ec60
mov dword [esp + 0x14], reloc.WS2_32.dll_connect
mov dword [esp + 0x1c], eax
mov eax, edx
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x7fffffff]
cmp eax, 3
ja case.default.0x1008ec8c
jmp dword [eax*4 + 0x1008eda8]
mov eax, dword [esp + 0x34]
test al, 1
je 0x1008eca7
mov ecx, dword [esi + 0x68]
or ecx, 0x800
mov dword [esi + 0x68], ecx
test al, 0x20
je 0x1008ecb2
or dword [esi + 0x68], 0x20000000
test al, 0x40
je 0x1008ecbd
or dword [esi + 0x68], 0x400000
test al, al
jns 0x1008ecc8
or dword [esi + 0x68], 0x2000000
test eax, 0x100
je 0x1008ecd6
or dword [esi + 0x68], 0x200
mov eax, dword [esp + 0x38]
test eax, 0x100000
je 0x1008ece5
or dword [esi + 0x68], 1
test eax, 0x200000
je 0x1008ecf3
or dword [esi + 0x68], 0x2000
test eax, 0x400000
je 0x1008ed01
or dword [esi + 0x68], 0x8000
test eax, 0x8000000
je 0x1008ed0c
or dword [esi + 0x68], 8
test eax, 0x40000000
je 0x1008ed26
or dword [esi + 0x68], 0x20000
mov ecx, dword [esi + 0x68]
or ecx, 0x8000
mov dword [esi + 0x68], ecx
test eax, eax
jns case.default.0x1008ec8c
or dword [esi + 0x68], 0x10000
jmp case.default.0x1008ec8c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x1c], ecx
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x1008ec60
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
xor ch, ch
mov byte [eax], ch
mov edx, eax
test cl, cl
je 0x1008ed9e
cmp cl, 0x20
jne 0x1008ed8e
cmp ch, 0x40
je 0x1008ed93
mov bl, byte [eax + 1]
cmp bl, cl
je 0x1008ed93
cmp bl, 0x40
je 0x1008ed93
mov byte [edx], cl
mov ch, cl
inc edx
mov cl, byte [eax + 1]
inc eax
mov byte [eax], 0
test cl, cl
jne 0x1008ed78
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret