Function at 0x18003f710
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 [0x1800ed0f8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 8]
mov r10, rcx
mov eax, dword [rcx + 0x34]
mov r14, rdx
mov rsi, qword [rcx + 0x70]
mov r13, r8
mov r12, qword [rcx + 0x38]
mov ebp, 1
mov ecx, dword [rcx + 0x100]
mov edi, 3
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x70], r9
mov r9d, edx
sub r9d, r15d
mov qword [rsp + 0x48], r8
mov r8d, edx
mov qword [rsp + 0x58], rsi
sub r8d, r15d
mov qword [rsp + 0x38], r12
mov edx, ebp
mov dword [rsp + 0x20], r8d
shl edx, cl
mov eax, r9d
mov ecx, dword [r10 + 0x1c]
mov r11d, r9d
sub eax, ecx
mov dword [rsp + 0x30], r9d
sub r11d, edx
mov dword [rsp + 0x2c], 0xf
cmp eax, edx
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe r11d, ecx
mov qword [rsp + 0x68], rdx
cmp dword [r10 + 0x28], 0
cmovne r11d, ecx
mov ecx, 4
cmp eax, ecx
mov dword [rsp + 0x40], r11d
cmovb ecx, eax
xor ebx, ebx
shl ebp, cl
mov dword [rsp + 0x24], ebp
cmp dword [r10 + 0x12c], ebx
jne 0x18003fa95
mov r11d, dword [r10 + 0x2c]
mov eax, r8d
mov ecx, dword [rsp + 0x28]
sub eax, r11d
mov r13d, ecx
mov rdx, r15
cmp eax, 0x180
jbe 0x18003f982
lea r13d, [r11 + 0x60]
cmp r11d, r13d
jae 0x18003f8d6
mov rbp, qword [rsp + 0x58]
lea r12, [r15 + 8]
mov r14, qword [rsp + 0x38]
mov edi, 0x18
sub edi, ecx
mov esi, r11d
add r12, r11
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, rdi
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [r14 + rax]
mov rax, rsi
lea r12, [r12 + 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, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r14]
lea rdx, [r8 + r14]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x2c]
inc rsi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r11d
inc r11d
cmp r11d, r13d
jb 0x18003f840
mov rdx, qword [r10 + 8]
mov edi, 3
mov r14, qword [rsp + 0x50]
mov ebp, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
mov rsi, qword [r10 + 0x70]
lea r11d, [r8 - 0x20]
mov r12, qword [r10 + 0x38]
lea rax, [r14 + 1]
mov r13d, dword [r10 + 0x34]
lea r9, [r11 + r15]
mov ecx, eax
mov r8d, r11d
sub ecx, r11d
sub ecx, r15d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x18003f97d
mov eax, 0x18
sub eax, r13d
mov r13d, ecx
mov qword [rsp + 0x60], rax
mov ecx, eax
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r12 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r13, 1
jne 0x18003f930
mov rsi, qword [r10 + 0x70]
mov r12, qword [r10 + 0x38]
mov r13d, dword [r10 + 0x34]
mov rdx, qword [r10 + 8]
mov r8d, dword [rsp + 0x20]
cmp r11d, r8d
jae 0x18003fa3d
mov ebp, dword [rsp + 0x20]
lea rdi, [r11 + 8]
mov r14d, 0x18
sub r14d, r13d
mov r13d, r11d
add rdi, rdx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, r14
imul edx, dword [rdi], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r12 + rax]
mov rax, r13
lea rdi, [rdi + 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, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x2c]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r11d
inc r11d
cmp r11d, ebp
jb 0x18003f9b0
mov r14, qword [rsp + 0x50]
mov edi, 3
mov ebp, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x68]
mov ecx, 0x18
sub ecx, dword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov dword [r10 + 0x2c], r8d
mov r8d, dword [rsp + 0x30]
imul edx, dword [r8 + r15 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
mov r12, qword [rsp + 0x38]
prefetcht0 byte [rax + r12]
mov r13, qword [rsp + 0x48]
and r8d, 7
mov r11d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
jmp 0x18003fab1
imul r11d, dword [r14], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [rsp + 0x28]
mov eax, edx
mov dword [r10 + 0x2c], r9d
xor r11, rax
shr r11, cl
add dword [r10 + 0x68], r11d
mov eax, r11d
shr rax, 4
and eax, 0xffffff0
movdqu xmm0, xmmword [rax + r12]
lea rcx, [rsi + rax*4]
mov rsi, rbx
mov qword [rsp + 0x38], rcx
lea rcx, [rax + r12]
movzx eax, byte [rax + r12]
mov r12d, eax
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x48], rcx
and r12d, 0xf
movsx eax, r11b
mov ecx, r12d
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, r12b
movzx r9d, ax
movzx eax, dx
mov rdx, qword [rsp + 0x38]
shr rax, cl
or r9, rax
jbe 0x18003fb66
mov r8d, dword [rsp + 0x40]
test ebp, ebp
je 0x18003fb66
bsf rcx, r9
add ecx, r12d
and ecx, 0xf
je 0x18003fb5d
mov ecx, dword [rdx + rcx*4]
cmp ecx, r8d
jb 0x18003fb66
prefetcht0 byte [rcx + r15]
mov dword [rsp + rsi*4 + 0x80], ecx
inc rsi
dec ebp
lea rax, [r9 - 1]
and r9, rax
ja 0x18003fb34
mov ecx, dword [rsp + 0x24]
mov eax, ebx
dec ecx
mov r8d, 0xf
and ecx, 0xf
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x48]
mov byte [rax], cl
mov byte [rcx + rax], r11b
mov eax, dword [r10 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r10 + 0x2c]
test rsi, rsi
je 0x18003fbea
mov r12, qword [rsp + 0x70]
nop dword [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 0x18003fbe2
mov r8, r13
mov rcx, r14
call fcn.180037e00
mov rcx, rax
cmp rax, rdi
jbe 0x18003fbe2
mov rdi, rax
mov eax, dword [rsp + 0x30]
sub eax, ebp
add eax, 3
mov qword [r12], rax
lea rax, [rcx + r14]
cmp rax, r13
je 0x18003fbea
inc rbx
cmp rbx, rsi
jb 0x18003fba0
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800b2170
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret