Function at 0x1400229c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x14007a0d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140022a5a
lea rdx, [0x14005d3b8]
lea rcx, [rbp - 0x28]
call fcn.14000ba10
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140022a1f
mov rcx, qword [rax]
lea rax, vtable.std::exception.0
mov qword [rbp - 0x50], rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x60], rcx
mov byte [rbp - 0x58], 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call fcn.140036b54
lea rdx, [0x140078118]
lea rcx, [rbp - 0x50]
call fcn.140034c28
nop
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x140022efe
cmp r9d, 0x28
je 0x140022efe
movsxd rcx, dword [rbp + 0x60]
lea eax, [rcx - 0x10]
test eax, 0xffffffe7
jne 0x140022ea6
cmp ecx, 0x28
je 0x140022ea6
mov dword [rbx + 0x3cc], r9d
mov dword [rbx + 0x3d0], ecx
mov r8, rcx
lea rcx, [rbx + 0x3d8]
mov rdx, rdi
call fcn.1400347f0
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.1400347f0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x140022ae9
cmp eax, 0x18
mov eax, 0xe
jne 0x140022b09
mov ecx, 0xc
cmp dword [rbx + 0x3d0], 0x20
cmovne eax, ecx
jmp 0x140022b09
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x140022af9
lea eax, [rdx - 6]
jmp 0x140022b09
mov eax, 0xe
mov ecx, 0xc
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r12, eax
xor edx, edx
mov r15, r12
cmp dword [rbx + 0x3d4], edx
jl 0x140022b4f
lea r8, [rbx + 0xc]
test r12d, r12d
jle 0x140022b41
mov rdi, r8
xor eax, eax
mov rcx, r12
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140022b32
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x140022b7d
lea r8, [rbx + 0x1ec]
test r12d, r12d
jle 0x140022b6f
mov rdi, r8
xor eax, eax
mov rcx, r12
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140022b60
mov r14d, dword [rbx + 0x3d4]
inc r14d
imul r14d, r12d
mov eax, dword [rbx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r8, eax
lea rdx, [rbx + 0x418]
test eax, eax
jle 0x140022bde
mov edi, r8d
nop dword [rax + rax]
movzx ecx, byte [rsi]
shl ecx, 0x18
mov dword [rdx], ecx
movzx eax, byte [rsi + 1]
shl eax, 0x10
or dword [rdx], eax
movzx eax, byte [rsi + 2]
shl eax, 8
or dword [rdx], eax
movzx eax, byte [rsi + 3]
or dword [rdx], eax
lea rsi, [rsi + 4]
lea rdx, [rdx + 4]
sub rdi, 1
jne 0x140022bb0
xor r9d, r9d
mov r11, r8
xor r10d, r10d
lea rsi, [0x140000000]
test r8d, r8d
jle 0x140022c49
lea r8, [rbx + 0x418]
nop word [rax + rax]
cmp r9d, r14d
jge 0x140022e18
mov eax, r9d
cdq
idiv r12d
movsxd rdi, edx
movsxd rcx, eax
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
mov dword [rbx + rcx*4 + 0x1ec], eax
inc r10
add r8, 4
inc r9d
cmp r10, r11
jl 0x140022c00
cmp r9d, r14d
jge 0x140022e18
lea r15, [0x14005d260]
nop dword [rax]
mov edi, dword [rbx + r11*4 + 0x414]
movsxd rdx, edi
mov rax, rdx
sar rax, 0x10
movzx ecx, al
lea r10, [0x140000000]
movsx r8d, byte [rcx + r10 + 0x5a060]
movsx eax, byte [r15]
xor r8d, eax
shl r8d, 8
mov rax, rdx
sar rax, 8
movzx ecx, al
movzx eax, byte [rcx + r10 + 0x5a060]
xor r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + r10 + 0x5a060]
xor r8d, eax
shl r8d, 8
mov eax, edi
shr rax, 0x18
movzx eax, byte [rax + r10 + 0x5a060]
xor r8d, eax
xor dword [rbx + 0x418], r8d
lea r15, [r15 + 1]
cmp r11d, 8
je 0x140022d14
cmp r11, 1
jle 0x140022daf
lea rcx, [rbx + 0x41c]
lea rdx, [r11 - 1]
nop word [rax + rax]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140022d00
jmp 0x140022daf
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140022d20
mov eax, dword [rbx + 0x424]
movsxd rdx, eax
mov ecx, eax
shr rcx, 0x18
movsx edi, byte [rcx + r10 + 0x5a060]
shl edi, 8
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r10 + 0x5a060]
xor edi, eax
shl edi, 8
mov rax, rdx
sar rax, 8
movzx ecx, al
movzx eax, byte [rcx + r10 + 0x5a060]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r10 + 0x5a060]
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r11, 5
jle 0x140022daf
lea rax, [rbx + 0x42c]
lea rdx, [r11 - 5]
nop
mov ecx, dword [rax - 4]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140022da0
xor r10d, r10d
test r11, r11
jle 0x140022e05
lea r8, [rbx + 0x418]
nop
cmp r9d, r14d
jge 0x140022e0e
mov eax, r9d
cdq
idiv r12d
movsxd rdi, edx
movsxd rcx, eax
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
mov dword [rbx + rcx*4 + 0x1ec], eax
inc r10
add r8, 4
inc r9d
cmp r10, r11
jl 0x140022dc0
cmp r9d, r14d
jl 0x140022c60
mov r15, r12
lea rsi, [0x140000000]
mov r10d, 1
cmp dword [rbx + 0x3d4], r10d
jle 0x140022e9d
lea r11, [rbx + 0x20c]
nop
test r15, r15
jle 0x140022e8d
mov r8, r11
mov r9, r15
nop dword [rax + rax]
mov eax, dword [r8]
movsxd rdi, eax
mov edx, eax
shr rdx, 0x18
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov edx, dword [rsi + rdx*4 + 0x5c260]
xor edx, dword [rsi + rcx*4 + 0x5c660]
mov rax, rdi
sar rax, 8
movzx ecx, al
xor edx, dword [rsi + rcx*4 + 0x5ca60]
movzx eax, dil
xor edx, dword [rsi + rax*4 + 0x5ce60]
mov dword [r8], edx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140022e40
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x140022e30
mov byte [rbx + 8], 1
jmp 0x140022f56
lea rdx, [0x14005d400]
lea rcx, [rbp - 0x28]
call fcn.14000ba10
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140022ec3
mov rcx, qword [rax]
lea rax, vtable.std::exception.0
mov qword [rbp - 0x50], rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x60], rcx
mov byte [rbp - 0x58], 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call fcn.140036b54
lea rdx, [0x140078118]
lea rcx, [rbp - 0x50]
call fcn.140034c28
nop
lea rdx, [0x14005d3d0]
lea rcx, [rbp - 0x28]
call fcn.14000ba10
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140022f1b
mov rcx, qword [rax]
lea rax, vtable.std::exception.0
mov qword [rbp - 0x50], rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x60], rcx
mov byte [rbp - 0x58], 1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call fcn.140036b54
lea rdx, [0x140078118]
lea rcx, [rbp - 0x50]
call fcn.140034c28
nop
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400335a0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret