Function at 0x140227b08
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14033a080]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r11, qword [rcx + 0x70]
mov rdi, rcx
mov ebx, dword [rcx + 0x34]
mov r15, rdx
mov qword [rbp - 0x48], r9
mov r13d, r15d
mov r9, qword [rcx + 8]
mov eax, dword [rdi + 0x18]
sub r13d, r9d
mov r12, qword [rdi + 0x60]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], rdx
lea rdx, [rax + r9]
mov qword [rsp + 0x50], r9
mov r9d, dword [rdi + 0x1c]
mov qword [rbp - 0x58], rdx
mov edx, 1
mov qword [rbp - 0x70], r8
mov r8, qword [rcx + 0x38]
mov rcx, qword [rcx + 0x10]
add rax, rcx
mov qword [rbp - 0x78], rcx
mov ecx, dword [rdi + 0x100]
shl edx, cl
mov ecx, r13d
sub ecx, dword [rdi + 0x1c]
mov qword [rbp - 0x50], rax
mov eax, r13d
sub eax, edx
mov qword [rsp + 0x78], r11
cmp ecx, edx
mov qword [rsp + 0x60], r8
mov dword [rsp + 0x38], ebx
cmova r9d, eax
mov dword [rsp + 0x3c], r13d
mov eax, dword [rdi + 0x10c]
xor r14d, r14d
cmp dword [rdi + 0x28], r14d
mov qword [rbp - 0x60], r12
cmovne r9d, dword [rdi + 0x1c]
lea ecx, [r14 + 4]
mov dword [rsp + 0x44], r9d
cmp eax, ecx
lea esi, [r14 + 3]
mov qword [rsp + 0x48], rsi
cmovb ecx, eax
lea eax, [r14 + 1]
shl eax, cl
mov dword [rsp + 0x40], eax
cmp dword [rdi + 0x12c], r14d
jne 0x140227f1d
mov esi, dword [rdi + 0x2c]
lea r12d, [r14 + 0x18]
mov eax, r13d
mov qword [rsp + 0x58], r8
sub eax, esi
mov qword [rsp + 0x30], r11
mov r8d, ebx
cmp eax, 0x180
jbe 0x140227de3
lea eax, [rsi + 0x60]
mov dword [rsp + 0x30], eax
cmp esi, eax
jae 0x140227cfd
mov r15, qword [rsp + 0x50]
mov eax, r12d
mov r13d, dword [rsp + 0x30]
sub eax, ebx
mov qword [rsp + 0x58], rax
mov r12d, eax
mov r14d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [r15 + 8]
add rdx, r14
lea rcx, [rsp + 0x30]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x30], 0x9e3779b1
mov rcx, r12
mov r11, qword [rsp + 0x78]
mov r8d, 0xffffff0
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, r8d
prefetcht0 byte [r11 + rax*4]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rcx + rax]
mov rax, r14
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r10d
shr eax, 4
and eax, r8d
mov r9d, eax
lea r8, [rcx + rax]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [r11 + rax*4], esi
inc esi
cmp esi, r13d
jb 0x140227c4a
mov r15, qword [rsp + 0x70]
xor r14d, r14d
mov r13d, dword [rsp + 0x3c]
lea r12d, [r14 + 0x18]
mov r9, qword [rdi + 0x70]
lea esi, [r13 - 0x20]
mov r8d, dword [rdi + 0x34]
lea rcx, [r15 + 1]
mov qword [rsp + 0x30], r9
mov edx, ecx
mov r9, qword [rdi + 0x38]
mov qword [rsp + 0x58], r9
mov r9, qword [rsp + 0x50]
sub edx, r9d
mov eax, esi
sub edx, esi
add rax, r9
inc edx
cmp rax, rcx
mov eax, 8
cmova edx, r14d
cmp edx, eax
cmova edx, eax
lea eax, [rdx + rsi]
cmp esi, eax
jae 0x140227de3
mov r15, qword [rsp + 0x30]
mov eax, r12d
mov r13, qword [rsp + 0x58]
sub eax, r8d
mov qword [rbp - 0x80], rax
mov r12d, edx
mov r14d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [r9 + r14]
mov r8d, 4
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x30], 0x9e3779b1
mov rcx, qword [rbp - 0x80]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [rax + r13]
mov r9, qword [rsp + 0x50]
mov rax, r14
and eax, 7
inc r14
mov dword [rdi + rax*4 + 0x40], edx
sub r12, 1
jne 0x140227d64
mov rax, qword [rdi + 0x70]
xor r14d, r14d
mov r8d, dword [rdi + 0x34]
mov r15, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x3c]
mov qword [rsp + 0x30], rax
lea r12d, [r14 + 0x18]
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x58], rax
mov rcx, qword [rdi + 8]
mov qword [rbp - 0x68], rcx
cmp esi, r13d
jae 0x140227eb2
mov r14, qword [rsp + 0x30]
mov eax, r12d
mov r15, qword [rsp + 0x58]
sub eax, r8d
mov qword [rbp - 0x80], rax
mov r12d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [rcx + 8]
add rdx, r12
lea rcx, [rsp + 0x30]
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x30], 0x9e3779b1
mov rcx, qword [rbp - 0x80]
mov eax, ebx
xor rdx, rax
shr rdx, cl
mov ecx, 0xffffff0
mov eax, edx
shr eax, 4
and eax, ecx
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r15 + rax]
mov rax, r12
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r10d
shr eax, 4
and eax, ecx
mov r9d, eax
lea r8, [r15 + rax]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r12
not ecx
and ecx, 0xf
add edx, ecx
mov rcx, qword [rbp - 0x68]
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [r14 + rax*4], esi
inc esi
cmp esi, r13d
jb 0x140227e0b
mov r15, qword [rsp + 0x70]
xor r14d, r14d
lea r12d, [r14 + 0x18]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
add rdx, 8
mov ebx, r13d
add rdx, rbx
mov dword [rdi + 0x2c], r13d
mov r8d, 4
call sub.VCRUNTIME140.dll_memcpy
imul edx, dword [rsp + 0x30], 0x9e3779b1
mov ecx, r12d
sub ecx, dword [rsp + 0x38]
mov eax, dword [rbp - 0x60]
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x78]
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r8, qword [rsp + 0x60]
prefetcht0 byte [rax + r8]
mov rsi, qword [rsp + 0x48]
and ebx, 7
mov r9d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
jmp 0x140227f57
mov r8d, 4
lea rcx, [rsp + 0x38]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
imul r9d, dword [rsp + 0x38], 0x9e3779b1
mov ecx, 0x18
mov r8, qword [rsp + 0x60]
sub ecx, ebx
mov eax, r12d
mov dword [rdi + 0x2c], r13d
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x78]
add dword [rdi + 0x68], r9d
mov eax, r9d
shr eax, 4
mov rbx, r14
and eax, 0xffffff0
lea rcx, [rcx + rax*4]
lea r11, [rax + r8]
mov qword [rsp + 0x60], rcx
movzx r12d, byte [r11]
movdqu xmm0, xmmword [r11]
movsx eax, r9b
movd xmm1, eax
mov eax, r12d
and eax, 0xf
punpcklbw xmm1, xmm1
mov ecx, eax
punpcklwd xmm1, xmm1
mov edx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm0, xmm1
pmovmskb r8d, xmm0
and ecx, 0xf
movzx eax, r8w
shl ax, cl
mov cl, dl
movzx r10d, ax
movzx eax, r8w
mov r8, qword [rsp + 0x60]
shr rax, cl
or r10, rax
jbe 0x140228028
mov rdx, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x40]
mov r15, qword [rbp - 0x78]
mov esi, dword [rsp + 0x44]
test r13d, r13d
je 0x140228019
bsf rcx, r10
add ecx, r12d
and ecx, 0xf
mov ecx, dword [r8 + rcx*4]
je 0x140228010
cmp ecx, esi
jb 0x140228019
cmp ecx, dword [rsp + 0x68]
jb 0x140228001
prefetcht0 byte [rcx + rdx]
jmp 0x140228006
prefetcht0 byte [rcx + r15]
mov dword [rbp + rbx*4 - 0x40], ecx
inc rbx
dec r13d
lea rax, [r10 - 1]
and r10, rax
ja 0x140227fdc
mov r15, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x48]
lea edx, [r12 - 1]
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r9b
mov eax, dword [rdi + 0x2c]
mov dword [r8 + rdx*4], eax
inc dword [rdi + 0x2c]
test rbx, rbx
je 0x140228161
mov edi, dword [rbp + r14*4 - 0x40]
mov eax, edi
cmp edi, dword [rsp + 0x68]
jb 0x1402280c3
mov r12, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov r8d, 4
add rsi, rax
lea rdx, [r12 - 3]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [r12 - 3]
mov r8d, 4
add rdx, r15
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jne 0x140228152
mov r12, qword [rbp - 0x70]
mov rdx, rsi
mov r8, r12
mov rcx, r15
call fcn.140206fc0
jmp 0x14022811f
mov rsi, qword [rbp - 0x78]
lea rcx, [rsp + 0x30]
add rsi, rax
mov r12d, 4
mov rdx, rsi
mov r8d, r12d
call sub.VCRUNTIME140.dll_memcpy
mov r8d, r12d
lea rcx, [rsp + 0x38]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jne 0x14022814b
mov rax, qword [rbp - 0x58]
lea rdx, [rsi + 4]
mov r12, qword [rbp - 0x70]
lea rcx, [r15 + 4]
mov r9, qword [rbp - 0x50]
mov r8, r12
mov qword [rsp + 0x20], rax
call fcn.14021ab54
add rax, 4
mov rsi, qword [rsp + 0x48]
cmp rax, rsi
jbe 0x140228155
mov rdx, qword [rbp - 0x48]
mov ecx, r13d
sub ecx, edi
mov qword [rsp + 0x48], rax
add ecx, 3
mov rsi, rax
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, r12
je 0x140228161
jmp 0x140228155
mov rsi, qword [rsp + 0x48]
jmp 0x140228155
mov rsi, r12
inc r14
cmp r14, rbx
jb 0x140228057
mov rax, rsi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140255040
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret