Function at 0x413440
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba9e8
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], 0x4e7908
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131c0
cmp dword [esi + 4], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x41358f
cmp byte [0x52aaa4], 0
jne 0x4134d7
cmp byte [0x530565], 0
je 0x413588
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4e7908
mov dword [ebp - 0x18], 0x4e793c
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], 0x4e7908
mov dword [ebp - 0x48], 0x4e793c
call fcn.00406ce0
mov byte [ebp - 4], 6
cmp byte [0x52aaa4], 0
je 0x413547
cmp byte [0x530565], 0
jne 0x413539
call fcn.0048df20
test al, al
je 0x413540
mov byte [0x530565], 1
mov byte [0x52aaa4], 0
cmp byte [0x530565], 0
je 0x41356d
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.0048e390
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 0x4139de
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push 0
push eax
push SysReAllocString
call fcn.004131c0
cmp dword [esi + 0xc], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x41366c
cmp byte [0x52aaa4], 0
jne 0x4135f6
cmp byte [0x530565], 0
je 0x413588
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4e7908
mov dword [ebp - 0x48], 0x4e793c
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], 0x4e7908
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406ce0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x70]
push 0x55
lea ecx, [ebp - 0x40]
call fcn.0048e640
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 0x4139de
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131c0
cmp dword [esi + 8], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x413738
cmp byte [0x52aaa4], 0
jne 0x4136d3
cmp byte [0x530565], 0
je 0x413588
push 0
push ecx
push str.RebootHandler.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4e7908
mov dword [ebp - 0x48], 0x4e793c
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], 0x4e7908
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406ce0
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x70]
push 0x5a
lea ecx, [ebp - 0x40]
call fcn.0048e640
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413656
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x40]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131c0
cmp dword [esi + 0x10], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x4137e8
cmp byte [0x52aaa4], 0
jne 0x41379f
cmp byte [0x530565], 0
je 0x413588
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.0048e640
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413656
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov dword [ebp - 4], 0x23
lea eax, [ebp - 0x40]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004131c0
cmp dword [esi + 0x14], eax
setl bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
test bl, bl
je 0x413898
cmp byte [0x52aaa4], 0
jne 0x41384f
cmp byte [0x530565], 0
je 0x413588
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.0048e640
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413656
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x70], 0x4e7908
push eax
push str.PendingRenameFileOperations
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0x4e793c
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], 0x4e7908
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.004132a0
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 0x413977
cmp byte [0x52aaa4], 0
jne 0x41392e
cmp byte [0x530565], 0
je 0x413588
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.0048e640
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x40]
call fcn.00404850
jmp 0x413656
cmp byte [0x52aaa4], 0
jne 0x413989
cmp byte [0x530565], 0
je 0x4139dc
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.0048e640
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.004a103a
mov esp, ebp
pop ebp
ret