Function at 0x42f880
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 rdi, qword [rcx + 0x180]
mov rbp, qword [rcx + 0x188]
mov r14, rcx
mov r10, r8
xor ecx, ecx
mov qword [rsp + 0x98], rdx
movabs r8, 0xfffffffe0
mov rdx, r9
add rdx, qword [r14 + 0x38]
mov qword [rsp + 0xa8], r9
setb cl
cmp rdx, r8
ja 0x42fed4
test rcx, rcx
jne 0x42fed4
mov eax, dword [r14 + 0x17c]
mov qword [r14 + 0x38], rdx
test eax, eax
je 0x42fdd7
test r9, r9
je 0x42feb3
movdqu xmm1, xmmword [r14 + 0x40]
mov eax, dword [r14 + 0xc]
pxor xmm0, xmm0
mov dword [r14 + 0x17c], 0
mov dword [rsp + 0x2c], 0x10
mov edx, eax
movups xmmword [r14 + 0x190], xmm1
bswap edx
movups xmmword [r14 + 0x40], xmm0
mov dword [rsp + 0x28], edx
mov edx, 1
cmp qword [rsp + 0xa8], 0xf
jbe 0x42f975
test dl, dl
je 0x42f975
mov qword [rsp + 0xa0], r10
mov r9d, dword [rsp + 0x2c]
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
lea r8, [r14 + 0x190]
call qword [r14 + 0x168]
mov dword [rsp + 0x2c], 0
mov r10, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 0xbff
jbe 0x42fa5c
lea rax, [r14 + 0x60]
lea r12, [r14 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [r14 + 0x40]
lea rsi, [r10 + 0xc00]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x98]
mov r9d, 0xc00
lea rbx, [rsi - 0xc00]
mov rcx, qword [rsp + 0x38]
call qword [r14 + 0x168]
mov r15d, dword [rsp + 0x28]
mov r13, qword [rsp + 0x98]
nop word [rax + rax]
add r15d, 1
mov rdx, r12
mov r8, rbp
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]
mov rdx, rsi
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 0x42f9e0
add dword [rsp + 0x28], 0xc0
add rsi, 0xc00
add qword [rsp + 0x98], 0xc00
sub qword [rsp + 0xa8], 0xc00
cmp qword [rsp + 0xa8], 0xbff
ja 0x42f9a4
mov r10, rdx
mov r9, qword [rsp + 0xa8]
and r9, 0xfffffffffffffff0
je 0x42fb3d
mov qword [rsp + 0xa0], r10
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
mov r8, qword [rsp + 0x98]
call qword [r14 + 0x168]
mov ebx, dword [rsp + 0x28]
lea rdx, [r14 + 0x10]
mov r10, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov r12, r10
mov r15, r10
lea r13, [rsi + rcx]
add ebx, 1
mov qword [rsp + 0x30], rdx
mov r8, rbp
mov rcx, r14
call rdi
mov eax, ebx
add rsi, 0x10
add r12, 0x10
bswap eax
mov dword [r14 + 0xc], eax
mov rax, qword [rsi - 0x10]
xor rax, qword [r14 + 0x10]
mov rdx, qword [rsp + 0x30]
mov qword [r12 - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [r14 + 0x18]
mov qword [r12 - 8], rax
mov rax, r13
sub rax, rsi
cmp rax, 0xf
ja 0x42fab7
mov rax, qword [rsp + 0xa8]
mov r10, r15
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 r10, rdx
cmp qword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], r10
je 0x42fdb9
lea rdx, [r14 + 0x10]
mov r8, rbp
mov rcx, r14
call rdi
mov edx, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
mov rdi, qword [rsp + 0x98]
mov r10, qword [rsp + 0xa0]
add edx, 1
mov rax, r8
lea ecx, [r8 + 1]
bswap edx
mov dword [r14 + 0xc], edx
movzx edx, byte [rdi]
mov byte [r14 + r8 + 0x190], dl
mov r8, qword [rsp + 0xa8]
xor dl, byte [r14 + 0x10]
mov byte [r10], dl
sub r8, 1
je 0x42fdb1
movzx edx, byte [rdi + 1]
mov r11d, ecx
lea r9d, [rax + 2]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x11]
cmp qword [rsp + 0xa8], 2
mov byte [r10 + 1], dl
je 0x42fdb1
movzx edx, byte [rdi + 2]
lea r11d, [rax + 3]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x12]
cmp qword [rsp + 0xa8], 3
mov byte [r10 + 2], dl
je 0x42fdb1
movzx edx, byte [rdi + 3]
lea r9d, [rax + 4]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x13]
cmp qword [rsp + 0xa8], 4
mov byte [r10 + 3], dl
je 0x42fdb1
movzx edx, byte [rdi + 4]
lea r11d, [rax + 5]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x14]
cmp qword [rsp + 0xa8], 5
mov byte [r10 + 4], dl
je 0x42fdb1
movzx edx, byte [rdi + 5]
lea r9d, [rax + 6]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x15]
cmp qword [rsp + 0xa8], 6
mov byte [r10 + 5], dl
je 0x42fdb1
movzx edx, byte [rdi + 6]
lea r11d, [rax + 7]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x16]
cmp qword [rsp + 0xa8], 7
mov byte [r10 + 6], dl
je 0x42fdb1
movzx edx, byte [rdi + 7]
lea r9d, [rax + 8]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x17]
cmp qword [rsp + 0xa8], 8
mov byte [r10 + 7], dl
je 0x42fdb1
movzx edx, byte [rdi + 8]
lea r11d, [rax + 9]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x18]
cmp qword [rsp + 0xa8], 9
mov byte [r10 + 8], dl
je 0x42fdb1
movzx edx, byte [rdi + 9]
lea r9d, [rax + 0xa]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x19]
cmp qword [rsp + 0xa8], 0xa
mov byte [r10 + 9], dl
je 0x42fdb1
movzx edx, byte [rdi + 0xa]
lea r11d, [rax + 0xb]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x1a]
cmp qword [rsp + 0xa8], 0xb
mov byte [r10 + 0xa], dl
je 0x42fdb1
movzx edx, byte [rdi + 0xb]
lea r9d, [rax + 0xc]
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x1b]
cmp qword [rsp + 0xa8], 0xc
mov byte [r10 + 0xb], dl
je 0x42fdb1
movzx edx, byte [rdi + 0xc]
lea r11d, [rax + 0xd]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x1c]
cmp qword [rsp + 0xa8], 0xd
mov byte [r10 + 0xc], dl
je 0x42fdb1
movzx edx, byte [rdi + 0xd]
add eax, 0xe
mov r9d, eax
mov byte [r14 + r11 + 0x190], dl
xor dl, byte [r14 + 0x1d]
cmp qword [rsp + 0xa8], 0xe
mov byte [r10 + 0xd], dl
je 0x42fdb1
movzx edx, byte [rdi + 0xe]
mov byte [r14 + r9 + 0x190], dl
xor dl, byte [r14 + 0x1e]
mov byte [r10 + 0xe], dl
lea eax, [rcx + r8]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [r14 + 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 [r14 + 0xc]
mov r9d, dword [r14 + 0x178]
mov edx, eax
mov eax, r9d
bswap edx
mov dword [rsp + 0x28], edx
and eax, 0xf
je 0x42fede
cmp qword [rsp + 0xa8], 0
je 0x42fea5
mov r8, qword [rsp + 0x98]
mov r11, qword [rsp + 0xa8]
jmp 0x42fe1c
test r11, r11
je 0x42fe8d
movzx edx, byte [r8]
mov ecx, r9d
add r10, 1
add r8, 1
add r9d, 1
sub r11, 1
mov byte [r14 + rcx + 0x190], dl
mov ecx, eax
add eax, 1
xor dl, byte [r14 + rcx + 0x10]
mov byte [r10 - 1], dl
and eax, 0xf
jne 0x42fe17
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x98], r8
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xa0], r10
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
lea r8, [r14 + 0x190]
call qword [r14 + 0x168]
mov r10, qword [rsp + 0xa0]
jmp 0x42f975
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x98], r8
mov qword [rsp + 0xa8], r11
test eax, eax
je 0x42fe62
mov dword [r14 + 0x178], r9d
xor eax, eax
jmp 0x42fdc6
lea rdx, [r14 + 0x60]
lea rcx, [r14 + 0x40]
call qword [r14 + 0x170]
xor eax, eax
mov dword [r14 + 0x17c], 0
jmp 0x42fdc6
mov eax, 0xffffffff
jmp 0x42fdc6
test r9d, r9d
mov dword [rsp + 0x2c], r9d
setne dl
jmp 0x42f933