Function at 0x180062310
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d8
mov rax, qword [0x18014f1c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rcx + 0x38]
mov r11, rcx
mov r10, qword [rcx + 8]
mov r13, r8
mov r15, qword [rcx + 0x70]
mov r12d, edx
mov qword [rsp + 0x70], rax
sub r12d, r10d
mov eax, dword [rcx + 0x34]
mov rsi, rdx
mov dword [rsp + 0x48], eax
mov ebp, 1
mov eax, dword [rcx + 0x18]
mov r14d, 0x38
mov ecx, dword [rcx + 0x100]
mov ebx, 3
mov dword [rsp + 0x4c], eax
add rax, r10
mov qword [rsp + 0xb0], rax
mov eax, r12d
mov qword [rsp + 0x78], r8
mov r8d, r12d
mov qword [rsp + 0x80], rdx
mov edx, ebp
shl edx, cl
mov ecx, dword [r11 + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x88], r9
mov r9, qword [rsi]
cmp eax, edx
mov eax, dword [r11 + 0x10c]
cmovbe r8d, ecx
mov qword [rsp + 0x60], r15
cmp dword [r11 + 0x28], 0
mov qword [rsp + 0x58], r10
cmovne r8d, ecx
mov dword [rsp + 0x38], r12d
mov ecx, 4
mov dword [rsp + 0x54], r8d
cmp eax, ecx
cmovb ecx, eax
mov rax, qword [r11 + 0x60]
shl ebp, cl
movabs rcx, 0xcf1bbcdcbb000000
mov qword [rsp + 0x40], rax
mov rax, qword [r11 + 0xf8]
imul r9, rcx
mov qword [rsp + 0x90], rax
mov ecx, r14d
mov rdx, qword [rax + 0x38]
sub ecx, dword [rax + 0x34]
mov r8, qword [rax + 0x70]
mov rax, r9
shr rax, cl
mov qword [rsp + 0xa0], rax
shr eax, 4
and eax, 0xffffff0
mov dword [rsp + 0x30], ebp
lea rcx, [rdx + rax]
lea rax, [r8 + rax*4]
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa8], rax
prefetcht0 byte [rax]
prefetcht0 byte [rcx]
xor edi, edi
mov dword [rsp + 0x34], 0xf
cmp dword [r11 + 0x12c], edi
jne 0x18006274b
mov rax, qword [rsp + 0x70]
mov r10d, dword [r11 + 0x2c]
mov r14, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov rdx, r14
mov qword [rsp + 0x68], rax
mov ecx, r8d
mov eax, r12d
sub eax, r10d
cmp eax, 0x180
jbe 0x180062631
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x18006256c
mov r12, qword [rsp + 0x60]
lea r13, [r14 + 8]
mov r14, qword [rsp + 0x70]
mov ebp, 0x38
sub ebp, r8d
mov r15d, r10d
add r13, r10
mov ebx, eax
movabs rsi, 0xcf1bbcdcbb000000
nop dword [rax]
mov rdx, qword [r13]
mov ecx, ebp
imul rdx, rsi
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r14 + rax]
mov rax, r15
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r14]
lea rdx, [rax + r14]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, edi
cmove eax, dword [rsp + 0x34]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [r12 + rax*4], r10d
inc r10d
cmp r10d, ebx
jb 0x1800624d0
mov rdx, qword [r11 + 8]
mov ebx, 3
mov rsi, qword [rsp + 0x80]
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x58]
mov rcx, qword [r11 + 0x38]
lea r10d, [r12 - 0x20]
mov r15, qword [r11 + 0x70]
lea rax, [rsi + 1]
mov qword [rsp + 0x68], rcx
lea r9, [r10 + r14]
mov ecx, dword [r11 + 0x34]
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r14d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, edi
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x18006262d
mov r14, qword [rsp + 0x68]
mov r12d, 0x38
sub r12d, dword [rsp + 0x50]
movabs rbp, 0xcf1bbcdcbb000000
mov r13d, ecx
mov rdx, qword [r9]
mov ecx, r12d
imul rdx, rbp
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r14 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x1800625d1
mov rax, qword [r11 + 0x38]
mov r15, qword [r11 + 0x70]
mov rdx, qword [r11 + 8]
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov ecx, dword [r11 + 0x34]
cmp r10d, r12d
jae 0x1800626ed
mov r13, qword [rsp + 0x68]
lea rbx, [r10 + 8]
mov ebp, 0x38
mov r14d, r10d
sub ebp, ecx
movabs rsi, 0xcf1bbcdcbb000000
add rbx, rdx
nop word [rax + rax]
mov rdx, qword [rbx]
mov ecx, ebp
imul rdx, rsi
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r14
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, edi
cmove eax, dword [rsp + 0x34]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r10d
inc r10d
cmp r10d, r12d
jb 0x180062660
mov rsi, qword [rsp + 0x80]
mov ebx, 3
mov ebp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov r10, qword [rsp + 0x58]
movabs rax, 0xcf1bbcdcbb000000
mov r15, qword [rsp + 0x60]
mov ecx, 0x38
sub ecx, dword [rsp + 0x48]
mov r8d, r12d
mov dword [r11 + 0x2c], r12d
mov rdx, qword [r8 + r10 + 8]
imul rdx, rax
xor rdx, qword [rsp + 0x40]
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
mov r14, qword [rsp + 0x70]
prefetcht0 byte [rax + r14]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x180062765
sub r14d, dword [rsp + 0x48]
xor r9, qword [rsp + 0x40]
movzx ecx, r14b
mov r14, qword [rsp + 0x70]
shr r9, cl
mov dword [r11 + 0x2c], r12d
add dword [r11 + 0x68], r9d
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
mov qword [rsp + 0x60], r9
movdqu xmm0, xmmword [rax + r14]
lea rdx, [rax + r14]
mov r14, rdi
mov qword [rsp + 0x80], rdx
lea rcx, [r15 + rax*4]
movsx eax, r9b
mov qword [rsp + 0x40], rcx
mov r15, rdi
movzx ecx, byte [rdx]
mov dword [rsp + 0x34], ecx
movd xmm1, eax
mov eax, ecx
and eax, 0xf
punpcklbw xmm1, xmm1
mov edx, eax
punpcklwd xmm1, xmm1
mov ecx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm0, xmm1
pmovmskb r8d, xmm0
and ecx, 0xf
movzx eax, r8w
shl ax, cl
movzx ecx, dl
mov edx, dword [rsp + 0x34]
movzx r9d, ax
movzx eax, r8w
mov r8, qword [rsp + 0x40]
shr rax, cl
or r9, rax
jbe 0x180062831
mov r13d, dword [rsp + 0x54]
test ebp, ebp
je 0x180062828
bsf rcx, r9
add ecx, edx
and ecx, 0xf
mov ecx, dword [r8 + rcx*4]
je 0x18006281f
cmp ecx, r13d
jb 0x180062828
prefetcht0 byte [rcx + r10]
mov dword [rsp + r15*4 + 0xc0], ecx
inc r15
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800627f5
mov r13, qword [rsp + 0x78]
mov dword [rsp + 0x30], ebp
lea ecx, [rdx - 1]
mov eax, edi
and ecx, 0xf
mov edx, 0xf
cmove eax, edx
mov rdx, qword [rsp + 0x80]
add ecx, eax
mov rax, qword [rsp + 0x60]
mov byte [rdx], cl
mov byte [rcx + rdx], al
mov eax, dword [r11 + 0x2c]
mov dword [r8 + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x1800628d9
mov edi, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x88]
nop dword [rax]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xc0]
lea rdx, [r10 + r12]
mov eax, dword [rdx + rbx - 3]
cmp eax, dword [rbx + rsi - 3]
jne 0x1800628c6
mov r8, r13
mov rcx, rsi
call fcn.180052cc0
mov rcx, rax
cmp rax, rbx
jbe 0x1800628c1
mov rbx, rax
mov eax, edi
sub eax, r12d
add eax, 3
mov qword [rbp], rax
lea rax, [rbx + rsi]
cmp rax, r13
je 0x1800628ce
mov r10, qword [rsp + 0x58]
inc r14
cmp r14, r15
jb 0x180062880
mov ebp, dword [rsp + 0x30]
xor edi, edi
mov r12d, dword [rsp + 0x38]
mov r11, qword [rsp + 0x90]
mov r14, rdi
mov rcx, qword [rsp + 0x98]
mov eax, dword [r11 + 0x18]
movzx r10d, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r15, qword [r11 + 8]
mov r11, qword [r11]
mov dword [rsp + 0x54], eax
mov eax, r11d
sub eax, r15d
mov qword [rsp + 0x40], r11
sub dword [rsp + 0x4c], eax
movsx eax, byte [rsp + 0xa0]
movd xmm1, eax
mov eax, r10d
and eax, 0xf
punpcklbw xmm1, xmm1
mov ecx, eax
punpcklwd xmm1, xmm1
mov edx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm1, xmm0
and ecx, 0xf
pmovmskb r8d, xmm1
movzx eax, r8w
shl ax, cl
movzx ecx, dl
movzx r9d, ax
movzx eax, r8w
shr rax, cl
or r9, rax
jbe 0x180062a1b
mov edx, dword [rsp + 0x54]
mov r8, qword [rsp + 0xa8]
nop dword [rax]
test ebp, ebp
je 0x1800629a2
bsf rcx, r9
add ecx, r10d
and ecx, 0xf
mov ecx, dword [r8 + rcx*4]
je 0x180062999
cmp ecx, edx
jb 0x1800629a2
prefetcht0 byte [rcx + r15]
mov dword [rsp + rdi*4 + 0xc0], ecx
inc rdi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x180062970
test rdi, rdi
je 0x180062a1b
nop word [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rsi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180062a13
mov rax, qword [rsp + 0xb0]
lea rcx, [rsi + 4]
add rdx, 4
mov qword [rsp + 0x20], rax
mov r9, r11
mov r8, r13
call fcn.180052d60
lea rcx, [rax + 4]
cmp rcx, rbx
jbe 0x180062a0e
mov rdx, qword [rsp + 0x88]
mov eax, r12d
sub eax, ebp
mov rbx, rcx
sub eax, dword [rsp + 0x4c]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + rsi]
cmp rax, r13
je 0x180062a1b
mov r11, qword [rsp + 0x40]
inc r14
cmp r14, rdi
jb 0x1800629b0
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800d2190
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret