Function at 0x485ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508801
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], edi
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x485b29
mov eax, 0x54dd80
xor esi, esi
jmp 0x485b36
mov esi, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov eax, 0x54dd00
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
cmp eax, dword [0x54dd04]
jne 0x485d50
test ecx, ecx
jne 0x485d50
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push ecx
push ecx
push 2
push str.MachineGuid
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x485bcb
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.0040a850
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push str.RegGetValue_for_size_failed_err
push eax
call fcn.004110a0
mov eax, dword [ebp - 0x3c]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push dword [ebp - 0x38]
mov ecx, eax
call fcn.00430910
jmp 0x485d98
mov eax, dword [ebp - 0x14]
test al, 1
je 0x485c27
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.0040a850
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push str.unexpected_size
push eax
call fcn.004110a0
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push dword [ebp - 0x14]
mov ecx, eax
call fcn.00412fb0
jmp 0x485d98
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
push ecx
shr eax, 1
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.0040ed70
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 2
push str.MachineGuid
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x485cf4
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.0040a850
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 5
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485cc3
push str.RegGetValue_failed_err
push eax
call fcn.004110a0
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485cc3
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.00430910
lea ecx, [ebp - 0xe4]
call fcn.0040a6f0
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.004161c0
jmp 0x485dbc
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
shr eax, 1
push 0
dec eax
push eax
call fcn.0040ed70
lea ecx, [ebp - 0x2c]
call fcn.0040ef40
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi], 0
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
call fcn.004161c0
jmp 0x485dbc
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.0040a850
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push str.reg_open_HKEY_LOCAL_MACHINESOFTWAREMicrosoftCryptography_err
push eax
call fcn.004110a0
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x485d98
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.00413130
lea ecx, [ebp - 0xe4]
call fcn.0040a6f0
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
test esi, esi
je 0x485dc7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.004a44cd
mov esp, ebp
pop ebp
ret