Function at 0x413420
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x52a0b0]
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], 0x4e7a18
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131a0
cmp dword [esi + 4], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x41356f
cmp byte [0x52aaa4], 0
jne 0x4134b7
cmp byte [0x530561], 0
je 0x413568
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406ce0
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], 0x4e7a18
mov dword [ebp - 0x48], 0x4e86a8
call fcn.00406ce0
mov byte [ebp - 4], 6
cmp byte [0x52aaa4], 0
je 0x413527
cmp byte [0x530561], 0
jne 0x413519
call fcn.0048ded0
test al, al
je 0x413520
mov byte [0x530561], 1
mov byte [0x52aaa4], 0
cmp byte [0x530561], 0
je 0x41354d
cmp dword [ebp - 0x28], 8
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push 0x50
cmovae ecx, dword [ebp - 0x6c]
call fcn.0048e340
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00404850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404850
mov al, 1
jmp 0x4139be
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push 0
push eax
push SysReAllocString
call fcn.004131a0
cmp dword [esi + 0xc], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x41364c
cmp byte [0x52aaa4], 0
jne 0x4135d6
cmp byte [0x530561], 0
je 0x413568
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4e7a18
mov dword [ebp - 0x48], 0x4e86a8
call fcn.00406ce0
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], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406ce0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x70]
push 0x55
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
call fcn.00404850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404850
mov al, 1
jmp 0x4139be
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131a0
cmp dword [esi + 8], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x413718
cmp byte [0x52aaa4], 0
jne 0x4136b3
cmp byte [0x530561], 0
je 0x413568
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4e7a18
mov dword [ebp - 0x48], 0x4e86a8
call fcn.00406ce0
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], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00406ce0
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push 0x5a
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413636
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131a0
cmp dword [esi + 0x10], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x4137c8
cmp byte [0x52aaa4], 0
jne 0x41377f
cmp byte [0x530561], 0
je 0x413568
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406dd0
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.00406dd0
mov byte [ebp - 4], 0x1f
lea edx, [ebp - 0x70]
push 0x5f
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413636
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7a18
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov dword [ebp - 4], 0x23
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131a0
cmp dword [esi + 0x14], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x413878
cmp byte [0x52aaa4], 0
jne 0x41382f
cmp byte [0x530561], 0
je 0x413568
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406dd0
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.00406dd0
mov byte [ebp - 4], 0x26
lea edx, [ebp - 0x70]
push 0x64
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413636
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x70], 0x4e7a18
push eax
push str.PendingRenameFileOperations
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4e86a8
call fcn.00404190
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], 0x4e7a18
mov dword [ebp - 0x18], 0x4e86a8
call fcn.00404190
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.00413280
cmp dword [esi + 0x18], eax
setl bl
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404c20
test bl, bl
je 0x413957
cmp byte [0x52aaa4], 0
jne 0x41390e
cmp byte [0x530561], 0
je 0x413568
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406dd0
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.00406dd0
mov byte [ebp - 4], 0x30
lea edx, [ebp - 0x70]
push 0x69
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413636
cmp byte [0x52aaa4], 0
jne 0x413969
cmp byte [0x530561], 0
je 0x4139bc
sub esp, 8
lea ecx, [ebp - 0x70]
push str.RebootHandler.cpp
call fcn.00406dd0
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.00406dd0
mov byte [ebp - 4], 0x34
lea edx, [ebp - 0x70]
push 0x6d
lea ecx, [ebp - 0x40]
call fcn.0048e5f0
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x40]
call fcn.00404850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404850
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.004a0eca
mov esp, ebp
pop ebp
ret