Function at 0x180047ab0
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 eax, dword [rcx + 0x18]
mov r11, rcx
mov r14, qword [rcx + 0x70]
mov rsi, rdx
mov r12, qword [rcx + 0x38]
mov r13, r8
mov r15d, dword [rcx + 0x34]
mov ebp, 1
mov rdi, qword [r11 + 0xf8]
mov ebx, 3
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x60], r8
mov r8d, edx
mov qword [rsp + 0xa0], r9
mov r9, qword [rcx + 8]
mov ecx, dword [rcx + 0x100]
add rax, r9
mov qword [rsp + 0xb8], rax
sub r8d, r9d
mov eax, edx
mov qword [rsp + 0x78], r14
sub eax, r9d
mov qword [rsp + 0x68], r12
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 dword [rsp + 0x48], r15d
sub r10d, edx
mov qword [rsp + 0x58], r9
cmp eax, edx
mov dword [rsp + 0x4c], r8d
mov eax, dword [r11 + 0x10c]
mov edx, 0x38
cmovbe r10d, ecx
mov qword [rsp + 0xa8], rdi
cmp dword [r11 + 0x28], 0
cmovne r10d, ecx
mov ecx, 5
cmp eax, ecx
mov dword [rsp + 0x70], r10d
mov r10, qword [rsi]
cmovb ecx, eax
mov rax, qword [r11 + 0x60]
mov qword [rsp + 0x40], rax
movabs rax, 0xcf1bbcdcbb000000
imul r10, rax
shl ebp, cl
mov ecx, edx
sub ecx, dword [rdi + 0x34]
mov rax, r10
shr rax, cl
mov ecx, eax
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x80], rax
mov rax, qword [rdi + 0x38]
shr rcx, 3
and ecx, 0x1fffffe0
mov dword [rsp + 0x34], ebp
add rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rdi + 0x70]
lea rax, [rax + rcx*4]
mov qword [rsp + 0xb0], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
mov rax, qword [rsp + 0x98]
prefetcht0 byte [rax]
xor edi, edi
mov dword [rsp + 0x50], 0x1f
cmp dword [r11 + 0x12c], edi
jne 0x180047f40
mov r10d, dword [r11 + 0x2c]
mov r15, r14
mov eax, dword [rsp + 0x30]
mov rcx, r9
mov r8d, dword [rsp + 0x48]
sub eax, r10d
cmp eax, 0x180
jbe 0x180047e16
lea ecx, [r10 + 0x60]
mov qword [rsp + 0x88], r9
cmp r10d, ecx
jae 0x180047d3a
mov r13, qword [rsp + 0x78]
lea r15, [r9 + 8]
mov rbp, qword [rsp + 0x68]
mov r12d, edx
sub r12d, r8d
mov r14d, r10d
add r15, r10
mov ebx, ecx
movabs rsi, 0xcf1bbcdcbb000000
nop word [rax + rax]
mov rdx, qword [r15]
mov ecx, r12d
imul rdx, rsi
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
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, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rbp]
lea rdx, [r8 + rbp]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x50]
inc r14
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r10d
inc r10d
cmp r10d, ebx
jb 0x180047c90
mov rax, qword [r11 + 8]
mov ebx, 3
mov rsi, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
lea edx, [rbx + 0x35]
mov qword [rsp + 0x88], rax
mov r10d, dword [rsp + 0x30]
lea rax, [rsi + 1]
mov ecx, dword [r11 + 0x34]
add r10d, 0xffffffe0
mov r15, qword [r11 + 0x70]
mov r12, qword [r11 + 0x38]
mov dword [rsp + 0x38], ecx
mov ecx, eax
sub ecx, r10d
mov r8d, r10d
sub ecx, r9d
lea r14, [r10 + r9]
inc ecx
cmp r14, rax
mov eax, 8
cmova ecx, edi
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x180047e00
mov r9d, edx
mov r13d, ecx
sub r9d, dword [rsp + 0x38]
movabs rbp, 0xcf1bbcdcbb000000
nop word [rax + rax]
mov rdx, qword [r14]
mov ecx, r9d
imul rdx, rbp
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r14, [r14 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r13, 1
jne 0x180047da0
mov r15, qword [r11 + 0x70]
mov r12, qword [r11 + 0x38]
mov rcx, qword [r11 + 8]
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
jmp 0x180047e08
mov rcx, qword [rsp + 0x88]
mov r8d, dword [r11 + 0x34]
mov edx, 0x38
mov r14, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
cmp r10d, eax
jae 0x180047ee3
mov ebx, edx
mov r14d, r10d
sub ebx, r8d
lea r13, [r10 + 8]
add r13, rcx
mov ebp, eax
movabs rsi, 0xcf1bbcdcbb000000
nop
mov rdx, qword [r13]
mov ecx, ebx
imul rdx, rsi
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [r15 + rax*4 + 0x40]
prefetcht0 byte [rax + r12]
mov rax, r14
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, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r12 + r8]
lea rdx, [r12 + r8]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x50]
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, ebp
jb 0x180047e40
mov rsi, qword [rsp + 0x90]
mov ebx, 3
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov r14, qword [rsp + 0x78]
mov eax, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x4c]
mov ecx, 0x38
sub ecx, dword [rsp + 0x48]
mov dword [r11 + 0x2c], eax
movabs rax, 0xcf1bbcdcbb000000
mov rdx, qword [r8 + r9 + 8]
imul rdx, rax
xor rdx, qword [rsp + 0x40]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r12, qword [rsp + 0x68]
prefetcht0 byte [rax + r12]
and r8d, 7
mov r10d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x180047f52
xor r10, qword [rsp + 0x40]
sub edx, r15d
movzx ecx, dl
mov dword [r11 + 0x2c], r8d
shr r10, cl
add dword [r11 + 0x68], r10d
mov eax, r10d
shr rax, 3
mov r15, rdi
and eax, 0x1fffffe0
movdqu xmm0, xmmword [rax + r12]
lea rcx, [r14 + rax*4]
mov r14, rdi
mov qword [rsp + 0x40], rcx
lea rcx, [rax + r12]
movzx eax, byte [rax + r12]
mov r12d, eax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x68], rcx
and r12d, 0x1f
movsx eax, r10b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r12d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
mov rdx, qword [rsp + 0x40]
shl r8d, cl
mov ecx, r12d
shr rax, cl
or r8, rax
jbe 0x180048024
mov r13d, dword [rsp + 0x70]
test ebp, ebp
je 0x18004801b
bsf rcx, r8
add ecx, r12d
and ecx, 0x1f
je 0x180048012
mov ecx, dword [rdx + rcx*4]
cmp ecx, r13d
jb 0x18004801b
prefetcht0 byte [rcx + r9]
mov dword [rsp + r15*4 + 0xc0], ecx
inc r15
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180047fe8
mov r13, qword [rsp + 0x60]
mov dword [rsp + 0x34], ebp
mov ecx, dword [rsp + 0x38]
mov eax, edi
dec ecx
mov r8d, 0x1f
and ecx, 0x1f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r10b
mov eax, dword [r11 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r11 + 0x2c]
test r15, r15
je 0x1800480c4
mov edi, dword [rsp + 0x4c]
mov rbp, qword [rsp + 0xa0]
nop dword [rax]
nop word [rax + rax]
mov r12d, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rbx + rsi - 3]
lea rdx, [r9 + r12]
cmp dword [rdx + rbx - 3], eax
jne 0x1800480b6
mov r8, r13
mov rcx, rsi
call fcn.180037e00
mov rcx, rax
cmp rax, rbx
jbe 0x1800480b1
mov rbx, rax
mov eax, edi
sub eax, r12d
add eax, 3
mov qword [rbp], rax
lea rax, [rbx + rsi]
cmp rax, r13
je 0x1800480be
mov r9, qword [rsp + 0x58]
inc r14
cmp r14, r15
jb 0x180048070
mov ebp, dword [rsp + 0x34]
xor edi, edi
mov rcx, qword [rsp + 0x98]
mov r14, rdi
movsx eax, byte [rsp + 0x80]
mov r10, qword [rsp + 0xa8]
movdqu xmm0, xmmword [rcx]
movzx r9d, byte [rcx]
mov r15, qword [r10 + 8]
and r9d, 0x1f
mov r11d, dword [r10 + 0x18]
mov r12d, r15d
mov r10, qword [r10]
movd xmm2, eax
sub r12d, r10d
add r12d, dword [rsp + 0x74]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
mov qword [rsp + 0x40], r10
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r9d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r9d
shr rax, cl
or r8, rax
jbe 0x18004820b
mov rdx, qword [rsp + 0xb0]
nop dword [rax]
test ebp, ebp
je 0x180048192
bsf rcx, r8
add ecx, r9d
and ecx, 0x1f
je 0x180048189
mov ecx, dword [rdx + rcx*4]
cmp ecx, r11d
jb 0x180048192
prefetcht0 byte [rcx + r15]
mov dword [rsp + rdi*4 + 0xc0], ecx
inc rdi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x180048160
test rdi, rdi
je 0x18004820b
nop word [rax + rax]
mov ebp, dword [rsp + r14*4 + 0xc0]
mov eax, dword [rsi]
lea rdx, [r15 + rbp]
cmp dword [rdx], eax
jne 0x180048203
mov rax, qword [rsp + 0xb8]
lea rcx, [rsi + 4]
add rdx, 4
mov qword [rsp + 0x20], rax
mov r9, r10
mov r8, r13
call fcn.180037ea0
add rax, 4
cmp rax, rbx
jbe 0x1800481fe
mov ecx, dword [rsp + 0x4c]
mov rbx, rax
mov rdx, qword [rsp + 0xa0]
sub ecx, ebp
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + rsi]
cmp rcx, r13
je 0x18004820e
mov r10, qword [rsp + 0x40]
inc r14
cmp r14, rdi
jb 0x1800481a0
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