Function at 0x14001a668
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r11, qword [0x14003d668]
lea r13d, [rcx + 1]
mov rbp, qword [rsp + 0x100]
mov r15, rdx
movsxd r12, dword [rsp + 0x118]
mov r14, r11
movsxd rax, r9d
xor r14, 0x192d
mov rcx, rax
mov dword [rsp + 0xe0], r13d
mov rax, qword [rsp + 0x108]
movzx ebx, word [r15 + 0x1810]
xor rbx, qword [0x14003d628]
mov byte [rsp + 0x108], r13b
movzx r10d, word [rax + rcx*2]
mov eax, 0xabfb771f
mul r10d
mov qword [rsp + 0x68], rbx
shr edx, 0xc
mov eax, edx
mov qword [rsp + 0x60], rax
imul rax, qword [r8 + 0x6540], 0x49d
mov qword [rsp + 0x78], rax
mov rax, qword [0x14003d640]
mov al, byte [rax + 0x2214]
xor al, 0xc8
mov byte [rsp + 0x50], al
lea rax, [r11 + r11*2]
mov sil, byte [rbp + rax*8 + 8]
mov eax, dword [0x14003d638]
or sil, 0x7f
cdq
mov byte [rsp + 0x100], sil
idiv r12d
movsxd r11, edx
movzx edx, byte [0x14003d610]
mov qword [rsp + 0x58], r11
lea rcx, [rdx + rdx*2]
inc dl
mov al, byte [r15 + rcx*2 + 0xa]
mov byte [0x14003d610], dl
or dl, 0xad
mov byte [rsp + 0x51], al
movzx eax, r13w
sub ax, word [rbp + 0x91d0]
mov word [rsp + 0x52], ax
mov eax, r13d
shl eax, 2
cdqe
mov qword [rsp + 0x80], rax
sub dl, byte [rax + rbx]
mov byte [rax + rbx], dl
movsxd r9, dword [0x14003d660]
movzx edi, word [0x27ba]
movzx ecx, word [r15 + r9*2]
cmp edi, ecx
jne 0x14001a88e
lea eax, [r12 + 0xbf9]
mov qword [rsp + 0x88], r12
movsxd r8, eax
mov r11, r12
mov qword [rsp + 0x70], r8
mov r12, rbx
movsxd rsi, r13d
movzx r10d, byte [r12 + rsi*2]
add r13b, 0xff
movzx eax, r13b
cdq
movsxd rbx, edi
idiv edi
mov r9, rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
and r9d, 0x1083
movsxd rcx, eax
mov r8, r11
mov edx, r10d
call fcn.140016750
mov r8, qword [rsp + 0x70]
mov r11, qword [rsp + 0x88]
movsxd rcx, eax
mov rax, r14
or rax, 0x412
mov qword [0x14003d688], rcx
sub rax, r14
lea r14, [rbx + rax]
mov eax, dword [0x14003d660]
shl eax, 2
movsxd rcx, eax
mov eax, 0xd3bf7ba9
imul edi
add edx, edi
inc edi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
cdqe
sub rax, qword [rbp + rcx*8]
mov qword [rbp + rcx*8], rax
movsxd r9, dword [0x14003d660]
movzx ecx, word [r15 + r9*2]
cmp edi, ecx
je 0x14001a7c7
mov r12d, dword [rsp + 0x118]
mov sil, byte [rsp + 0x100]
mov rbx, qword [rsp + 0x68]
mov r11, qword [rsp + 0x58]
mov byte [rsp + 0x108], r13b
mov r13d, dword [rsp + 0xe0]
mov eax, r9d
inc sil
shl eax, 2
dec r9d
movsxd rcx, eax
mov rax, qword [0x14003d678]
movzx r10d, sil
mov qword [rsp + 0x100], r10
movzx edx, word [rax + rcx*2]
movzx r8d, word [r15 + r10*2 + 0x48]
mov dword [0x14003d660], r9d
movsxd r9, dword [0x14003d63c]
cmp r8w, dx
jbe 0x14001acfb
movzx ecx, byte [r9]
lea rdx, [r10 + r10*2]
cmp word [r15 + rdx*2], cx
ja 0x14001acfb
movsxd rdi, dword [rsp + 0xf8]
mov edx, 0x1d3e
lea eax, [rdi + 5]
lea eax, [rdi + rax*2]
movsxd rcx, eax
movzx r8d, word [r11 + rcx*2]
mov ecx, r14d
call fcn.140015ef0
mov ecx, dword [0x14003d660]
mov r8, qword [rsp + 0x60]
add ecx, 0xd
movsxd rdx, ecx
mov rcx, qword [0x14003d650]
mov word [rcx + rdx*2], ax
movsxd r9, dword [0x14003d660]
lea eax, [r9*2 + 1]
add eax, r9d
movsxd rcx, eax
mov rax, qword [0x14003d640]
movzx r11d, byte [rcx + r8]
movsxd rcx, r13d
movsxd r8, dword [rax + rcx*4]
mov eax, dword [0x14003d63c]
lea ecx, [rax + rax*2]
mov rax, qword [0x14003d698]
movsxd rdx, ecx
mov ecx, dword [0x14003d638]
sub ecx, dword [rax + rdx*4]
mov edx, r11d
movzx eax, byte [rsp + 0x51]
movsxd r10, ecx
mov rcx, qword [rsp + 0x58]
movzx r9d, word [rcx + r9*2]
mov rcx, r14
and r9, rax
xor rcx, 0x1e52
mov rax, r14
or rax, 0x1b48
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov r9d, 0x582
mov qword [rsp + 0x20], r10
call fcn.140015ab0
mov rcx, qword [0x14003d658]
mov word [rcx + rdi*2], ax
mov eax, dword [0x14003d660]
add eax, eax
movsxd rcx, eax
mov rax, qword [rsp + 0x80]
movzx edx, byte [rcx + rbx]
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
movzx eax, byte [rax + rcx]
xor edx, eax
imul eax, edx, 0x17ac
xor eax, r13d
mov dword [0x14003d63c], eax
mov eax, dword [0x14003d684]
lea eax, [rax*2 + 8]
movsxd rdx, eax
mov eax, edi
shl eax, 2
movsxd rcx, eax
mov rax, qword [rsp + 0x110]
movzx edi, sil
mov qword [rsp + 0x70], rdi
mov al, byte [rcx + rax]
add al, 0x1b
or byte [rdx + rbx], al
lea eax, [r13 - 1]
movzx r9d, word [r14 + r14 + 0x1460]
mov dword [rsp + 0xf8], eax
cdqe
mov byte [rax], r12b
mov rax, qword [0x14003d668]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x58]
movzx edx, word [rax + rcx*2 + 0x10]
movzx ecx, word [0x407a]
and ecx, 0x12eb
and r9d, 0xe98
mov rax, qword [0x14003d688]
mov r8d, edi
mov qword [rsp + 0x48], 0xa3a
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov rax, qword [0x14003d630]
mov qword [rsp + 0x30], rdx
mov edx, 0xa96
mov qword [rsp + 0x28], rcx
mov ecx, 0x183
mov qword [rsp + 0x20], rax
call fcn.140015400
mov rax, qword [rsp + 0xf0]
movzx esi, word [r15 + r14*2 + 0x4e]
cmp rsi, qword [rax + rdi*8]
jbe 0x14001af1e
mov r15b, byte [rsp + 0x108]
movsxd rax, r12d
mov r12b, byte [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rax, [rsi*8]
add rax, rbp
movsxd r13, esi
mov qword [rsp + 0x68], rax
lea rax, [rsi*4 + 0x10]
mov qword [rsp + 0x100], rax
mov rax, qword [0x14003d688]
xor edx, edx
mov rcx, qword [rsp + 0x78]
add r15b, 0xff
movsxd r11, dword [0x14003d674]
mov r8, r13
movzx edi, r12b
xor r8, 0x57
movzx ecx, byte [rax + rcx]
movzx eax, byte [rbx + 0x1b77]
sub eax, edi
movsxd rbx, eax
mov rax, qword [0x14003d658]
imul r9, rcx, 0x6c2
mov rcx, qword [0x14003d668]
movzx r10d, word [rax + rcx*2 + 0x3e]
mov rax, r14
div r13
mov edx, dword [rsp + 0xf8]
or r10, r13
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], 0x1d9
mov qword [rsp + 0x38], rax
movzx ecx, r15b
sub edx, ecx
mov qword [rsp + 0x30], r11
movsxd rdx, edx
lea ecx, [rsi - 0x23c]
mov qword [rsp + 0x28], rdx
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.140015400
movzx ecx, byte [0x14003d610]
mov r8, qword [rsp + 0x110]
add ecx, 0x1d
mov rdx, qword [rsp + 0x58]
mov word [rdx + rcx*2], ax
xor edx, edx
movzx eax, byte [r8 + 0xd40]
div edi
mov ecx, edx
movzx edx, byte [r8 + 0xc4a]
xor rdx, qword [0x14003d628]
movzx r8d, word [0x14003d680]
call fcn.140015ef0
mov rcx, qword [rsp + 0x120]
xor edx, edx
mov r8, qword [rsp + 0x60]
add r12b, 0xff
mov rdi, qword [rsp + 0x100]
mov dword [rsp + 0xf8], eax
mov rax, qword [0x14003d618]
div qword [rcx + 0xd080]
mov rax, qword [rsp + 0x70]
mov byte [rax + r8], dl
movsxd rcx, dword [0x14003d63c]
mov r8d, dword [0x14003d664]
mov eax, ecx
movzx r9d, word [0x14003d670]
xor eax, 0x600
cdq
idiv esi
imul r8d, edx
mov rdx, qword [rsp + 0x78]
mov dword [0x14003d664], r8d
movzx ebx, byte [rdx + rdi - 0x10]
mov rax, qword [rbp]
movzx ecx, word [rcx + rcx + 0x1460]
xor rbx, qword [rsp + 0x80]
xor ecx, 0x1cd4
movzx r11d, byte [rdx + rax*4]
movsxd rax, r8d
mov r10, qword [rbp + rax*8]
mov rax, qword [0x14003d648]
movsxd rdx, dword [rdi + rax]
xor rdx, r13
movzx eax, r12b
mov r13, qword [rsp + 0x68]
xor rax, qword [r13]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdx
mov r8, rbx
mov qword [rsp + 0x30], r10
mov edx, 0x6fa
mov qword [rsp + 0x28], 0x1d9c
mov qword [rsp + 0x20], r11
call fcn.140015400
mov rcx, qword [rsp + 0x70]
add r13, 8
mov rbx, qword [rsp + 0x60]
inc esi
add rdi, 4
movsxd r14, eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], r13
movsxd r13, esi
mov qword [rsp + 0x100], rdi
cmp r13, qword [rax + rcx*8]
ja 0x14001aaf9
mov r15, qword [rsp + 0xe8]
jmp 0x14001af1e
lea eax, [r9*4 + 3]
movsxd rcx, eax
xor eax, eax
mov word [r11 + rcx*2], ax
movsxd r8, dword [0x14003d63c]
movzx r9d, byte [0x14003d610]
xor r9d, r13d
movzx eax, word [r8 + r8 + 0x1460]
cdq
idiv r12d
mov rax, qword [rsp + 0x60]
movsxd rsi, edx
xor edx, edx
movzx eax, byte [rax]
movzx ecx, word [r15 + rax*2 + 0x4a]
movzx eax, word [rsp + 0x52]
div ecx
mov eax, 0x149f
lea rcx, [r10 + r10*2]
movsxd rdi, edx
xor edx, edx
div qword [rbp + 0x5478]
mov rax, qword [0x14003d620]
mov rbx, rdx
xor edx, edx
mov r10d, dword [rax + rcx*4]
movzx eax, word [r15 + r8*2]
add r10d, r12d
mov rcx, qword [rsp + 0x58]
movsxd r11, r10d
movzx r10d, word [rcx + 0x3bfc]
mov rcx, rsi
div r10d
movsxd rax, edx
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbx
call fcn.140015ab0
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [r8]
mov r8d, 0x5b3
mov byte [rcx + rdx], al
mov rax, qword [0x14003d650]
mov rdx, qword [0x14003d618]
movzx ecx, word [rax + 0x1032]
sub rdx, rcx
mov ecx, 0xbb1
sub ecx, r12d
call fcn.140015ef0
mov rdx, qword [rbp]
mov rcx, qword [0x14003d690]
mov r10, qword [rsp + 0x58]
mov dword [rcx + rdx*8 + 0x28], eax
xor edx, edx
movzx ecx, word [r10]
mov rax, qword [rsp + 0x120]
mov r8, qword [0x14003d628]
movsxd r9, dword [0x14003d638]
mov rbx, qword [rax + rcx*8]
movsxd rcx, dword [0x14003d664]
mov rax, rcx
inc ecx
div r8
movzx eax, byte [rsp + 0x108]
or r8, 0x1952
xor r9, rax
mov dword [0x14003d664], ecx
mov eax, dword [rsp + 0xf8]
mov r11, rdx
dec eax
movsxd rbp, eax
movsxd rax, dword [0x14003d660]
movzx r10d, word [r10 + rax*2]
mov rax, qword [rsp + 0x110]
movzx edx, byte [rax + rbp]
and r10, rdx
movsxd rax, r13d
movzx edx, byte [rsp + 0x50]
xor rdx, rax
mov qword [rsp + 0x28], r10
mov rcx, rbx
mov qword [rsp + 0x20], rdx
mov rdx, r11
call fcn.140016750
mov rcx, qword [rsp + 0x100]
lea edi, [r12 + r12*2]
xor edx, edx
movzx ecx, cl
mov r8, rbp
mov word [r15 + rcx*2], ax
lea ecx, [rdi + 2]
mov al, byte [0x14003d610]
movzx esi, word [0x14003d680]
add al, 0xff
mov byte [0x14003d610], al
movzx eax, al
shl eax, 2
movzx eax, byte [rax]
div r14
movsxd rdx, ecx
lea ecx, [r13 + 1]
mov rbx, rax
mov rax, qword [rsp + 0x58]
movzx r11d, word [r15 + rdx*2]
movsxd rdx, ecx
mov ecx, esi
movzx r10d, word [rax + rdx*2]
mov eax, 0x977c0af3
imul r13d
mov qword [rsp + 0x28], r10
add edx, r13d
mov qword [rsp + 0x20], r11
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
movsxd r9, edx
mov rdx, rbx
call fcn.140016750
movsxd rdx, eax
lea eax, [rdi + 5]
movsxd rcx, eax
mov rax, qword [rsp + 0xf0]
mov qword [rax + rcx*8], rdx
movzx eax, word [r15 + 0x16ba]
and eax, 0x1114
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret