Function at 0x1401ae380
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 [0x1403eaa10]
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 0x1401ae3c7
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 0x1401ae416
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.14029b4b4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.14029a88c
jmp 0x1401ae929
lea r8, str.___crusader
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.14029a500
test dil, dil
je 0x1401ae44b
lea r8, str.:boot
lea rcx, [rbp + 0x3d0]
mov edx, 0x208
call fcn.14029a500
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 0x1401ae476
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_OpenSCManager___failed___d__r_n
jmp 0x1401ae3ed
xor ecx, ecx
mov qword [rsp + 0x940], rbx
mov qword [rsp + 0x908], rsi
mov qword [rsp + 0x900], r12
lea rax, [0x14032d900]
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.7_Crusader
neg al
lea rax, str.HitmanPro_3.7_Crusader__Boot_
lea r12, str.HitmanPro37Crusader
sbb r14d, r14d
mov ebx, ecx
add r14d, 3
test dil, dil
cmovne r15, rax
lea rax, str.HitmanPro37CrusaderBoot
cmovne r12, rax
test ebx, ebx
jle 0x1401ae4f7
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 0x1401ae5e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x1401ae56e
inc ebx
mov rcx, rdi
cmp ebx, 2
jl 0x1401ae4e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1401ae5ab
lea r8, str.CrusaderService:_Service_already_exists_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.14029b4b4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.14029a88c
mov r13b, 1
jmp 0x1401ae8f7
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.14029b4b4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.14029a88c
jmp 0x1401ae8f7
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.1402980d8
mov r8, qword [r14]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.14029a500
lea r8, [0x1403232c8]
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.14029a500
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.1402980d8
lea r8, str.HitmanPro37Crusader
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.14029a500
mov eax, dword [0x1403fe608]
test al, 1
jne 0x1401ae6a9
or eax, 1
lea rcx, [0x1402de040]
mov qword [0x1403fe5e0], r12
mov dword [0x1403fe608], eax
mov qword [0x1403fe5e8], 0xffffffff80000002
call fcn.140299c6c
mov rcx, qword [0x1403fe5e8]
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 0x1401ae710
lea ecx, [rbx + 0x10]
call fcn.14029806c
test rax, rax
je 0x1401ae710
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.1402980d8
lea r8, str.HitmanPro37CrusaderBoot
lea rcx, [rbp + 0x1c0]
mov edx, 0x104
call fcn.14029a500
mov eax, dword [0x1403fe608]
test al, 1
jne 0x1401ae76e
or eax, 1
lea rcx, [0x1402de040]
mov qword [0x1403fe5e0], r12
mov dword [0x1403fe608], eax
mov qword [0x1403fe5e8], 0xffffffff80000002
call fcn.140299c6c
mov rcx, qword [0x1403fe5e8]
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 0x1401ae7d5
lea ecx, [rbx + 0x10]
call fcn.14029806c
test rax, rax
je 0x1401ae7d5
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 0x1401ae610
cmp byte [rsp + 0x70], r15b
je 0x1401ae7fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CrusaderService:_Installed_for_start_during_boot_r_n
jmp 0x1401ae83c
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 0x1401ae865
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.14029b4b4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.14029a88c
jmp 0x1401ae8ee
lea rdx, [rbp - 0x70]
mov rcx, rdi
mov ebx, 0x32
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401ae8ee
nop dword [rax + rax]
mov eax, dword [rbp - 0x6c]
cmp eax, 1
je 0x1401ae8dc
cmp eax, 4
je 0x1401ae8af
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
je 0x1401ae8ee
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1401ae880
jmp 0x1401ae8ee
lea r8, str.CrusaderService:_Started_r_n
lea rcx, [rbp - 0x50]
mov edx, 0x104
call fcn.14029b4b4
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 0x50]
call fcn.14029a88c
mov r13b, 1
jmp 0x1401ae8ee
cmp dword [rbp - 0x64], 0xa
jne 0x1401ae8ee
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1401ae8ee
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.140297ff0
add rsp, 0x910
pop r13
pop rdi
pop rbp
ret