Function at 0x140099830
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
movzx eax, byte [rdx + 1]
lea r15, [0x140000000]
movzx edi, byte [rdx]
mov r11, rdx
movzx r9d, byte [rdx + 2]
mov r14, rcx
movzx esi, byte [rdx + 4]
mov r12, r8
movzx r10d, byte [rdx + 3]
movzx ebp, byte [r11 + 8]
movsxd r13, dword [r14 + 0x3c8]
shl edi, 8
or edi, eax
shl esi, 8
movzx eax, byte [rdx + 5]
or esi, eax
shl ebp, 8
movzx eax, byte [r11 + 9]
or ebp, eax
shl edi, 8
movzx eax, byte [r11 + 0xc]
or edi, r9d
shl eax, 8
shl esi, 8
shl ebp, 8
shl edi, 8
or edi, r10d
xor edi, dword [rcx + 0x1e0]
movzx ecx, byte [rdx + 6]
movzx edx, byte [rdx + 7]
or esi, ecx
movzx ecx, byte [r11 + 0xa]
or ebp, ecx
shl esi, 8
movzx ecx, byte [r11 + 0xd]
or esi, edx
movzx edx, byte [r11 + 0xb]
or eax, ecx
movzx ecx, byte [r11 + 0xe]
xor esi, dword [r14 + 0x1e4]
shl eax, 8
or eax, ecx
shl ebp, 8
movzx ecx, byte [r11 + 0xf]
or ebp, edx
xor ebp, dword [r14 + 0x1e8]
shl eax, 8
or eax, ecx
xor eax, dword [r14 + 0x1ec]
cmp r13, 1
jle 0x140099306
lea r15, [r13 - 1]
lea r13, [0x140000000]
lea rbx, [r14 + 0x208]
nop dword [rax]
nop word [rax + rax]
movsxd r9, eax
lea rbx, [rbx + 0x20]
movsxd r11, edi
movsxd r10, ebp
mov rax, r11
sar rax, 0x18
movzx edx, al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar rax, 8
mov edi, dword [r13 + rdx*4 + 0x18a8e0]
movsxd r8, esi
xor edi, dword [r13 + rcx*4 + 0x189780]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0x188760]
xor edi, dword [r13 + rax*4 + 0x187a60]
mov rax, r11
xor edi, dword [rbx - 0x28]
sar rax, 0x10
movzx edx, al
mov rax, r8
sar rax, 0x18
movzx ecx, al
mov rax, r9
sar rax, 8
mov esi, dword [r13 + rdx*4 + 0x189780]
xor esi, dword [r13 + rcx*4 + 0x18a8e0]
movzx ecx, al
movzx eax, r10b
xor esi, dword [r13 + rcx*4 + 0x188760]
xor esi, dword [r13 + rax*4 + 0x187a60]
mov rax, r11
xor esi, dword [rbx - 0x24]
sar rax, 8
movzx edx, al
mov rax, r8
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar rax, 0x18
mov ebp, dword [r13 + rdx*4 + 0x188760]
sar r8, 8
xor ebp, dword [r13 + rcx*4 + 0x189780]
movzx ecx, al
movzx eax, r9b
sar r9, 0x18
sar r10, 0x10
xor ebp, dword [r13 + rcx*4 + 0x18a8e0]
xor ebp, dword [r13 + rax*4 + 0x187a60]
xor ebp, dword [rbx - 0x20]
movzx ecx, r9b
movzx eax, r8b
mov eax, dword [r13 + rax*4 + 0x188760]
xor eax, dword [r13 + rcx*4 + 0x18a8e0]
movzx ecx, r10b
xor eax, dword [r13 + rcx*4 + 0x189780]
movzx ecx, r11b
xor eax, dword [r13 + rcx*4 + 0x187a60]
xor eax, dword [rbx - 0x1c]
sub r15, 1
jne 0x1400991d0
movsxd r13, dword [r14 + 0x3c8]
lea r15, [0x140000000]
movsxd r11, eax
lea rbx, [r13 + 0xf]
movsxd rdi, edi
mov rax, r11
sar rax, 0x10
mov rcx, rdi
sar rcx, 0x18
movzx edx, cl
movsxd r10, ebp
shl rbx, 5
add rbx, r14
movsxd r9, esi
mov r8d, dword [rbx]
mov ecx, r8d
sar ecx, 0x18
xor cl, byte [rdx + r15 + 0x188660]
mov byte [r12], cl
movzx ecx, al
mov eax, r8d
sar eax, 0x10
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 1], al
mov rax, r10
sar rax, 8
movzx ecx, al
mov eax, r8d
sar eax, 8
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 2], al
movzx eax, r9b
xor r8b, byte [rax + r15 + 0x188660]
mov rax, r9
sar rax, 0x18
movzx ecx, al
mov byte [r12 + 3], r8b
mov edx, dword [rbx + 4]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 4], al
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 5], al
mov rax, r11
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 6], al
movzx eax, r10b
xor dl, byte [rax + r15 + 0x188660]
mov rax, r10
sar rax, 0x18
movzx ecx, al
mov byte [r12 + 7], dl
mov edx, dword [rbx + 8]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 8], al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 9], al
mov rax, rdi
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 0xa], al
movzx eax, r11b
xor dl, byte [rax + r15 + 0x188660]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
sar r11, 0x18
mov byte [r12 + 0xb], dl
mov edx, dword [rbx + 0xc]
mov eax, edx
mov rbx, qword [rsp + 0x28]
sar eax, 0x18
movzx ecx, r11b
sar r10, 0x10
sar r9, 8
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, r10b
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r9b
xor al, byte [rcx + r15 + 0x188660]
mov byte [r12 + 0xe], al
movzx eax, dil
mov rdi, qword [rsp + 0x40]
xor dl, byte [rax + r15 + 0x188660]
mov byte [r12 + 0xf], dl
pop r15
pop r14
pop r13
pop r12
ret
mov qword [rsp + 0x18], r8
push rbx
push rsi
sub rsp, 0x58
mov eax, dword [rcx + 0x3c4]
mov rsi, r8
mov r9, rdx
mov rbx, rcx
cmp eax, 0x10
jne 0x14009985a
add rsp, 0x58
pop rsi
pop rbx
jmp 0x1400990d0
mov qword [rsp + 0x78], rbp
cdq
mov qword [rsp + 0x50], rdi
and edx, 3
add eax, edx
mov qword [rsp + 0x48], r12
sar eax, 2
movsxd rdi, eax
xor eax, eax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
cmp edi, 4
je 0x140099894
cmp edi, 6
setne al
inc rax
shl rax, 5
lea r13, [0x140000000]
lea r12, [rcx + 0x44c]
mov r15, rdi
mov r8, r12
mov r14d, dword [rax + r13 + 0x18a38c]
mov r11d, dword [rax + r13 + 0x18a394]
mov r13d, dword [rax + r13 + 0x18a39c]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x88], r11d
test edi, edi
jle 0x140099936
lea r10, [rcx + 0x1e0]
mov rbp, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
lea r10, [r10 + 4]
mov dword [r8], eax
movzx ecx, byte [r9 - 3]
shl ecx, 0x10
or ecx, eax
mov dword [r8], ecx
movzx edx, byte [r9 - 2]
shl edx, 8
or edx, ecx
mov rcx, r8
mov dword [r8], edx
add r8, 4
movzx eax, byte [r9 - 1]
or edx, eax
xor edx, dword [r10 - 4]
mov dword [rcx], edx
sub rbp, 1
jne 0x1400998f0
mov ebp, 1
mov dword [rsp + 0x70], ebp
cmp dword [rbx + 0x3c8], ebp
jle 0x140099a8a
lea eax, [rdi*4]
mov r12d, 0x22c
cdqe
lea rcx, [rbx + 0x42c]
mov qword [rsp + 0x28], rax
lea r13, [rbx + 0x200]
nop dword [rax]
test r15, r15
jle 0x140099a36
mov r10d, r11d
lea rbp, [0x140000000]
mov r11d, dword [rsp + 0x20]
sub r10d, r14d
sub r11d, r14d
mov r15d, r14d
mov r14, rdi
mov rsi, r13
nop word [rax + rax]
lea eax, [r15 + r10]
cdq
lea rsi, [rsi + 4]
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
lea eax, [r15 + r11]
cdq
sar rcx, 8
idiv edi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [rbp + r8*4 + 0x188760]
movzx ecx, byte [rbx + rax*4 + 0x44c]
mov eax, r15d
cdq
inc r15d
idiv edi
xor r9d, dword [rbp + rcx*4 + 0x187a60]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [rbp + rax*4 + 0x189780]
movzx eax, byte [r12 + rsi + 0x1f]
xor r9d, dword [rbp + rax*4 + 0x18a8e0]
xor r9d, dword [rsi - 4]
mov dword [r12 + rsi - 4], r9d
sub r14, 1
jne 0x1400999a0
mov r14d, dword [rsp + 0x24]
lea rcx, [rbx + 0x42c]
mov ebp, dword [rsp + 0x70]
mov r15, rdi
mov rax, qword [rsp + 0x28]
mov rdx, rcx
mov r8, rax
lea rcx, [rbx + 0x44c]
call fcn.1400e09b3
mov r11d, dword [rsp + 0x88]
lea rcx, [rbx + 0x42c]
mov rax, qword [rsp + 0x28]
inc ebp
add r13, 0x20
mov dword [rsp + 0x70], ebp
sub r12, 0x20
cmp ebp, dword [rbx + 0x3c8]
jl 0x140099970
mov rsi, qword [rsp + 0x80]
lea r12, [rbx + 0x44c]
mov r13d, dword [rsp + 0x20]
mov rbp, qword [rsp + 0x78]
test r15, r15
jle 0x140099b61
sub r14d, r11d
lea r10, [0x140000000]
sub r13d, r11d
xor r9d, r9d
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3c8]
lea rsi, [rsi + 4]
lea r12, [r12 + 4]
lea rcx, [r9 + rax*8]
inc r9
mov r8d, dword [rbx + rcx*4 + 0x1e0]
mov eax, r8d
movzx ecx, byte [r12 - 1]
sar eax, 0x18
xor al, byte [rcx + r10 + 0x188660]
mov byte [rsi - 4], al
lea eax, [r14 + r11]
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + r10 + 0x188660]
mov byte [rsi - 3], al
mov eax, r11d
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + r10 + 0x188660]
mov byte [rsi - 2], al
lea eax, [r11 + r13]
cdq
inc r11d
idiv edi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x44c]
xor r8b, byte [rcx + r10 + 0x188660]
mov byte [rsi - 1], r8b
cmp r9, r15
jl 0x140099ab0
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
add rsp, 0x58
pop rsi
pop rbx
ret