Function at 0x100065460
Capabilities:
Encode data using xor

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 r13d, 0xfffffff
mov rax, qword [rcx + 0x10]
lea r9, [rax + 0xd]
mov qword [rsp + 0x80], rcx
mov r14d, dword [rax + 5]
lea r8, section..data
mov esi, dword [rax + 1]
lea rdi, [r9 - 1]
lea r15, [0x100000000]
shr rsi, 1
mov ecx, dword [rax + 9]
and rcx, r13
and r14, r13
and rsi, r13
add rsi, r15
mov qword [rsp + 0x68], rdx
xor r12d, r12d
mov qword [rsp + 0x90], rcx
cmp rdi, r8
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r14
jb 0x100065525
mov eax, dword [0x100015b94]
mov ecx, dword [0x10028bffc]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x100065525
mov rax, rdi
mov ecx, dword [0x100015b94]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x100015b94]
imul rdx, rax
add r8, rdx
jmp 0x100065528
mov r8, r12
cmp r8, r12
jne 0x100065537
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov ebx, esi
lea rax, [r9 - 0x40]
mov r9d, dword [0x100015b94]
cmp rax, r12
cmovl rax, r12
lea rdi, [r8 + rax]
sub r9, r14
sub ebx, r15d
mov dword [rsp + 0x28], ebx
xor eax, eax
inc r9
cmp r9, r12
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x1000655a4
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, r12
jne 0x100065575
mov qword [0x1003feeb8], rcx
xor edx, edx
mov ecx, ebx
div r9
lea rbp, [rdx + r8]
mov rdx, r14
mov r8, rbp
mov qword [rsp + 0x60], rbp
mov eax, 0xb09550ba
mov rdx, qword [r14 + rsi]
mov dil, r12b
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rdx
mov eax, 0x147dba7c
mov r10, qword [rsp + 0x70]
mov rcx, r15
and r10, r13
mov r9d, dword [rsp + 0x74]
and r9, r13
add r10, r15
mov r13d, 4
mov rax, qword [0x10014d838]
sub rcx, rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rcx
jne 0x10006569f
mov r11, r12
cmp r9, r12
jbe 0x1000659f5
mov r8d, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov ebx, 0xb0d52e05
movzx eax, byte [r11 + r10]
inc r11
sub eax, 0x4f2ad1fb
add r8d, eax
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add ecx, eax
add r8d, ecx
cmp r11, r9
jb 0x100065625
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x1000659f1
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r15 + 0xb4]
mov r8d, dword [rcx + r15 + 0xb0]
add r8, r15
mov qword [rsp + 0x58], rax
mov eax, r10d
sub eax, r15d
mov r11d, eax
mov ecx, eax
lea r12, [r9 + rcx]
mov rax, 0xfffffffffffff000
and r11, rax
mov rbx, rcx
sub rbx, r11
mov r15, r12
lea rcx, [rdx + r8]
mov qword [rsp + 0x50], rcx
and r15, rax
sub r12, r15
mov qword [rsp + 0x40], r12
jmp 0x100065709
mov eax, dword [r8]
cmp rax, r11
jae 0x10006570e
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1000656fa
xor ebp, ebp
cmp r8, rcx
je 0x10006574c
mov eax, dword [r8]
cmp rax, r11
jne 0x10006574c
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100065747
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x100065747
inc rbp
add rdx, 2
cmp rbp, rcx
jne 0x10006572e
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x34]
mov r14, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x30]
mov ebx, 0xb0d52e05
cmp r8, rcx
je 0x100065957
mov eax, dword [r8]
cmp rax, r15
ja 0x100065957
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbp, rax
jne 0x1000657a0
add r8, rdi
cmp r8, rcx
je 0x100065957
mov eax, dword [r8]
cmp rax, r15
ja 0x100065957
xor ebp, ebp
jmp 0x100065774
mov eax, dword [r8]
cmp rax, r15
jne 0x1000657bc
movzx eax, word [r8 + rbp*2 + 8]
and eax, 0xfff
cmp rax, r12
jae 0x100065957
mov rax, rbp
mov edi, 0xf000
inc rbp
test word [r8 + rax*2 + 8], di
je 0x10006575f
movzx r11d, word [r8 + rax*2 + 8]
mov r12d, r11d
xor edi, edi
and r12d, 0xfff
add r12d, dword [r8]
lea rax, [0x100000000]
add r12, rax
mov rax, r12
sub rax, r10
je 0x10006586e
mov rsi, rax
movzx eax, byte [rdi + r10]
inc rdi
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov edx, dword [rsp + 0x20]
add edx, eax
add r9d, edx
cmp rdi, rsi
jb 0x1000657f9
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rax, qword [r12]
mov qword [rsp + 0x48], rax
shr r11d, 0xc
cmp r11d, 3
je 0x100065891
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x100065897
mov r10d, 2
mov r11, r14
neg r11
sub r10d, 2
je 0x1000658bf
cmp r10d, 1
je 0x1000658af
or r10, 0xffffffffffffffff
jmp 0x1000658c7
add rax, r11
mov qword [rsp + 0x48], rax
mov r10d, 8
jmp 0x1000658c7
add dword [rsp + 0x48], r11d
mov r10, r13
xor r11d, r11d
test r10, r10
je 0x100065945
movzx eax, byte [rsp + r11 + 0x48]
inc r11
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x20]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x1000658cf
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x50]
add r10, r12
mov r12, qword [rsp + 0x40]
jmp 0x10006575f
mov r11, qword [rsp + 0x58]
xor r12d, r12d
mov r8, r12
mov dil, r8b
mov r14, qword [rsp + 0x88]
sub r11, r10
mov rsi, qword [rsp + 0x78]
je 0x1000659ec
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x4f2ad1fb
add r9d, eax
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add eax, ecx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
imul rax, rbx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x20]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x100065977
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rbp, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x28]
mov rcx, r12
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x97], al
jb 0x1000659f8
mov eax, 0x41cd1e65
mov r15, rsi
mov r11, rbp
xor r10d, r10d
mov r12, r14
and r12d, 7
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rbp
mov ebp, ebx
not ebp
je 0x100065ef3
xor r8d, r8d
mov dword [rsp + 0x40], r8d
xor r11d, r11d
test r12d, r12d
mov dword [rsp + 0x38], r11d
jle 0x100065a8c
lea r9d, [r10 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x100065a6b
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x100065a73
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x100065a57
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x40], r8d
mov ecx, ebx
movzx r10d, word [rsp + 0x9e]
mov r9d, dword [rsp + 0x9c]
movzx r11d, r9w
mov edx, r11d
movzx r8d, word [rsp + 0x9a]
xor edx, ebx
rol edx, 4
ror ecx, 8
imul edx, r10d
sub edx, ecx
xor ebp, edx
mov ecx, ebp
sub ecx, eax
mov ebx, ebp
rol ecx, 8
rol ebx, 3
imul ecx, r11d
add ebx, ecx
xor ebx, dword [rsp + 0x28]
lea edx, [r9 + rbx]
ror edx, 4
mov ecx, ebx
ror ecx, 0xf
imul edx, r8d
sub edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, r9d
sub edx, ebp
ror edx, 2
movzx r9d, ax
rol ecx, 7
imul edx, r9d
xor ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
rol edx, 0xc
mov ecx, ebx
ror ecx, 4
imul edx, r10d
add ecx, edx
mov edx, eax
xor ebp, ecx
xor edx, ebp
mov ecx, ebp
rol edx, 0xb
ror ecx, 8
imul edx, r11d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
xor ecx, r9d
mov edx, ebx
ror edx, 4
imul ecx, r8d
sub ecx, edx
xor ebp, ecx
mov edx, eax
mov r8d, dword [rsp + 0x9c]
mov ecx, ebp
sub ecx, r8d
sub ecx, r9d
xor ebx, ecx
sub edx, ebx
ror edx, 1
mov ecx, ebx
ror ecx, 6
imul edx, r10d
sub edx, ecx
xor ebp, edx
mov edx, r8d
mov ecx, ebp
not ecx
ror ecx, 0xe
add ecx, r11d
imul ecx, r10d
mov r10d, r8d
xor r10d, eax
xor ebx, ecx
xor r10d, ebp
mov ebp, dword [rsp + 0x40]
xor r10d, ebx
mov ecx, r10d
xor edx, r10d
xor r10d, ebp
rol edx, 0xf
ror ecx, 8
imul edx, r9d
add ecx, edx
mov r8d, r10d
mov edx, dword [rsp + 0x38]
xor ecx, edx
xor r9d, r9d
xor ebx, ecx
test r12d, r12d
mov edx, ebx
jle 0x100065bdf
mov rcx, qword [rsp + 0x20]
cmp r9d, r13d
jge 0x100065bc5
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100065bd2
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x100065bb3
mov qword [rsp + 0x20], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x100065eda
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr r10d, cl
shl r10d, cl
mov r11, qword [rsp + 0x20]
mov r13, r14
shr r13, 3
test r13, r13
je 0x100065e1f
movzx ecx, word [rsp + 0x9a]
mov r12d, dword [rsp + 0x9c]
mov esi, dword [rsp + 0x38]
mov dword [rsp + 0x50], ecx
movzx ecx, r12w
mov dword [rsp + 0x28], ecx
movzx ecx, word [rsp + 0x9e]
mov dword [rsp + 0x40], ecx
mov ecx, r12d
xor ecx, eax
mov dword [rsp + 0x20], ecx
movzx ecx, ax
mov r14d, dword [rsp + 0x20]
mov dword [rsp + 0x58], ecx
movzx r8d, byte [r15 + 4]
movzx r9d, byte [r15]
movzx ecx, byte [r15 + 1]
shl r9d, 8
shl r8d, 8
add r15, 8
or r9d, ecx
movzx ecx, byte [r15 - 6]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 5]
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
xor ebx, r9d
shl r8d, 8
mov edx, ebx
movzx ecx, byte [r15 - 2]
xor edx, dword [rsp + 0x28]
or r8d, ecx
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
rol edx, 4
mov ecx, ebx
ror ecx, 8
imul edx, dword [rsp + 0x40]
sub edx, ecx
xor edx, r8d
xor r10d, edx
mov edx, r10d
sub edx, eax
rol edx, 8
mov ecx, r10d
rol ecx, 3
imul edx, dword [rsp + 0x28]
add ecx, edx
xor ebx, ecx
mov ecx, ebx
lea edx, [r12 + rbx]
ror edx, 4
ror ecx, 0xf
imul edx, dword [rsp + 0x50]
sub edx, ecx
xor r10d, edx
mov edx, r12d
sub edx, r10d
mov ecx, r10d
ror edx, 2
rol ecx, 7
imul edx, dword [rsp + 0x58]
xor ecx, edx
mov edx, eax
xor ebx, ecx
sub edx, ebx
mov ecx, ebx
rol edx, 0xc
ror ecx, 4
imul edx, dword [rsp + 0x40]
add ecx, edx
mov edx, eax
xor r10d, ecx
xor edx, r10d
rol edx, 0xb
mov ecx, r10d
ror ecx, 8
imul edx, dword [rsp + 0x28]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x58]
ror edx, 4
imul ecx, dword [rsp + 0x50]
sub ecx, edx
xor r10d, ecx
mov edx, eax
mov ecx, r10d
sub ecx, r12d
sub ecx, dword [rsp + 0x58]
xor ebx, ecx
sub edx, ebx
mov ecx, ebx
ror edx, 1
ror ecx, 6
imul edx, dword [rsp + 0x40]
sub edx, ecx
xor r10d, edx
mov ecx, r10d
movzx edx, word [rsp + 0x9e]
not ecx
xor r10d, r14d
ror ecx, 0xe
add ecx, dword [rsp + 0x28]
imul ecx, edx
mov edx, r12d
xor ebx, ecx
xor r10d, ebx
mov ecx, r10d
xor edx, r10d
xor r10d, ebp
mov ebp, r8d
rol edx, 0xf
mov byte [r11 + 7], r10b
ror ecx, 8
imul edx, dword [rsp + 0x58]
add ecx, edx
xor ecx, esi
mov esi, r9d
xor ebx, ecx
mov byte [r11 + 3], bl
xor dil, bl
ror ebx, 8
mov byte [r11 + 2], bl
xor dil, r10b
ror r10d, 8
mov byte [r11 + 6], r10b
xor dil, bl
ror ebx, 8
mov byte [r11 + 1], bl
xor dil, r10b
ror r10d, 8
mov byte [r11 + 5], r10b
xor dil, bl
ror ebx, 8
mov byte [r11], bl
xor dil, r10b
ror r10d, 8
mov cl, r10b
mov byte [r11 + 4], r10b
add r11, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror r10d, 8
sub r13, 1
jne 0x100065c52
mov rsi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov al, byte [r14 + rsi + 8]
xor al, dil
je 0x100065f14
call fcn.1000024bc
lea r10, [0x100059e28]
mov r11d, 0xffff
mov rsi, qword [rsp + 0x80]
lea r8, [rsi + 0x18]
mov qword [rsi + 0x10], r10
mov rcx, qword [0x1003feeb8]
mov rbx, rax
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
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 0x100065e73
mov qword [0x1003feeb8], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x68]
shr rdx, 0xf
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 0x100065f0a
xor r10d, r10d
test ecx, ecx
jns 0x100065bfc
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100065bfc
mov dword [rsp + 0x38], ebx
xor ebx, ebx
jmp 0x100065c01
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100065efe
jmp 0x100066030
mov rax, qword [0x10014d838]
lea r15, [0x100000000]
mov r12, qword [rsp + 0x60]
mov rbp, r15
mov rbx, rsi
sub rbx, r12
sub rbp, rax
jne 0x100065f3e
test rbx, rbx
je 0x100066011
mov r11, r12
xor edi, edi
sub r11, rsi
sub esi, r15d
mov rcx, qword [0x1000199f8]
lea r13d, [r14 + rsi]
lea r8d, [rcx - 1]
test r8d, r8d
lea r14, [0x1000199f8]
js 0x100065f91
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 4]
and r9d, 0xfffffff
cmp esi, r9d
jae 0x100065f87
lea r8d, [rax - 1]
jmp 0x100065f8c
jbe 0x100065f96
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100065f64
movsxd r10, edi
jmp 0x10006600a
movsxd r10, eax
jmp 0x10006600a
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100066011
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r15
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x100065fe6
sub edi, 1
je 0x100065fe1
cmp edi, 1
jne 0x100065fec
mov r9, rbp
jmp 0x100065fec
mov r9, rbx
jmp 0x100065fec
mov r9, rbp
sub r9, rbx
sub edx, 2
je 0x100065ffc
cmp edx, 1
jne 0x100066007
add qword [r8 + r11], r9
jmp 0x100066000
add dword [r8 + r11], r9d
mov rcx, qword [0x1000199f8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100065f9b
mov eax, dword [0x100015b94]
mov eax, 0xfc0d7956
mov rsi, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x90]
lea r10, [r12 + rdx]
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