Function at 0x140292aa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x58
call fcn.1403cb200
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rdi, rcx
mov r10, qword [rcx + 0x168]
mov rsi, r9
mov rcx, qword [rcx + 0x38]
mov rbx, r8
mov qword [rsp + 0x40], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov qword [rsp + 0x38], r10
mov r13, rdx
cmp rcx, rax
ja 0x140292d83
cmp rcx, r9
jb 0x140292d83
cmp dword [rdi + 0x174], 0
lea r12, [rdi + 0x40]
mov ebp, dword [rdi + 0x170]
mov r14d, 0x10
mov dword [rsp + 0xa0], ebp
mov qword [rdi + 0x38], rcx
je 0x140292b7e
test r9, r9
jne 0x140292b4d
lea rdx, [rdi + 0x60]
mov rcx, r12
call qword [rdi + 0x160]
and dword [rdi + 0x174], esi
xor eax, eax
jmp 0x140292d86
lea rcx, [rdi + 0x188]
mov r8, r14
mov rdx, r12
call fcn.1403cc5a0
mov r10, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [r12], xmm0
and dword [rdi + 0x174], 0
mov ebp, r14d
mov dword [rsp + 0xa0], r14d
mov r14d, dword [rdi + 0xc]
mov r15d, ebp
and r15d, 0xf
mov dword [rsp + 0x30], r15d
bswap r14d
je 0x140292bf7
test rsi, rsi
je 0x140292d78
mov cl, byte [r15 + rdi + 0x10]
dec rsi
xor cl, byte [r13]
inc r13
mov byte [rbx], cl
inc rbx
mov eax, ebp
inc ebp
inc r15d
mov byte [rax + rdi + 0x188], cl
and r15d, 0xf
jne 0x140292b93
lea r8, [rdi + 0x188]
mov r9d, ebp
lea rdx, [rdi + 0x60]
lea rcx, [rdi + 0x40]
call r10
xor ebp, ebp
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0xa0], ebp
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], r13
lea rax, [rdi + 0x60]
cmp rsi, 0x10
jb 0x140292c22
test ebp, ebp
je 0x140292c22
mov r9d, ebp
lea r8, [rdi + 0x188]
mov rdx, rax
mov rcx, r12
call qword [rsp + 0x38]
xor ebp, ebp
mov dword [rsp + 0xa0], ebp
cmp rsi, 0xc00
jb 0x140292cc7
mov rbp, qword [rsp + 0x38]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
mov rax, rdx
shr rax, 0xb
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x48]
imul rax, rax, 0xfffffffffffff400
add rsi, rax
mov r9, qword [rsp + 0x40]
mov r8d, 0xc0
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rcx, r13
call qword [rsp + 0xc0]
add r14d, 0xc0
lea rdx, [rdi + 0x60]
mov eax, r14d
mov r9d, 0xc00
bswap eax
mov r8, rbx
mov dword [rdi + 0xc], eax
mov rcx, r12
call rbp
mov eax, 0xc00
add rbx, rax
add r13, rax
sub r15, 1
jne 0x140292c5c
mov ebp, dword [rsp + 0xa0]
mov r15d, dword [rsp + 0x30]
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], rbx
mov r13, rsi
and r13, 0xfffffffffffffff0
je 0x140292d2d
mov r9, qword [rsp + 0x40]
mov rbx, r13
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
shr rbx, 4
mov r8, rbx
mov qword [rsp + 0x20], rdi
call qword [rsp + 0xc0]
add qword [rsp + 0xa8], r13
lea rdx, [rdi + 0x60]
add r14d, ebx
mov r9, r13
mov rbx, qword [rsp + 0xb0]
mov eax, r14d
bswap eax
mov r8, rbx
mov dword [rdi + 0xc], eax
mov rcx, r12
sub rsi, r13
call qword [rsp + 0x38]
add rbx, r13
test rsi, rsi
je 0x140292d78
mov r8, qword [rsp + 0x40]
lea rdx, [rdi + 0x10]
mov rcx, rdi
call qword [rdi + 0x178]
mov r10, qword [rsp + 0xa8]
inc r14d
bswap r14d
mov dword [rdi + 0xc], r14d
mov eax, r15d
inc r15d
mov cl, byte [rax + rdi + 0x10]
xor cl, byte [rax + r10]
mov byte [rax + rbx], cl
mov eax, ebp
inc ebp
mov byte [rax + rdi + 0x188], cl
sub rsi, 1
jne 0x140292d56
mov dword [rdi + 0x170], ebp
jmp 0x140292b46
or eax, 0xffffffff
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret