Function at 0x140186270
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov edx, 0x7d4a48c9
call fcn.140186b50
mov rcx, qword [rsi + 8]
mov edx, dword [rcx]
mov rcx, rax
mov r8d, 0xe8562bf5
call fcn.140186b40
mov qword [rsi + 0x18], rax
test rax, rax
je 0x1401863f1
mov ecx, 0x30
mov edx, 0x4465f4e6
call fcn.140084ab0
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
call fcn.140185870
mov rcx, rax
call fcn.140185870
lea rcx, [rsi + 0x20]
mov r8, qword [rsi + 0x18]
add r8, 0x10
mov rdx, qword [rbp - 8]
mov qword [rdx], r8
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov qword [rdx + 0x18], 0
mov qword [rdx + 0x20], rax
mov byte [rdx + 0x28], 0
call fcn.1401838c0
mov r8, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0x5c8edfc3
lea r9, [0x140185250]
lea rcx, [rbp - 0x40]
call fcn.140186b20
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov ecx, 0xc
call fcn.14031953c
mov rdx, rax
mov qword [rbp - 0x18], rdi
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x18]
mov edi, dword [rcx + 0x28]
mov rbx, qword [rsi + 0x20]
mov dword [rdx], 0
mov dword [rdx + 8], 0
mov eax, dword [rax + 8]
mov ecx, eax
xor ecx, 1
and eax, 1
lea eax, [rcx + rax*2]
add edi, eax
and eax, 1
add edi, eax
mov dword [rdx + 4], edi
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov qword [rbp - 8], rdx
call qword [case.0x1400eabdd.0]
movzx eax, ax
add edi, eax
mov rax, qword [rbp - 8]
mov dword [rax + 8], edi
mov r14d, dword [rax + 4]
lea rax, [0x140365954]
movsxd r13, dword [0x140365954]
add r13, rax
mov edi, dword [0x140365944]
mov rcx, rbx
call fcn.1401704e0
movzx eax, ax
add r14d, eax
mov r8, qword [rbp - 8]
mov dword [r8], r14d
mov rcx, qword [rsi + 0x28]
mov r14d, dword [0x14044b710]
lea r15d, [r14 + 1]
mov dword [0x14044b710], r15d
test r14d, r15d
je 0x1401863f8
xor r12d, r12d
jmp 0x140186422
xor ebx, ebx
jmp 0x14018655e
xor eax, eax
xor r12d, r12d
test edi, edi
jle 0x140186422
nop word cs:[rax + rax]
movsxd rdx, eax
mov rdx, qword [r13 + rdx]
xor r12, rdx
add eax, 8
cmp eax, edi
jl 0x140186410
cmp rcx, r8
je 0x140186435
test rcx, rcx
je 0x140186435
call fcn.140084560
mov r8, qword [rbp - 8]
mov qword [rsi + 0x28], r8
mov ebx, dword [r8]
mov rcx, qword [rsi]
call fcn.140185870
mov rdi, qword [rbp - 0x18]
mov rcx, rax
mov edx, ebx
call fcn.140186f60
mov qword [rsi + 0x10], rax
xor ebx, ebx
cmp byte [0x1404909a8], 0
jne 0x140186549
test rax, rax
je 0x140186549
mov rcx, rsi
call fcn.140186650
and r14d, r15d
mov rax, qword [0x140365948]
xor ecx, ecx
cmp r14d, 1
sbb rcx, rcx
sub rax, r12
test rax, rcx
setne al
or al, byte [0x1404909a8]
and al, 1
mov byte [0x1404909a8], al
mov eax, dword [rsi + 0x38]
mov dword [rdi], eax
mov rcx, qword [rsi + 0x18]
call fcn.140184430
test al, al
je 0x1401864e4
movzx r8d, word [rsi + 0x3c]
mov rax, qword [rsi + 0x10]
add r8, qword [rax + 8]
mov rax, qword [rsi + 0x28]
mov edx, dword [0x140490510]
add edx, dword [rax + 4]
add rdx, r8
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400eabdd.0]
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 0x18]
cmp dword [rax + 0x18], 0
je 0x140186547
mov rax, qword [rsi + 0x28]
mov eax, dword [rax + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov r8d, dword [rdx + 0x10]
sub r8d, eax
mov ecx, dword [rcx + 8]
mov rdx, qword [rdx + 8]
movzx r9d, word [rsi + 0x3c]
add r9, rdx
add rdx, rax
mov eax, dword [rsi + 0x38]
mov qword [rbp - 0x40], r9
mov dword [rbp - 0x38], ecx
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x28], r8d
mov dword [rbp - 0x20], eax
mov rcx, qword [rsi + 0x20]
lea rdx, [rbp - 0x40]
call fcn.140170580
mov ebx, eax
test al, al
jne 0x140186549
mov dword [rsi + 0x38], 0
jmp 0x140186549
mov bl, 1
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1400eabdd.0]
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret