Function at 0x100068680
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15d, 0xfffffff
lea r8, section..data
lea r14, [0x100000000]
mov rax, qword [rcx + 0x10]
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov qword [rsp + 0x80], rcx
mov ecx, dword [rax + 5]
mov r13d, dword [rax + 1]
mov r12d, dword [rax + 9]
and r12, r15
shr r13, 2
and rcx, r15
and r13, r15
mov qword [rsp + 0x88], r13
add r12, r14
xor esi, esi
cmp rdi, r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x90], rcx
jb 0x100068746
mov eax, dword [0x100015964]
mov ecx, dword [0x10028bf00]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100068746
mov ecx, dword [0x100015964]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x100015964]
imul rdx, rax
add r8, rdx
jmp 0x100068749
mov r8, rsi
cmp r8, rsi
jne 0x100068758
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov ebp, r12d
lea rax, [r9 - 0x40]
mov r9d, dword [0x100015964]
cmp rax, rsi
cmovl rax, rsi
lea rdi, [r8 + rax]
sub r9, r13
sub ebp, r14d
xor eax, eax
mov dword [rsp + 0x24], ebp
inc r9
cmp r9, rsi
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x1000687c6
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp rdi, rsi
jne 0x100068797
mov qword [0x1003fe198], rcx
xor edx, edx
div r9
mov ecx, ebp
lea rbx, [rdx + r8]
mov qword [rsp + 0x50], rbx
mov rdx, r13
mov r8, rbx
mov eax, 0xf4009d6c
lea rcx, [rsp + 0x60]
mov dil, sil
mov rdx, qword [r13 + r12]
mov qword [rsp + 0x60], rdx
mov eax, 0xb9768c1c
mov rax, qword [0x10014dad0]
mov rcx, r14
mov r8d, dword [rsp + 0x64]
mov r11, qword [rsp + 0x60]
and r11, r15
and r8, r15
mov qword [rsp + 0x28], rsi
mov r15d, 4
add r11, r14
sub rcx, rax
mov qword [rsp + 0x38], rcx
jne 0x100068898
cmp r8, rsi
mov r10, rsi
jbe 0x100068b83
mov ecx, dword [rsp + 0x2c]
mov ebx, 0xaba54d66
mov r9d, dword [rsp + 0x28]
movzx eax, byte [r11 + r10]
inc r10
sub eax, 0x545ab29a
add r9d, eax
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
add r9d, ecx
cmp r10, r8
jb 0x100068844
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], r9d
jmp 0x100068b7e
lea rax, [r11 + r8]
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r14 + 0xb4]
mov r9d, dword [rcx + r14 + 0xb0]
mov qword [rsp + 0x70], rax
mov eax, r11d
add r9, r14
sub eax, r14d
mov ecx, eax
lea rbp, [r8 + rcx]
mov rbx, rcx
lea rcx, [rdx + r9]
mov qword [rsp + 0x30], rcx
mov r10d, eax
mov rax, 0xfffffffffffff000
mov r14, rbp
and r10, rax
sub rbx, r10
and r14, rax
sub rbp, r14
mov qword [rsp + 0x48], rbp
jmp 0x100068902
mov eax, dword [r9]
cmp rax, r10
jae 0x100068907
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x1000688f3
cmp r9, rcx
je 0x100068943
mov eax, dword [r9]
cmp rax, r10
jne 0x100068943
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x10006893e
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x10006893e
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100068925
mov rcx, qword [rsp + 0x30]
mov r10d, dword [rsp + 0x28]
mov edi, 0xaba54d66
mov r8d, dword [rsp + 0x2c]
cmp r9, rcx
je 0x100068b01
mov eax, dword [r9]
cmp rax, r14
ja 0x100068b01
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x100068993
add r9, rdx
cmp r9, rcx
je 0x100068b01
mov eax, dword [r9]
cmp rax, r14
ja 0x100068b01
xor esi, esi
jmp 0x100068967
mov eax, dword [r9]
cmp rax, r14
jne 0x1000689af
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbp
jae 0x100068b01
mov rax, rsi
mov edx, 0xf000
inc rsi
test word [r9 + rax*2 + 8], dx
je 0x100068952
movzx ebx, word [r9 + rax*2 + 8]
xor r13d, r13d
lea rax, [0x100000000]
mov ebp, ebx
and ebp, 0xfff
add ebp, dword [r9]
add rbp, rax
mov rax, rbp
sub rax, r11
je 0x100068a41
mov r12, rax
movzx eax, byte [r13 + r11]
inc r13
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, rdi
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp r13, r12
jb 0x1000689eb
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
mov rax, qword [rbp]
shr ebx, 0xc
mov qword [rsp + 0x40], rax
cmp ebx, 3
je 0x100068a5e
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100068a63
mov edx, 2
mov r11, qword [rsp + 0x38]
neg r11
sub edx, 2
je 0x100068a8b
cmp edx, 1
je 0x100068a7b
or r11, 0xffffffffffffffff
jmp 0x100068a93
add rax, r11
mov r11d, 8
mov qword [rsp + 0x40], rax
jmp 0x100068a93
add dword [rsp + 0x40], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x100068aef
movzx eax, byte [rsp + rbx + 0x40]
inc rbx
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, rdi
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp rbx, r11
jb 0x100068a9a
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
mov rcx, qword [rsp + 0x30]
add r11, rbp
mov rbp, qword [rsp + 0x48]
jmp 0x100068952
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x88]
xor r9d, r9d
mov dil, r9b
sub rsi, r11
je 0x100068b78
mov ebx, 0xaba54d66
movzx eax, byte [r11 + r9]
inc r9
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, rbx
mov qword [rsp + 0x70], rax
mov ecx, dword [rsp + 0x70]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp r9, rsi
jb 0x100068b23
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
mov ebp, dword [rsp + 0x24]
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x28]
mov byte [rsp + rcx + 0x97], al
jb 0x100068b86
mov eax, 0xb99121c6
mov r14, r13
mov r8, r12
mov rax, qword [rsp + 0x98]
and r14d, 7
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov r11, rbx
je 0x100069080
xor r9d, r9d
mov dword [rsp + 0x58], r9d
mov esi, ebp
xor ebx, ebx
xor r11d, r11d
not esi
test r14d, r14d
mov dword [rsp + 0x48], ebx
jle 0x100068c20
lea r10d, [r9 + 0x38]
cmp r11d, r15d
movzx edx, byte [r8]
jge 0x100068bfb
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100068c03
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r14d
jl 0x100068be8
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x38], r8
movzx r9d, word [rsp + 0x9a]
mov r8d, dword [rsp + 0x9c]
movzx r11d, word [rsp + 0x9c]
mov edx, dword [rsp + 0x9c]
mov ecx, ebp
movzx r10d, ax
movzx ebx, word [rsp + 0x9e]
sub ecx, ebx
xor ecx, eax
xor esi, ecx
mov ebp, esi
mov ecx, eax
not ebp
ror ebp, 5
add ebp, r11d
imul ebp, ebx
xor ebp, dword [rsp + 0x24]
xor edx, ebp
sub ecx, edx
xor esi, ecx
sub r8d, esi
mov edx, esi
rol r8d, 0xe
mov ecx, r10d
ror edx, 0xb
imul ecx, r8d
add edx, ecx
xor ebp, edx
mov edx, ebp
mov r8d, eax
mov ecx, ebx
xor r8d, ebp
rol r8d, 7
rol edx, 0xd
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov edx, r11d
mov ecx, ebx
xor ecx, esi
rol ecx, 2
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
add edx, ecx
xor ebp, edx
mov ecx, r9d
mov edx, ebp
mov r8d, ebp
sub r8d, dword [rsp + 0x9c]
rol r8d, 5
ror edx, 0xb
imul ecx, r8d
mov r8d, r11d
xor edx, ecx
xor esi, edx
mov ecx, r10d
xor r8d, esi
rol r8d, 1
mov edx, esi
rol edx, 1
imul ecx, r8d
sub ecx, edx
xor ebp, ecx
mov edx, ebp
sub edx, r11d
mov ecx, ebp
shr ecx, 1
imul edx, ebx
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, eax
sub edx, esi
rol edx, 0xe
rol ecx, 7
imul r11d, edx
sub r11d, ecx
xor ebp, r11d
mov ecx, ebp
ror ecx, 6
sub ecx, r9d
xor r9d, r9d
imul ecx, ebx
xor esi, ecx
mov ecx, esi
xor ebx, esi
shr ecx, 7
imul ebx, r10d
add ebx, ecx
xor ebx, dword [rsp + 0x48]
xor ebp, ebx
mov edx, ebp
mov ebx, dword [rsp + 0x58]
xor esi, ebx
test r14d, r14d
mov r8d, esi
jle 0x100068d75
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x100068d5b
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100068d68
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x100068d49
mov qword [rsp + 0x30], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x100069068
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r8, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
mov r15d, dword [rsp + 0x48]
mov r14, r13
shr r14, 3
test r14, r14
je 0x100068fad
movzx ecx, ax
movzx r12d, word [rsp + 0x9e]
movzx r13d, word [rsp + 0x9c]
mov dword [rsp + 0x24], ecx
mov edx, dword [rsp + 0x9c]
movzx r9d, byte [r8 + 4]
movzx ecx, byte [r8 + 1]
movzx r10d, byte [r8]
add r8, 8
shl r10d, 8
or r10d, ecx
shl r9d, 8
movzx ecx, byte [r8 - 6]
mov qword [rsp + 0x38], r8
shl r10d, 8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 5]
or r10d, ecx
movzx ecx, byte [r8 - 3]
or r9d, ecx
xor ebp, r10d
movzx ecx, byte [r8 - 2]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r8 - 1]
or r9d, ecx
mov r8d, dword [rsp + 0x9c]
mov ecx, ebp
sub ecx, r12d
xor ecx, eax
xor ecx, r9d
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 5
add ecx, r13d
imul ecx, r12d
xor ebp, ecx
xor edx, ebp
mov ecx, eax
sub ecx, edx
xor esi, ecx
mov ecx, dword [rsp + 0x24]
mov edx, esi
sub r8d, esi
rol r8d, 0xe
ror edx, 0xb
imul ecx, r8d
add edx, ecx
mov ecx, r12d
xor ebp, edx
mov r8d, eax
mov edx, ebp
xor r8d, ebp
rol r8d, 7
rol edx, 0xd
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov edx, r13d
mov ecx, r12d
xor ecx, esi
rol ecx, 2
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
add edx, ecx
xor ebp, edx
movzx ecx, word [rsp + 0x9a]
mov edx, ebp
mov r8d, ebp
sub r8d, dword [rsp + 0x9c]
rol r8d, 5
ror edx, 0xb
imul ecx, r8d
xor edx, ecx
mov ecx, dword [rsp + 0x24]
xor esi, edx
mov r8d, r13d
mov edx, esi
xor r8d, esi
rol r8d, 1
rol edx, 1
imul ecx, r8d
mov r8d, eax
sub ecx, edx
xor ebp, ecx
mov edx, ebp
mov ecx, ebp
shr ecx, 1
sub edx, r13d
imul edx, r12d
sub edx, ecx
mov ecx, r13d
xor esi, edx
mov edx, esi
sub r8d, esi
rol r8d, 0xe
rol edx, 7
imul ecx, r8d
mov r8, qword [rsp + 0x38]
sub ecx, edx
movzx edx, word [rsp + 0x9a]
xor ebp, ecx
mov ecx, ebp
ror ecx, 6
sub ecx, edx
mov edx, r12d
imul ecx, r12d
xor esi, ecx
xor edx, esi
mov ecx, esi
xor esi, ebx
shr ecx, 7
mov ebx, r9d
mov byte [r11 + 7], sil
imul edx, dword [rsp + 0x24]
add edx, ecx
xor edx, r15d
xor ebp, edx
mov r15d, r10d
mov byte [r11 + 3], bpl
xor dil, bpl
ror ebp, 8
mov byte [r11 + 2], bpl
xor dil, sil
ror esi, 8
xor dil, bpl
ror ebp, 8
xor dil, sil
mov byte [r11 + 6], sil
ror esi, 8
mov byte [r11 + 1], bpl
xor dil, bpl
ror ebp, 8
mov byte [r11 + 5], sil
mov byte [r11], bpl
xor dil, sil
ror esi, 8
mov cl, sil
mov byte [r11 + 4], sil
add r11, 8
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r14, 1
jne 0x100068dc7
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x88]
mov al, byte [r13 + r12 + 8]
xor al, dil
je 0x1000690a4
call fcn.10000228c
mov rsi, qword [rsp + 0x80]
mov r11d, 0xffff
lea r8, [rsi + 0x18]
lea r10, [0x10006d7ac]
mov rbx, rax
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov qword [rsi + 0x10], r10
mov rcx, qword [0x1003fe198]
and rbx, rax
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r11, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r11, r11
jne 0x100069001
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1003fe198], rcx
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], rbx
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], r11
jmp 0x10006909a
xor esi, esi
test ecx, ecx
jns 0x100068d8f
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x100068d8f
mov ebx, ebp
not ebx
mov r15d, ebp
xor ebp, ebp
jmp 0x100068d9e
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10006908e
jmp 0x1000691be
mov rax, qword [0x10014dad0]
mov rbp, qword [rsp + 0x50]
mov rbx, r12
lea r14, [0x100000000]
sub rbx, rbp
mov rsi, r14
sub rsi, rax
jne 0x1000690ce
test rbx, rbx
je 0x1000691a0
lea r15, [0x100019a28]
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
xor edi, edi
mov r11, rbp
sub r11, r12
sub r12d, r14d
add r13d, r12d
test r8d, r8d
js 0x100069120
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 4]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x100069116
lea r8d, [rax - 1]
jmp 0x10006911b
jbe 0x100069125
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1000690f3
movsxd r10, edi
jmp 0x100069199
movsxd r10, eax
jmp 0x100069199
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x1000691a0
mov edi, edx
mov r8, rdx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r14
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x100069175
sub edi, 1
je 0x100069170
cmp edi, 1
jne 0x10006917b
mov r9, rsi
jmp 0x10006917b
mov r9, rbx
jmp 0x10006917b
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10006918b
cmp edx, 1
jne 0x100069196
add qword [r8 + r11], r9
jmp 0x10006918f
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10006912a
mov eax, dword [0x100015964]
mov eax, 0x187f193f
mov rsi, qword [rsp + 0x80]
mov r10, qword [rsp + 0x90]
add r10, rbp
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret