Function at 0x413400
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2428
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413170
cmp dword [esi + 4], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
test bl, bl
je 0x41354f
cmp byte [0x51caa5], 0
jne 0x413497
cmp byte [0x522582], 0
je 0x413548
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4dd804
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00406e60
mov dword [ebp - 4], 4
push 0
push ecx
push str.HKLM_RunOnce_key_appears_to_have_been_updated__reboot_is_required
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4dd804
mov dword [ebp - 0x48], 0x4dcac4
call fcn.00406e60
mov byte [ebp - 4], 6
cmp byte [0x51caa5], 0
je 0x413507
cmp byte [0x522582], 0
jne 0x4134f9
call fcn.00486870
test al, al
je 0x413500
mov byte [0x522582], 1
mov byte [0x51caa5], 0
cmp byte [0x522582], 0
je 0x41352d
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push 0x4b
cmovae ecx, dword [ebp - 0x6c]
call fcn.00486ce0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004049f0
mov al, 1
jmp 0x41399e
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push 0
push eax
push SysReAllocStringLen
call fcn.00413170
cmp dword [esi + 0xc], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
test bl, bl
je 0x41362c
cmp byte [0x51caa5], 0
jne 0x4135b6
cmp byte [0x522582], 0
je 0x413548
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4dd804
mov dword [ebp - 0x48], 0x4dcac4
call fcn.00406e60
mov dword [ebp - 4], 0xd
push 0
push ecx
push str.HKCU_RunOnce_key_appears_to_have_been_updated__reboot_is_required
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4dd804
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00406e60
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x70]
push 0x50
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
call fcn.004049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004049f0
mov al, 1
jmp 0x41399e
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413170
cmp dword [esi + 8], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
test bl, bl
je 0x4136f8
cmp byte [0x51caa5], 0
jne 0x413693
cmp byte [0x522582], 0
je 0x413548
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4dd804
mov dword [ebp - 0x48], 0x4dcac4
call fcn.00406e60
mov dword [ebp - 4], 0x16
push 0
push ecx
push str.HKLM_64_bit_RunOnce_key_appears_to_have_been_updated__reboot_is_required
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4dd804
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00406e60
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push 0x55
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.004049f0
jmp 0x413616
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413170
cmp dword [esi + 0x10], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
test bl, bl
je 0x4137a8
cmp byte [0x51caa5], 0
jne 0x41375f
cmp byte [0x522582], 0
je 0x413548
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406f50
mov dword [ebp - 4], 0x1e
sub esp, 8
lea ecx, [ebp - 0x40]
push str.HKLM_RunOnceEx_key_appears_to_have_been_updated__reboot_is_required
call fcn.00406f50
mov byte [ebp - 4], 0x1f
lea edx, [ebp - 0x70]
push 0x5a
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x40]
call fcn.004049f0
jmp 0x413616
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 0x23
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413170
cmp dword [esi + 0x14], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
test bl, bl
je 0x413858
cmp byte [0x51caa5], 0
jne 0x41380f
cmp byte [0x522582], 0
je 0x413548
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406f50
mov dword [ebp - 4], 0x25
sub esp, 8
lea ecx, [ebp - 0x40]
push str.HKLM_64_bit_RunOnceEx_key_appears_to_have_been_updated__reboot_is_required
call fcn.00406f50
mov byte [ebp - 4], 0x26
lea edx, [ebp - 0x70]
push 0x5f
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x40]
call fcn.004049f0
jmp 0x413616
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x70], 0x4dd804
push eax
push str.PendingRenameFileOperations
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 0x2a
lea eax, [ebp - 0x71]
push 0
push eax
push str.SystemCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4dd804
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.00413250
cmp dword [esi + 0x18], eax
setl bl
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x40]
call fcn.00404db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404db0
test bl, bl
je 0x413937
cmp byte [0x51caa5], 0
jne 0x4138ee
cmp byte [0x522582], 0
je 0x413548
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406f50
mov dword [ebp - 4], 0x2f
sub esp, 8
lea ecx, [ebp - 0x40]
push str.PendingRenameFileOperations_key_appears_to_have_been_updated__reboot_is_required
call fcn.00406f50
mov byte [ebp - 4], 0x30
lea edx, [ebp - 0x70]
push 0x64
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x40]
call fcn.004049f0
jmp 0x413616
cmp byte [0x51caa5], 0
jne 0x413949
cmp byte [0x522582], 0
je 0x41399c
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406f50
mov dword [ebp - 4], 0x33
sub esp, 8
lea ecx, [ebp - 0x40]
push str.No_registry_indicators_appear_to_signal_a_reboot_is_pending
call fcn.00406f50
mov byte [ebp - 4], 0x34
lea edx, [ebp - 0x70]
push 0x68
lea ecx, [ebp - 0x40]
call fcn.00486f90
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x40]
call fcn.004049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004049f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret