Function at 0x6ae143
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edi + 0x2f]
push eax
lea eax, [edi + 0x33]
push eax
lea eax, [edi + 0x2b]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
call fcn.006ae980
add esp, 0x18
mov byte [edi + 0x37], bl
cmp dword [ebp - 8], 1
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
jbe 0x6ae29e
xor eax, eax
xor ecx, ecx
inc eax
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov eax, 0x2000000
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test dword [ebp - 0xc], eax
je 0x6ae1a5
or byte [edi + 0x20], 2
test dword [ebp - 0xc], 0x4000000
je 0x6ae1b2
or byte [edi + 0x20], 4
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x6ae1be
or byte [edi + 0x20], 8
test ebx, 0x200
je 0x6ae1ca
or byte [edi + 0x20], 0x10
test ebx, 0x80000
je 0x6ae1d6
or byte [edi + 0x20], 0x20
test ebx, 0x100000
je 0x6ae1e2
or byte [edi + 0x20], 0x40
test ebx, 0x2000
je 0x6ae1ee
or byte [edi + 0x25], 8
test ebx, 0x400000
je 0x6ae1fa
or byte [edi + 0x23], 8
test ebx, 0x800000
je 0x6ae206
or byte [edi + 0x23], 0x10
test ebx, 0x20000000
je 0x6ae212
or byte [edi + 0x24], 2
test eax, ebx
je 0x6ae21a
or byte [edi + 0x24], 8
test bl, 2
je 0x6ae223
or byte [edi + 0x24], 0x10
test ebx, 0x40000000
je 0x6ae23d
call fcn.006ae5c0
mov cl, byte [edi + 0x25]
add al, al
and cl, 0xfd
or cl, al
mov byte [edi + 0x25], cl
test ebx, ebx
jns 0x6ae245
or byte [edi + 0x2a], 1
test ebx, 0x8000000
je 0x6ae29e
xor ecx, ecx
xgetbv
mov ecx, eax
mov dword [ebp - 0xc], edx
and ecx, 6
cmp ecx, 6
jne 0x6ae265
xor ecx, ecx
mov cl, 1
jmp 0x6ae267
xor ecx, ecx
mov edx, 0xe6
mov byte [ebp + 0xb], cl
and eax, edx
cmp eax, edx
jne 0x6ae27d
xor eax, eax
mov byte [ebp - 1], 1
jmp 0x6ae282
xor eax, eax
mov byte [ebp - 1], al
test cl, cl
je 0x6ae29e
test ebx, 0x10000000
je 0x6ae29e
or byte [edi + 0x20], 0x80
test ebx, 0x1000
je 0x6ae29e
or byte [edi + 0x24], 4
cmp dword [ebp - 8], 7
jb 0x6ae429
push 7
pop eax
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x14]
test al, 8
je 0x6ae2cc
or byte [edi + 0x23], 0x20
mov esi, 0x100
test esi, eax
je 0x6ae2d9
or byte [edi + 0x23], 0x40
xor ebx, ebx
inc ebx
test eax, 0x80000
je 0x6ae2e6
or byte [edi + 0x24], bl
test eax, 0x40000
je 0x6ae2f1
or byte [edi + 0x25], 4
test eax, 0x20000000
je 0x6ae2fc
or byte [edi + 0x24], 0x20
mov ecx, dword [ebp - 0x10]
test esi, ecx
je 0x6ae307
or byte [edi + 0x24], 0x40
mov edx, dword [ebp - 0xc]
test edx, 0x8000
je 0x6ae316
or byte [edi + 0x2a], 2
cmp byte [ebp + 0xb], 0
je 0x6ae3eb
test al, 0x20
je 0x6ae327
or byte [edi + 0x21], bl
test ecx, 0x200
je 0x6ae333
or byte [edi + 0x24], 0x80
test ecx, 0x400
je 0x6ae33e
or byte [edi + 0x25], bl
cmp byte [ebp - 1], 0
je 0x6ae3eb
test eax, 0x10000
je 0x6ae353
or byte [edi + 0x21], 4
test eax, 0x20000
je 0x6ae35e
or byte [edi + 0x21], 8
test eax, 0x200000
je 0x6ae369
or byte [edi + 0x21], 0x10
test eax, 0x4000000
je 0x6ae374
or byte [edi + 0x21], 0x20
test eax, 0x8000000
je 0x6ae37f
or byte [edi + 0x21], 0x40
test eax, 0x10000000
je 0x6ae38a
or byte [edi + 0x21], 0x80
test eax, 0x40000000
je 0x6ae394
or byte [edi + 0x22], bl
test eax, eax
jns 0x6ae39c
or byte [edi + 0x22], 2
test cl, 2
je 0x6ae3a5
or byte [edi + 0x22], 4
test cl, 0x40
je 0x6ae3ae
or byte [edi + 0x22], 8
test ecx, 0x800
je 0x6ae3ba
or byte [edi + 0x22], 0x10
test ecx, 0x1000
je 0x6ae3c6
or byte [edi + 0x22], 0x20
test ecx, 0x4000
je 0x6ae3d2
or byte [edi + 0x22], 0x40
test dl, 4
je 0x6ae3db
or byte [edi + 0x22], 0x80
test dl, 8
je 0x6ae3e3
or byte [edi + 0x23], bl
test esi, edx
je 0x6ae3eb
or byte [edi + 0x23], 2
cmp dword [ebp - 0x18], ebx
jb 0x6ae429
push 7
pop eax
mov ecx, ebx
push ebx
cpuid
mov esi, ebx
pop ebx
cmp byte [ebp + 0xb], 0
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
je 0x6ae429
test byte [ebp - 0x18], 0x10
je 0x6ae419
or byte [edi + 0x21], 2
cmp byte [ebp - 1], 0
je 0x6ae429
test byte [ebp - 0x18], 0x20
je 0x6ae429
or byte [edi + 0x23], 4
push 0x16
pop eax
cmp dword [ebp - 8], eax
jb 0x6ae457
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov ecx, 0xf4240
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x24]
mul ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, closesocket
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, reloc.WS2_32.dll_accept
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp dword [ebp - 0x28], eax
jb 0x6ae4b3
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test byte [ebp - 0x10], 1
je 0x6ae49c
or byte [edi + 0x25], 0x10
test byte [ebp - 0x10], 0x20
je 0x6ae4a6
or byte [edi + 0x23], 0x80
test dword [ebp - 0x10], 0x100
je 0x6ae4b3
or byte [edi + 0x25], 0x20
mov esi, reloc.WS2_32.dll_connect
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jb 0x6ae527
lea eax, [edi + 0x77]
push eax
lea eax, [edi + 0x73]
push eax
lea eax, [edi + 0x6f]
push eax
lea eax, [edi + 0x6b]
push eax
push ebx
push reloc.WS2_32.dll_bind
call fcn.006ae980
lea eax, [edi + 0x87]
push eax
lea eax, [edi + 0x83]
push eax
lea eax, [edi + 0x7f]
push eax
lea eax, [edi + 0x7b]
push eax
push ebx
push reloc.WS2_32.dll_closesocket
call fcn.006ae980
lea eax, [edi + 0x97]
push eax
lea eax, [edi + 0x93]
push eax
lea eax, [edi + 0x8f]
push eax
lea eax, [edi + 0x8b]
push eax
push ebx
push esi
call fcn.006ae980
add esp, 0x48
mov byte [edi + 0x9b], bl
test byte [edi + 0x2a], 1
je 0x6ae55a
lea eax, [edi + 0xb3]
push eax
lea eax, [edi + 0xaf]
push eax
lea eax, [edi + 0xab]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x40000000
call fcn.006ae980
add esp, 0x18
mov byte [edi + 0xb7], bl
pop edi
pop esi
pop ebx
leave
ret