Function at 0x100067388
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 [0x1003fe1f8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea r8, section..data
mov qword [rsp + 0x80], rcx
lea r14, [0x100000000]
mov r15d, 0xfffffff
lea rax, [rcx + 0x18]
mov qword [rsp + 0x88], rax
mov rax, qword [rax]
mov ecx, dword [rax + 5]
mov r13d, dword [rax + 1]
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov r12d, dword [rax + 9]
and r12, r15
shr r13, 2
and rcx, r15
add r12, r14
mov qword [rsp + 0x78], r12
and r13, r15
xor esi, esi
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x98], rcx
cmp rdi, r8
jb 0x100067459
mov ecx, dword [0x10028bffc]
mov eax, dword [0x100015b94]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100067459
mov ecx, dword [0x100015b94]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x100015b94]
imul rdx, rax
add r8, rdx
jmp 0x10006745c
mov r8, rsi
cmp r8, rsi
jne 0x10006746b
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
lea rax, [r9 - 0x40]
mov ebp, r12d
mov r9d, dword [0x100015b94]
cmp rax, rsi
cmovl rax, rsi
lea rdi, [r8 + rax]
sub r9, r13
sub ebp, r14d
xor eax, eax
mov dword [rsp + 0x24], ebp
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, rsi
mov rdi, r9
je 0x1000674d9
mov rcx, qword [0x1003feeb8]
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 0x1000674aa
mov qword [0x1003feeb8], rcx
mov ecx, ebp
xor edx, edx
div r9
lea rbx, [rdx + r8]
mov qword [rsp + 0x50], rbx
mov rdx, r13
mov r8, rbx
mov eax, 0x80aeb514
mov dil, sil
lea rcx, [rsp + 0x60]
mov rdx, qword [r13 + r12]
mov qword [rsp + 0x60], rdx
mov eax, 0x5d3a06f6
mov rax, qword [0x10014d838]
mov r8d, dword [rsp + 0x64]
mov r11, qword [rsp + 0x60]
mov rcx, r14
and r11, r15
and r8, r15
add r11, r14
sub rcx, rax
mov qword [rsp + 0x28], rsi
mov r15d, 4
mov qword [rsp + 0x38], rcx
jne 0x1000675ab
mov r10, rsi
cmp r8, rsi
jbe 0x100067896
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 0x100067557
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], r9d
jmp 0x100067891
movsxd rcx, dword [0x10000003c]
mov r9d, dword [rcx + r14 + 0xb0]
add r9, r14
lea rax, [r11 + r8]
mov edx, dword [rcx + r14 + 0xb4]
mov qword [rsp + 0x70], rax
mov eax, r11d
sub eax, r14d
mov r10d, eax
mov ecx, eax
mov rbx, rcx
mov rax, 0xfffffffffffff000
and r10, rax
sub rbx, r10
lea rbp, [r8 + rcx]
lea rcx, [rdx + r9]
mov qword [rsp + 0x30], rcx
mov r14, rbp
and r14, rax
sub rbp, r14
mov qword [rsp + 0x48], rbp
jmp 0x100067615
mov eax, dword [r9]
cmp rax, r10
jae 0x10006761a
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x100067606
cmp r9, rcx
je 0x100067656
mov eax, dword [r9]
cmp rax, r10
jne 0x100067656
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x100067651
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x100067651
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100067638
mov rcx, qword [rsp + 0x30]
mov edi, 0xaba54d66
mov r10d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
cmp r9, rcx
je 0x100067814
mov eax, dword [r9]
cmp rax, r14
ja 0x100067814
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x1000676a6
add r9, rdx
cmp r9, rcx
je 0x100067814
mov eax, dword [r9]
cmp rax, r14
ja 0x100067814
xor esi, esi
jmp 0x10006767a
mov eax, dword [r9]
cmp rax, r14
jne 0x1000676c2
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbp
jae 0x100067814
mov edx, 0xf000
mov rax, rsi
inc rsi
test word [r9 + rax*2 + 8], dx
je 0x100067665
xor r13d, r13d
movzx ebx, word [r9 + rax*2 + 8]
mov ebp, ebx
and ebp, 0xfff
lea rax, [0x100000000]
add ebp, dword [r9]
add rbp, rax
mov rax, rbp
sub rax, r11
je 0x100067754
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 0x1000676fe
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 0x100067771
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100067776
mov edx, 2
mov r11, qword [rsp + 0x38]
neg r11
sub edx, 2
je 0x10006779e
cmp edx, 1
je 0x10006778e
or r11, 0xffffffffffffffff
jmp 0x1000677a6
add rax, r11
mov qword [rsp + 0x40], rax
mov r11d, 8
jmp 0x1000677a6
add dword [rsp + 0x40], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x100067802
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
mov ecx, dword [rsp + 0x58]
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 rbx, r11
jb 0x1000677ad
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
add r11, rbp
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
jmp 0x100067665
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x90]
xor r9d, r9d
mov dil, r9b
sub rsi, r11
je 0x10006788b
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 0x100067836
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
xor esi, esi
mov ebp, dword [rsp + 0x24]
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x28]
mov byte [rsp + rcx + 0x9f], al
cmp rcx, 8
jb 0x100067899
mov eax, 0x4db1ab13
mov r14, r13
mov rax, qword [rsp + 0xa0]
and r14d, 7
mov r8, r12
mov r11, rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
je 0x100067d91
mov esi, ebp
not esi
xor r9d, r9d
xor ebx, ebx
mov dword [rsp + 0x58], r9d
xor r11d, r11d
mov dword [rsp + 0x48], ebx
test r14d, r14d
jle 0x100067933
lea r10d, [r9 + 0x38]
movzx edx, byte [r8]
cmp r11d, r15d
jge 0x10006790e
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100067916
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r14d
jl 0x1000678fb
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x38], r8
mov edx, dword [rsp + 0xa4]
movzx r10d, ax
mov r8d, dword [rsp + 0xa4]
mov ecx, ebp
movzx r11d, word [rsp + 0xa4]
movzx r9d, word [rsp + 0xa2]
movzx ebx, word [rsp + 0xa6]
sub ecx, ebx
xor ecx, eax
xor esi, ecx
mov ecx, eax
mov ebp, esi
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
mov ecx, r10d
rol r8d, 0xe
ror edx, 0xb
imul ecx, r8d
mov r8d, eax
add edx, ecx
mov ecx, ebx
xor ebp, edx
mov edx, ebp
xor r8d, ebp
rol r8d, 7
rol edx, 0xd
imul ecx, r8d
mov r8d, r11d
xor edx, ecx
mov ecx, ebx
xor esi, edx
xor ecx, esi
rol ecx, 2
mov edx, r11d
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
add edx, ecx
xor ebp, edx
mov edx, ebp
sub edx, dword [rsp + 0xa4]
rol edx, 5
mov ecx, ebp
ror ecx, 0xb
imul edx, r9d
xor ecx, edx
xor esi, ecx
mov edx, esi
xor r8d, esi
mov ecx, r10d
rol r8d, 1
rol edx, 1
imul ecx, r8d
sub ecx, edx
xor ebp, ecx
mov ecx, ebp
mov edx, ebp
sub edx, r11d
shr ecx, 1
imul edx, ebx
sub edx, ecx
xor esi, edx
mov edx, eax
sub edx, esi
mov ecx, 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
imul ecx, ebx
xor r9d, r9d
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 ebx, dword [rsp + 0x58]
xor esi, ebx
test r14d, r14d
mov edx, ebp
mov r8d, esi
jle 0x100067a82
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x100067a68
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100067a75
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x100067a56
mov qword [rsp + 0x30], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x100067d79
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r11, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x48]
mov r14, r13
shr r14, 3
test r14, r14
je 0x100067cb8
movzx r12d, word [rsp + 0xa6]
movzx r13d, word [rsp + 0xa4]
movzx ecx, ax
mov dword [rsp + 0x24], ecx
movzx r9d, byte [r8 + 4]
mov edx, dword [rsp + 0xa4]
movzx r10d, byte [r8]
movzx ecx, byte [r8 + 1]
add r8, 8
shl r10d, 8
or r10d, ecx
movzx ecx, byte [r8 - 6]
mov qword [rsp + 0x38], r8
shl r9d, 8
shl r10d, 8
or r10d, ecx
movzx ecx, byte [r8 - 5]
shl r10d, 8
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
movzx ecx, byte [r8 - 1]
mov r8d, dword [rsp + 0xa4]
shl r9d, 8
or r9d, ecx
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]
sub r8d, esi
rol r8d, 0xe
mov edx, esi
ror edx, 0xb
imul ecx, r8d
mov r8d, eax
add edx, ecx
xor ebp, edx
mov ecx, r12d
mov edx, ebp
xor r8d, ebp
rol r8d, 7
rol edx, 0xd
imul ecx, r8d
movzx r8d, word [rsp + 0xa2]
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
mov ecx, ebp
mov edx, ebp
sub edx, dword [rsp + 0xa4]
rol edx, 5
ror ecx, 0xb
imul edx, r8d
xor ecx, edx
xor esi, ecx
mov edx, esi
mov r8d, r13d
xor r8d, esi
rol r8d, 1
mov ecx, dword [rsp + 0x24]
rol edx, 1
imul ecx, r8d
mov r8d, eax
sub ecx, edx
xor ebp, ecx
mov ecx, ebp
mov edx, ebp
shr ecx, 1
sub edx, r13d
imul edx, r12d
sub edx, ecx
mov ecx, r13d
xor esi, edx
sub r8d, esi
rol r8d, 0xe
mov edx, esi
rol edx, 7
imul ecx, r8d
mov r8, qword [rsp + 0x38]
sub ecx, edx
movzx edx, word [rsp + 0xa2]
xor ebp, ecx
mov ecx, ebp
ror ecx, 6
sub ecx, edx
imul ecx, r12d
xor esi, ecx
mov ecx, esi
mov edx, r12d
xor edx, 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
mov byte [r11 + 6], sil
xor dil, bpl
ror ebp, 8
mov byte [r11 + 1], bpl
xor dil, sil
ror esi, 8
xor dil, bpl
mov byte [r11 + 5], sil
ror ebp, 8
xor dil, sil
ror esi, 8
mov byte [r11], bpl
mov byte [r11 + 4], sil
add r11, 8
mov cl, sil
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r14, 1
jne 0x100067ad4
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x78]
mov al, byte [r13 + r12 + 8]
xor al, dil
je 0x100067db5
call fcn.1000024bc
lea r10, [0x100059e28]
mov rsi, qword [rsp + 0x88]
mov ebx, 0xffff
mov r8, rsi
mov rbp, qword [rsp + 0x80]
mov qword [rbp + 0x10], r10
mov rcx, qword [0x1003feeb8]
mov r11, rax
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov rax, 0xfffffffffffff000
and r11, rax
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr rbx, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test rbx, rbx
jne 0x100067d12
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1003feeb8], rcx
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], r11
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], rbx
jmp 0x100067dab
xor esi, esi
test ecx, ecx
jns 0x100067a9c
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x100067a9c
mov ebx, ebp
mov r15d, ebp
xor ebp, ebp
not ebx
jmp 0x100067aab
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100067d9f
jmp 0x100067ed7
mov rax, qword [0x10014d838]
mov rbx, r12
lea r14, [0x100000000]
mov rsi, r14
mov rbp, qword [rsp + 0x50]
sub rbx, rbp
sub rsi, rax
jne 0x100067ddf
test rbx, rbx
je 0x100067eb1
lea r15, [0x1000199f8]
mov rcx, qword [0x1000199f8]
xor edi, edi
lea r8d, [rcx - 1]
mov r11, rbp
sub r11, r12
sub r12d, r14d
add r13d, r12d
test r8d, r8d
js 0x100067e31
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 0x100067e27
lea r8d, [rax - 1]
jmp 0x100067e2c
jbe 0x100067e36
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100067e04
movsxd r10, edi
jmp 0x100067eaa
movsxd r10, eax
jmp 0x100067eaa
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100067eb1
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 0x100067e86
sub edi, 1
je 0x100067e81
cmp edi, 1
jne 0x100067e8c
mov r9, rsi
jmp 0x100067e8c
mov r9, rbx
jmp 0x100067e8c
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100067e9c
cmp edx, 1
jne 0x100067ea7
add qword [r8 + r11], r9
jmp 0x100067ea0
add dword [r8 + r11], r9d
mov rcx, qword [0x1000199f8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100067e3b
mov eax, dword [0x100015b94]
mov eax, 0x589667a4
mov r10, qword [rsp + 0x98]
add r10, rbp
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1002d7828
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret