Function at 0x140099df0
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 0x1400998c6
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 + 0x1858d0]
movsxd r8, esi
xor edi, dword [r13 + rcx*4 + 0x187a30]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0x186630]
xor edi, dword [r13 + rax*4 + 0x186e30]
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 + 0x187a30]
xor esi, dword [r13 + rcx*4 + 0x1858d0]
movzx ecx, al
movzx eax, r10b
xor esi, dword [r13 + rcx*4 + 0x186630]
xor esi, dword [r13 + rax*4 + 0x186e30]
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 + 0x186630]
sar r8, 8
xor ebp, dword [r13 + rcx*4 + 0x187a30]
movzx ecx, al
movzx eax, r9b
sar r9, 0x18
sar r10, 0x10
xor ebp, dword [r13 + rcx*4 + 0x1858d0]
xor ebp, dword [r13 + rax*4 + 0x186e30]
xor ebp, dword [rbx - 0x20]
movzx ecx, r9b
movzx eax, r8b
mov eax, dword [r13 + rax*4 + 0x186630]
xor eax, dword [r13 + rcx*4 + 0x1858d0]
movzx ecx, r10b
xor eax, dword [r13 + rcx*4 + 0x187a30]
movzx ecx, r11b
xor eax, dword [r13 + rcx*4 + 0x186e30]
xor eax, dword [rbx - 0x1c]
sub r15, 1
jne 0x140099790
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 + 0x186530]
mov byte [r12], cl
movzx ecx, al
mov eax, r8d
sar eax, 0x10
xor al, byte [rcx + r15 + 0x186530]
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 + 0x186530]
mov byte [r12 + 2], al
movzx eax, r9b
xor r8b, byte [rax + r15 + 0x186530]
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 + 0x186530]
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 + 0x186530]
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 + 0x186530]
mov byte [r12 + 6], al
movzx eax, r10b
xor dl, byte [rax + r15 + 0x186530]
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 + 0x186530]
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 + 0x186530]
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 + 0x186530]
mov byte [r12 + 0xa], al
movzx eax, r11b
xor dl, byte [rax + r15 + 0x186530]
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 + 0x186530]
mov byte [r12 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, r10b
xor al, byte [rcx + r15 + 0x186530]
mov byte [r12 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r9b
xor al, byte [rcx + r15 + 0x186530]
mov byte [r12 + 0xe], al
movzx eax, dil
mov rdi, qword [rsp + 0x40]
xor dl, byte [rax + r15 + 0x186530]
mov byte [r12 + 0xf], dl
pop r15
pop r14
pop r13
pop r12
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 0x140099e1c
add rsp, 0x68
pop r14
pop rbx
jmp 0x140099690
cdq
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x60], rsi
and edx, 3
add eax, edx
mov qword [rsp + 0x50], r12
sar eax, 2
movsxd rsi, eax
xor eax, eax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
cmp esi, 4
je 0x140099e54
cmp esi, 6
setne al
inc rax
shl rax, 5
lea rcx, [0x140000000]
mov qword [rsp + 0x58], rdi
lea r12, [rbx + 0x44c]
mov r8, r12
mov rbp, rsi
mov r15d, dword [rax + rcx + 0x1864dc]
mov r11d, dword [rax + rcx + 0x1864e4]
mov ecx, dword [rax + rcx + 0x1864ec]
mov dword [rsp + 0x98], ecx
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x80], r11d
test esi, esi
jle 0x140099efd
lea r10, [rbx + 0x1e0]
mov rdi, rsi
nop word [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 rdi, 1
jne 0x140099eb0
mov ecx, dword [rsp + 0x98]
mov r13d, 1
cmp dword [rbx + 0x3c8], r13d
jle 0x14009a041
lea eax, [rsi*4]
mov edi, 0x22c
cdqe
mov r14d, r11d
mov qword [rsp + 0x30], rax
lea rax, [rbx + 0x200]
mov qword [rsp + 0x28], rax
test rbp, rbp
jle 0x140099ff4
mov r10d, r14d
mov r11d, ecx
sub r10d, r15d
mov r12d, r15d
sub r11d, r15d
mov rbp, rax
lea r15, [0x140000000]
mov r14, rsi
nop word [rax + rax]
lea eax, [r12 + r10]
cdq
lea rbp, [rbp + 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 [r15 + r8*4 + 0x186630]
movzx ecx, byte [rbx + rax*4 + 0x44c]
mov eax, r12d
cdq
inc r12d
idiv esi
xor r9d, dword [r15 + rcx*4 + 0x186e30]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r15 + rax*4 + 0x187a30]
movzx eax, byte [rdi + rbp + 0x1f]
xor r9d, dword [r15 + rax*4 + 0x1858d0]
xor r9d, dword [rbp - 4]
mov dword [rdi + rbp - 4], r9d
sub r14, 1
jne 0x140099f60
mov r15d, dword [rsp + 0x20]
lea r12, [rbx + 0x44c]
mov r14d, dword [rsp + 0x80]
mov rbp, rsi
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x42c]
mov rcx, r12
call fcn.1400dff23
mov rax, qword [rsp + 0x28]
inc r13d
mov ecx, dword [rsp + 0x98]
add rax, 0x20
sub rdi, 0x20
mov qword [rsp + 0x28], rax
cmp r13d, dword [rbx + 0x3c8]
jl 0x140099f32
mov r14, qword [rsp + 0x90]
mov r11d, dword [rsp + 0x80]
mov r13, qword [rsp + 0x48]
test rbp, rbp
jle 0x14009a121
mov r10d, dword [rsp + 0x98]
lea rdi, [0x140000000]
sub r10d, r11d
sub r15d, r11d
xor r9d, r9d
nop word [rax + rax]
movsxd rax, dword [rbx + 0x3c8]
lea r14, [r14 + 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 + rdi + 0x186530]
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 + rdi + 0x186530]
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 + rdi + 0x186530]
mov byte [r14 - 2], al
lea eax, [r10 + r11]
cdq
inc r11d
idiv esi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x44c]
xor r8b, byte [rcx + rdi + 0x186530]
mov byte [r14 - 1], r8b
cmp r9, rbp
jl 0x14009a070
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
add rsp, 0x68
pop r14
pop rbx
ret