Function at 0x1401bf7c0
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 [0x140418a10]
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 0x1401bf807
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 0x1401bf856
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.1402bd1f8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bbf64
jmp 0x1401bfd69
lea r8, str.___crusader
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402bbbd8
test dil, dil
je 0x1401bf88b
lea r8, str.:boot
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.1402bbbd8
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 0x1401bf8b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_OpenSCManager___failed___d__r_n
jmp 0x1401bf82d
xor ecx, ecx
mov qword [rsp + 0x940], rbx
mov qword [rsp + 0x908], rsi
mov qword [rsp + 0x900], r12
lea rax, [0x140352bf0]
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 0x1401bf937
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 0x1401bfa21
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1401bf9ae
inc ebx
mov rcx, rdi
cmp ebx, 2
jl 0x1401bf926
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1401bf9eb
lea r8, str.CrusaderService:_Service_already_exists_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bd1f8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bbf64
mov r13b, 1
jmp 0x1401bfd37
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.1402bd1f8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bbf64
jmp 0x1401bfd37
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.1402b96f8
mov r8, qword [r14]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bbbd8
lea r8, [0x140347f58]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bbbd8
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402b96f8
lea r8, str.HitmanPro38Crusader
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402bbbd8
mov eax, dword [0x14042c9e0]
test al, 1
jne 0x1401bfae9
or eax, 1
lea rcx, [0x1403017d0]
mov qword [0x14042c9e8], r12
mov dword [0x14042c9e0], eax
mov qword [0x14042c9f0], 0xffffffff80000002
call fcn.1402bb344
mov rcx, qword [0x14042c9f0]
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 0x1401bfb50
lea ecx, [rbx + 0x10]
call fcn.1402b968c
test rax, rax
je 0x1401bfb50
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.1402b96f8
lea r8, str.HitmanPro38CrusaderBoot
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402bbbd8
mov eax, dword [0x14042c9e0]
test al, 1
jne 0x1401bfbae
or eax, 1
lea rcx, [0x1403017d0]
mov qword [0x14042c9e8], r12
mov dword [0x14042c9e0], eax
mov qword [0x14042c9f0], 0xffffffff80000002
call fcn.1402bb344
mov rcx, qword [0x14042c9f0]
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 0x1401bfc15
lea ecx, [rbx + 0x10]
call fcn.1402b968c
test rax, rax
je 0x1401bfc15
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 0x1401bfa50
cmp byte [rsp + 0x70], r15b
je 0x1401bfc3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_Installed_for_start_during_boot_r_n
jmp 0x1401bfc7c
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 0x1401bfca5
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.1402bd1f8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bbf64
jmp 0x1401bfd2e
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov ebx, 0x32
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401bfd2e
nop dword [rax + rax]
mov eax, dword [rbp - 0x6c]
cmp eax, 1
je 0x1401bfd1c
cmp eax, 4
je 0x1401bfcef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
je 0x1401bfd2e
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401bfcc0
jmp 0x1401bfd2e
lea r8, str.CrusaderService:_Started_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.1402bd1f8
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.1402bbf64
mov r13b, 1
jmp 0x1401bfd2e
cmp dword [rbp - 0x64], 0xa
jne 0x1401bfd2e
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1401bfd2e
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.1402b9610
add rsp, 0x910
pop r13
pop rdi
pop rbp
ret