Function at 0x100067f0c
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 + 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 0x100067fd2
mov eax, dword [0x100015b94]
mov ecx, dword [0x10028bffc]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100067fd2
mov ecx, dword [0x100015b94]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x100015b94]
imul rdx, rax
add r8, rdx
jmp 0x100067fd5
mov r8, rsi
cmp r8, rsi
jne 0x100067fe4
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov ebp, r12d
lea rax, [r9 - 0x40]
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
inc r9
cmp r9, rsi
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x100068052
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 0x100068023
mov qword [0x1003feeb8], 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, 0x993d0403
lea rcx, [rsp + 0x60]
mov dil, sil
mov rdx, qword [r13 + r12]
mov qword [rsp + 0x60], rdx
mov eax, 0x7e720ef9
mov rax, qword [0x10014d838]
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 0x100068124
cmp r8, rsi
mov r10, rsi
jbe 0x10006840f
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 0x1000680d0
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], r9d
jmp 0x10006840a
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 0x10006818e
mov eax, dword [r9]
cmp rax, r10
jae 0x100068193
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x10006817f
cmp r9, rcx
je 0x1000681cf
mov eax, dword [r9]
cmp rax, r10
jne 0x1000681cf
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x1000681ca
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x1000681ca
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x1000681b1
mov rcx, qword [rsp + 0x30]
mov r10d, dword [rsp + 0x28]
mov edi, 0xaba54d66
mov r8d, dword [rsp + 0x2c]
cmp r9, rcx
je 0x10006838d
mov eax, dword [r9]
cmp rax, r14
ja 0x10006838d
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x10006821f
add r9, rdx
cmp r9, rcx
je 0x10006838d
mov eax, dword [r9]
cmp rax, r14
ja 0x10006838d
xor esi, esi
jmp 0x1000681f3
mov eax, dword [r9]
cmp rax, r14
jne 0x10006823b
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbp
jae 0x10006838d
mov rax, rsi
mov edx, 0xf000
inc rsi
test word [r9 + rax*2 + 8], dx
je 0x1000681de
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 0x1000682cd
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 0x100068277
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 0x1000682ea
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1000682ef
mov edx, 2
mov r11, qword [rsp + 0x38]
neg r11
sub edx, 2
je 0x100068317
cmp edx, 1
je 0x100068307
or r11, 0xffffffffffffffff
jmp 0x10006831f
add rax, r11
mov r11d, 8
mov qword [rsp + 0x40], rax
jmp 0x10006831f
add dword [rsp + 0x40], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x10006837b
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 0x100068326
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
mov rcx, qword [rsp + 0x30]
add r11, rbp
mov rbp, qword [rsp + 0x48]
jmp 0x1000681de
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 0x100068404
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 0x1000683af
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 0x100068412
mov eax, 0xd1c578c6
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 0x10006890c
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 0x1000684ac
lea r10d, [r9 + 0x38]
cmp r11d, r15d
movzx edx, byte [r8]
jge 0x100068487
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10006848f
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r14d
jl 0x100068474
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 0x100068601
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x1000685e7
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1000685f4
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x1000685d5
mov qword [rsp + 0x30], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x1000688f4
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 0x100068839
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 0x100068653
mov r12, qword [rsp + 0x78]
mov r13, qword [rsp + 0x88]
mov al, byte [r13 + r12 + 8]
xor al, dil
je 0x100068930
call fcn.1000024bc
mov rsi, qword [rsp + 0x80]
mov r11d, 0xffff
lea r8, [rsi + 0x18]
lea r10, [0x100059e28]
mov rbx, rax
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov qword [rsi + 0x10], r10
mov rcx, qword [0x1003feeb8]
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 0x10006888d
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1003feeb8], 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 0x100068926
xor esi, esi
test ecx, ecx
jns 0x10006861b
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x10006861b
mov ebx, ebp
not ebx
mov r15d, ebp
xor ebp, ebp
jmp 0x10006862a
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10006891a
jmp 0x100068a4a
mov rax, qword [0x10014d838]
mov rbp, qword [rsp + 0x50]
mov rbx, r12
lea r14, [0x100000000]
sub rbx, rbp
mov rsi, r14
sub rsi, rax
jne 0x10006895a
test rbx, rbx
je 0x100068a2c
lea r15, [0x1000199f8]
mov rcx, qword [0x1000199f8]
lea r8d, [rcx - 1]
xor edi, edi
mov r11, rbp
sub r11, r12
sub r12d, r14d
add r13d, r12d
test r8d, r8d
js 0x1000689ac
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 0x1000689a2
lea r8d, [rax - 1]
jmp 0x1000689a7
jbe 0x1000689b1
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10006897f
movsxd r10, edi
jmp 0x100068a25
movsxd r10, eax
jmp 0x100068a25
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100068a2c
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 0x100068a01
sub edi, 1
je 0x1000689fc
cmp edi, 1
jne 0x100068a07
mov r9, rsi
jmp 0x100068a07
mov r9, rbx
jmp 0x100068a07
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100068a17
cmp edx, 1
jne 0x100068a22
add qword [r8 + r11], r9
jmp 0x100068a1b
add dword [r8 + r11], r9d
mov rcx, qword [0x1000199f8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1000689b6
mov eax, dword [0x100015b94]
mov eax, 0x52120f5f
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.1002d7828
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret