Function at 0x180103f60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [rcx]
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x180103f96
mov rcx, r14
call fcn.1800a53c0
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x58], r15
cmp rsi, 2
jb 0x18010434b
mov rcx, rsi
mov qword [rsp + 0x68], r12
shr rcx, 1
imul rax, rcx, 0xfffffffffffffffe
mov qword [rsp + 0x60], r13
add rsi, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xb8], rsi
nop
mov r11, qword [r14 + 0x20]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], 8
mov r15d, dword [r11 + 8]
lea r10, [r11 + 0x28]
mov r14d, dword [r11]
mov eax, r15d
xor eax, dword [rdi + 8]
mov ebx, r14d
mov esi, dword [r11 + 4]
mov r12d, esi
mov ebp, dword [r11 + 0xc]
mov r13d, ebp
xor ebx, dword [rdi]
xor r14d, dword [rdi + 0x10]
xor r12d, dword [rdi + 4]
xor esi, dword [rdi + 0x14]
xor r15d, dword [rdi + 0x18]
xor r13d, dword [rdi + 0xc]
xor ebp, dword [rdi + 0x1c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa0]
mov edi, dword [rsp + 0x20]
mov qword [rsp + 0x28], r10
mov r11, qword [rax + 8]
nop word [rax + rax]
mov r9d, dword [r10 - 8]
mov eax, r12d
shr eax, 0x10
movzx ecx, al
mov eax, r12d
shr eax, 8
movzx eax, al
mov r10d, dword [r10 - 4]
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, ebx
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r12d
shr rax, 0x18
ror r13d, 0x1f
mov edx, dword [r11 + rcx*4 + 0xc00]
ror ebp, 0x1f
xor r8d, dword [r11 + rax*4]
movzx eax, r12b
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, ebx
shr eax, 8
movzx ecx, al
movzx eax, bl
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, edi
mov edi, eax
shr eax, 1
shl edi, 0x1f
or edi, eax
lea eax, [r10 + r8]
add eax, edx
xor r13d, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, r14d
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, sil
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r14d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, r15d
mov r15d, eax
shr eax, 1
shl r15d, 0x1f
or r15d, eax
lea eax, [r10 + r8]
add eax, edx
xor ebp, eax
mov eax, r13d
shr eax, 0x10
movzx ecx, al
mov eax, r13d
shr eax, 8
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov r10, qword [rsp + 0x28]
movzx eax, al
mov ecx, edi
shr rcx, 0x18
mov r9d, dword [r10]
xor r8d, dword [r11 + rax*4 + 0x800]
mov r10d, dword [r10 + 4]
mov edx, dword [r11 + rcx*4 + 0xc00]
mov eax, r13d
shr rax, 0x18
ror r12d, 0x1f
ror esi, 0x1f
xor r8d, dword [r11 + rax*4]
movzx eax, r13b
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, edi
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, dil
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [rdx + r9]
xor eax, ebx
mov ebx, eax
shr eax, 1
shl ebx, 0x1f
or ebx, eax
lea eax, [r8 + rdx]
add eax, r10d
xor r12d, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr eax, 8
movzx eax, al
mov r8d, dword [r11 + rcx*4 + 0xc00]
mov ecx, r15d
xor r8d, dword [r11 + rax*4 + 0x800]
shr rcx, 0x18
mov eax, ebp
shr rax, 0x18
mov edx, dword [r11 + rcx*4 + 0xc00]
xor r8d, dword [r11 + rax*4]
movzx eax, bpl
xor r8d, dword [r11 + rax*4 + 0x400]
mov eax, r15d
shr eax, 0x10
movzx eax, al
xor edx, dword [r11 + rax*4 + 0x800]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r11 + rcx*4 + 0x400]
xor edx, dword [r11 + rax*4]
add edx, r8d
lea eax, [r9 + rdx]
xor eax, r14d
mov r14d, eax
shr eax, 1
shl r14d, 0x1f
or r14d, eax
lea eax, [r10 + r8]
mov r10, qword [rsp + 0x28]
add eax, edx
add r10, 0x10
xor esi, eax
sub qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r10
jne 0x180104040
mov r11, qword [rsp + 0x48]
mov dword [rsp + 0x20], ebx
mov rbx, qword [rsp + 0xb0]
mov ecx, dword [r11 + 0x10]
mov eax, ecx
mov edx, dword [r11 + 0x14]
xor eax, edi
mov r8d, dword [r11 + 0x18]
xor ecx, r15d
mov r9d, dword [r11 + 0x1c]
mov rdi, qword [rsp + 0xa8]
mov dword [rbx], eax
add rdi, 0x20
mov eax, edx
mov dword [rbx + 0x10], ecx
xor eax, r13d
mov qword [rsp + 0xa8], rdi
mov dword [rbx + 4], eax
xor edx, ebp
mov eax, r8d
mov dword [rbx + 0x14], edx
xor eax, dword [rsp + 0x20]
xor r8d, r14d
mov r14, qword [rsp + 0xa0]
mov dword [rbx + 8], eax
mov eax, r9d
xor eax, r12d
mov dword [rbx + 0x18], r8d
xor r9d, esi
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x1c], r9d
add rbx, 0x20
sub qword [rsp + 0x38], 1
mov qword [rsp + 0xb0], rbx
jne 0x180103fd0
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xb8]
test rsi, rsi
je 0x180104608
mov rbp, qword [r14 + 0x20]
mov r15d, 4
mov r10d, dword [rdi]
mov r11d, dword [rbp + 4]
xor r11d, dword [rdi + 4]
mov r9d, dword [rbp + 8]
xor r9d, dword [rdi + 8]
xor r10d, dword [rbp]
mov esi, dword [rbp + 0xc]
xor esi, dword [rdi + 0xc]
mov rdi, qword [r14 + 8]
lea r14, [rbp + 0x28]
nop dword [rax]
nop word [rax + rax]
mov eax, r11d
ror esi, 0x1f
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
mov ecx, r10d
xor r8d, dword [rdi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, r11d
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4]
movzx eax, r11b
ror r11d, 0x1f
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r14 - 8]
add edx, r8d
add eax, edx
xor eax, r9d
mov r9d, eax
shr eax, 1
shl r9d, 0x1f
or r9d, eax
mov eax, dword [r14 - 4]
add eax, r8d
add eax, edx
xor esi, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [rdi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4]
movzx eax, sil
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov ecx, dword [r14]
add edx, r8d
mov eax, dword [r14 + 4]
add ecx, edx
xor ecx, r10d
add eax, r8d
mov r10d, ecx
add eax, edx
shr ecx, 1
xor r11d, eax
shl r10d, 0x1f
mov eax, r11d
or r10d, ecx
shr eax, 0x10
movzx ecx, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
lea r14, [r14 + 0x20]
mov eax, r11d
mov ecx, r10d
shr eax, 8
movzx eax, al
shr rcx, 0x18
ror esi, 0x1f
xor r8d, dword [rdi + rax*4 + 0x800]
mov edx, dword [rdi + rcx*4 + 0xc00]
mov eax, r11d
shr rax, 0x18
xor r8d, dword [rdi + rax*4]
movzx eax, r11b
ror r11d, 0x1f
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r10d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r14 - 0x18]
add edx, r8d
add eax, edx
xor eax, r9d
mov r9d, eax
shr eax, 1
shl r9d, 0x1f
or r9d, eax
mov eax, dword [r14 - 0x14]
add eax, r8d
add eax, edx
xor esi, eax
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
movzx eax, al
mov r8d, dword [rdi + rcx*4 + 0xc00]
mov ecx, r9d
xor r8d, dword [rdi + rax*4 + 0x800]
shr rcx, 0x18
mov eax, esi
shr rax, 0x18
mov edx, dword [rdi + rcx*4 + 0xc00]
xor r8d, dword [rdi + rax*4]
movzx eax, sil
xor r8d, dword [rdi + rax*4 + 0x400]
mov eax, r9d
shr eax, 0x10
movzx eax, al
xor edx, dword [rdi + rax*4 + 0x800]
mov eax, r9d
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor edx, dword [rdi + rcx*4 + 0x400]
xor edx, dword [rdi + rax*4]
mov eax, dword [r14 - 0x10]
add edx, r8d
add eax, edx
xor eax, r10d
mov r10d, eax
shr eax, 1
shl r10d, 0x1f
or r10d, eax
mov eax, dword [r14 - 0xc]
add eax, r8d
add eax, edx
xor r11d, eax
sub r15, 1
jne 0x180104390
xor r11d, dword [rbp + 0x1c]
xor r10d, dword [rbp + 0x18]
xor esi, dword [rbp + 0x14]
xor r9d, dword [rbp + 0x10]
mov dword [rbx], r9d
mov dword [rbx + 4], esi
mov dword [rbx + 8], r10d
mov dword [rbx + 0xc], r11d
mov r15, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret