Function at 0x42f1d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [rcx + 0x180]
mov rbp, qword [rcx + 0x188]
mov r14, rcx
mov r10, r8
xor ecx, ecx
mov qword [rsp + 0xa8], rdx
movabs r8, 0xfffffffe0
mov rdx, r9
add rdx, qword [r14 + 0x38]
mov qword [rsp + 0xb8], r9
setb cl
cmp rdx, r8
ja 0x42f85c
test rcx, rcx
jne 0x42f85c
mov eax, dword [r14 + 0x17c]
mov qword [r14 + 0x38], rdx
test eax, eax
je 0x42f75f
test r9, r9
je 0x42f83b
movdqu xmm1, xmmword [r14 + 0x40]
mov eax, dword [r14 + 0xc]
pxor xmm0, xmm0
mov dword [r14 + 0x17c], 0
mov dword [rsp + 0x34], 0x10
mov edx, eax
movups xmmword [r14 + 0x190], xmm1
bswap edx
movups xmmword [r14 + 0x40], xmm0
mov dword [rsp + 0x30], edx
mov edx, 1
cmp qword [rsp + 0xb8], 0xf
jbe 0x42f2c5
test dl, dl
je 0x42f2c5
mov qword [rsp + 0xb0], r10
mov r9d, dword [rsp + 0x34]
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
lea r8, [r14 + 0x190]
call qword [r14 + 0x168]
mov dword [rsp + 0x34], 0
mov r10, qword [rsp + 0xb0]
cmp qword [rsp + 0xb8], 0xbff
jbe 0x42f3ce
lea rax, [r14 + 0x60]
mov qword [rsp + 0x28], r10
lea r12, [r14 + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [r14 + 0x40]
lea rsi, [r10 + 0xc00]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rdi
mov edi, dword [rsp + 0x30]
mov r13, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x28]
mov r15d, edi
mov rdi, qword [rsp + 0x38]
nop word [rax + rax]
add r15d, 1
mov r8, rbp
mov rdx, r12
mov rcx, r14
call rdi
mov eax, r15d
add rbx, 0x10
add r13, 0x10
bswap eax
mov dword [r14 + 0xc], eax
mov rax, qword [r13 - 0x10]
xor rax, qword [r14 + 0x10]
mov qword [rbx - 0x10], rax
mov rax, qword [r13 - 8]
xor rax, qword [r14 + 0x18]
mov qword [rbx - 8], rax
cmp rbx, rsi
jne 0x42f320
mov rdi, qword [rsp + 0x28]
add dword [rsp + 0x30], 0xc0
mov r15, rsi
mov r9d, 0xc00
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rsi, 0xc00
add qword [rsp + 0xa8], 0xc00
mov r8, rdi
call qword [r14 + 0x168]
mov rax, rdi
sub qword [rsp + 0xb8], 0xc00
add rax, 0xc00
cmp qword [rsp + 0xb8], 0xbff
mov qword [rsp + 0x28], rax
ja 0x42f2fe
mov rdi, qword [rsp + 0x38]
mov r10, r15
mov r9, qword [rsp + 0xb8]
and r9, 0xfffffffffffffff0
je 0x42f4bd
mov r12d, dword [rsp + 0x30]
lea rdx, [r14 + 0x10]
mov rsi, r10
mov r13, r9
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
mov r15, r10
mov rax, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
add r12d, 1
mov qword [rsp + 0x38], rdx
mov r8, rbp
mov rcx, r14
call rdi
mov eax, r12d
add rbx, 0x10
add rsi, 0x10
bswap eax
mov dword [r14 + 0xc], eax
mov rax, qword [rbx - 0x10]
xor rax, qword [r14 + 0x10]
mov rdx, qword [rsp + 0x38]
mov qword [rsi - 0x10], rax
mov rax, qword [rbx - 8]
xor rax, qword [r14 + 0x18]
mov qword [rsi - 8], rax
mov rax, qword [rsp + 0x28]
sub rax, rbx
cmp rax, 0xf
ja 0x42f40d
mov rax, qword [rsp + 0xb8]
mov r10, r15
mov r9, r13
lea rcx, [r14 + 0x40]
and qword [rsp + 0xb8], 0xf
lea rdx, [rax - 0x10]
mov eax, dword [rsp + 0x30]
shr rdx, 4
lea eax, [rax + rdx + 1]
add rdx, 1
shl rdx, 4
mov dword [rsp + 0x30], eax
add r10, rdx
add qword [rsp + 0xa8], rdx
lea rdx, [r14 + 0x60]
mov r8, r10
mov qword [rsp + 0xb0], r10
sub r8, r13
call qword [r14 + 0x168]
mov r10, qword [rsp + 0xb0]
cmp qword [rsp + 0xb8], 0
mov qword [rsp + 0xb0], r10
je 0x42f741
lea rdx, [r14 + 0x10]
mov r8, rbp
mov rcx, r14
call rdi
mov rax, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
mov r10, qword [rsp + 0xb0]
add edx, 1
bswap edx
mov dword [r14 + 0xc], edx
movzx edx, byte [r14 + 0x10]
lea ecx, [r8 + 1]
xor dl, byte [rax]
mov rax, r8
mov byte [r10], dl
mov byte [r14 + r8 + 0x190], dl
mov r8, qword [rsp + 0xb8]
sub r8, 1
je 0x42f739
mov rdi, qword [rsp + 0xa8]
movzx edx, byte [r14 + 0x11]
mov r11d, ecx
lea r9d, [rax + 2]
xor dl, byte [rdi + 1]
cmp qword [rsp + 0xb8], 2
mov byte [r10 + 1], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [r14 + 0x12]
xor dl, byte [rdi + 2]
lea r11d, [rax + 3]
cmp qword [rsp + 0xb8], 3
mov byte [r10 + 2], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 3]
xor dl, byte [r14 + 0x13]
lea r9d, [rax + 4]
cmp qword [rsp + 0xb8], 4
mov byte [r10 + 3], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 4]
xor dl, byte [r14 + 0x14]
lea r11d, [rax + 5]
cmp qword [rsp + 0xb8], 5
mov byte [r10 + 4], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 5]
xor dl, byte [r14 + 0x15]
lea r9d, [rax + 6]
cmp qword [rsp + 0xb8], 6
mov byte [r10 + 5], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 6]
xor dl, byte [r14 + 0x16]
lea r11d, [rax + 7]
cmp qword [rsp + 0xb8], 7
mov byte [r10 + 6], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 7]
xor dl, byte [r14 + 0x17]
lea r9d, [rax + 8]
cmp qword [rsp + 0xb8], 8
mov byte [r10 + 7], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 8]
xor dl, byte [r14 + 0x18]
lea r11d, [rax + 9]
cmp qword [rsp + 0xb8], 9
mov byte [r10 + 8], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 9]
xor dl, byte [r14 + 0x19]
lea r9d, [rax + 0xa]
cmp qword [rsp + 0xb8], 0xa
mov byte [r10 + 9], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 0xa]
xor dl, byte [r14 + 0x1a]
lea r11d, [rax + 0xb]
cmp qword [rsp + 0xb8], 0xb
mov byte [r10 + 0xa], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 0xb]
xor dl, byte [r14 + 0x1b]
lea r9d, [rax + 0xc]
cmp qword [rsp + 0xb8], 0xc
mov byte [r10 + 0xb], dl
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 0xc]
xor dl, byte [r14 + 0x1c]
lea r11d, [rax + 0xd]
cmp qword [rsp + 0xb8], 0xd
mov byte [r10 + 0xc], dl
mov byte [r14 + r9 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 0xd]
add eax, 0xe
xor dl, byte [r14 + 0x1d]
cmp qword [rsp + 0xb8], 0xe
mov byte [r10 + 0xd], dl
mov r9d, eax
mov byte [r14 + r11 + 0x190], dl
je 0x42f739
movzx edx, byte [rdi + 0xe]
xor dl, byte [r14 + 0x1e]
mov byte [r10 + 0xe], dl
mov byte [r14 + r9 + 0x190], dl
lea eax, [rcx + r8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [r14 + 0x178], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r14 + 0xc]
mov r9d, dword [r14 + 0x178]
mov edx, eax
mov eax, r9d
bswap edx
mov dword [rsp + 0x30], edx
and eax, 0xf
je 0x42f866
cmp qword [rsp + 0xb8], 0
je 0x42f82d
mov r8, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb8]
jmp 0x42f7a4
test r11, r11
je 0x42f815
mov ecx, eax
movzx edx, byte [r8]
add r10, 1
add eax, 1
xor dl, byte [r14 + rcx + 0x10]
mov ecx, r9d
add r8, 1
add r9d, 1
mov byte [r10 - 1], dl
sub r11, 1
mov byte [r14 + rcx + 0x190], dl
and eax, 0xf
jne 0x42f79f
mov dword [rsp + 0x34], eax
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xb0], r10
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
lea r8, [r14 + 0x190]
call qword [r14 + 0x168]
mov r10, qword [rsp + 0xb0]
jmp 0x42f2c5
mov dword [rsp + 0x34], eax
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r11
test eax, eax
je 0x42f7ea
mov dword [r14 + 0x178], r9d
xor eax, eax
jmp 0x42f74e
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
call qword [r14 + 0x170]
xor eax, eax
mov dword [r14 + 0x17c], 0
jmp 0x42f74e
mov eax, 0xffffffff
jmp 0x42f74e
test r9d, r9d
mov dword [rsp + 0x34], r9d
setne dl
jmp 0x42f283