Function at 0x1401fa530
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [rcx + 0x180]
mov rdi, qword [rcx + 0x188]
mov r15, rcx
mov r13, r8
xor ecx, ecx
mov qword [rsp + 0x98], rdx
movabs r8, 0xfffffffe0
mov rdx, r9
add rdx, qword [r15 + 0x38]
mov qword [rsp + 0xa8], r9
setb cl
cmp rdx, r8
ja 0x1401fab3d
test rcx, rcx
jne 0x1401fab3d
mov eax, dword [r15 + 0x17c]
mov qword [r15 + 0x38], rdx
mov r9d, dword [r15 + 0x178]
test eax, eax
je 0x1401faa59
cmp qword [rsp + 0xa8], 0
je 0x1401fab1c
movdqu xmm1, xmmword [r15 + 0x40]
mov eax, dword [r15 + 0xc]
mov dword [r15 + 0x17c], 0
pxor xmm0, xmm0
bswap eax
mov dword [rsp + 0x2c], 0x10
mov edx, 1
mov dword [rsp + 0x28], eax
movups xmmword [r15 + 0x190], xmm1
movups xmmword [r15 + 0x40], xmm0
cmp qword [rsp + 0xa8], 0xf
jbe 0x1401fa620
test dl, dl
je 0x1401fa620
mov r9d, dword [rsp + 0x2c]
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
lea r8, [r15 + 0x190]
call qword [r15 + 0x168]
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0xa8], 0xbff
jbe 0x1401fa6fe
lea rax, [r15 + 0x60]
lea rbp, [r15 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [r15 + 0x40]
lea rbx, [r13 + 0xc00]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x98]
mov r9d, 0xc00
lea r13, [rbx - 0xc00]
mov rcx, qword [rsp + 0x38]
call qword [r15 + 0x168]
mov r12d, dword [rsp + 0x28]
mov r14, qword [rsp + 0x98]
nop word [rax + rax]
add r12d, 1
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call rsi
mov eax, r12d
add r13, 0x10
add r14, 0x10
bswap eax
mov dword [r15 + 0xc], eax
mov rax, qword [r14 - 0x10]
xor rax, qword [r15 + 0x10]
mov qword [r13 - 0x10], rax
mov rax, qword [r14 - 8]
xor rax, qword [r15 + 0x18]
mov qword [r13 - 8], rax
cmp r13, rbx
jne 0x1401fa688
add dword [rsp + 0x28], 0xc0
lea rbx, [r13 + 0xc00]
add qword [rsp + 0x98], 0xc00
sub qword [rsp + 0xa8], 0xc00
cmp qword [rsp + 0xa8], 0xbff
ja 0x1401fa64f
mov r9, qword [rsp + 0xa8]
and r9, 0xfffffffffffffff0
je 0x1401fa7ce
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
mov r8, qword [rsp + 0x98]
mov rbx, r13
call qword [r15 + 0x168]
mov r11d, dword [rsp + 0x28]
lea rdx, [r15 + 0x10]
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov r14d, r11d
lea r12, [rbp + rcx]
add r14d, 1
mov qword [rsp + 0x30], rdx
mov r8, rdi
mov rcx, r15
call rsi
mov eax, r14d
add rbp, 0x10
add rbx, 0x10
bswap eax
mov dword [r15 + 0xc], eax
mov rax, qword [rbp - 0x10]
xor rax, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x30]
mov qword [rbx - 0x10], rax
mov rax, qword [rbp - 8]
xor rax, qword [r15 + 0x18]
mov qword [rbx - 8], rax
mov rax, r12
sub rax, rbp
cmp rax, 0xf
ja 0x1401fa74b
mov rax, qword [rsp + 0xa8]
and qword [rsp + 0xa8], 0xf
lea rdx, [rax - 0x10]
mov eax, dword [rsp + 0x28]
shr rdx, 4
lea eax, [rax + rdx + 1]
add rdx, 1
shl rdx, 4
add qword [rsp + 0x98], rdx
mov dword [rsp + 0x28], eax
add r13, rdx
cmp qword [rsp + 0xa8], 0
je 0x1401faa3b
lea rdx, [r15 + 0x10]
mov r8, rdi
mov rcx, r15
call rsi
mov edx, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x98]
mov r8d, dword [rsp + 0x2c]
add edx, 1
bswap edx
mov dword [r15 + 0xc], edx
movzx edx, byte [rbx]
mov rax, r8
lea ecx, [r8 + 1]
mov byte [r15 + r8 + 0x190], dl
mov r8, qword [rsp + 0xa8]
xor dl, byte [r15 + 0x10]
mov byte [r13], dl
sub r8, 1
je 0x1401faa33
movzx edx, byte [rbx + 1]
mov r11d, ecx
lea r9d, [rax + 2]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x11]
cmp qword [rsp + 0xa8], 2
mov byte [r13 + 1], dl
je 0x1401faa33
movzx edx, byte [rbx + 2]
lea r11d, [rax + 3]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x12]
cmp qword [rsp + 0xa8], 3
mov byte [r13 + 2], dl
je 0x1401faa33
movzx edx, byte [rbx + 3]
lea r9d, [rax + 4]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x13]
cmp qword [rsp + 0xa8], 4
mov byte [r13 + 3], dl
je 0x1401faa33
movzx edx, byte [rbx + 4]
lea r11d, [rax + 5]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x14]
cmp qword [rsp + 0xa8], 5
mov byte [r13 + 4], dl
je 0x1401faa33
movzx edx, byte [rbx + 5]
lea r9d, [rax + 6]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x15]
cmp qword [rsp + 0xa8], 6
mov byte [r13 + 5], dl
je 0x1401faa33
movzx edx, byte [rbx + 6]
lea r11d, [rax + 7]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x16]
cmp qword [rsp + 0xa8], 7
mov byte [r13 + 6], dl
je 0x1401faa33
movzx edx, byte [rbx + 7]
lea r9d, [rax + 8]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x17]
cmp qword [rsp + 0xa8], 8
mov byte [r13 + 7], dl
je 0x1401faa33
movzx edx, byte [rbx + 8]
lea r11d, [rax + 9]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x18]
cmp qword [rsp + 0xa8], 9
mov byte [r13 + 8], dl
je 0x1401faa33
movzx edx, byte [rbx + 9]
lea r9d, [rax + 0xa]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x19]
cmp qword [rsp + 0xa8], 0xa
mov byte [r13 + 9], dl
je 0x1401faa33
movzx edx, byte [rbx + 0xa]
lea r11d, [rax + 0xb]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x1a]
cmp qword [rsp + 0xa8], 0xb
mov byte [r13 + 0xa], dl
je 0x1401faa33
movzx edx, byte [rbx + 0xb]
lea r9d, [rax + 0xc]
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x1b]
cmp qword [rsp + 0xa8], 0xc
mov byte [r13 + 0xb], dl
je 0x1401faa33
movzx edx, byte [rbx + 0xc]
lea r11d, [rax + 0xd]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x1c]
cmp qword [rsp + 0xa8], 0xd
mov byte [r13 + 0xc], dl
je 0x1401faa33
movzx edx, byte [rbx + 0xd]
add eax, 0xe
mov r9d, eax
mov byte [r15 + r11 + 0x190], dl
xor dl, byte [r15 + 0x1d]
cmp qword [rsp + 0xa8], 0xe
mov byte [r13 + 0xd], dl
je 0x1401faa33
movzx edx, byte [rbx + 0xe]
mov byte [r15 + r9 + 0x190], dl
xor dl, byte [r15 + 0x1e]
mov byte [r13 + 0xe], dl
lea eax, [rcx + r8]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [r15 + 0x178], eax
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r15 + 0xc]
bswap eax
mov dword [rsp + 0x28], eax
mov eax, r9d
and eax, 0xf
je 0x1401fab47
cmp qword [rsp + 0xa8], 0
je 0x1401fab0e
mov r8, qword [rsp + 0x98]
mov r10, qword [rsp + 0xa8]
jmp 0x1401faa95
test r10, r10
je 0x1401faaf6
movzx edx, byte [r8]
mov ecx, r9d
add r13, 1
add r8, 1
add r9d, 1
sub r10, 1
mov byte [r15 + rcx + 0x190], dl
mov ecx, eax
add eax, 1
xor dl, byte [r15 + rcx + 0x10]
mov byte [r13 - 1], dl
and eax, 0xf
jne 0x1401faa90
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x98], r8
mov qword [rsp + 0xa8], r10
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
lea r8, [r15 + 0x190]
call qword [r15 + 0x168]
jmp 0x1401fa620
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x98], r8
mov qword [rsp + 0xa8], r10
test eax, eax
je 0x1401faadb
mov dword [r15 + 0x178], r9d
xor eax, eax
jmp 0x1401faa48
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
call qword [r15 + 0x170]
xor eax, eax
mov dword [r15 + 0x17c], 0
jmp 0x1401faa48
mov eax, 0xffffffff
jmp 0x1401faa48
test r9d, r9d
mov dword [rsp + 0x2c], r9d
setne dl
jmp 0x1401fa5ee