Function at 0x180045dc0
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 [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r12, qword [rcx + 8]
mov r11, rcx
mov eax, dword [rcx + 0x18]
mov rsi, rdx
mov r15, qword [rcx + 0x38]
mov r13, r8
mov r14d, dword [rcx + 0x34]
mov ebp, 1
mov dword [rsp + 0x70], eax
mov ebx, 3
add rax, r12
mov qword [rsp + 0x60], r8
mov qword [rsp + 0xb0], rax
mov r8d, edx
sub r8d, r12d
mov qword [rsp + 0x88], r9
mov r9, qword [rcx + 0x70]
mov eax, edx
mov ecx, dword [rcx + 0x100]
sub eax, r12d
mov dword [rsp + 0x30], eax
mov edx, ebp
shl edx, cl
mov eax, r8d
mov ecx, dword [r11 + 0x1c]
mov r10d, r8d
sub eax, ecx
mov qword [rsp + 0x78], r9
sub r10d, edx
mov qword [rsp + 0x68], r15
cmp eax, edx
mov dword [rsp + 0x38], r14d
mov eax, dword [r11 + 0x10c]
cmovbe r10d, ecx
mov qword [rsp + 0x80], r12
cmp dword [r11 + 0x28], 0
mov dword [rsp + 0x48], r8d
cmovne r10d, ecx
mov ecx, 4
cmp eax, ecx
mov dword [rsp + 0x58], r10d
mov r10, qword [r11 + 0xf8]
cmovb ecx, eax
mov qword [rsp + 0x90], r10
imul edx, dword [rsi], 0x9e3779b1
mov rax, qword [r11 + 0x60]
shl ebp, cl
mov ecx, 0x18
sub ecx, dword [r10 + 0x34]
mov qword [rsp + 0x40], rax
mov rax, qword [r10 + 0x70]
mov edi, edx
shr rdi, cl
mov ecx, edi
mov qword [rsp + 0xa0], rdi
mov rdi, qword [r10 + 0x38]
shr rcx, 4
and ecx, 0xffffff0
mov dword [rsp + 0x34], ebp
add rdi, rcx
mov qword [rsp + 0x98], rdi
lea rax, [rax + rcx*4]
mov qword [rsp + 0xa8], rax
prefetcht0 byte [rax]
prefetcht0 byte [rdi]
xor edi, edi
mov dword [rsp + 0x5c], 0xf
cmp dword [r11 + 0x12c], edi
jne 0x1800461cb
mov r10d, dword [r11 + 0x2c]
mov r14, r9
mov eax, dword [rsp + 0x30]
mov rdx, r12
mov r8d, dword [rsp + 0x38]
sub eax, r10d
mov ecx, r8d
cmp eax, 0x180
jbe 0x1800460b8
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x180045ff9
mov r13, qword [rsp + 0x68]
lea r15, [r12 + 8]
mov ebx, 0x18
mov r14d, r10d
sub ebx, r8d
mov rbp, r9
add r15, r10
mov r12d, eax
mov eax, dword [r11 + 0x60]
mov rcx, rbx
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rax + r13]
mov rax, r14
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, edi
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x5c]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r10d
inc r10d
cmp r10d, r12d
jb 0x180045f62
mov rdx, qword [r11 + 8]
mov ebx, 3
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x80]
mov r10d, dword [rsp + 0x30]
lea rax, [rsi + 1]
mov ecx, dword [r11 + 0x34]
add r10d, 0xffffffe0
mov r14, qword [r11 + 0x70]
mov r15, qword [r11 + 0x38]
mov dword [rsp + 0x50], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r12d
lea r9, [r10 + r12]
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 0x1800460af
mov eax, 0x18
mov r13d, ecx
sub eax, dword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov ecx, eax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r11 + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r15 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x180046060
mov r14, qword [r11 + 0x70]
mov r15, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov r13, qword [rsp + 0x60]
mov ecx, dword [r11 + 0x34]
mov r9, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
cmp r10d, eax
jae 0x18004617c
mov ebx, 0x18
mov r12d, r10d
sub ebx, ecx
lea r13, [rdx + 8]
add r13, r12
mov ebp, eax
nop dword [rax + rax]
mov eax, dword [r11 + 0x60]
mov rcx, rbx
imul edx, dword [r13], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r15]
mov rax, r12
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, edi
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r15 + r8]
lea rdx, [r15 + r8]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x5c]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r10d
inc r10d
cmp r10d, ebp
jb 0x1800460e0
mov ebp, dword [rsp + 0x34]
mov ebx, 3
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x80]
mov r9, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x48]
mov ecx, 0x18
sub ecx, dword [rsp + 0x38]
mov dword [r11 + 0x2c], eax
mov eax, dword [rsp + 0x40]
imul edx, dword [r8 + r12 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r9 + rax*4]
mov r15, qword [rsp + 0x68]
prefetcht0 byte [rax + r15]
and r8d, 7
mov r10d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1800461e4
mov eax, dword [rsp + 0x40]
mov ecx, 0x18
mov r10d, edx
sub ecx, r14d
xor r10, rax
mov dword [r11 + 0x2c], r8d
shr r10, cl
add dword [r11 + 0x68], r10d
mov eax, r10d
shr rax, 4
mov r14, rdi
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r15]
lea rcx, [r9 + rax*4]
mov qword [rsp + 0x40], rcx
lea rcx, [rax + r15]
movzx eax, byte [rax + r15]
mov r15, rdi
mov dword [rsp + 0x38], eax
and eax, 0xf
mov r8d, eax
mov qword [rsp + 0x68], rcx
movsx eax, r10b
mov ecx, r8d
neg ecx
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
movzx ecx, r8b
movzx r9d, ax
movzx eax, dx
shr rax, cl
or r9, rax
jbe 0x1800462ae
mov r13d, dword [rsp + 0x58]
mov edx, r8d
mov r8, qword [rsp + 0x40]
nop dword [rax]
test ebp, ebp
je 0x1800462a3
bsf rcx, r9
add ecx, edx
and ecx, 0xf
je 0x18004629a
mov ecx, dword [r8 + rcx*4]
cmp ecx, r13d
jb 0x1800462a3
prefetcht0 byte [rcx + r12]
mov dword [rsp + r15*4 + 0xc0], ecx
inc r15
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x180046270
mov r13, qword [rsp + 0x60]
mov dword [rsp + 0x34], ebp
jmp 0x1800462b3
mov r8, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
mov eax, edi
dec ecx
mov edx, 0xf
and ecx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r10b
mov eax, dword [r11 + 0x2c]
mov dword [r8 + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x180046346
mov rdi, qword [rsp + 0x80]
mov ebp, dword [rsp + 0x48]
mov r12d, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rbx + rsi - 3]
lea rdx, [rdi + r12]
cmp dword [rdx + rbx - 3], eax
jne 0x180046338
mov r8, r13
mov rcx, rsi
call fcn.180037e00
mov rcx, rax
cmp rax, rbx
jbe 0x180046338
mov rdx, qword [rsp + 0x88]
mov rbx, rax
mov eax, ebp
sub eax, r12d
add eax, 3
mov qword [rdx], rax
lea rax, [rbx + rsi]
cmp rax, r13
je 0x180046340
inc r14
cmp r14, r15
jb 0x1800462f0
mov ebp, dword [rsp + 0x34]
xor edi, edi
mov r11, qword [rsp + 0x90]
mov r14, rdi
mov rcx, qword [rsp + 0x98]
mov eax, dword [r11 + 0x18]
movdqu xmm0, xmmword [rcx]
movzx r10d, byte [rcx]
mov r15, qword [r11 + 8]
and r10d, 0xf
mov r11, qword [r11]
mov ecx, r10d
mov dword [rsp + 0x58], eax
neg ecx
movsx eax, byte [rsp + 0xa0]
and ecx, 0xf
mov r12d, r15d
mov qword [rsp + 0x40], r11
sub r12d, r11d
add r12d, dword [rsp + 0x70]
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb edx, xmm1
movzx eax, dx
shl ax, cl
movzx ecx, r10b
movzx r9d, ax
movzx eax, dx
shr rax, cl
or r9, rax
jbe 0x18004647b
mov edx, dword [rsp + 0x58]
mov r8, qword [rsp + 0xa8]
test ebp, ebp
je 0x180046408
bsf rcx, r9
add ecx, r10d
and ecx, 0xf
je 0x1800463ff
mov ecx, dword [r8 + rcx*4]
cmp ecx, edx
jb 0x180046408
prefetcht0 byte [rcx + r15]
mov dword [rsp + rdi*4 + 0xc0], ecx
inc rdi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x1800463d6
test rdi, rdi
je 0x18004647b
nop dword [rax]
mov ebp, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rsi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180046473
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.180037ea0
add rax, 4
cmp rax, rbx
jbe 0x18004646e
mov ecx, dword [rsp + 0x48]
mov rbx, rax
mov rdx, qword [rsp + 0x88]
sub ecx, ebp
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rsi]
cmp rcx, r13
je 0x18004647e
mov r11, qword [rsp + 0x40]
inc r14
cmp r14, rdi
jb 0x180046410
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret