Function at 0x4064c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41816f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x498], 0
mov dword [esp + 0x1c], 0x43297
mov dword [esp + 0x28c], 0x4193d4
mov eax, dword [0x41fd30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [str.WLAN_PROFILE]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x49c], 4
call fcn.004133c8
mov esi, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi]
push eax
push 0
push str.CiscoFeatures
push ecx
call ebx
mov ebp, dword [esp + 0x4ac]
mov edx, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 0x7f
mov dword [ebp + 0xbc], eax
mov eax, dword [esi]
push eax
push 0
push str.RogueAPEnabled
push edx
call ebx
mov edi, eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push 0
push str.AllowCCKM
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
push eax
push 0
push str.AllowRadioMeasurement
push ecx
call ebx
test edi, edi
je 0x40659f
or dword [ebp + 0xbc], 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4065b6
mov ecx, dword [ebp + 0xbc]
or cl, 0x80
mov dword [ebp + 0xbc], ecx
test eax, eax
je 0x4065c9
mov eax, dword [ebp + 0xbc]
or ah, 1
mov dword [ebp + 0xbc], eax
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
push eax
push 0
push str.Dot1xPromptPasswordMode
push edx
call ebx
xor edi, edi
cmp eax, edi
jne 0x4065e8
mov dword [ebp + 0xf4], edi
jmp 0x40660d
cmp eax, 1
jne 0x4065f5
mov dword [ebp + 0xf4], eax
jmp 0x40660d
cmp eax, 2
jne 0x406602
mov dword [ebp + 0xf4], eax
jmp 0x40660d
cmp eax, 3
jne 0x40660d
mov dword [ebp + 0xf4], eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push edi
push str.Dot1xAlgorithm
push eax
call ebx
cmp eax, edi
jne 0x406629
mov dword [ebp + 0xfc], edi
jmp 0x406668
cmp eax, 1
jne 0x406636
mov dword [ebp + 0xfc], eax
jmp 0x406668
cmp eax, 2
jne 0x406643
mov dword [ebp + 0xfc], eax
jmp 0x406668
cmp eax, 3
jne 0x406650
mov dword [ebp + 0xfc], eax
jmp 0x406668
cmp eax, 4
jne 0x40665d
mov dword [ebp + 0xfc], eax
jmp 0x406668
cmp eax, 5
jne 0x406668
mov dword [ebp + 0xfc], eax
cmp dword [ebp + 0xfc], edi
je 0x406ab9
push 0x1fe
lea ecx, [esp + 0x90]
push edi
push ecx
call fcn.00409c4e
mov eax, dword [esi]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x14]
push 0x1fe
push edx
push 0x423130
push str.Dot1xUsername
push eax
call edi
lea ecx, [esp + 0x8c]
push 0x3c
lea edx, [ebp + 0x100]
push ecx
push edx
call fcn.00409255
push 0x1fe
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.00409c4e
mov eax, dword [esi]
mov edx, dword [esp + 0x28]
add esp, 0x18
lea ecx, [esp + 0x8c]
push eax
push 0x1fe
push ecx
push 0x423130
push str.Dot1xDomain
push edx
call edi
lea eax, [esp + 0x8c]
push 0x14
lea ecx, [ebp + 0xbb2]
push eax
push ecx
call fcn.00409255
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0
push str.Dot1xCredMode
push edx
call ebx
test eax, eax
jne 0x406735
mov dword [ebp + 0xec], eax
jmp 0x40674d
cmp eax, 1
jne 0x406742
mov dword [ebp + 0xec], eax
jmp 0x40674d
cmp eax, 2
jne 0x40674d
mov dword [ebp + 0xec], eax
mov eax, dword [ebp + 0xfc]
dec eax
cmp eax, 4
ja case.default.0x40675d
jmp dword [eax*4 + 0x406cfc]
mov eax, dword [esp + 0x4b0]
lea edx, [esp + 0x4a8]
push eax
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0041301e
mov eax, dword [esp + 0x4b0]
mov ecx, dword [esp + 0x30]
push eax
push esi
call fcn.00406220
cmp eax, 0x43297
mov dword [esp + 0x1c], eax
je case.default.0x40675d
lea ecx, [esp + 0x18]
mov byte [esp + 0x498], 3
call fcn.0041328b
lea ecx, [esp + 0x14]
mov byte [esp + 0x498], 2
call fcn.0041328b
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], 1
call fcn.0041328b
lea ecx, [esp + 0x4a8]
mov dword [esp + 0x28c], 0x4193d4
mov dword [esp + 0x498], 0xffffffff
call fcn.0041328b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x490]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48c
ret 0x14
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push 0
push str.Dot1xTunAlgorithm
push ecx
call ebx
test eax, eax
jne 0x406833
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 1
jne 0x406840
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 2
jne 0x40684d
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 3
jne 0x40685a
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 4
jne 0x406867
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 5
jne 0x406874
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 6
jne 0x406881
mov dword [ebp + 0x380], eax
jmp 0x40688c
cmp eax, 7
jne 0x40688c
mov dword [ebp + 0x380], eax
push 0x1fe
lea edx, [esp + 0x90]
push 0
push edx
call fcn.00409c4e
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
lea eax, [esp + 0x90]
push 0x1fe
push eax
push 0x423130
push str.Dot1xRoamingUsername
push ecx
call edi
lea edx, [esp + 0x8c]
push 0x40
lea eax, [ebp + 0x384]
push edx
push eax
call fcn.00409255
mov eax, dword [ebp + 0x380]
add esp, 0xc
cmp eax, 7
je case.0x40675d.3
mov ecx, dword [esp + 0x4b0]
lea edx, [esp + 0x4a8]
push ecx
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0041301e
mov eax, dword [esp + 0x4b0]
mov ecx, dword [esp + 0x30]
push eax
push esi
call fcn.00406220
cmp eax, 0x43297
mov dword [esp + 0x1c], eax
jne 0x4067a2
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x90]
push 0x1fe
push ecx
push 0x423134
push str.Dot1xClientCert
push edx
call edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x28]
push ecx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.00408aa0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x64
jl 0x406991
mov ecx, 0x63
lea edx, [esp + 0x28]
push ecx
lea eax, [ebp + 0x1a0]
push edx
push eax
mov dword [ebp + 0x268], ecx
call fcn.00409cd0
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x8c]
push eax
push 0x1fe
push ecx
push 0x423134
push str.Dot1xCACert
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x28]
push ecx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.00408aa0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x64
jl 0x406a1b
mov ecx, 0x63
lea edx, [esp + 0x28]
push ecx
lea eax, [ebp + 0x26c]
push edx
push eax
mov dword [ebp + 0x334], ecx
call fcn.00409cd0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0
push str.Dot1xIntermCert
push ecx
call ebx
push 0x1fe
lea edx, [esp + 0x90]
push 0
push edx
mov dword [ebp + 0x338], eax
call fcn.00409c4e
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
lea eax, [esp + 0x90]
push 0x1fe
push eax
push 0x423130
push str.Dot1xServerName
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x8c]
push 0x40
lea eax, [ebp + 0x33c]
push edx
push eax
call fcn.00409255
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push 0
push str.Dot1xSubDomainAllowed
push ecx
call ebx
mov dword [ebp + 0x37c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 0xb8], 4
jne 0x4067a2
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
push eax
push 0
push str.PskUserAlgorithm
push edx
call ebx
test eax, eax
jne 0x406ae9
mov dword [ebp + 0x3c4], eax
jmp 0x406af3
mov dword [ebp + 0x3c4], 1
push 0x1fe
lea eax, [esp + 0x90]
push 0
push eax
call fcn.00409c4e
mov esi, dword [esi]
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x8c]
push esi
push 0x1fe
push ecx
push 0x423130
push 0x41f6ac
push edx
call edi
push 2
lea eax, [esp + 0x90]
push 0x423130
push eax
lea ecx, [esp + 0x298]
call sym.iconvrtr.exe_public:_char_const____thiscall_CEncrypter::DecryptValue_char_const___char_const___int_
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x3c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4a4]
test eax, eax
jne 0x406b9c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x12c
lea eax, [esp + ecx + 0x90]
lea ecx, [ebp + 0x3c8]
push eax
jmp 0x406bd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x8c]
lea ecx, [esp + 0x28c]
push edx
call fcn.00402a40
push eax
lea ecx, [esp + 0x18]
call fcn.004133c8
mov eax, dword [esp + 0x14]
push 0x12c
push eax
lea ecx, [ebp + 0x4f4]
push ecx
call fcn.00409255
add esp, 0xc
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x14]
push edx
call fcn.004133c8
mov edi, dword [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00412b95
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x49c], 5
call fcn.00413378
lea ecx, [esp + 0x20]
mov byte [esp + 0x498], 4
call fcn.0041328b
mov ecx, dword [esp + 0x14]
push 2
push 0x423130
push ecx
lea ecx, [esp + 0x298]
call sym.iconvrtr.exe_public:_char_const____thiscall_CEncrypter::DecryptString_char_const___char_const___int_
push eax
lea ecx, [esp + 0x18]
call fcn.004133c8
lea edx, [esp + 0x4a8]
lea ecx, [esp + 0x18]
push edx
call fcn.00413378
add ebp, 0x99c
lea ecx, [esp + 0x18]
push ebp
call fcn.0041348c
mov eax, dword [esp + 0x4b0]
test eax, eax
je 0x4067a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00409361
add esp, 8
test eax, eax
je 0x4067a2
lea ecx, [esp + 0x18]
mov byte [esp + 0x498], 3
call fcn.0041328b
lea ecx, [esp + 0x14]
mov byte [esp + 0x498], 2
call fcn.0041328b
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], 1
call fcn.0041328b
lea ecx, [esp + 0x4a8]
mov dword [esp + 0x28c], 0x4193d4
mov dword [esp + 0x498], 0xffffffff
call fcn.0041328b
mov eax, 0x800432a4
jmp 0x4067fb