Function at 0x18003f8b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x1800ec0f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 8]
mov r10, rcx
mov eax, dword [rcx + 0x34]
mov r12, r8
mov r13, qword [rcx + 0x70]
mov ebp, 1
mov rsi, qword [rcx + 0x38]
mov r14, rdx
mov ecx, dword [rcx + 0x100]
mov edi, 3
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x48], r8
mov r8d, edx
sub r8d, r15d
mov qword [rsp + 0x78], r9
mov r9d, edx
mov qword [rsp + 0x58], rdx
sub r9d, r15d
mov qword [rsp + 0x68], r13
mov edx, ebp
mov qword [rsp + 0x40], rsi
shl edx, cl
mov eax, r8d
mov ecx, dword [r10 + 0x1c]
mov r11d, r8d
sub eax, ecx
mov qword [rsp + 0x60], r15
sub r11d, edx
mov dword [rsp + 0x24], r9d
cmp eax, edx
mov dword [rsp + 0x34], r8d
mov eax, dword [r10 + 0x10c]
cmovbe r11d, ecx
mov dword [rsp + 0x30], 0x1f
cmp dword [r10 + 0x28], 0
cmovne r11d, ecx
mov ecx, 5
cmp eax, ecx
mov dword [rsp + 0x38], r11d
cmovb ecx, eax
mov rax, qword [r10 + 0x60]
shl ebp, cl
xor ebx, ebx
lea ecx, [rdi + 0x35]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x2c], ebp
cmp dword [r10 + 0x12c], ebx
jne 0x18003fc65
mov r11d, dword [r10 + 0x2c]
mov eax, r9d
mov r8d, dword [rsp + 0x28]
sub eax, r11d
mov r12, r13
mov r13, rsi
mov rdx, r15
movabs rsi, 0xcf1bbcdcbb000000
cmp eax, 0x180
jbe 0x18003fb46
lea edx, [r11 + 0x60]
mov qword [rsp + 0x50], r15
cmp r11d, edx
jae 0x18003fa94
mov rdi, qword [rsp + 0x40]
lea r13, [r15 + 8]
mov r15, qword [rsp + 0x68]
mov ebp, ecx
sub ebp, r8d
mov r12d, r11d
add r13, r11
mov r14d, edx
mov rdx, qword [r13]
mov ecx, ebp
imul rdx, rsi
xor rdx, qword [r10 + 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 [rdi + rax]
mov rax, r12
lea r13, [r13 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + rdi]
lea rdx, [r8 + rdi]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x30]
inc r12
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r11d
inc r11d
cmp r11d, r14d
jb 0x18003f9f2
mov rax, qword [r10 + 8]
mov edi, 3
mov r14, qword [rsp + 0x58]
mov ebp, dword [rsp + 0x2c]
mov r15, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x24]
lea ecx, [rdi + 0x35]
mov qword [rsp + 0x50], rax
mov edx, dword [r10 + 0x34]
lea r11d, [r9 - 0x20]
mov r12, qword [r10 + 0x70]
lea rax, [r14 + 1]
mov r13, qword [r10 + 0x38]
lea r9, [r11 + r15]
mov dword [rsp + 0x20], edx
mov edx, eax
sub edx, r11d
mov r8d, r11d
sub edx, r15d
inc edx
cmp r9, rax
mov eax, 8
cmova edx, ebx
cmp edx, eax
cmova edx, eax
lea eax, [r11 + rdx]
cmp r11d, eax
jae 0x18003fb33
sub ecx, dword [rsp + 0x20]
mov ebp, edx
nop dword [rax]
mov rdx, qword [r9]
imul rdx, rsi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub rbp, 1
jne 0x18003fae0
mov r12, qword [r10 + 0x70]
mov r13, qword [r10 + 0x38]
mov rdx, qword [r10 + 8]
mov ebp, dword [rsp + 0x2c]
jmp 0x18003fb38
mov rdx, qword [rsp + 0x50]
mov r8d, dword [r10 + 0x34]
mov ecx, 0x38
mov r9d, dword [rsp + 0x24]
cmp r11d, r9d
jae 0x18003fc08
mov r15d, dword [rsp + 0x24]
lea rbp, [rdx + 8]
mov r14d, ecx
mov edi, r11d
sub r14d, r8d
add rbp, rdi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rbp]
mov ecx, r14d
imul rdx, rsi
xor rdx, qword [r10 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
mov rax, rdi
lea rbp, [rbp + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x30]
inc rdi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r11d
inc r11d
cmp r11d, r15d
jb 0x18003fb70
mov r14, qword [rsp + 0x58]
mov edi, 3
mov ebp, dword [rsp + 0x2c]
mov r15, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x34]
mov ecx, 0x38
sub ecx, dword [rsp + 0x28]
mov r13, qword [rsp + 0x68]
mov dword [r10 + 0x2c], r9d
mov rdx, qword [r8 + r15 + 8]
imul rdx, rsi
xor rdx, qword [rsp + 0x70]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x40]
prefetcht0 byte [rax + rcx]
mov r12, qword [rsp + 0x48]
and r8d, 7
mov r9d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x18003fc89
mov r9, qword [r14]
movabs rsi, 0xcf1bbcdcbb000000
sub ecx, dword [rsp + 0x28]
imul r9, rsi
mov dword [r10 + 0x2c], r8d
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x40]
add dword [r10 + 0x68], r9d
mov eax, r9d
shr rax, 3
mov rsi, rbx
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x48], rcx
lea r13, [r13 + rax*4]
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r11d, eax
mov dword [rsp + 0x20], eax
movsx eax, r9b
and r11d, 0x1f
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, r11d
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, r11d
shr rax, cl
or r8, rax
jbe 0x18003fd43
mov edx, dword [rsp + 0x38]
nop dword [rax]
test ebp, ebp
je 0x18003fd43
bsf rcx, r8
add ecx, r11d
and ecx, 0x1f
je 0x18003fd3a
mov ecx, dword [r13 + rcx*4]
cmp ecx, edx
jb 0x18003fd43
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0x80], ecx
inc rsi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x18003fd10
mov ecx, dword [rsp + 0x20]
mov eax, ebx
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], r9b
mov eax, dword [r10 + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [r10 + 0x2c]
test rsi, rsi
je 0x18003fdca
mov r13, qword [rsp + 0x78]
nop word [rax + rax]
mov ebp, dword [rsp + rbx*4 + 0x80]
mov eax, dword [rdi + r14 - 3]
lea rdx, [r15 + rbp]
cmp dword [rdx + rdi - 3], eax
jne 0x18003fdc2
mov r8, r12
mov rcx, r14
call fcn.180036af0
mov rcx, rax
cmp rax, rdi
jbe 0x18003fdc2
mov rdi, rax
mov eax, dword [rsp + 0x34]
sub eax, ebp
add eax, 3
mov qword [r13], rax
lea rax, [rcx + r14]
cmp rax, r12
je 0x18003fdca
inc rbx
cmp rbx, rsi
jb 0x18003fd80
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800b1550
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret