Function at 0x100067afc
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 + 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 0x100067bcd
mov ecx, dword [0x10028bf00]
mov eax, dword [0x100015964]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100067bcd
mov ecx, dword [0x100015964]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x100015964]
imul rdx, rax
add r8, rdx
jmp 0x100067bd0
mov r8, rsi
cmp r8, rsi
jne 0x100067bdf
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
lea rax, [r9 - 0x40]
mov ebp, r12d
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
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, rsi
mov rdi, r9
je 0x100067c4d
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 0x100067c1e
mov qword [0x1003fe198], 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, 0x81d5e27e
mov dil, sil
lea rcx, [rsp + 0x60]
mov rdx, qword [r13 + r12]
mov qword [rsp + 0x60], rdx
mov eax, 0xacf83334
mov rax, qword [0x10014dad0]
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 0x100067d1f
mov r10, rsi
cmp r8, rsi
jbe 0x10006800a
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 0x100067ccb
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x28], r9d
jmp 0x100068005
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 0x100067d89
mov eax, dword [r9]
cmp rax, r10
jae 0x100067d8e
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x100067d7a
cmp r9, rcx
je 0x100067dca
mov eax, dword [r9]
cmp rax, r10
jne 0x100067dca
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x100067dc5
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x100067dc5
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100067dac
mov rcx, qword [rsp + 0x30]
mov edi, 0xaba54d66
mov r10d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
cmp r9, rcx
je 0x100067f88
mov eax, dword [r9]
cmp rax, r14
ja 0x100067f88
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x100067e1a
add r9, rdx
cmp r9, rcx
je 0x100067f88
mov eax, dword [r9]
cmp rax, r14
ja 0x100067f88
xor esi, esi
jmp 0x100067dee
mov eax, dword [r9]
cmp rax, r14
jne 0x100067e36
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, rbp
jae 0x100067f88
mov edx, 0xf000
mov rax, rsi
inc rsi
test word [r9 + rax*2 + 8], dx
je 0x100067dd9
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 0x100067ec8
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 0x100067e72
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 0x100067ee5
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100067eea
mov edx, 2
mov r11, qword [rsp + 0x38]
neg r11
sub edx, 2
je 0x100067f12
cmp edx, 1
je 0x100067f02
or r11, 0xffffffffffffffff
jmp 0x100067f1a
add rax, r11
mov qword [rsp + 0x40], rax
mov r11d, 8
jmp 0x100067f1a
add dword [rsp + 0x40], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x100067f76
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 0x100067f21
mov dword [rsp + 0x2c], r8d
mov dword [rsp + 0x28], r10d
add r11, rbp
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
jmp 0x100067dd9
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 0x100067fff
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 0x100067faa
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 0x10006800d
mov eax, 0x218d8ab2
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 0x100068505
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 0x1000680a7
lea r10d, [r9 + 0x38]
movzx edx, byte [r8]
cmp r11d, r15d
jge 0x100068082
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10006808a
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r14d
jl 0x10006806f
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 0x1000681f6
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x1000681dc
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1000681e9
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r14d
jl 0x1000681ca
mov qword [rsp + 0x30], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x1000684ed
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 0x10006842c
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 0x100068248
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x78]
mov al, byte [r13 + r12 + 8]
xor al, dil
je 0x100068529
call fcn.10000228c
lea r10, [0x10006d7ac]
mov rsi, qword [rsp + 0x88]
mov ebx, 0xffff
mov r8, rsi
mov rbp, qword [rsp + 0x80]
mov qword [rbp + 0x10], r10
mov rcx, qword [0x1003fe198]
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 0x100068486
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov qword [0x1003fe198], 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 0x10006851f
xor esi, esi
test ecx, ecx
jns 0x100068210
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x100068210
mov ebx, ebp
mov r15d, ebp
xor ebp, ebp
not ebx
jmp 0x10006821f
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100068513
jmp 0x10006864b
mov rax, qword [0x10014dad0]
mov rbx, r12
lea r14, [0x100000000]
mov rsi, r14
mov rbp, qword [rsp + 0x50]
sub rbx, rbp
sub rsi, rax
jne 0x100068553
test rbx, rbx
je 0x100068625
lea r15, [0x100019a28]
mov rcx, qword [0x100019a28]
xor edi, edi
lea r8d, [rcx - 1]
mov r11, rbp
sub r11, r12
sub r12d, r14d
add r13d, r12d
test r8d, r8d
js 0x1000685a5
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 0x10006859b
lea r8d, [rax - 1]
jmp 0x1000685a0
jbe 0x1000685aa
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100068578
movsxd r10, edi
jmp 0x10006861e
movsxd r10, eax
jmp 0x10006861e
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100068625
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 0x1000685fa
sub edi, 1
je 0x1000685f5
cmp edi, 1
jne 0x100068600
mov r9, rsi
jmp 0x100068600
mov r9, rbx
jmp 0x100068600
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100068610
cmp edx, 1
jne 0x10006861b
add qword [r8 + r11], r9
jmp 0x100068614
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1000685af
mov eax, dword [0x100015964]
mov eax, 0x147dba7c
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.1003005f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret