Function at 0x2be3c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x00047100]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, qword [rcx + 0x7f8]
mov rsi, rdx
mov rdi, rcx
mov byte [rbp], r8b
movzx eax, word [rcx + 0x37e]
mov qword [rsp + 0x50], rbp
rol ax, 8
mov word [rbp + 1], ax
movzx eax, dx
rol ax, 8
mov word [rbp + 3], ax
cmp dword [rcx + 0x444], 0
je 0x2c2cc
mov rdx, qword [rcx + 0x3a0]
mov r13d, 7
test rdx, rdx
je 0x2bf9b
movzx eax, word [rcx + 0x37e]
mov ecx, 0x300
cmp ax, cx
jne 0x2bf03
mov rdx, qword [rdi + 0xa70]
lea rax, [rsi + rbp + 5]
lea rcx, [rbp + 5]
mov qword [rsp + 0x30], rax
lea r12, [rdi + 0xaa0]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov r9, rbp
mov rcx, rdi
mov r8, r12
call fcn.0003496c
test eax, eax
je 0x2bf75
jmp 0x2c2f2
mov ecx, 0x301
cmp ax, cx
jb 0x2bfcf
mov r9, qword [rdi + 0x3b0]
mov r8, qword [rdi + 0xa70]
lea rcx, [rdi + 0x460]
call fcn.000340e4
mov rax, qword [rdi + 0x460]
lea r12, [rdi + 0xaa0]
lea rcx, [rdi + 0x468]
mov rdx, r12
mov r8d, 8
call qword [rax + 0x40]
mov rax, qword [rdi + 0x460]
lea r8, [rsi + 5]
lea rcx, [rdi + 0x468]
mov rdx, rbp
call qword [rax + 0x40]
lea rdx, [rsi + rbp + 5]
lea rcx, [rdi + 0x460]
call fcn.000341cc
mov rax, qword [rdi + 0x3a0]
add rsi, qword [rax + 0x28]
movzx eax, si
rol ax, 8
mov word [rbp + 3], ax
mov rax, r13
add byte [rax + r12], 1
jne 0x2bf9b
sub rax, 1
jns 0x2bf8e
mov r10, qword [rdi + 0x390]
test r10, r10
je 0x2c2cc
mov eax, dword [rdi + 0x398]
test eax, eax
jne 0x2bfd9
mov rcx, qword [rdi + 0x450]
lea rdx, [rbp + 5]
mov r9, rsi
mov r8, rdx
call qword [r10 + 0x28]
jmp 0x2c2cc
mov eax, 0xec
jmp 0x2c2f2
mov r12d, 2
cmp eax, r12d
jne 0x2c126
mov eax, 0x302
cmp word [rdi + 0x37e], ax
jb 0x2c034
mov rax, qword [rdi + 0x3c8]
lea rdx, [rbp + 5]
mov r8, rsi
lea rcx, [rax + rbp + 5]
call fcn.0003a6f0
mov r11, qword [rdi + 0x18]
mov r8, qword [rdi + 0x3c8]
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 5]
call qword [r11 + 0x30]
test eax, eax
jne 0x2c2f2
add rsi, qword [rdi + 0x3c8]
mov rax, qword [rdi + 0x390]
xor edx, edx
mov rcx, qword [rax + 0x18]
lea rax, [rsi + 1]
div rcx
test rdx, rdx
je 0x2c053
sub rcx, rdx
mov rdx, rcx
xor ecx, ecx
lea r8, [rsi + rbp + 5]
inc ecx
mov byte [r8], dl
inc r8
mov eax, ecx
cmp rax, rdx
jbe 0x2c05a
lea rsi, [rsi + rdx + 1]
lea rbx, [rbp + 5]
movzx eax, si
mov r14, rsi
mov r13, rbx
rol ax, 8
mov word [rbp + 3], ax
mov rax, qword [rdi + 0x450]
mov r12, qword [rdi + 0x390]
mov r15, qword [rdi + 0xa90]
mov qword [rsp + 0x60], rax
mov rax, qword [r12 + 0x18]
cmp rsi, rax
jb 0x2c113
mov rbp, qword [rsp + 0x60]
xor edx, edx
test rax, rax
je 0x2c0d9
mov r8, r15
mov r9, rbx
mov rcx, r13
sub r8, r13
sub r9, r13
mov al, byte [r8 + rcx]
inc rdx
xor al, byte [rcx]
mov byte [r9 + rcx], al
inc rcx
cmp rdx, qword [r12 + 0x18]
jb 0x2c0c2
mov r8, rbx
mov rdx, rbx
mov rcx, rbp
call qword [r12 + 0x38]
mov r8, qword [r12 + 0x18]
mov rdx, rbx
mov rcx, r15
call fcn.0003a6f0
mov rax, qword [r12 + 0x18]
add r13, qword [r12 + 0x18]
add rbx, qword [r12 + 0x18]
sub r14, rax
cmp r14, rax
jae 0x2c0ac
mov rbp, qword [rsp + 0x50]
test r14, r14
je 0x2c2cc
mov eax, 0xe5
jmp 0x2c2f2
cmp eax, 6
je 0x2c13a
cmp eax, r13d
je 0x2c13a
mov eax, 0xf4
jmp 0x2c2f2
mov r8, qword [rdi + 0x3c0]
mov rbx, qword [rdi + 0x3c8]
mov rdx, qword [rdi + 0xa90]
lea rcx, [rsp + 0x50]
lea r14, [r8 + rbx]
call fcn.0003a6f0
mov rax, qword [rdi + 0x3c0]
mov r11, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + rax + 0x50]
mov r8, rbx
call qword [r11 + 0x30]
test eax, eax
jne 0x2c2f2
mov rax, qword [rdi + 0x3c8]
lea rdx, [rbp + 5]
mov r8, rsi
lea rcx, [rax + rbp + 5]
call fcn.0003a6f0
mov r11, qword [rdi + 0x3c0]
mov r8, qword [rdi + 0x3c8]
lea rdx, [rsp + r11 + 0x50]
lea rcx, [rbp + 5]
call fcn.0003a6f0
mov rax, qword [rdi + 0xaa0]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov eax, dword [rbp]
mov dword [rcx], eax
mov al, byte [rbp + 4]
mov byte [rcx + 4], al
mov rax, qword [rdi + 0x3c8]
lea r8, [rax + rbp + 5]
mov eax, dword [rdi + 0x398]
lea rdx, [rsi + r8]
cmp eax, 6
jne 0x2c23e
mov rcx, qword [rdi + 0x390]
mov rax, qword [rdi + 0x3d0]
test rcx, rcx
je 0x2c295
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov rdx, qword [rdi + 0x450]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.00036758
mov r12d, eax
jmp 0x2c295
cmp eax, r13d
jne 0x2c28f
mov rcx, qword [rdi + 0x390]
mov rax, qword [rdi + 0x3d0]
test rcx, rcx
je 0x2c295
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov rdx, qword [rdi + 0x450]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x20], rax
call fcn.00035ee8
jmp 0x2c239
mov r12d, 0xf4
test r12d, r12d
je 0x2c29f
mov eax, r12d
jmp 0x2c2f2
mov rax, qword [rdi + 0x3d0]
add rax, qword [rdi + 0x3c8]
add rsi, rax
movzx eax, si
rol ax, 8
mov word [rbp + 3], ax
add byte [r13 + rdi + 0xaa0], 1
jne 0x2c2cc
sub r13, 1
jns 0x2c2bb
mov rcx, qword [rdi + 8]
add rsi, 5
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call fcn.000116a4
movsxd rcx, eax
sub rcx, rsi
neg rcx
sbb eax, eax
and eax, 0x208
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.0003a660
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret