Function at 0x1400186d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
mov rax, qword [0x1400781b0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor r13d, r13d
mov r12d, ecx
mov dword [rbp + 0x13], r13d
nop dword [rax]
mov dword [rbp - 0x21], 0x6e6c5e48
mov rax, r13
mov dword [rbp - 0x1d], 0x716a6270
mov dword [rbp - 0x19], 0x1000706
nop dword [rax + rax]
lea ecx, [rax + 0x1e]
xor byte [rbp + rax - 0x21], cl
inc rax
cmp rax, 0xa
jb 0x140018720
lea rdx, [rbp - 0x21]
mov byte [rbp - 0x16], r13b
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp + 0x13]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp + 0xf], eax
mov edi, eax
test eax, eax
jne 0x140018763
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018700
movsxd rsi, dword [0x1401975dc]
lea rax, [0x1401975a0]
add rsi, rax
mov eax, 0x5a4d
cmp word [0x1401975a0], ax
je 0x14001878c
mov eax, 3
jmp 0x1400189ad
mov qword [rsp + 0xc8], rbx
mov ebx, r13d
mov word [0x1401975a0], r13w
mov qword [rsp + 0xd0], r14
mov dword [rsi], r13d
nop word [rax + rax]
mov edx, edi
mov ecx, r12d
call fcn.140017950
mov r14, rax
test rax, rax
jne 0x1400187dd
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x1400187b0
lea eax, [r14 + 1]
jmp 0x14001899d
mov r8, rsi
mov rcx, r14
call fcn.1400182e0
mov rdx, rsi
call fcn.140018470
test al, al
jne 0x1400187fe
mov eax, 4
jmp 0x14001899d
movzx ebx, word [rsi + 0x14]
add rbx, 0x2c
mov qword [rsp + 0xd8], r15
movzx r15d, r13w
cmp r13w, word [rsi + 6]
jae 0x140018898
add rbx, rsi
lea rdi, [0x1401975a0]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbx - 8]
lea r8, [rbp - 0x11]
mov rcx, qword [0x1401cb658]
add rax, r14
mov qword [rbp - 9], rax
mov r9d, 0x20
mov eax, dword [rbx]
mov edx, 0x12a8c0
add rax, rdi
mov qword [rsp + 0x38], r13
mov qword [rbp - 1], rax
mov eax, dword [rbx - 4]
mov qword [rbp + 7], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov dword [rbp + 0x17], r13d
mov dword [rbp - 0x11], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc r15w
lea rbx, [rbx + 0x28]
cmp r15w, word [rsi + 6]
jb 0x140018830
mov edi, dword [rbp + 0xf]
mov r9, rsi
mov dword [rsp + 0x20], 3
mov r8, r14
mov edx, edi
mov ecx, r12d
call fcn.140016d80
test al, al
jne 0x1400188be
mov eax, 6
jmp 0x140018995
movzx edi, word [rsi + 0x14]
movzx r15d, r13w
add rdi, 0x28
cmp r13w, word [rsi + 6]
jae 0x14001897e
add rdi, rsi
nop dword [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x14001896b
test dword [rdi + 0x14], 0x2000000
je 0x14001896b
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [rdi - 4]
lea r8, [rbp - 0x11]
add rcx, r14
mov qword [rsp + 0x38], r13
mov qword [rbp - 9], rcx
mov rbx, rax
mov ecx, dword [rdi]
mov r9d, 0x20
mov qword [rbp - 1], rax
mov edx, 0x12a8c0
lea rax, [rbp + 0xf]
mov qword [rbp + 7], rcx
mov rcx, qword [0x1401cb658]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov dword [rbp + 0xf], r13d
mov dword [rbp - 0x11], r12d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc r15w
add rdi, 0x28
cmp r15w, word [rsi + 6]
jb 0x1400188e0
xor edx, edx
lea rcx, [0x1401975a0]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r15, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xc8]
mov r14, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14004dbc0
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret