Function at 0x41a500
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5091c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x558
mov eax, dword [0x567040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x564], ecx
push 0x288
push 0
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x554], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0x54c], eax
test eax, eax
je 0x41a5c2
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x554]
push ecx
push eax
call esi
cmp eax, 0x6f
jne 0x41a5e2
push dword [ebp - 0x54c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x554]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov edi, eax
mov dword [ebp - 0x54c], edi
test edi, edi
jne 0x41a5e8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d402e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [ebp - 0x54c]
lea eax, [ebp - 0x554]
push eax
push edi
call esi
test eax, eax
jne 0x41a8e3
mov dword [ebp - 0x550], edi
cmp dword [ebp - 0x54c], eax
je 0x41a8f3
nop dword [eax]
lea eax, [edi + 8]
test eax, eax
je 0x41a79d
push 0x168
lea eax, [ebp - 0x488]
mov ecx, 0x28
mov esi, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea edi, [ebp - 0x528]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004d8e30
add esp, 0xc
mov dword [ebp - 0x544], 0
lea eax, [ebp - 0x544]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x528]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a67e
mov edi, dword [ebp - 0x550]
xor eax, eax
jmp 0x41a79d
push 0x104
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004d8e30
mov edi, dword [ebp - 0x550]
add esp, 0xc
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x128]
push str._sConnection
push eax
call fcn.0041ba40
add esp, 0xc
mov dword [ebp - 0x548], 0
lea eax, [ebp - 0x548]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41a6f4
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41a79d
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x560], 1
push eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x55c], 0xfa
push eax
lea eax, [ebp - 0x560]
push eax
push 0
push str.PnPInstanceId
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41a74e
push dword [ebp - 0x544]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x548]
call esi
xor eax, eax
jmp 0x41a79d
push 3
lea eax, [ebp - 0x320]
push 0x522f8c
push eax
call fcn.004f018f
add esp, 0xc
test eax, eax
je 0x41a782
push 3
lea eax, [ebp - 0x320]
push 0x522f94
push eax
call fcn.004f018f
add esp, 0xc
test eax, eax
jne 0x41a734
push dword [ebp - 0x544]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x548]
call esi
mov eax, 1
test eax, eax
je 0x41a8cd
lea edx, [edi + 0x1b0]
mov dword [ebp - 0x530], 0
mov ecx, edx
mov dword [ebp - 0x52c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x540], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a7d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x540]
call fcn.00402a30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x540]
cmp dword [ebp - 0x52c], 0xf
mov edx, dword [ebp - 0x540]
cmova ecx, edx
mov dword [ebp - 0x550], edx
cmp dword [ebp - 0x530], 7
jne 0x41a828
cmp dword [ecx], 0x2e302e30
jne 0x41a828
cmp word [ecx + 4], 0x2e30
jne 0x41a828
cmp byte [ecx + 6], 0x30
je 0x41a894
xor esi, esi
cmp dword [edi + 0x190], esi
jbe 0x41a88a
xorps xmm0, xmm0
mov word [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
movzx eax, byte [edi + esi + 0x194]
push eax
push str._.2X
lea eax, [ebp - 0x20]
push 0xa
push eax
call fcn.00402e50
lea eax, [ebp - 0x20]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a862
mov ecx, dword [ebp - 0x564]
sub eax, edx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040c450
inc esi
cmp esi, dword [edi + 0x190]
jb 0x41a832
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x558], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x52c]
cmp eax, 0xf
jbe 0x41a8cd
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a8c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a8fe
push ecx
push edx
call fcn.004d4041
add esp, 8
mov edi, dword [edi]
mov dword [ebp - 0x550], edi
test edi, edi
jne 0x41a610
mov edi, dword [ebp - 0x54c]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x558]
jmp 0x41a5c4
call fcn.004e399c
int3