Function at 0x412520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433a75
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4440fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebx]
mov edx, str.03000200_0400_0500_0006_000700080009
mov eax, esi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x41257c
test cx, cx
je 0x412578
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x41257c
add eax, 4
add edx, 4
test cx, cx
jne 0x412556
xor eax, eax
jmp 0x412581
sbb eax, eax
or eax, 1
test eax, eax
je 0x412639
mov ecx, str.12345678_1234_5678_90AB_CDDEEFAABBCC
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4125b6
test dx, dx
je 0x4125b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4125b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412590
xor eax, eax
jmp 0x4125bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x412639
mov ecx, str.00000000_0000_0000_0000_000000000000
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4125ec
test dx, dx
je 0x4125e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4125ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x4125c6
xor eax, eax
jmp 0x4125f1
sbb eax, eax
or eax, 1
test eax, eax
je 0x412639
mov ecx, str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412626
test dx, dx
je 0x412622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412626
add eax, 4
add ecx, 4
test dx, dx
jne 0x412600
xor eax, eax
jmp 0x41262b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412639
cmp dword [esi - 0xc], 0x24
je 0x4127b6
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 0x4126c9
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 0x4126c9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4126c9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041510a
add esp, 4
mov ebx, eax
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 0x4126dd
push ebx
call fcn.00415113
add esp, 4
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.00406800
mov ecx, eax
test ecx, ecx
je 0x412811
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00404590
test al, al
jne 0x412729
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412710
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404740
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x412807
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41275b
push edi
lea ecx, [ebp - 0x10]
call fcn.004048b0
mov esi, dword [ebp - 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.0041ff17
add esp, 8
cmp edi, dword [esi - 8]
jg 0x412807
push esi
push str._wsX
push dword [ebp - 0x1c]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.00404a00
add esp, 0xc
push ebx
call fcn.00415113
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4127b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebx]
xor ecx, ecx
lea edi, [edx - 0xc]
mov dword [ebx + 4], 0
mov eax, dword [edi]
test eax, eax
jle 0x4127f3
xor esi, esi
nop dword [eax]
test ecx, ecx
js 0x412807
cmp ecx, eax
jg 0x412807
movzx eax, word [edx]
inc ecx
imul eax, ecx
add edx, 2
imul eax, eax, 0x4d2
add esi, eax
mov dword [ebx + 4], esi
mov eax, dword [edi]
cmp ecx, eax
jl 0x4127d0
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.004065b0
push 0x80004005
call fcn.004065b0
int3