Function at 0x408bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov ebp, dword [esp + 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebp, ebx
mov dword [esp + 0x10], ebx
stosb byte es:[edi], al
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x14], ebx
je 0x408cc1
lea eax, [esp + 0x14]
push eax
call dword [0x413688]
mov edi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
or ecx, 0xffffffff
xor eax, eax
mov esi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NISEC_CSP_V1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20119
lea ecx, [esp + 0x28]
push ebx
push ecx
push reloc.NISEC_UKUpdate.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408d41
mov edx, dword [esp + 0x14]
push edx
call dword [0x41368c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
mov edi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
or ecx, 0xffffffff
xor eax, eax
mov esi, str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov eax, ecx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NISEC_CSP_V1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x28]
push ebx
push ecx
push reloc.NISEC_UKUpdate.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408d41
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x124]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push str.Image_Path
push edx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408d8c
cmp ebp, ebx
je 0x408d7f
mov eax, dword [esp + 0x14]
push eax
call dword [0x41368c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x408da6
mov edx, dword [esp + 0x14]
push edx
call dword [0x41368c]
lea eax, [esp + 0x124]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x408dde
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x124]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
jmp 0x408de2
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x230]
mov eax, ecx
lea esi, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret