Function at 0x14008b100
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r8
mov r12, rdx
mov rsi, rcx
mov r15, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x38]
add rcx, r15
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x14008b483
test dl, dl
jne 0x14008b483
mov rdi, r9
mov r13, qword [rsi + 0x160]
mov rbp, qword [rsi + 0x168]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x14008b181
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x140031f00.0]
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x14008b1e4
test r15, r15
je 0x14008b478
nop word cs:[rax + rax]
mov ecx, eax
movzx edx, byte [rsi + rcx + 0x10]
xor dl, byte [rbx]
inc rbx
mov byte [rdi], dl
xor byte [rsi + rcx + 0x40], dl
inc rdi
lea r14, [r15 - 1]
inc eax
and eax, 0xf
je 0x14008b1c9
cmp r15, 1
mov r15, r14
jne 0x14008b1a0
test eax, eax
jne 0x14008b478
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x140031f00.0]
jmp 0x14008b1e7
mov r14, r15
test byte [rsi + 0x178], 1
mov qword [rsp + 0x38], r12
je 0x14008b222
test r14, r14
je 0x14008b222
lea rax, [rsi + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, r12
call fcn.1400d2c40
add rbx, rax
add rdi, rax
sub r14, rax
mov qword [rsp + 0x40], rbp
mov rax, qword [rsp + 0xc8]
mov r12d, dword [rsi + 0xc]
bswap r12d
cmp r14, 0xc00
jb 0x14008b2c9
lea rcx, [rsi + 0x60]
mov qword [rsp + 0x50], rcx
lea rcx, [rsi + 0x40]
mov qword [rsp + 0x48], rcx
mov r13, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
nop
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0
mov rcx, rbx
mov rdx, rdi
mov r9, r13
mov r15, rax
call qword [case.0x140031f00.0]
add r12d, 0xc0
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov r8, rdi
mov rax, rbp
call qword [case.0x140031f00.0]
mov rax, r15
add rdi, 0xc00
add rbx, 0xc00
add r14, 0xfffffffffffff400
cmp r14, 0xbff
ja 0x14008b260
mov r15, r14
and r15, 0xff0
je 0x14008b323
mov rbp, r14
shr rbp, 4
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
mov r8, rbp
mov r9, qword [rsp + 0x38]
call qword [case.0x140031f00.0]
add r12d, ebp
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
add rbx, r15
and r14d, 0xf
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rdi
mov r9, r15
mov rax, qword [rsp + 0x40]
call qword [case.0x140031f00.0]
add rdi, r15
test r14, r14
je 0x14008b476
mov rax, qword [rsi + 0x170]
lea r15, [rsi + 0x10]
mov rcx, rsi
mov rdx, r15
mov r8, qword [rsp + 0x38]
call qword [case.0x140031f00.0]
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
movabs rcx, 0xfffffffeffffffff
lea rdx, [r14 + rcx]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jb 0x14008b40b
lea rdx, [rdi + r14]
lea r9, [r14 + rsi]
add r9, 0x40
lea r10, [rbx + r14]
cmp rdi, r9
setb r11b
cmp r15, rdx
setb bpl
cmp rdi, r10
setb cl
cmp rbx, rdx
setb r8b
cmp r15, r10
setb dl
cmp rbx, r9
setb r9b
test r11b, bpl
jne 0x14008b40b
and cl, r8b
jne 0x14008b40b
and dl, r9b
jne 0x14008b40b
mov rax, r14
and rax, 0xfffffffffffffff0
mov ecx, r14d
and ecx, 0xf
xor edx, edx
nop word cs:[rax + rax]
movups xmm0, xmmword [rbx + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
xorps xmm1, xmm0
movups xmmword [rdi + rdx], xmm1
movups xmm0, xmmword [rsi + rdx + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + rdx + 0x40], xmm0
add rdx, 0x10
cmp rax, rdx
jne 0x14008b3d0
cmp r14, rax
je 0x14008b478
test cl, 1
jne 0x14008b413
mov rdx, rcx
cmp rcx, 1
jne 0x14008b440
jmp 0x14008b478
mov rcx, r14
test cl, 1
je 0x14008b400
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rsi + r8 + 0x10]
xor r9b, byte [rbx + r8]
mov byte [rdi + r8], r9b
xor byte [rsi + r8 + 0x40], r9b
inc eax
cmp rcx, 1
je 0x14008b478
nop word cs:[rax + rax]
mov ecx, eax
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbx + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbx + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
add eax, 2
add rdx, 0xfffffffffffffffe
jne 0x14008b440
jmp 0x14008b478
xor eax, eax
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret