Function at 0x4595a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5c71
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x507254]
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 0x459609
mov eax, 0x507d40
xor esi, esi
jmp 0x459616
mov esi, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov eax, 0x507cf0
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
cmp eax, dword [0x507cf4]
jne 0x45989e
test ecx, ecx
jne 0x45989e
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 0x4596ab
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push str.RegGetValue_for_size_failed_err
push eax
call fcn.00412180
mov eax, dword [ebp - 0x3c]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push dword [ebp - 0x38]
mov ecx, eax
call fcn.0044e630
jmp 0x4598e6
mov eax, dword [ebp - 0x14]
test al, 1
je 0x459707
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push str.unexpected_size
push eax
call fcn.00412180
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0040b230
jmp 0x4598e6
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
shr eax, 1
mov byte [ebp - 4], 4
jne 0x459734
mov dword [ebp - 0x1c], eax
mov word [ebp + eax*2 - 0x2c], cx
jmp 0x45973f
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004032d0
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 0x45982b
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 5
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4597b4
push str.RegGetValue_failed_err
push eax
call fcn.00412180
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4597b4
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.0044e630
lea ecx, [ebp - 0xe4]
call fcn.00408f30
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
cmp edx, 8
jb 0x459812
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459808
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459932
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x45990a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x45984e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x45985b
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004032d0
lea ecx, [ebp - 0x2c]
call fcn.0040a470
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 0x10], 0
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
jmp 0x45990a
push str.get_machine_guid
mov edx, 4
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push str.reg_open_HKEY_LOCAL_MACHINESOFTWAREMicrosoftCryptography_err
push eax
call fcn.00412180
mov eax, dword [ebp - 0x38]
add esp, 8
mov cl, byte [eax + 0x48]
test cl, cl
je 0x4598e6
push dword [ebp - 0x3c]
mov ecx, eax
call fcn.0040b3f0
lea ecx, [ebp - 0xe4]
call fcn.00408f30
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 0x459915
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.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
int3