Function at 0x43b229
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x28
mov eax, 0x5bdc5b
call fcn.0058f9ee
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x20]
call fcn.0040141e
mov dword [ebp - 4], esi
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x24]
call fcn.0040141e
mov byte [ebp - 4], 1
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
mov byte [ebp - 4], 2
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040141e
mov byte [ebp - 4], 3
cmp dword [ebp + 8], esi
je 0x43b5de
push dword [ebp + 8]
call fcn.0058f15d
pop ecx
test eax, eax
je 0x43b5de
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00401287
lea ecx, [ebp - 0x14]
call fcn.00402137
lea ecx, [ebp - 0x14]
call fcn.004020ee
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401f0b
mov esi, 0x5d471c
push esi
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401ba2
mov ecx, dword [ebp - 0x2c]
test eax, eax
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401019
test bl, bl
je 0x43b33a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00402219
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.004021b5
add esp, 0x18
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040227d
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401019
xor ebx, ebx
mov edi, 0x5d4664
cmp dword [ebp + 0x10], ebx
je 0x43b367
push dword [ebp + 0x10]
call fcn.0058f15d
pop ecx
test eax, eax
je 0x43b367
push edi
lea ecx, [ebp - 0x14]
call fcn.004022ca
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.004022ca
cmp dword [ebp + 0x14], ebx
je 0x43b454
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push 0x5ea23c
push eax
call fcn.00401518
add esp, 0xc
push ebx
push 0x5ea234
lea ecx, [ebp - 0x14]
call fcn.00401d2f
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b3cb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00402219
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00402301
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401019
jmp 0x43b454
push esi
push 0x20
lea ecx, [ebp - 0x14]
call fcn.00409048
lea ecx, [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x43b3f5
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00402192
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], 1
jmp 0x43b410
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.00401f49
mov dword [ebp - 4], 9
mov dword [ebp - 0x18], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0040227d
test byte [ebp - 0x18], 2
je 0x43b42e
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x18], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00401019
test byte [ebp - 0x18], 1
mov dword [ebp - 4], 3
je 0x43b446
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401019
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.00405d13
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
mov edi, 0x5ea058
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x43b4c9
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push edi
push SysReAllocStringLen
call esi
cmp eax, ebx
je 0x43b4c9
push eax
push str.Unable_to_open_registry_key_for_reboot_registration__error_code___d
lea eax, [ebp - 0x20]
push eax
call fcn.00401518
mov esi, dword [ebp - 0x20]
push esi
call fcn.004437b6
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [esi - 0x10]
jmp 0x43b605
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b4ef
cmp dword [ebp - 0x34], ebx
je 0x43b4ef
push dword [ebp + 8]
push str.Reboot_already_registered_with_description__s
jmp 0x43b48b
mov edi, dword [ebp - 0x14]
push edi
call fcn.0058f15d
lea eax, [eax + eax + 2]
cmp edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
mov dword [ebp - 0x34], eax
je 0x43b515
push edi
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x43b51b
and dword [ebp - 0x18], 0
jmp 0x43b534
lea esi, [eax + eax]
mov eax, esi
call fcn.00590290
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403d96
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x43b545
xor eax, eax
jmp 0x43b55d
lea esi, [eax + eax]
mov eax, esi
call fcn.00590290
mov eax, esp
push 3
push esi
push dword [ebp + 8]
push eax
call fcn.00403d96
push dword [ebp - 0x34]
push dword [ebp - 0x18]
push 1
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x43b5a3
push eax
lea eax, [ebp - 0x20]
push str.Unable_to_set_registry_key_for_reboot_registration__error_code___d
push eax
call fcn.00401518
mov esi, dword [ebp - 0x20]
push esi
call fcn.004437b6
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [edi - 0x10]
jmp 0x43b4b1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x28], 0
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [edi - 0x10]
call fcn.00401019
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
inc eax
jmp 0x43b60c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
lea esp, [ebp - 0x44]
call fcn.0058fa71
ret