Function at 0x4779a0
Capabilities:
Get mac address on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ffc1
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], 7
mov word [ebp - 0x538], ax
push 0x288
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x54c], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x548], eax
test eax, eax
jne 0x477a98
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.0044a900
add esp, 4
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push eax
mov byte [ebp - 4], 1
push 0x59506c
mov ecx, esi
call fcn.0043e6f0
mov edx, dword [ebp - 0x524]
cmp edx, 8
jb 0x477ddf
mov ecx, dword [ebp - 0x538]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477dd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x477dd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x54c]
push ecx
push eax
call edi
cmp eax, 0x6f
mov eax, dword [ebp - 0x548]
jne 0x477af3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x54c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x548], eax
test eax, eax
jne 0x477af3
push 0x59506c
mov ecx, esi
call fcn.0043e1f0
jmp 0x477a54
lea ecx, [ebp - 0x54c]
push ecx
push eax
call edi
test eax, eax
jne 0x477d7c
mov eax, dword [ebp - 0x548]
mov dword [ebp - 0x53c], eax
test eax, eax
je 0x477d96
nop dword [eax]
lea ecx, [eax + 8]
mov dword [ebp - 0x558], ecx
test ecx, ecx
je 0x477c79
push 0x168
lea eax, [ebp - 0x28c]
mov ecx, 0x28
mov esi, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea edi, [ebp - 0x32c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x544], 0
lea eax, [ebp - 0x544]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x32c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477c73
push 0x104
push eax
lea eax, [ebp - 0x124]
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x558]
lea eax, [ebp - 0x124]
push str._sConnection
push eax
call fcn.0047bd20
add esp, 0x18
mov dword [ebp - 0x540], 0
lea eax, [ebp - 0x540]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x477bf4
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x477c73
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x554], 1
push eax
lea eax, [ebp - 0x520]
mov dword [ebp - 0x55c], 0xfa
push eax
lea eax, [ebp - 0x554]
push eax
push 0
push str.PnPInstanceId
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x477c42
push dword [ebp - 0x544]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x477c69
push 3
lea eax, [ebp - 0x520]
push 0x5972fc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp - 0x544]
test eax, eax
je 0x477c8e
call esi
push dword [ebp - 0x540]
call esi
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax]
mov dword [ebp - 0x53c], eax
test eax, eax
jne 0x477b20
jmp 0x477d76
call esi
push dword [ebp - 0x540]
call esi
mov eax, dword [ebp - 0x53c]
xor ecx, ecx
mov dword [ebp - 0x540], ecx
cmp dword [eax + 0x190], ecx
jbe 0x477d76
movzx eax, byte [eax + ecx + 0x194]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
push str._.2X
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20]
add esp, 0xc
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477ce0
mov ecx, dword [ebp - 0x524]
sub eax, edx
mov edx, dword [ebp - 0x528]
sub ecx, edx
sar eax, 1
cmp eax, ecx
ja 0x477d39
cmp dword [ebp - 0x524], 8
lea edi, [edx + eax]
lea esi, [ebp - 0x538]
mov dword [ebp - 0x528], edi
cmovae esi, dword [ebp - 0x538]
add eax, eax
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x477d57
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x554], 0
push ecx
push dword [ebp - 0x554]
lea ecx, [ebp - 0x538]
push eax
call fcn.0043df50
mov ecx, dword [ebp - 0x540]
mov eax, dword [ebp - 0x53c]
inc ecx
mov dword [ebp - 0x540], ecx
cmp ecx, dword [eax + 0x190]
jb 0x477cb2
mov esi, dword [ebp - 0x550]
mov eax, dword [ebp - 0x548]
test eax, eax
je 0x477d96
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x538]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x477a54
cmp dword [ebp - 0x524], 8
push dword [ebp - 0x528]
cmovae eax, dword [ebp - 0x538]
push eax
jmp 0x477a4d
push edx
push ecx
call fcn.005283f2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret