Function at 0x1401c19c0
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 [0x14041da10]
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 0x1401c1a07
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 0x1401c1a56
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.1402c06b8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bf424
jmp 0x1401c1f69
lea r8, str.___crusader
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402bf098
test dil, dil
je 0x1401c1a8b
lea r8, str.:boot
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402bf098
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 0x1401c1ab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_OpenSCManager___failed___d__r_n
jmp 0x1401c1a2d
xor ecx, ecx
mov qword [rsp + 0x940], rbx
mov qword [rsp + 0x908], rsi
mov qword [rsp + 0x900], r12
lea rax, [0x140356ab0]
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 0x1401c1b37
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 0x1401c1c21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1401c1bae
inc ebx
mov rcx, rdi
cmp ebx, 2
jl 0x1401c1b26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1401c1beb
lea r8, str.CrusaderService:_Service_already_exists_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402c06b8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bf424
mov r13b, 1
jmp 0x1401c1f37
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.1402c06b8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bf424
jmp 0x1401c1f37
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.1402bcbb8
mov r8, qword [r14]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bf098
lea r8, [0x14034c088]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bf098
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402bcbb8
lea r8, str.HitmanPro38Crusader
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402bf098
mov eax, dword [0x140431ac0]
test al, 1
jne 0x1401c1ce9
or eax, 1
lea rcx, [0x1403050b0]
mov qword [0x140431ac8], r12
mov dword [0x140431ac0], eax
mov qword [0x140431ad0], 0xffffffff80000002
call fcn.1402be804
mov rcx, qword [0x140431ad0]
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 0x1401c1d50
lea ecx, [rbx + 0x10]
call fcn.1402bcb4c
test rax, rax
je 0x1401c1d50
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.1402bcbb8
lea r8, str.HitmanPro38CrusaderBoot
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402bf098
mov eax, dword [0x140431ac0]
test al, 1
jne 0x1401c1dae
or eax, 1
lea rcx, [0x1403050b0]
mov qword [0x140431ac8], r12
mov dword [0x140431ac0], eax
mov qword [0x140431ad0], 0xffffffff80000002
call fcn.1402be804
mov rcx, qword [0x140431ad0]
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 0x1401c1e15
lea ecx, [rbx + 0x10]
call fcn.1402bcb4c
test rax, rax
je 0x1401c1e15
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 0x1401c1c50
cmp byte [rsp + 0x70], r15b
je 0x1401c1e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_Installed_for_start_during_boot_r_n
jmp 0x1401c1e7c
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 0x1401c1ea5
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.1402c06b8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bf424
jmp 0x1401c1f2e
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov ebx, 0x32
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401c1f2e
nop dword [rax + rax]
mov eax, dword [rbp - 0x6c]
cmp eax, 1
je 0x1401c1f1c
cmp eax, 4
je 0x1401c1eef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
je 0x1401c1f2e
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401c1ec0
jmp 0x1401c1f2e
lea r8, str.CrusaderService:_Started_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402c06b8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bf424
mov r13b, 1
jmp 0x1401c1f2e
cmp dword [rbp - 0x64], 0xa
jne 0x1401c1f2e
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1401c1f2e
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.1402bcad0
add rsp, 0x910
pop r13
pop rdi
pop rbp
ret