Function at 0x459e30
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46eb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], eax
call fcn.0045aaf0
lea edx, [esp + 0x18]
push edx
xor esi, esi
mov dword [esp + 0x45c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [esp + 0x24], esi
call ebx
cmp eax, esi
je 0x459eba
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x459f18
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], 0x80000002
call dword [0x474790]
lea eax, [esp + 0x14]
push eax
call fcn.0045c9a0
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov byte [esp + 0x224], al
call edi
lea edx, [esp + 0x18]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call ebx
cmp eax, esi
je 0x45a08b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x459f3d
push eax
call esi
jmp 0x45a005
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], 0x80000002
call dword [0x474790]
lea ecx, [esp + 0x14]
push ecx
call fcn.0045c9a0
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x224], al
call edi
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call ebx
test eax, eax
je 0x459f89
push eax
call esi
jmp 0x45a005
mov ecx, 0x80
lea esi, [esp + 0x20]
lea edi, [esp + 0x244]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x244]
push ecx
push str.RunOnce
lea ecx, [esp + 0x1c]
call fcn.0045ada0
cmp byte [esp + 0x220], 0
je 0x459fd8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x459fd8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x459ff9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [esp + 0x24], 0
call ebx
test eax, eax
jne 0x45a069
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], 0x80000002
call dword [0x474790]
lea ecx, [esp + 0x14]
push ecx
call fcn.0045c9a0
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x224], al
call edi
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call ebx
test eax, eax
je 0x45a091
push eax
call esi
lea ecx, [esp + 0x224]
mov dword [esp + 0x458], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x45a168
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a0a0
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x4ec574
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x45a112
push eax
call esi
cmp byte [esp + 0x220], 0
je 0x45a0f3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x45a0f3
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x18]
push edx
call edi
test eax, eax
je 0x45a06c
jmp 0x45a069
cmp byte [esp + 0x220], 0
je 0x45a135
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x45a135
push eax
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x18]
push eax
call edi
test eax, eax
je 0x45a14e
push eax
call esi
lea ecx, [esp + 0x224]
mov dword [esp + 0x458], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 4