Function at 0x180001dc0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18000224e
push rbx
push rsi
push rdi
sub rsp, 0x30
lea eax, [r9 - 0x10]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test eax, 0xffffffe7
jne 0x180002247
cmp r9d, 0x28
je 0x180002247
movsxd rcx, dword [rsp + 0x70]
lea eax, [rcx - 0x10]
test eax, 0xffffffe7
jne 0x180002247
cmp ecx, 0x28
je 0x180002247
mov qword [rsp + 0x50], rbp
mov r8, rcx
mov qword [rsp + 0x60], r12
mov rdx, rdi
mov qword [rsp + 0x68], r13
mov dword [rbx + 0x3d0], ecx
lea rcx, [rbx + 0x3d8]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov dword [rbx + 0x3cc], r9d
call fcn.180041580
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.180041580
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x180001e82
cmp eax, 0x18
mov eax, 0xe
jne 0x180001ea2
cmp dword [rbx + 0x3d0], 0x20
mov ecx, 0xc
cmovne eax, ecx
jmp 0x180001ea2
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x180001e92
lea eax, [rdx - 6]
jmp 0x180001ea2
cmp edx, 0x18
mov eax, 0xe
mov ecx, 0xc
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
xor r8d, r8d
mov eax, dword [rbx + 0x3d0]
mov ecx, dword [rbx + 0x3d4]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r15, eax
mov r14, r15
test ecx, ecx
js 0x180001ef1
lea rdx, [rbx + 0xc]
nop
test r15d, r15d
jle 0x180001edf
mov rdi, rdx
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
mov ecx, dword [rbx + 0x3d4]
inc r8d
add rdx, 0x20
cmp r8d, ecx
jle 0x180001ed0
xor r8d, r8d
test ecx, ecx
js 0x180001f21
lea rdx, [rbx + 0x1ec]
nop
test r15d, r15d
jle 0x180001f0f
mov rdi, rdx
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
mov ecx, dword [rbx + 0x3d4]
inc r8d
add rdx, 0x20
cmp r8d, ecx
jle 0x180001f00
mov eax, dword [rbx + 0x3cc]
lea ebp, [rcx + 1]
cdq
imul ebp, r15d
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
sar eax, 2
movsxd r13, eax
test eax, eax
jle 0x180001f88
mov edi, r13d
nop dword [rax + rax]
movzx ecx, byte [rsi]
lea rdx, [rdx + 4]
shl ecx, 0x18
lea rsi, [rsi + 4]
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 3]
shl eax, 0x10
or eax, ecx
mov dword [rdx - 4], eax
movzx ecx, byte [rsi - 2]
shl ecx, 8
or ecx, eax
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 1]
or eax, ecx
mov dword [rdx - 4], eax
sub rdi, 1
jne 0x180001f50
xor r9d, r9d
lea rsi, [0x180000000]
test r13d, r13d
jle 0x180001fea
xor r10d, r10d
lea r8, [rbx + 0x418]
cmp r9d, ebp
jge 0x1800021a8
mov eax, r9d
inc r10
cdq
inc r9d
idiv r15d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r13
jl 0x180001fa1
cmp r9d, ebp
jge 0x1800021a8
lea rsi, [0x18006f970]
lea r14, [0x180000000]
mov edi, dword [rbx + r13*4 + 0x414]
lea rsi, [rsi + 1]
movsxd rdx, edi
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [rsi - 1]
movsx r8d, byte [rcx + r14 + 0x6c770]
xor r8d, eax
mov rax, rdx
sar rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r14 + 0x6c770]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + r14 + 0x6c770]
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r14 + 0x6c770]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r13d, 8
je 0x1800020a4
cmp r13, 1
jle 0x18000213f
lea rcx, [rbx + 0x41c]
lea rdx, [r13 - 1]
nop
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180002090
jmp 0x18000213f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1800020b0
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
sar rax, 0x10
movsx edi, byte [rcx + r14 + 0x6c770]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r14 + 0x6c770]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x6c770]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r14 + 0x6c770]
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r13, 5
jle 0x18000213f
lea rax, [rbx + 0x42c]
lea rdx, [r13 - 5]
nop
mov ecx, dword [rax - 4]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x180002130
xor r10d, r10d
test r13d, r13d
jle 0x180002195
lea r8, [rbx + 0x418]
nop
cmp r9d, ebp
jge 0x18000219e
mov eax, r9d
inc r10
cdq
inc r9d
idiv r15d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r13
jl 0x180002150
cmp r9d, ebp
jl 0x180002001
mov r14, r15
lea rsi, [0x180000000]
mov r15, qword [rsp + 0x20]
mov r10d, 1
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
cmp dword [rbx + 0x3d4], r10d
jle 0x18000223e
lea r11, [rbx + 0x20c]
test r14, r14
jle 0x18000222e
mov r8, r11
mov r9, r14
nop dword [rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov rax, rdi
sar rax, 8
mov edx, dword [rsi + rdx*4 + 0x6e970]
xor edx, dword [rsi + rcx*4 + 0x6ed70]
movzx ecx, al
movzx eax, dil
xor edx, dword [rsi + rcx*4 + 0x6f170]
xor edx, dword [rsi + rax*4 + 0x6f570]
mov dword [r8 - 4], edx
sub r9, 1
jne 0x1800021e0
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x1800021d2
mov r14, qword [rsp + 0x28]
mov byte [rbx + 8], 1
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret