Function at 0x404210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x300
call fcn.00413e95
add esp, 4
mov dword [ebp - 0x310], eax
test eax, eax
je 0x404223
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x308]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x104], 0
call esi
mov eax, dword [ebp - 0x308]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4042a4
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0
push 0
push str.ProductName
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x308]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x204], 0
call esi
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x404300
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
push str.CurrentVersion
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov edx, dword [ebp - 0x308]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x308]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push connect
mov byte [ebp - 0x304], 0
call esi
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x40435c
lea ecx, [ebp - 0x30c]
push ecx
lea edx, [ebp - 0x304]
push edx
push 0
push 0
push str.BuildLab
push eax
mov dword [ebp - 0x30c], 0x100
call edi
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x310]
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x104]
push eax
push str._s__s_build__s
push esi
call fcn.00413fd6
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412e08
mov esp, ebp
pop ebp
ret

Function at 0x4043a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 4
jmp 0x4043b0
push 0x288
call fcn.00413e95
add esp, 4
test eax, eax
je 0x4043b0
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 4]
push ecx
push eax
mov esi, eax
call edi
cmp eax, 0x6f
jne 0x4043ef
mov esi, dword [ebp - 4]
lea ebx, [ebx]
push esi
call fcn.00413e95
add esp, 4
test eax, eax
je 0x4043e0
mov esi, eax
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x40445c
test esi, esi
je 0x404469
mov edi, edi
push 0x10
call fcn.00413e95
mov edi, eax
add esp, 4
test edi, edi
je 0x404400
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
push edi
call fcn.00413fd6
push esi
call fcn.00413e5b
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x404469
push esi
call fcn.00413e5b
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret