Function at 0x18018a240
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xb8
call fcn.1801312a0
sub rsp, rax
mov rax, qword [0x180357448]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x70], rcx
mov r15, r9
mov rcx, r9
mov qword [rsp + 0x68], r9
mov r12, r8
mov rdi, rdx
xor esi, esi
call fcn.180141780
mov rcx, r15
call fcn.180141880
mov qword [rsp + 0x60], rax
mov r15, rax
test rax, rax
je 0x18018a778
mov qword [rsp + 0xb0], rbx
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.180141880
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18018a770
mov rcx, rbx
mov qword [rsp + 0xa8], r14
call fcn.180141880
mov qword [rsp + 0x58], rax
mov r14, rax
test rax, rax
je 0x18018a768
mov rcx, rbx
call fcn.180141880
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x18018a768
lea r8d, [rsi + 6]
mov rcx, r12
lea rdx, [rsp + 0x78]
call fcn.18018bb20
test eax, eax
je 0x18018a748
cmp eax, 6
jg 0x18018a748
lea r8, [rsp + 0x78]
mov rdx, rdi
mov rcx, r14
call fcn.18018a8e0
test eax, eax
je 0x18018a768
cmp dword [r14 + 8], esi
je 0x18018a768
mov rdx, r12
mov rcx, rbx
call fcn.18012f100
test rax, rax
je 0x18018a768
mov rcx, r14
call fcn.18012ee40
mov rcx, rbx
mov ebp, eax
call fcn.18012ee40
movsxd r13, dword [r12 + 8]
mov dword [rsp + 0x30], eax
cmp r13d, dword [r14 + 0xc]
jg 0x18018a37a
mov rax, r14
jmp 0x18018a385
mov edx, r13d
mov rcx, r14
call fcn.18012fbb0
test rax, rax
je 0x18018a768
movsxd rax, dword [r14 + 8]
mov rcx, r13
mov rbx, qword [r14]
cmp rax, r13
jge 0x18018a3a9
sub rcx, rax
lea rdi, [rbx + rax*8]
xor eax, eax
rep stosq qword [rdi], rax
mov dword [r14 + 8], r13d
cmp r13d, dword [r15 + 0xc]
jg 0x18018a3b8
mov rax, r15
jmp 0x18018a3c3
mov edx, r13d
mov rcx, r15
call fcn.18012fbb0
test rax, rax
je 0x18018a768
mov r14, qword [r15]
mov eax, 1
mov qword [r14], rax
cmp r13d, eax
jle 0x18018a3ec
lea eax, [r13 - 1]
movsxd rcx, eax
lea rdi, [r14 + 8]
xor eax, eax
rep stosq qword [rdi], rax
mov r8, qword [rsp + 0x38]
mov dword [r15 + 8], r13d
cmp r13d, dword [r8 + 0xc]
jg 0x18018a400
mov rax, r8
jmp 0x18018a410
mov edx, r13d
mov rcx, r8
call fcn.18012fbb0
mov r8, qword [rsp + 0x38]
test rax, rax
je 0x18018a768
mov r10, qword [r8]
mov qword [rsp + 0x48], r10
test r13d, r13d
jle 0x18018a431
mov rdi, r10
xor eax, eax
mov rcx, r13
rep stosq qword [rdi], rax
mov rdx, qword [rsp + 0x40]
mov dword [r8 + 8], r13d
mov r11, qword [rdx]
mov qword [rsp + 0x50], r11
test ebp, ebp
je 0x18018a51c
nop word [rax + rax]
mov rdi, qword [rbx]
test dil, 1
jne 0x18018a503
mov rax, qword [r14]
mov r15, rsi
mov rcx, qword [r12]
mov r9, rax
and r9d, 1
neg r9
mov rdx, qword [rcx]
lea ecx, [r13 - 1]
and rdx, r9
movsxd r10, ecx
xor rax, rdx
test ecx, ecx
jle 0x18018a4ec
mov r11, rbx
lea r8, [r14 + 8]
sub r11, r14
mov rsi, 0xfffffffffffffff8
sub rsi, r14
mov r15, r10
nop dword [rax]
mov rcx, qword [r11 + r8]
lea rdx, [rsi + r8]
shl rcx, 0x3f
lea r8, [r8 + 8]
shr rdi, 1
or rcx, rdi
shr rax, 1
mov rdi, qword [r11 + r8 - 8]
mov qword [r11 + r8 - 0x10], rcx
mov rcx, qword [r12]
mov rdx, qword [rdx + rcx + 8]
and rdx, r9
xor rdx, qword [r8 - 8]
mov rcx, rdx
shl rcx, 0x3f
or rcx, rax
mov rax, rdx
mov qword [r8 - 0x10], rcx
sub r10, 1
jne 0x18018a4a0
xor esi, esi
shr rdi, 1
shr rax, 1
mov qword [rbx + r15*8], rdi
mov qword [r14 + r15*8], rax
sub ebp, 1
jne 0x18018a450
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
cmp ebp, 0x40
jg 0x18018a537
mov rax, qword [rbx]
test rax, rax
je 0x18018a768
cmp rax, 1
je 0x18018a6f8
mov ecx, dword [rsp + 0x30]
cmp ebp, ecx
jge 0x18018a57d
mov rax, qword [rsp + 0x58]
mov rbx, r11
mov qword [rsp + 0x58], rdx
mov r14, r10
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rax, r15
mov dword [rsp + 0x30], ebp
mov ebp, ecx
mov qword [rsp + 0x60], r8
mov r15, r8
mov qword [rsp + 0x38], rax
mov r11, qword [rdx]
mov r10, qword [rax]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], r11
mov rdi, rsi
test r13d, r13d
jle 0x18018a64a
cmp r13d, 2
jb 0x18018a64a
lea eax, [r13 - 1]
movsxd rcx, eax
lea r9, [r10 + rcx*8]
lea rax, [r14 + rcx*8]
cmp r14, r9
ja 0x18018a5b0
cmp rax, r10
jae 0x18018a64a
lea rdx, [rbx + rcx*8]
cmp r14, rdx
ja 0x18018a5c2
cmp rax, rbx
jae 0x18018a64a
lea r8, [r11 + rcx*8]
cmp r14, r8
ja 0x18018a5d0
cmp rax, r11
jae 0x18018a64a
cmp rbx, r9
ja 0x18018a5da
cmp rdx, r10
jae 0x18018a64a
cmp rbx, r8
ja 0x18018a5e4
cmp rdx, r11
jae 0x18018a64a
mov ecx, r13d
and ecx, 0x80000001
jge 0x18018a5f6
dec ecx
or ecx, 0xfffffffe
inc ecx
mov eax, r13d
mov rdx, r10
sub eax, ecx
sub rdx, rbx
mov rcx, r11
movsxd r9, eax
sub rcx, rbx
mov r8, r14
sub r8, rbx
mov rax, rbx
movdqu xmm0, xmmword [rax]
add rdi, 2
movdqu xmm1, xmmword [rcx + rax]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + rax - 0x10]
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm1, xmmword [rdx + rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [r8 + rax - 0x10], xmm1
cmp rdi, r9
jl 0x18018a613
cmp rdi, r13
jge 0x18018a689
mov r9, r10
lea rcx, [rbx + rdi*8]
mov r10, r14
mov r8, r11
sub r10, rbx
sub r8, rbx
sub r9, rbx
mov rdx, r13
sub rdx, rdi
nop dword [rax + rax]
mov rax, qword [rcx + r8]
xor qword [rcx], rax
mov rax, qword [rcx + r9]
xor qword [rcx + r10], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x18018a670
mov r10, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
cmp ebp, dword [rsp + 0x30]
jne 0x18018a442
lea eax, [rbp - 1]
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movsxd rdi, eax
mov rax, rdi
mov rcx, qword [rbx + rdi*8]
test rcx, rcx
jne 0x18018a6d4
nop dword [rax]
test rax, rax
je 0x18018a6d4
mov rcx, qword [rbx + rax*8 - 8]
dec rax
dec edi
test rcx, rcx
je 0x18018a6c0
call fcn.18012ef30
mov r10, qword [rsp + 0x48]
mov r11, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
shl edi, 6
lea ebp, [rdi + rax]
jmp 0x18018a442
movsxd rdx, dword [r15 + 8]
test edx, edx
jle 0x18018a728
mov rax, qword [r15]
lea rdi, [rdx - 1]
lea rdi, [rax + rdi*8]
nop dword [rax + rax]
mov rax, qword [rdi]
lea rdi, [rdi - 8]
test rax, rax
jne 0x18018a722
dec edx
test edx, edx
jg 0x18018a710
mov dword [r15 + 8], edx
test edx, edx
jne 0x18018a72e
mov dword [r15 + 0x10], esi
mov rcx, qword [rsp + 0x70]
mov rdx, r15
call fcn.18012f100
test rax, rax
mov eax, 1
cmovne esi, eax
jmp 0x18018a768
mov edx, 0x83
mov dword [rsp + 0x20], 0x1df
lea r9, [0x1803703d8]
lea ecx, [rdx - 0x80]
lea r8d, [rdx - 0x19]
call fcn.180136e40
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call fcn.1801419f0
mov eax, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180137fb0
add rsp, 0xb8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret