Function at 0x49c690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530028
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x308
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov dword [ebp - 0x304], edi
mov eax, dword [ecx + 0x357c]
mov dword [ebp - 0x310], edi
mov edx, dword [eax]
add edx, 0x2a85c
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c6f3
sub ecx, esi
sar ecx, 1
je 0x49c74d
mov dword [edi], 0
mov ecx, edx
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], 0xffffffff
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c730
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00445880
jmp 0x49cee9
lea eax, [ebp - 0x30c]
mov dword [ebp - 4], 1
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x30c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x308], eax
test eax, eax
je 0x49c9f9
lea eax, [ebp - 0x198]
push eax
call fcn.0049cf20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x49c7a2
mov eax, dword [eax]
mov dword [ebp - 0x304], eax
lea edx, [ebp - 0x304]
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x180]
call fcn.0041b220
add esp, 4
push eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 3
call fcn.00444e70
mov byte [ebp - 4], 4
lea edi, [ebp - 0x168]
cmp dword [ebp - 0x154], 8
lea ecx, [ebp - 0x294]
mov edx, str.CReinitProcess::GetComputerId
mov dword [ebp - 0x144], 0x290028
cmovae edi, dword [ebp - 0x168]
mov dword [ebp - 0x140], 0x2d0020
mov dword [ebp - 0x13c], 0x20
call fcn.004ac920
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x1f0]
call fcn.004aca10
add esp, 4
lea ecx, [ebp - 0x144]
mov edx, eax
push ecx
lea ecx, [ebp - 0x300]
call fcn.004acb80
add esp, 4
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 8
push eax
call fcn.0043ebb0
mov byte [ebp - 4], 3
add esp, 0x14
mov edx, dword [ebp - 0x154]
cmp edx, 8
jb 0x49c8aa
mov ecx, dword [ebp - 0x168]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c8a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf0b
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
cmp edx, 8
jb 0x49c90b
mov ecx, dword [ebp - 0x180]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c901
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf0b
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
cmp edx, 8
jb 0x49c96c
mov ecx, dword [ebp - 0x198]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c962
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf0b
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov edx, dword [ebp - 0x308]
lea ecx, [ebp - 0x180]
call fcn.0043f700
mov edi, dword [ebp - 0x310]
mov edx, str.CryptoKeyError
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0043f670
mov edx, dword [ebp - 0x16c]
add esp, 4
cmp edx, 8
jb 0x49c9d7
mov ecx, dword [ebp - 0x180]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49c9cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf10
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
jmp 0x49ced8
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0x100
push eax
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push str.MachineGuid
push dword [ebp - 0x30c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x308], eax
test eax, eax
je 0x49cd7b
xor eax, eax
mov dword [ebp - 0x1e8], 0x80728045
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x1e4], 0x806f8072
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x1e0], 0x802c8072
mov dword [ebp - 0x1dc], 0x80718020
mov dword [ebp - 0x1d8], 0x80658075
mov dword [ebp - 0x1d4], 0x80798072
mov dword [ebp - 0x1d0], 0x806e8069
mov dword [ebp - 0x1cc], 0x80208067
mov dword [ebp - 0x1c8], 0x8061804d
mov dword [ebp - 0x1c4], 0x80688063
mov dword [ebp - 0x1c0], 0x806e8069
mov dword [ebp - 0x1bc], 0x80478065
mov dword [ebp - 0x1b8], 0x80698075
mov dword [ebp - 0x1b4], 0x80208064
mov dword [ebp - 0x1b0], 0x80618076
mov dword [ebp - 0x1ac], 0x8075806c
mov dword [ebp - 0x1a8], 0x803a8065
mov dword [ebp - 0x1a4], 0x807b8020
mov dword [ebp - 0x1a0], 0x8000807d
mov word [ebp - 0x19c], ax
call fcn.00419a70
mov byte [ebp - 4], 6
lea eax, [ebp - 0x198]
cmp dword [ebp - 0x184], 8
lea edx, [ebp - 0x304]
lea ecx, [ebp - 0x180]
cmovae eax, dword [ebp - 0x198]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x308]
push eax
call fcn.0041b220
add esp, 4
push eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 7
call fcn.00444e70
mov byte [ebp - 4], 8
lea edi, [ebp - 0x168]
cmp dword [ebp - 0x154], 8
lea ecx, [ebp - 0x294]
mov edx, str.CReinitProcess::GetComputerId
mov dword [ebp - 0x144], 0x290028
cmovae edi, dword [ebp - 0x168]
mov dword [ebp - 0x140], 0x2d0020
mov dword [ebp - 0x13c], 0x20
call fcn.004ac920
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x2f8]
call fcn.004aca10
add esp, 4
lea ecx, [ebp - 0x144]
mov edx, eax
push ecx
lea ecx, [ebp - 0x258]
call fcn.004acb80
add esp, 4
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 8
push eax
call fcn.0043ebb0
mov byte [ebp - 4], 7
add esp, 0x14
mov edx, dword [ebp - 0x154]
cmp edx, 8
jb 0x49cc2c
mov ecx, dword [ebp - 0x168]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cc22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf15
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
cmp edx, 8
jb 0x49cc8d
mov ecx, dword [ebp - 0x180]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cc83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf15
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
cmp edx, 8
jb 0x49ccee
mov ecx, dword [ebp - 0x198]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf15
push edx
push ecx
call fcn.004fc7e0
add esp, 8
mov edx, dword [ebp - 0x308]
lea ecx, [ebp - 0x198]
call fcn.0043f700
mov edi, dword [ebp - 0x310]
mov edx, str.CryptoValueError
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.0043f670
mov edx, dword [ebp - 0x184]
add esp, 4
cmp edx, 8
jb 0x49cd59
mov ecx, dword [ebp - 0x198]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49cd4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49cf1a
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 7
mov word [ebp - 0x198], ax
jmp 0x49ced8
lea ecx, [ebp - 0x258]
call fcn.004504c0
mov esi, dword [ebp - 0x238]
lea edx, [ebp - 0x138]
mov ecx, dword [ebp - 0x314]
and esi, 0x3f
test ecx, ecx
je 0x49cde8
nop
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x230], al
inc esi
add dword [ebp - 0x238], 1
mov dword [ebp - 0x308], edx
adc dword [ebp - 0x234], 0
dec ecx
mov dword [ebp - 0x304], ecx
cmp esi, 0x40
jne 0x49cde4
lea ecx, [ebp - 0x258]
xor esi, esi
call fcn.00450510
mov ecx, dword [ebp - 0x304]
mov edx, dword [ebp - 0x308]
test ecx, ecx
jne 0x49cda0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x258]
call fcn.004507d0
push 0x28
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.004457f0
xorps xmm0, xmm0
mov dword [ebp - 0x304], eax
xor ecx, ecx
mov dword [ebp - 0x140], 0x20
mov dword [ebp - 0x13c], 0x27
lea esi, [ebp - 0x33]
movups xmmword [eax], xmm0
mov dword [ebp - 0x150], eax
xor edx, edx
movups xmmword [eax + 0x10], xmm0
mov edi, eax
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm0
mov word [eax + 0x40], cx
movzx eax, byte [esi - 1]
lea esi, [esi + 2]
shr al, 4
movzx eax, al
add ax, 0x41
cmp dword [ebp - 0x13c], 8
movzx ecx, ax
lea eax, [ebp - 0x150]
cmovae eax, edi
mov word [eax + edx], cx
movzx eax, byte [esi - 2]
and al, 0xf
movzx eax, al
add ax, 0x41
cmp dword [ebp - 0x13c], 8
movzx ecx, ax
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
mov word [eax + edx + 2], cx
add edx, 4
cmp edx, 0x40
jge 0x49cea7
mov edi, dword [ebp - 0x150]
jmp 0x49ce46
mov edi, dword [ebp - 0x310]
movups xmm0, xmmword [ebp - 0x150]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x140]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebp - 0x30c]
test eax, eax
je 0x49cee9
push eax
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 - 0x14]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
int3