Function at 0x1401be1a0
Capabilities:
Create service
Modify service
Print debug messages
Query service status
Start service

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
movzx edi, cl
mov byte [rsp + 0x70], cl
mov ecx, 0x22
xor r13b, r13b
mov qword [rbp - 0x78], rdx
mov word [rbp + 0x3d0], cx
test rdx, rdx
je 0x1401be1e7
mov byte [rdx], r13b
lea rdx, [rbp + 0x3d2]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1401be236
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_GetModuleFileName___failed___d__r_n
lea rcx, [rbp - 0x50]
mov r9d, eax
mov edx, 0x104
call fcn.1402ba928
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402b9694
jmp 0x1401be749
lea r8, str.___crusader
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402b9308
test dil, dil
je 0x1401be26b
lea r8, str.:boot
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402b9308
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1401be296
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_OpenSCManager___failed___d__r_n
jmp 0x1401be20d
xor ecx, ecx
mov qword [rsp + 0x940], rbx
mov qword [rsp + 0x908], rsi
mov qword [rsp + 0x900], r12
lea rax, [0x140350ba0]
test dil, dil
mov qword [rsp + 0x8f8], r14
mov qword [rsp + 0x8f0], r15
mov esi, ecx
cmovne rsi, rax
movzx eax, dil
lea r15, str.HitmanPro_3.8_Crusader
neg al
lea rax, str.HitmanPro_3.8_Crusader__Boot_
lea r12, str.HitmanPro38Crusader
sbb r14d, r14d
mov ebx, ecx
add r14d, 3
test dil, dil
cmovne r15, rax
lea rax, str.HitmanPro38CrusaderBoot
cmovne r12, rax
test ebx, ebx
jle 0x1401be317
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x3d0]
mov r9d, 0xf01ff
mov r8, r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov rdx, r12
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x1401be401
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1401be38e
inc ebx
mov rcx, rdi
cmp ebx, 2
jl 0x1401be306
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1401be3cb
lea r8, str.CrusaderService:_Service_already_exists_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402ba928
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402b9694
mov r13b, 1
jmp 0x1401be717
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_CreateService___failed___d__r_n
lea rcx, [rbp - 0x50]
mov r9d, eax
mov edx, 0x104
call fcn.1402ba928
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402b9694
jmp 0x1401be717
lea rax, str.Network
xor r15d, r15d
lea r14, [rbp - 0x70]
mov qword [rbp - 0x70], rax
lea rax, str.Minimal
mov esi, r15d
mov qword [rbp - 0x68], rax
lea r12, vtable.Core::Win32::RegistryKey.0
nop dword [rax + rax]
lea r8, str.SYSTEMCurrentControlSetControlSafeBoot_
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402b6e28
mov r8, qword [r14]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402b9308
lea r8, [0x140345f98]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402b9308
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402b6e28
lea r8, str.HitmanPro38Crusader
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402b9308
mov eax, dword [0x140429a18]
test al, 1
jne 0x1401be4c9
or eax, 1
lea rcx, [0x1402fedc0]
mov qword [0x1404299f0], r12
mov dword [0x140429a18], eax
mov qword [0x1404299f8], 0xffffffff80000002
call fcn.1402b8a74
mov rcx, qword [0x1404299f8]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rdx, [rbp + 0x1c0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x78], r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1401be530
lea ecx, [rbx + 0x10]
call fcn.1402b6dbc
test rax, rax
je 0x1401be530
mov rcx, qword [rsp + 0x78]
mov qword [rax], r12
mov qword [rax + 8], rcx
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402b6e28
lea r8, str.HitmanPro38CrusaderBoot
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402b9308
mov eax, dword [0x140429a18]
test al, 1
jne 0x1401be58e
or eax, 1
lea rcx, [0x1402fedc0]
mov qword [0x1404299f0], r12
mov dword [0x140429a18], eax
mov qword [0x1404299f8], 0xffffffff80000002
call fcn.1402b8a74
mov rcx, qword [0x1404299f8]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rdx, [rbp + 0x1c0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x78], r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1401be5f5
lea ecx, [rbx + 0x10]
call fcn.1402b6dbc
test rax, rax
je 0x1401be5f5
mov rcx, qword [rsp + 0x78]
mov qword [rax], r12
mov qword [rax + 8], rcx
inc esi
add r14, 8
movsxd rax, esi
cmp rax, 2
jb 0x1401be430
cmp byte [rsp + 0x70], r15b
je 0x1401be61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_Installed_for_start_during_boot_r_n
jmp 0x1401be65c
lea rax, str.Provides_malicious_software_removal_services_for_HitmanPro.
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401be685
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_StartService___failed___d__r_n
lea rcx, [rbp - 0x50]
mov r9d, eax
mov edx, 0x104
call fcn.1402ba928
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402b9694
jmp 0x1401be70e
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov ebx, 0x32
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401be70e
nop dword [rax + rax]
mov eax, dword [rbp - 0x6c]
cmp eax, 1
je 0x1401be6fc
cmp eax, 4
je 0x1401be6cf
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
je 0x1401be70e
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401be6a0
jmp 0x1401be70e
lea r8, str.CrusaderService:_Started_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402ba928
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402b9694
mov r13b, 1
jmp 0x1401be70e
cmp dword [rbp - 0x64], 0xa
jne 0x1401be70e
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1401be70e
mov byte [rax], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0x8f0]
mov r14, qword [rsp + 0x8f8]
mov r12, qword [rsp + 0x900]
mov rsi, qword [rsp + 0x908]
mov rbx, qword [rsp + 0x940]
movzx eax, r13b
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x910
pop r13
pop rdi
pop rbp
ret