Function at 0x408260
Capabilities:
Set 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 0x483d06
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x358
mov eax, dword [0x4b6134]
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, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x364], eax
push 0x80
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x338]
push 0
push eax
mov dword [ebp - 0x340], 0
call fcn.0045f780
add esp, 0xc
lea ecx, [ebp - 0x338]
call fcn.0044e880
push 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x338]
push 0
mov dword [ebp - method.CryptoPP::AutoSeededRandomPool.virtual_0], vtable.CryptoPP::AutoSeededRandomPool.0
call fcn.004485f0
push 0x108
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.0045f780
add esp, 0xc
mov dword [ebp - 0x158], 0x4a5df4
mov dword [ebp - 0x118], 0x4a5fa8
mov dword [ebp - 0x340], 2
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x154]
mov dword [ebp - method.CryptoPP::RSAFunction.virtual_0], vtable.CryptoPP::RSAFunction.0
mov dword [ebp - method.CryptoPP::RSAFunction.1.virtual_0], vtable.CryptoPP::RSAFunction.1.0
mov dword [ebp - 0x5c], vtable.CryptoPP::RSAFunction.2.0
call fcn.004259a0
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.004259a0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov dword [ebp - method.CryptoPP::PKCS8PrivateKey.virtual_0], vtable.CryptoPP::PKCS8PrivateKey.0
mov dword [ebp - method.CryptoPP::PKCS8PrivateKey.1.virtual_0], vtable.CryptoPP::PKCS8PrivateKey.1.0
push 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x118], vtable.CryptoPP::PKCS8PrivateKey.2.0
call fcn.0044d310
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0x158]
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.1.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.1.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.2.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.2.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.3.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.3.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.4.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.4.0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.CryptoPP::InvertibleRSAFunction.5.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.5.0
call fcn.004259a0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.004259a0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 9
call fcn.004259a0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.004259a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
call fcn.004259a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.004259a0
push 0x800
lea eax, [ebp - 0x338]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x11c]
call fcn.00422eb0
push 0x108
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0045f780
add esp, 0xc
mov dword [ebp - 0x260], 0x4a5df4
mov dword [ebp - 0x220], 0x4a5fa8
mov dword [ebp - 0x340], 0xa
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x25c]
mov dword [ebp - method.CryptoPP::RSAFunction.virtual_0], vtable.CryptoPP::RSAFunction.0
mov dword [ebp - method.CryptoPP::RSAFunction.1.virtual_0], vtable.CryptoPP::RSAFunction.1.0
mov dword [ebp - method.CryptoPP::RSAFunction.2.virtual_0], vtable.CryptoPP::RSAFunction.2.0
call fcn.004256e0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x244]
call fcn.004256e0
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [ebp - method.CryptoPP::PKCS8PrivateKey.virtual_0], vtable.CryptoPP::PKCS8PrivateKey.0
mov dword [ebp - method.CryptoPP::PKCS8PrivateKey.1.virtual_0], vtable.CryptoPP::PKCS8PrivateKey.1.0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.CryptoPP::PKCS8PrivateKey.2.virtual_0], vtable.CryptoPP::PKCS8PrivateKey.2.0
lea eax, [ebp - 0x114]
push eax
call fcn.0044d2d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1f4]
mov eax, dword [ebp - 0x260]
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.1.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.1.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.2.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.2.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.3.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.3.0
mov dword [ebp - method.CryptoPP::InvertibleRSAFunction.4.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.4.0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.CryptoPP::InvertibleRSAFunction.5.virtual_0], vtable.CryptoPP::InvertibleRSAFunction.5.0
lea eax, [ebp - 0xec]
push eax
call fcn.004256e0
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x1dc]
call fcn.004256e0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x1c4]
call fcn.004256e0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x1ac]
call fcn.004256e0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x194]
call fcn.004256e0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x17c]
call fcn.004256e0
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0045f780
add esp, 0xc
mov dword [ebp - 0x50], 0x4a5dfc
mov dword [ebp - 0x340], 0x2a
mov dword [ebp - 4], 0x1b
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x58], vtable.CryptoPP::RSAFunction.0
mov dword [ebp - 0x54], vtable.CryptoPP::RSAFunction.1.0
mov dword [ebp - 0x1c], vtable.CryptoPP::RSAFunction.2.0
call fcn.004256e0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x34]
call fcn.004256e0
push 0x4c
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 0x1d
push 0
push eax
call fcn.0045f780
add esp, 0xc
push 0x10
call fcn.0045d73a
mov esi, eax
add esp, 4
mov dword [ebp - 0x33c], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 0x1e
push 0
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00421c70
sub esp, 8
mov dword [esi], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
add edi, 0x78
mov dword [esi + 4], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
lea ecx, [ebp - 0x2b8]
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 0x1d
push esi
call fcn.00407b20
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x54]
call fcn.0041fbe0
mov eax, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b8]
push 1
push 0xffffffffffffffff
push 0
push 0
call dword [eax + 0x18]
cmp dword [edi + 0x14], 0x10
jb 0x4086dd
mov edi, dword [edi]
mov eax, edi
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408707
sub eax, edx
lea ecx, [ebp - 0x360]
push eax
push edi
call fcn.00418780
push 0
lea eax, [ebp - 0x33c]
mov byte [ebp - 4], 0x20
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.softwareSoftwareClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edx, str.Error_opening_key._n
mov ecx, str.Success_opening_key._n
cmovne ecx, edx
push ecx
call fcn.00401560
mov esi, dword [ebp - 0x350]
add esp, 4
push esi
call fcn.00415980
mov edx, str.___:sizeof_key
mov ecx, eax
call fcn.0041a270
push eax
call fcn.0041aa90
add esp, 4
lea eax, [ebp - 0x360]
cmp dword [ebp - 0x34c], 0x10
cmovae eax, dword [ebp - 0x360]
push esi
push eax
push 3
push 0
push str.Public
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edx, str.Error_writing_to_Registry._n
mov ecx, str.Success_writing_to_Registry._n
cmovne ecx, edx
push ecx
call fcn.00401560
add esp, 4
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x34c]
cmp edx, 0x10
jb 0x40880d
mov ecx, dword [ebp - 0x360]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4089f0
push edx
push ecx
call fcn.0045d9bb
add esp, 8
mov edi, dword [ebp - 0x344]
mov dword [edi + 8], 0x4a5df4
mov dword [edi + 0x48], 0x4a5fa8
mov dword [edi + method.CryptoPP::NameValuePairs.virtual_0], vtable.CryptoPP::NameValuePairs.0
mov eax, dword [edi + 8]
mov dword [edi + 4], vtable.CryptoPP::X509PublicKey.0
mov dword [ebp - 0x340], 0x6a
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], vtable.CryptoPP::X509PublicKey.1.0
mov dword [ebp - 4], 0x23
lea ecx, [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [edi], vtable.CryptoPP::RSAFunction.0
mov dword [edi + 4], vtable.CryptoPP::RSAFunction.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], vtable.CryptoPP::RSAFunction.2.0
lea eax, [ebp - 0x25c]
push eax
call fcn.004256e0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x24
push eax
lea ecx, [edi + 0x24]
call fcn.004256e0
mov dword [ebp - 4], 0x25
lea esi, [edi + 0x40]
mov dword [ebp - 0x344], esi
lea ecx, [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [esi], vtable.CryptoPP::PKCS8PrivateKey.0
mov dword [esi + 4], vtable.CryptoPP::PKCS8PrivateKey.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 8], vtable.CryptoPP::PKCS8PrivateKey.2.0
lea eax, [ebp - 0x21c]
push eax
call fcn.0044d2d0
mov byte [ebp - 4], 0x26
lea ecx, [edi + 0x74]
mov eax, dword [edi + 8]
mov dword [edi], vtable.CryptoPP::InvertibleRSAFunction.0
mov dword [edi + 4], vtable.CryptoPP::InvertibleRSAFunction.1.0
mov dword [edi + 0x3c], vtable.CryptoPP::InvertibleRSAFunction.2.0
mov dword [esi], vtable.CryptoPP::InvertibleRSAFunction.3.0
mov dword [edi + 0x44], vtable.CryptoPP::InvertibleRSAFunction.4.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], vtable.CryptoPP::InvertibleRSAFunction.5.0
lea eax, [ebp - 0x1f4]
push eax
call fcn.004256e0
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 0x27
push eax
lea ecx, [edi + 0x8c]
call fcn.004256e0
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 0x28
push eax
lea ecx, [edi + 0xa4]
call fcn.004256e0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 0x29
push eax
lea ecx, [edi + 0xbc]
call fcn.004256e0
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 0x2a
push eax
lea ecx, [edi + 0xd4]
call fcn.004256e0
mov byte [ebp - 4], 0x2b
lea eax, [ebp - 0x17c]
push eax
lea ecx, [edi + 0xec]
call fcn.004256e0
lea ecx, [ebp - 0x2b8]
call fcn.00406120
lea ecx, [ebp - 0x58]
call fcn.00409ad0
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x1c], vtable.CryptoPP::NameValuePairs.0
call fcn.004098b0
lea ecx, [ebp - 0x160]
mov dword [ebp - method.CryptoPP::NameValuePairs.virtual_0], vtable.CryptoPP::NameValuePairs.0
call fcn.004098b0
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x5c], vtable.CryptoPP::NameValuePairs.0
mov dword [ebp - method.CryptoPP::AutoSeededRandomPool.virtual_0], vtable.CryptoPP::AutoSeededRandomPool.0
call fcn.004070b0
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.0045d512
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0046c3be
int3