Function at 0x41ed80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4416a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4540fc]
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 0x41eddc
test cx, cx
je 0x41edd8
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x41eddc
add eax, 4
add edx, 4
test cx, cx
jne 0x41edb6
xor eax, eax
jmp 0x41ede1
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee99
mov ecx, str.12345678_1234_5678_90AB_CDDEEFAABBCC
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ee16
test dx, dx
je 0x41ee12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ee16
add eax, 4
add ecx, 4
test dx, dx
jne 0x41edf0
xor eax, eax
jmp 0x41ee1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee99
mov ecx, str.00000000_0000_0000_0000_000000000000
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ee4c
test dx, dx
je 0x41ee48
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ee4c
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ee26
xor eax, eax
jmp 0x41ee51
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee99
mov ecx, str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ee86
test dx, dx
je 0x41ee82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ee86
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ee60
xor eax, eax
jmp 0x41ee8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ee99
cmp dword [esi - 0xc], 0x24
je 0x41f016
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 0x41ef29
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 0x41ef29
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41ef29
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004218aa
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 0x41ef3d
push ebx
call fcn.004218b3
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.00409200
mov ecx, eax
test ecx, ecx
je 0x41f071
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.00407d80
test al, al
jne 0x41ef89
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ef70
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00407f30
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x41f067
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x41efbb
push edi
lea ecx, [ebp - 0x10]
call fcn.004080b0
mov esi, dword [ebp - 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.0042cd1d
add esp, 8
cmp edi, dword [esi - 8]
jg 0x41f067
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.00408200
add esp, 0xc
push ebx
call fcn.004218b3
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 0x41f013
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 0x41f053
xor esi, esi
nop dword [eax]
test ecx, ecx
js 0x41f067
cmp ecx, eax
jg 0x41f067
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 0x41f030
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.00408fe0
push 0x80004005
call fcn.00408fe0
int3