Function at 0x10034740
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]
xorps xmm0, xmm0
push edi
push 0x74
push 0
lea eax, [esi + 4]
mov byte [esp + 0x1b], 0
push eax
movlpd qword [esp + 0x2c], xmm0
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
mov edi, 0x100437a0
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xc]
cmp dword [edi + 4], ecx
sete bl
cmp dword [edi], edx
sete cl
xor edx, edx
and bl, cl
cmp dword [edi - 4], eax
movzx ecx, bl
cmove edx, ecx
mov ecx, dword [esp + 0x14]
test dl, dl
jne 0x100347fb
mov edx, dword [esi + 8]
inc ecx
add edi, 0x10
mov dword [esp + 0x14], ecx
cmp ecx, 4
mov ecx, dword [esi + 0xc]
jb 0x100347c6
jmp 0x10034807
shl ecx, 4
mov eax, dword [ecx + 0x10043798]
mov dword [esi + 0x54], eax
cmp dword [esp + 0x18], 1
jb 0x10034a5a
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 0x10034871
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 0x100348b0
or dword [esi + 0x68], 0x100000
test al, 2
je 0x100348bb
or dword [esi + 0x68], 0x80000000
test al, 8
je 0x100348c6
or dword [esi + 0x68], 0x4000000
test eax, 0x200
je 0x100348d4
or dword [esi + 0x68], 0x200000
test eax, 0x2000
je 0x100348df
or dword [esi + 0x68], 0x40
test eax, 0x80000
je 0x100348ed
or dword [esi + 0x68], 0x800000
test eax, 0x100000
je 0x100348fb
or dword [esi + 0x68], 0x1000000
test eax, 0x400000
je 0x10034909
or dword [esi + 0x68], 0x8000000
test eax, 0x800000
je 0x10034917
or dword [esi + 0x68], 0x10000000
test eax, 0x2000000
je 0x10034925
or dword [esi + 0x68], 0x40000000
test eax, 0x4000000
je 0x10034930
or dword [esi + 0x6c], 8
test eax, 0x8000000
je 0x1003493b
or dword [esi + 0x6c], 0x10
test eax, 0x40000000
je 0x10034946
or dword [esi + 0x6c], 1
mov ecx, dword [esp + 0x38]
test cl, 0x10
je 0x10034953
or dword [esi + 0x68], 4
test ecx, 0x100
je 0x1003495f
or dword [esi + 0x68], 0x20
test ecx, 0x8000
je 0x1003496b
or dword [esi + 0x68], 0x10
test ecx, 0x80000
je 0x1003497a
or dword [esi + 0x68], 0x80
test ecx, 0x800000
je 0x10034989
or dword [esi + 0x68], 0x4000
test ecx, 0x1000000
je 0x10034998
or dword [esi + 0x68], 0x1000
test ecx, 0x2000000
je 0x100349a7
or dword [esi + 0x68], 0x48000
test ecx, 0x4000000
je 0x100349b6
or dword [esi + 0x68], 0xc0000
and ecx, 0x10000000
je 0x100349c2
or dword [esi + 0x68], 2
cmp dword [esi + 0x64], 1
jne 0x100349d9
cmp dword [esi + 0x54], 2
jne 0x100349d9
test ecx, ecx
je 0x100349d9
mov dword [esi + 0x64], 2
mov ecx, eax
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x100349f6
xor ecx, ecx
xgetbv
mov ebx, eax
mov eax, dword [esp + 0x34]
jmp 0x100349fa
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, 0x10000000
je 0x10034a62
mov ecx, ebx
and ecx, 6
cmp cl, 6
jne 0x10034a62
mov ecx, dword [esi + 0x6c]
or ecx, 0x20
mov dword [esi + 0x6c], ecx
test eax, 0x800
je 0x10034a28
or ecx, 0x400
mov dword [esi + 0x6c], ecx
test eax, 0x4000
je 0x10034a38
or ecx, 0x100
mov dword [esi + 0x6c], ecx
test eax, 0x10000
je 0x10034a48
or ecx, 0x200
mov dword [esi + 0x6c], ecx
test eax, 0x20000000
je 0x10034a62
or ecx, 0x80
mov dword [esi + 0x6c], ecx
jmp 0x10034a62
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 7
jb 0x10034bde
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 ecx, dword [esi + 0x6c]
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x30]
test al, 1
je 0x10034a9d
or ecx, 0x20000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test al, 8
je 0x10034aae
or edx, 0x800
mov dword [esi + 0x6c], edx
mov ecx, edx
test al, 0x10
je 0x10034abd
or edx, 0x2000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x100
je 0x10034acf
or edx, 0x1000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x200
je 0x10034ae1
or edx, 0x40000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x800
je 0x10034af3
or edx, 0x4000
mov dword [esi + 0x6c], edx
mov ecx, edx
mov ebx, eax
shr ebx, 0xe
and bl, 1
test eax, 0x40000
je 0x10034b0a
or edx, 2
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x80000
je 0x10034b1c
or edx, 0x8000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x800000
je 0x10034b2c
or dword [esi + 0x68], 0x100
mov edx, ecx
test eax, 0x20000000
je 0x10034b3b
or edx, 4
mov dword [esi + 0x6c], edx
mov ecx, edx
test byte [esp + 0x34], 1
je 0x10034b4b
or dword [esi + 0x68], 0x400
mov edx, ecx
mov ecx, edx
mov edi, edx
shr ecx, 5
test cl, 1
je 0x10034b61
test al, 0x20
je 0x10034b61
or edi, 0x40
mov dword [esi + 0x6c], edi
mov dl, bl
test eax, 0x10000
je 0x10034be2
mov ecx, dword [esp + 0x14]
and ecx, 0x76
cmp cl, 0x76
jne 0x10034be2
or edi, 0x80000
mov dword [esi + 0x6c], edi
test eax, 0x20000
je 0x10034b8f
or edi, 0x800000
mov dword [esi + 0x6c], edi
test eax, 0x4000000
je 0x10034b9f
or edi, 0x200000
mov dword [esi + 0x6c], edi
test eax, 0x8000000
je 0x10034baf
or edi, 0x400000
mov dword [esi + 0x6c], edi
test eax, 0x10000000
je 0x10034bbf
or edi, 0x100000
mov dword [esi + 0x6c], edi
test eax, 0x40000000
je 0x10034bcf
or edi, 0x1000000
mov dword [esi + 0x6c], edi
test eax, eax
jns 0x10034be2
or edi, 0x2000000
mov dword [esi + 0x6c], edi
jmp 0x10034be2
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x18], 0xd
jb 0x10034c1f
test dl, dl
je 0x10034c1f
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 0x10034c1f
or dword [esi + 0x6c], 0x10000
mov eax, 0x80000000
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 ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
cmp ebx, 0x80000004
jae 0x10034c66
lea ecx, [esi + 0x14]
mov dword [esp + 0x20], ecx
mov eax, ecx
mov dword [esp + 0x18], ecx
cmp ebx, 0x80000001
jb 0x10034d81
jmp 0x10034c79
lea eax, [esi + 0x14]
mov dword [esp + 0x1c], 0x80000004
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov edx, 0x80000001
mov dword [esp + 0x14], edx
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 + 0x14]
cmp edx, 0x80000001
je 0x10034ce1
lea eax, [edx + 0x7ffffffe]
cmp eax, 2
ja 0x10034d6e
mov ecx, dword [esp + 0x18]
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 + 0x18], ecx
jmp 0x10034d6e
mov eax, dword [esp + 0x34]
test al, 1
je 0x10034cf0
or dword [esi + 0x68], 0x800
test al, 0x20
je 0x10034cfb
or dword [esi + 0x68], 0x20000000
test al, 0x40
je 0x10034d06
or dword [esi + 0x68], 0x400000
test al, al
jns 0x10034d11
or dword [esi + 0x68], 0x2000000
test eax, 0x100
je 0x10034d1f
or dword [esi + 0x68], 0x200
mov eax, dword [esp + 0x38]
test eax, 0x100000
je 0x10034d2e
or dword [esi + 0x68], 1
test eax, 0x200000
je 0x10034d3c
or dword [esi + 0x68], 0x2000
test eax, 0x400000
je 0x10034d4a
or dword [esi + 0x68], 0x8000
test eax, 0x8000000
je 0x10034d55
or dword [esi + 0x68], 8
test eax, 0x40000000
je 0x10034d63
or dword [esi + 0x68], 0x28000
test eax, eax
jns 0x10034d6e
or dword [esi + 0x68], 0x10000
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x1c]
jbe 0x10034c82
mov ecx, dword [esp + 0x20]
mov al, byte [ecx]
xor ah, ah
mov byte [ecx], ah
mov edx, ecx
test al, al
je 0x10034db5
nop dword [eax]
cmp al, 0x20
jne 0x10034da5
cmp ah, 0x40
je 0x10034daa
mov bl, byte [ecx + 1]
cmp bl, al
je 0x10034daa
cmp bl, 0x40
je 0x10034daa
mov byte [edx], al
mov ah, al
inc edx
mov al, byte [ecx + 1]
inc ecx
mov byte [ecx], 0
test al, al
jne 0x10034d90
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret