Function at 0x14007c340
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
add rcx, r15
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x14007c751
test dl, dl
jne 0x14007c751
mov rdi, r9
mov r13, qword [rsi + 0x170]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x14007c3b6
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.14007bbf0
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x14007c411
test r15, r15
je 0x14007c746
nop dword [rax]
mov ecx, eax
movzx edx, byte [rsi + rcx + 0x10]
xor dl, byte [rbp]
inc rbp
mov byte [rdi], dl
xor byte [rsi + rcx + 0x40], dl
inc rdi
lea rbx, [r15 - 1]
inc eax
and eax, 0xf
je 0x14007c3fa
cmp r15, 1
mov r15, rbx
jne 0x14007c3d0
test eax, eax
jne 0x14007c746
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.14007bbf0
jmp 0x14007c414
mov rbx, r15
mov r12d, dword [rsi + 0xc]
bswap r12d
cmp rbx, 0xc00
jb 0x14007c50a
mov qword [rsp + 0x20], rbx
lea r15, [rsi + 0x10]
lea rax, [rsi + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x28], rax
mov rax, rdi
mov rcx, rbp
nop dword [rax]
mov rbx, rcx
mov rdi, rax
mov rbp, 0xfffffffffffff400
nop dword [rax]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
inc r12d
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbx + rbp + 0xc00]
mov qword [rdi + rbp + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbx + rbp + 0xc08]
mov qword [rdi + rbp + 0xc08], rax
add rbp, 0x10
jne 0x14007c460
lea r8, [rdi + rbp]
mov r9d, 0xc00
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.14007bd20
mov rdx, qword [rsp + 0x20]
add rdx, 0xfffffffffffff400
lea rax, [rdi + rbp]
add rax, 0xc00
lea rcx, [rbx + rbp]
add rcx, 0xc00
mov qword [rsp + 0x20], rdx
cmp rdx, 0xbff
ja 0x14007c450
add rdi, rbp
add rdi, 0xc00
add rbp, rbx
add rbp, 0xc00
mov rbx, qword [rsp + 0x20]
mov rax, rbx
and rax, 0xff0
je 0x14007c578
mov qword [rsp + 0x20], rax
lea r15, [rsi + 0x10]
nop
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
inc r12d
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbp]
mov qword [rdi], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbp + 8]
mov qword [rdi + 8], rax
add rdi, 0x10
add rbp, 0x10
add rbx, 0xfffffffffffffff0
cmp rbx, 0xf
ja 0x14007c520
mov r8, rdi
mov r9, qword [rsp + 0x20]
sub r8, r9
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.14007bd20
test rbx, rbx
je 0x14007c61b
lea r15, [rsi + 0x10]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
movabs rcx, 0xfffffffeffffffff
lea rdx, [rbx + rcx]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jb 0x14007c625
lea rdx, [rdi + rbx]
lea r9, [rbx + rsi]
add r9, 0x40
mov r14, rbx
lea r10, [rbx + rbp]
cmp rdi, r9
setb r11b
cmp r15, rdx
setb bl
cmp rdi, r10
setb cl
cmp rbp, rdx
setb r8b
cmp r15, r10
setb dl
cmp rbp, r9
setb r9b
test r11b, bl
jne 0x14007c622
and cl, r8b
jne 0x14007c622
and dl, r9b
mov rbx, r14
jne 0x14007c625
lea rax, [rbx - 0x10]
mov rdx, rax
shr rdx, 4
inc rdx
cmp rax, 0x10
jae 0x14007c640
xor ecx, ecx
jmp 0x14007c6ab
xor eax, eax
jmp 0x14007c746
mov rbx, r14
test bl, 1
jne 0x14007c6e6
mov rcx, rbx
cmp rbx, 1
jne 0x14007c710
jmp 0x14007c746
mov rax, rdx
and rax, 0xfffffffffffffffe
xor ecx, ecx
nop dword [rax]
mov r8d, ecx
and r8d, 0xffffffe0
movups xmm0, xmmword [rbp + r8]
movups xmm1, xmmword [rsi + r8 + 0x10]
xorps xmm1, xmm0
movups xmmword [rdi + r8], xmm1
movups xmm0, xmmword [rsi + r8 + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + r8 + 0x40], xmm0
movups xmm0, xmmword [rbp + r8 + 0x10]
movups xmm1, xmmword [rsi + r8 + 0x20]
xorps xmm1, xmm0
movups xmmword [rdi + r8 + 0x10], xmm1
movups xmm0, xmmword [rsi + r8 + 0x50]
xorps xmm0, xmm1
movups xmmword [rsi + r8 + 0x50], xmm0
add rcx, 0x20
add rax, 0xfffffffffffffffe
jne 0x14007c650
and ecx, 0xfffffff0
mov rax, rbx
and rax, 0xfffffffffffffff0
test dl, 1
je 0x14007c6d5
movups xmm0, xmmword [rbp + rcx]
movups xmm1, xmmword [rsi + rcx + 0x10]
xorps xmm1, xmm0
movups xmmword [rdi + rcx], xmm1
movups xmm0, xmmword [rsi + rcx + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + rcx + 0x40], xmm0
cmp rbx, rax
je 0x14007c746
and ebx, 0xf
test bl, 1
je 0x14007c62e
lea rcx, [rbx - 1]
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, byte [rbp + rdx]
mov byte [rdi + rdx], r8b
xor byte [rsi + rdx + 0x40], r8b
inc eax
cmp rbx, 1
je 0x14007c746
nop dword [rax + rax]
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, byte [rbp + rdx]
mov byte [rdi + rdx], r8b
xor byte [rsi + rdx + 0x40], r8b
lea edx, [rax + 1]
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, byte [rbp + rdx]
mov byte [rdi + rdx], r8b
xor byte [rsi + rdx + 0x40], r8b
add eax, 2
add rcx, 0xfffffffffffffffe
jne 0x14007c710
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret