Function at 0x45b520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a399d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c6180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [eax]
mov edx, str.03000200_0400_0500_0006_000700080009
mov eax, edi
mov si, word [eax]
cmp si, word [edx]
jne 0x45b57c
test si, si
je 0x45b578
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x45b57c
add eax, 4
add edx, 4
test cx, cx
jne 0x45b556
xor eax, eax
jmp 0x45b581
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b639
mov ecx, str.12345678_1234_5678_90AB_CDDEEFAABBCC
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b5b6
test dx, dx
je 0x45b5b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b5b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x45b590
xor eax, eax
jmp 0x45b5bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b639
mov ecx, str.00000000_0000_0000_0000_000000000000
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b5ec
test dx, dx
je 0x45b5e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b5ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x45b5c6
xor eax, eax
jmp 0x45b5f1
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b639
mov ecx, str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b626
test dx, dx
je 0x45b622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b626
add eax, 4
add ecx, 4
test dx, dx
jne 0x45b600
xor eax, eax
jmp 0x45b62b
sbb eax, eax
or eax, 1
test eax, eax
je 0x45b639
cmp dword [edi - 0xc], 0x24
je 0x45b821
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45b6fe
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x45b6fe
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45b6fe
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
test eax, eax
je 0x45b6b4
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0042b1c0
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x45b712
test ebx, ebx
je 0x45b6fe
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x45b6f4
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b89b
push edi
push ebx
call fcn.00474a68
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040a3a0
mov ecx, eax
test ecx, ecx
je 0x45b891
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00409810
test al, al
jne 0x45b769
test ebx, ebx
jne 0x45b745
xor ecx, ecx
jmp 0x45b75f
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b750
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00409a50
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x10]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x24], edx
test edx, edx
js 0x45b887
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x45b79e
push edx
lea ecx, [ebp - 0x10]
call fcn.004099f0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
lea eax, [edx + 1]
push eax
push esi
call fcn.0048614d
mov eax, dword [ebp - 0x24]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x45b887
push esi
push str._wsX
push dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00409d20
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45b7e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x45b821
sub edi, ebx
mov eax, ebx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x45b817
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b89b
push edi
push ebx
call fcn.00474a68
add esp, 8
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov esi, dword [eax]
mov dword [eax + 4], 0
lea eax, [esi - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
test eax, eax
jle 0x45b873
xor edi, edi
mov ebx, 0x4d2
xor edx, edx
test edx, edx
js 0x45b887
cmp ecx, eax
jg 0x45b887
movzx eax, word [esi]
inc ecx
imul eax, ebx
add edx, 0x4d2
add esi, 2
add ebx, 0x4d2
add edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, eax
jl 0x45b844
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00407590
push 0x80004005
call fcn.00407590
call fcn.0047a0cf
int3