Function at 0x140099aa0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
movzx eax, byte [rdx + 1]
lea r15, [0x140000000]
movzx ebx, byte [rdx]
mov r11, rdx
movzx r9d, byte [rdx + 2]
mov r14, rcx
movzx edi, byte [rdx + 4]
mov r13, r8
movzx r10d, byte [rdx + 3]
movzx esi, byte [r11 + 8]
movsxd r12, dword [r14 + 0x3c8]
shl ebx, 8
or ebx, eax
shl edi, 8
movzx eax, byte [rdx + 5]
or edi, eax
shl esi, 8
movzx eax, byte [r11 + 9]
or esi, eax
shl ebx, 8
movzx eax, byte [r11 + 0xc]
or ebx, r9d
shl eax, 8
shl edi, 8
shl esi, 8
shl ebx, 8
or ebx, r10d
xor ebx, dword [rcx]
movzx ecx, byte [rdx + 6]
movzx edx, byte [rdx + 7]
or edi, ecx
movzx ecx, byte [r11 + 0xa]
or esi, ecx
shl edi, 8
movzx ecx, byte [r11 + 0xd]
or edi, edx
movzx edx, byte [r11 + 0xb]
or eax, ecx
movzx ecx, byte [r11 + 0xe]
xor edi, dword [r14 + 4]
shl eax, 8
or eax, ecx
shl esi, 8
movzx ecx, byte [r11 + 0xf]
or esi, edx
xor esi, dword [r14 + 8]
shl eax, 8
or eax, ecx
xor eax, dword [r14 + 0xc]
cmp r12, 1
jle 0x1400994c9
mov qword [rsp + 0x30], rbp
lea r15, [r12 - 1]
lea rbp, [r14 + 0x28]
lea r13, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movsxd r10, eax
lea rbp, [rbp + 0x20]
movsxd r8, ebx
movsxd r9, edi
mov rax, r8
sar rax, 0x18
movzx edx, al
mov rax, r9
sar rax, 0x10
movzx ecx, al
movsxd r11, esi
mov ebx, dword [r13 + rdx*4 + 0x1860d0]
mov rax, r11
sar rax, 8
xor ebx, dword [r13 + rcx*4 + 0x184bb0]
movzx ecx, al
movzx eax, r10b
xor ebx, dword [r13 + rcx*4 + 0x187630]
xor ebx, dword [r13 + rax*4 + 0x186a30]
mov rax, r9
xor ebx, dword [rbp - 0x28]
sar rax, 0x18
movzx edx, al
mov rax, r11
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar rax, 8
mov edi, dword [r13 + rdx*4 + 0x1860d0]
xor edi, dword [r13 + rcx*4 + 0x184bb0]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0x187630]
xor edi, dword [r13 + rax*4 + 0x186a30]
mov rax, r8
xor edi, dword [rbp - 0x24]
sar rax, 8
movzx edx, al
mov rax, r11
sar rax, 0x18
movzx ecx, al
mov rax, r10
sar rax, 0x10
mov esi, dword [r13 + rdx*4 + 0x187630]
sar r8, 0x10
xor esi, dword [r13 + rcx*4 + 0x1860d0]
movzx ecx, al
movzx eax, r9b
sar r9, 8
sar r10, 0x18
xor esi, dword [r13 + rcx*4 + 0x184bb0]
xor esi, dword [r13 + rax*4 + 0x186a30]
xor esi, dword [rbp - 0x20]
movzx ecx, r9b
movzx eax, r8b
mov eax, dword [r13 + rax*4 + 0x184bb0]
xor eax, dword [r13 + rcx*4 + 0x187630]
movzx ecx, r10b
xor eax, dword [r13 + rcx*4 + 0x1860d0]
movzx ecx, r11b
xor eax, dword [r13 + rcx*4 + 0x186a30]
xor eax, dword [rbp - 0x1c]
sub r15, 1
jne 0x140099390
mov rbp, qword [rsp + 0x30]
lea r15, [0x140000000]
mov r13, qword [rsp + 0x40]
movsxd r9, eax
movsxd rbx, ebx
movsxd r11, edi
mov rcx, rbx
sar rcx, 0x18
movzx edx, cl
movsxd r10, esi
shl r12, 5
add r12, r14
movzx eax, r9b
mov r8d, dword [r12]
mov ecx, r8d
sar ecx, 0x18
xor cl, byte [rdx + r15 + 0x1853d0]
mov byte [r13], cl
mov rcx, r11
sar rcx, 0x10
movzx edx, cl
mov ecx, r8d
sar ecx, 0x10
xor cl, byte [rdx + r15 + 0x1853d0]
mov byte [r13 + 1], cl
mov rcx, r10
sar rcx, 8
movzx edx, cl
mov ecx, r8d
xor r8b, byte [rax + r15 + 0x1853d0]
mov rax, r11
sar rax, 0x18
sar ecx, 8
xor cl, byte [rdx + r15 + 0x1853d0]
mov byte [r13 + 2], cl
movzx ecx, al
mov byte [r13 + 3], r8b
mov edx, dword [r12 + 4]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 4], al
mov rax, r10
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 5], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 6], al
movzx eax, bl
xor dl, byte [rax + r15 + 0x1853d0]
mov rax, r10
sar rax, 0x18
movzx ecx, al
mov byte [r13 + 7], dl
mov edx, dword [r12 + 8]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 8], al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 9], al
mov rax, rbx
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 0xa], al
movzx eax, r11b
xor dl, byte [rax + r15 + 0x1853d0]
mov byte [r13 + 0xb], dl
mov edx, dword [r12 + 0xc]
mov eax, edx
mov rsi, qword [rsp + 0x48]
sar eax, 0x18
sar rbx, 0x10
sar r9, 0x18
movzx ecx, r9b
sar r11, 8
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, bl
mov rbx, qword [rsp + 0x38]
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r11b
xor al, byte [rcx + r15 + 0x1853d0]
mov byte [r13 + 0xe], al
movzx eax, r10b
xor dl, byte [rax + r15 + 0x1853d0]
mov byte [r13 + 0xf], dl
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x68
mov eax, dword [rcx + 0x3c4]
mov r14, r8
mov r9, rdx
mov rbx, rcx
cmp eax, 0x10
jne 0x140099acc
add rsp, 0x68
pop r14
pop rbx
jmp 0x1400992a0
mov qword [rsp + 0x88], rbp
cdq
mov qword [rsp + 0x60], rsi
and edx, 3
add eax, edx
mov qword [rsp + 0x58], rdi
sar eax, 2
xor r10d, r10d
movsxd rsi, eax
mov eax, r10d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
cmp esi, 4
je 0x140099b0d
cmp esi, 6
setne al
inc rax
shl rax, 5
lea r13, [0x140000000]
lea rdi, [rcx + 0x44c]
mov rbp, rsi
mov r8, rdi
mov r11d, dword [rax + r13 + 0x1864e0]
mov r12d, dword [rax + r13 + 0x1864e8]
mov r15d, dword [rax + r13 + 0x1864d8]
mov dword [rsp + 0x80], r11d
mov dword [rsp + 0x20], r12d
test esi, esi
jle 0x140099b94
nop
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
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 [rbx + r10*4]
inc r10
mov dword [rcx], edx
cmp r10, rsi
jl 0x140099b50
cmp dword [rbx + 0x3c8], 1
mov dword [rsp + 0x98], 1
jle 0x140099cf2
lea eax, [rsi*4]
mov edi, 0x40c
cdqe
mov r14d, r11d
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x20]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
test rbp, rbp
jle 0x140099c89
mov r11d, dword [rsp + 0x20]
mov r10d, r14d
sub r10d, r15d
mov r14, rbp
sub r11d, r15d
lea rbp, [0x140000000]
mov r12d, r15d
mov r13, rax
nop word [rax + rax]
lea eax, [r12 + r10]
cdq
lea r13, [r13 + 4]
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
lea eax, [r12 + r11]
cdq
sar rcx, 8
idiv esi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [rbp + r8*4 + 0x187630]
movzx ecx, byte [rbx + rax*4 + 0x44c]
mov eax, r12d
cdq
inc r12d
idiv esi
xor r9d, dword [rbp + rcx*4 + 0x186a30]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [rbp + rax*4 + 0x184bb0]
movzx eax, byte [rdi + r13 + 0x1f]
xor r9d, dword [rbp + rax*4 + 0x1860d0]
xor r9d, dword [r13 - 4]
mov dword [rdi + r13 - 4], r9d
sub r14, 1
jne 0x140099c00
mov r14d, dword [rsp + 0x80]
mov rbp, rsi
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x42c]
lea rcx, [rbx + 0x44c]
call fcn.1400dff23
mov ecx, dword [rsp + 0x98]
sub rdi, 0x20
mov rax, qword [rsp + 0x28]
inc ecx
add rax, 0x20
mov dword [rsp + 0x98], ecx
mov qword [rsp + 0x28], rax
cmp ecx, dword [rbx + 0x3c8]
jl 0x140099bd0
mov r14, qword [rsp + 0x90]
lea rdi, [rbx + 0x44c]
mov r11d, dword [rsp + 0x80]
lea r13, [0x140000000]
mov r12d, dword [rsp + 0x20]
test rbp, rbp
jle 0x140099dbd
sub r15d, r11d
sub r12d, r11d
xor r9d, r9d
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3c8]
lea r14, [r14 + 4]
lea rdi, [rdi + 4]
lea rcx, [r9 + rax*8]
inc r9
mov r8d, dword [rbx + rcx*4]
mov eax, r8d
movzx ecx, byte [rdi - 1]
sar eax, 0x18
xor al, byte [rcx + r13 + 0x1853d0]
mov byte [r14 - 4], al
lea eax, [r15 + r11]
cdq
idiv esi
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 + r13 + 0x1853d0]
mov byte [r14 - 3], al
mov eax, r11d
cdq
idiv esi
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 + r13 + 0x1853d0]
mov byte [r14 - 2], al
lea eax, [r12 + r11]
cdq
inc r11d
idiv esi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x44c]
xor r8b, byte [rcx + r13 + 0x1853d0]
mov byte [r14 - 1], r8b
cmp r9, rbp
jl 0x140099d10
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop r14
pop rbx
ret