Function at 0x4b8dd0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x238
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x18], r14
mov r14d, 4
mov rbp, rcx
mov dword [rcx + 0xe8], 0
lea r12, [rcx + 0x2d68]
mov qword [rsp], r14
mov edi, r14d
lea rsi, [rsp + 0x20]
mov qword [rax + 8], rbx
nop
nop
movzx edx, byte [r12]
xor r11d, r11d
mov r8d, edi
mov r9d, edx
and edx, 1
lea r10d, [r11 + 1]
or edx, 2
shr r9d, 1
dec r9d
mov ecx, r9d
shl edx, cl
sub r8d, edx
lea rbx, [rbp + rdx*2 + 0x2464]
nop
mov eax, r10d
mov edx, r8d
shr r8d, 1
movzx ecx, word [rbx + rax*2]
and edx, 1
mov eax, edx
shr rcx, 4
lea r10d, [rdx + r10*2]
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
add r11d, dword [rbp + rcx*4 + 0x810]
add r9d, 0xffffffff
jne 0x4b8e50
inc edi
mov dword [rsi], r11d
inc r12
add rsi, r14
cmp edi, 0x80
jb 0x4b8e20
mov qword [rsp + 0x228], r13
lea rdi, [rsp + 0x14]
lea rbx, [rbp + 0x12e4]
sub rdi, rbp
lea r13, [rbp + 0x2264]
lea r12, [rbp + 0x16ec]
sub rdi, 0x16e4
mov qword [rsp + 0x218], r15
nop
nop
mov esi, dword [rbp + 0xf0]
xor r15d, r15d
test esi, esi
je 0x4b9019
mov r14, rbx
nop
nop
nop
mov r11d, r15d
add r15d, 2
add r14, 8
shr r11d, 1
add r11d, 0x20
mov r9d, r11d
mov eax, r11d
and eax, 1
shr r9d, 1
movzx edx, word [r13 + r9*2]
neg eax
shr rax, 4
shr rdx, 4
and eax, 0x7f
xor rdx, rax
mov eax, r9d
shr r9d, 1
mov r10d, dword [rbp + rdx*4 + 0x810]
movzx edx, word [r13 + r9*2]
and eax, 1
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
mov eax, r9d
shr r9d, 1
add r10d, dword [rbp + rdx*4 + 0x810]
movzx edx, word [r13 + r9*2]
and eax, 1
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
add r10d, dword [rbp + rdx*4 + 0x810]
mov edx, r9d
shr r9d, 1
and edx, 1
mov eax, r9d
mov ecx, r9d
movzx ecx, word [r13 + rcx*2]
shr rax, 1
and r9d, 1
movzx r8d, word [r13 + rax*2]
shr rcx, 4
mov eax, r9d
neg eax
shr r8, 4
shr rax, 4
and eax, 0x7f
xor r8, rax
mov eax, edx
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
mov eax, dword [rbp + r8*4 + 0x810]
add eax, dword [rbp + rcx*4 + 0x810]
movzx ecx, word [r13 + r11*2]
add r10d, eax
mov rax, rcx
mov rdx, rcx
shr rax, 4
xor rdx, 0x7f0
mov eax, dword [rbp + rax*4 + 0x810]
shr rdx, 4
cmp r15d, esi
lea ecx, [r10 + rax]
mov dword [r14 - 8], ecx
mov eax, dword [rbp + rdx*4 + 0x810]
lea ecx, [r10 + rax]
mov dword [r14 - 4], ecx
jb 0x4b8ef0
mov r14, qword [rsp]
mov edx, 0xe
cmp esi, edx
jbe 0x4b9047
lea rcx, [rbx + 0x38]
nop
nop
nop
mov eax, edx
inc edx
add rcx, 4
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx - 4], eax
cmp edx, esi
jb 0x4b9030
mov eax, dword [rbx]
lea r9, [rbp + 0x2d68]
lea r8, [r12 + 8]
mov dword [r12 - 8], eax
mov eax, dword [rbx + 4]
mov r10d, 0x3e
mov dword [r12 - 4], eax
mov eax, dword [rbx + 8]
mov dword [r12], eax
mov eax, dword [rbx + 0xc]
mov dword [r12 + 4], eax
nop
nop
nop
movzx eax, byte [r9]
add r8, 8
add r9, 2
dec r10
mov edx, dword [rbx + rax*4]
mov eax, dword [rdi + r8 - 0xc]
lea ecx, [rdx + rax]
mov eax, dword [rdi + r8 - 8]
mov dword [r8 - 8], ecx
lea ecx, [rdx + rax]
mov dword [r8 - 4], ecx
jne 0x4b9080
add rbx, 0x100
sub r13, 0xffffffffffffff80
sub rdi, 0x200
add r12, 0x200
dec r14
mov qword [rsp], r14
jne 0x4b8ed0
mov r15, qword [rsp + 0x218]
mov r14, qword [rsp + 0x220]
mov r13, qword [rsp + 0x228]
mov r12, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x258]
mov rsi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x240]
add rsp, 0x238
ret