Function at 0x4037b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x300
call fcn.00412765
add esp, 4
mov dword [ebp - 0x310], eax
test eax, eax
je 0x4037c3
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 0x403844
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 0x4038a0
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 0x4038fc
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.004128a6
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004118d8
mov esp, ebp
pop ebp
ret

Function at 0x403940
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 4
jmp 0x403950
push 0x288
call fcn.00412765
add esp, 4
test eax, eax
je 0x403950
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 0x40398f
mov esi, dword [ebp - 4]
lea ebx, [ebx]
push esi
call fcn.00412765
add esp, 4
test eax, eax
je 0x403980
mov esi, eax
lea edx, [ebp - 4]
push edx
push esi
call edi
test eax, eax
jne 0x4039fc
test esi, esi
je 0x403a09
mov edi, edi
push 0x10
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x4039a0
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.004128a6
push esi
call fcn.0041272b
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x403a09
push esi
call fcn.0041272b
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret