Function at 0x458f02
Capabilities:
Set registry value

Disassembly:
push 0x5c
mov eax, 0x5c01c2
call fcn.0058ec5e
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.004085b5
mov byte [ebp - 4], 1
mov byte [ebp - 0x2c], bl
mov edi, str.__64__
push edi
xor ecx, ecx
lea esi, [ebp - 0x28]
call fcn.0042b6cc
cmp eax, 0xffffffff
je 0x458f4d
mov byte [ebp - 0x2c], 1
push 0x6810b8
push edi
mov eax, esi
push eax
call fcn.004086bc
lea eax, [ebp - 0x24]
push eax
call fcn.0040855f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
call fcn.0040855f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
call fcn.0040855f
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 5
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push 0x6810cc
push eax
call fcn.004085b5
mov byte [ebp - 4], 6
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.00426746
add esp, 0xc
cmp dword [ebp - 0x64], 2
jne 0x459285
mov eax, dword [ebp - 0x68]
lea edi, [ebp - 0x14]
call fcn.00408619
cmp dword [ebp - 0x64], 1
ja 0x458fd2
push 0x80070057
call fcn.00402d13
mov eax, dword [ebp - 0x68]
add eax, 4
lea edi, [ebp - 0x20]
call fcn.00408619
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 7
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push 0x687e90
push eax
call fcn.004085b5
mov byte [ebp - 4], 8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00426746
add esp, 0xc
cmp dword [ebp - 0x54], 2
jne 0x459279
mov eax, dword [ebp - 0x58]
lea edi, [ebp - 0x14]
call fcn.00408619
cmp dword [ebp - 0x54], 1
jbe 0x458fc8
mov eax, dword [ebp - 0x58]
add eax, 4
lea edi, [ebp - 0x24]
call fcn.00408619
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
mov esi, 0x6810d0
push esi
push eax
call fcn.004085b5
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.00426746
add esp, 0xc
cmp dword [ebp - 0x44], 1
jbe 0x459124
cmp dword [ebp - 0x44], ebx
jbe 0x458fc8
mov eax, dword [ebp - 0x48]
call fcn.00408807
cmp dword [ebp - 0x44], ebx
jbe 0x458fc8
push dword [ebp - 0x48]
mov ecx, str.hkey_users
call fcn.00409ed0
test eax, eax
jne 0x4590bd
mov dword [ebp - 0x18], reloc.WS2_32.dll_closesocket
jmp 0x459124
cmp dword [ebp - 0x44], ebx
jbe 0x458fc8
push dword [ebp - 0x48]
mov ecx, str.hkey_current_user
call fcn.00409ed0
test eax, eax
jne 0x4590e0
mov dword [ebp - 0x18], closesocket
jmp 0x459124
cmp dword [ebp - 0x44], ebx
jbe 0x458fc8
push dword [ebp - 0x48]
mov ecx, str.hkey_classes_root
call fcn.00409ed0
test eax, eax
jne 0x459103
mov dword [ebp - 0x18], closesocket
jmp 0x459124
cmp dword [ebp - 0x44], ebx
jbe 0x458fc8
push dword [ebp - 0x48]
mov ecx, str.hkey_local_machine
call fcn.00409ed0
test eax, eax
jne 0x459124
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x18], 0x80000001
jne 0x45914b
push dword [0x6ddcb8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
push eax
push 6
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
push esi
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.0042b6cc
inc eax
mov ecx, esi
call fcn.0042b519
lea eax, [ebp - 0x1c]
push eax
call fcn.0040855f
mov byte [ebp - 4], 0xb
cmp dword [ebp + 0x24], 1
jne 0x45918c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 3]
lea eax, [ebp - 0x38]
push eax
mov eax, esi
push eax
call fcn.0042b91b
mov byte [ebp - 4], 0xc
jmp 0x4591a3
push 0x68bfb4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.004116ea
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
lea edi, [ebp - 0x1c]
call fcn.00408619
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.004085f6
mov dword [ebp - 0x30], ebx
call fcn.00420fe5
test eax, eax
je 0x4591cf
cmp byte [ebp - 0x2c], bl
je 0x4591cf
mov eax, 0x106
jmp 0x4591d2
push 6
pop eax
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x459256
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 0xc]
mov edi, dword [ebp - 0x24]
add eax, eax
push eax
lea esi, [ebp - 0x20]
call fcn.00408830
push eax
push 1
push edi
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x45924d
push dword [ebp - 0x2c]
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00408586
mov byte [ebp - 4], 0xe
push ecx
mov eax, esp
mov dword [ebp - 0x2c], esp
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00408586
mov byte [ebp - 4], 0xf
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.00425ca5
add esp, 0x14
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x459261
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
call fcn.004085f6
mov byte [ebp - 4], 7
lea esi, [ebp - 0x48]
call fcn.00431483
mov byte [ebp - 4], 5
lea esi, [ebp - 0x58]
call fcn.00431483
mov byte [ebp - 4], 4
lea esi, [ebp - 0x68]
call fcn.00431483
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004085f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004085f6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0058ed03
ret 0x24