Function at 0x408520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
push str.SoftwareSSPrint_
lea ecx, [ebp - 0x12c]
xor ebx, ebx
mov dword [ebp - 0x18], eax
push 0x416a00
push ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 0x86f4
lea edx, [ebp - 0x12c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov esi, str.SmCntCode
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4085ce
test cl, cl
je 0x4085ca
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4085ce
add eax, 2
add esi, 2
test cl, cl
jne 0x4085aa
xor eax, eax
jmp 0x4085d3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x408620
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x24], eax
mov edi, str.HKLM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x18]
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
rep movsb byte es:[edi], byte [esi]
jmp 0x408623
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, str.RcpCntCode
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40864f
test cl, cl
je 0x40864b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40864f
add eax, 2
add esi, 2
test cl, cl
jne 0x40862b
xor eax, eax
jmp 0x408654
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4086cd
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [ebp - 0x12c]
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp ebx, 0x80000001
mov edx, eax
lea ebx, [ebp - 0x18]
jne 0x4086a9
mov edi, str.HKCU
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4086d0
mov edi, str.HKLM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4086d0
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x40872a
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40872a
mov ebx, dword [ebp - 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x8460]
mov edi, edx
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 8]
not ecx
push ecx
push edx
push 1
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40871e
lea ecx, [ebp - 0x12c]
push edi
lea edx, [ebp - 0x18]
push ecx
push edx
push str.Registry_key__s_s_s_has_been_created
push eax
push ebx
call fcn.004044c0
add esp, 0x18
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408797
mov esi, 0x4169d0
lea eax, [ebp - 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40875a
test cl, cl
je 0x408756
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40875a
add eax, 2
add esi, 2
test cl, cl
jne 0x408732
xor eax, eax
jmp 0x40875f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408790
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
lea ecx, [eax + 0x8460]
push ecx
push edx
push str.Cant_create_registry_key_for_multilang__s:_s_
push 0
push eax
call fcn.004044c0
add esp, 0x14
jmp 0x408797
mov dword [ebp - 0x20], 0
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 0xc