Function at 0x10007e840
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, 0xc0
mov rax, qword [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r8, section..data
lea r15, [0x100000000]
mov qword [rsp + 0x80], rcx
lea rax, [rcx + 0x18]
mov qword [rsp + 0x88], rax
mov rax, qword [rax]
lea r9, [rax + 0xd]
mov r13d, 0xfffffff
lea rdi, [r9 - 1]
mov ecx, dword [rax + 9]
mov ebp, dword [rax + 1]
and rbp, r13
and rcx, r13
mov r14d, dword [rax + 5]
mov qword [rsp + 0x68], rdx
and r14, r13
add rbp, r15
mov qword [rsp + 0x78], rbp
xor r12d, r12d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x90], r14
cmp rdi, r8
jb 0x10007e90d
mov eax, dword [0x1002f3aa4]
mov ecx, dword [0x10005e244]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10007e90d
mov rax, rdi
sub rax, r8
mov ecx, dword [0x1002f3aa4]
cqo
idiv rcx
mov edx, dword [0x1002f3aa4]
imul rdx, rax
add r8, rdx
jmp 0x10007e910
mov r8, r12
cmp r8, r12
jne 0x10007e91f
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
mov ebx, ebp
lea rax, [r9 - 0x40]
cmp rax, r12
cmovl rax, r12
lea rdi, [rax + r8]
sub ebx, r15d
mov dword [rsp + 0x20], ebx
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov edi, dword [0x1002f3aa4]
sub rdi, r14
add rdi, 1
mov r9, rdi
cmp rdi, r12
je 0x10007e989
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x10007e95d
mov qword [0x100495210], rcx
xor edx, edx
mov ecx, ebx
div rdi
lea rsi, [rdx + r8]
mov qword [rsp + 0x70], rsi
mov rdx, r14
mov r8, rsi
mov eax, 0x3c29fcdf
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
mov dil, r12b
mov eax, 0xa8410f7b
mov r10, qword [rsp + 0x60]
mov rcx, r15
mov rax, qword [0x1003f4900]
mov r9d, dword [rsp + 0x64]
mov qword [rsp + 0x40], r12
and r10, r13
and r9, r13
mov r13d, 4
add r10, r15
sub rcx, rax
mov qword [rsp + 0x50], rcx
jne 0x10007ea54
mov r11, r12
cmp r9, r12
jbe 0x10007ed14
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov r15d, 0x65c64b23
movzx ecx, byte [r11 + r10]
add r11, 1
add ecx, r15d
add r8d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x28], rax
shr rax, 0x20
mov edx, dword [rsp + 0x28]
add edx, eax
add r8d, edx
cmp r11, r9
jb 0x10007ea07
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r8d
jmp 0x10007ed14
mov rbx, 0xfffffffffffff000
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r15 + 0xb0]
add r8, r15
mov ecx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x38], rax
mov eax, r10d
sub eax, r15d
mov esi, eax
mov r11d, eax
add rax, r9
and r11, rbx
mov r12, rax
and r12, rbx
sub rsi, r11
sub rax, r12
add rcx, r8
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x58], rax
jmp 0x10007eab9
mov eax, dword [r8]
cmp rax, r11
jae 0x10007eabe
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10007eaaa
xor ebx, ebx
cmp r8, rcx
je 0x10007eaf8
mov eax, dword [r8]
cmp rax, r11
jne 0x10007eaf8
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10007eaf3
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, rsi
jae 0x10007eaf3
add rbx, 1
cmp rbx, rcx
jne 0x10007eada
mov rcx, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x40]
mov r15d, 0x65c64b23
mov edx, dword [rsp + 0x44]
mov rbp, qword [rsp + 0x50]
cmp r8, rcx
je 0x10007eca3
mov eax, dword [r8]
cmp rax, r12
ja 0x10007eca3
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x10007eb4d
add r8, rdi
cmp r8, rcx
je 0x10007eca3
mov eax, dword [r8]
cmp rax, r12
ja 0x10007eca3
xor ebx, ebx
jmp 0x10007eb21
mov eax, dword [r8]
cmp rax, r12
jne 0x10007eb6b
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x58]
jae 0x10007eca3
mov rax, rbx
add rbx, 1
test word [r8 + rax*2 + 8], 0xf000
je 0x10007eb0c
xor edi, edi
movzx r11d, word [r8 + rax*2 + 8]
mov esi, r11d
lea rax, [0x100000000]
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x10007ebed
mov r14, rax
movzx ecx, byte [rdi + r10]
add rdi, 1
add ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov edx, dword [rsp + 0x48]
add edx, eax
add r9d, edx
cmp rdi, r14
jb 0x10007eba5
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
shr r11d, 0xc
cmp r11d, 3
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
je 0x10007ec0f
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10007ec15
mov r10d, 2
mov r11, rbp
neg r11
sub r10d, 2
je 0x10007ec3d
cmp r10d, 1
je 0x10007ec2d
or r10, 0xffffffffffffffff
jmp 0x10007ec45
add rax, r11
mov qword [rsp + 0x48], rax
mov r10d, 8
jmp 0x10007ec45
add dword [rsp + 0x48], r11d
mov r10, r13
xor r11d, r11d
test r10, r10
je 0x10007ec96
movzx ecx, byte [rsp + r11 + 0x48]
add r11, 1
add ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x50], rax
shr rax, 0x20
mov edx, dword [rsp + 0x50]
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x10007ec4d
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rcx, qword [rsp + 0x28]
add r10, rsi
jmp 0x10007eb0c
mov rbp, qword [rsp + 0x78]
mov r11, qword [rsp + 0x38]
xor r12d, r12d
sub r11, r10
mov r14, qword [rsp + 0x90]
mov r8, r12
mov dil, r8b
je 0x10007ed0b
movzx ecx, byte [r10 + r8]
add r8, 1
add ecx, r15d
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x28], rax
shr rax, 0x20
mov edx, dword [rsp + 0x28]
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x10007ecc3
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov ebx, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x70]
mov rcx, r12
mov al, cl
add rcx, 1
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x40]
mov byte [rsp + rcx + 0xa7], al
jb 0x10007ed17
mov eax, 0x51debf1e
mov r12b, r14b
mov r15, rbp
and r12d, 7
mov r10, rsi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rsi
je 0x10007f224
xor r8d, r8d
mov esi, ebx
not esi
mov dword [rsp + 0x58], r8d
xor r11d, r11d
mov dword [rsp + 0x38], r11d
xor r10d, r10d
test r12d, r12d
jle 0x10007edad
lea r9d, [r8 + 0x38]
movzx edx, byte [r15]
cmp r10d, r13d
jge 0x10007ed8a
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x10007ed92
mov ecx, r9d
shl edx, cl
or r8d, edx
add r10d, 1
add r15, 1
sub r9d, 8
cmp r10d, r12d
jl 0x10007ed76
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x58], r8d
movzx r10d, word [rsp + 0xae]
mov ecx, eax
movzx r8d, word [rsp + 0xaa]
xor ecx, esi
movzx r9d, ax
mov edx, dword [rsp + 0xac]
movzx r11d, dx
mov ebx, edx
sub ebx, ecx
xor ebx, dword [rsp + 0x20]
mov ecx, ebx
ror ecx, 0xc
sub ecx, r10d
imul ecx, r11d
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xc
add ecx, r11d
imul ecx, r10d
xor ebx, ecx
mov ecx, ebx
xor ecx, r10d
mov edx, ebx
ror edx, 2
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov edx, eax
mov dword [rsp + 0x50], esi
mov ecx, esi
mov esi, dword [rsp + 0xac]
ror ecx, 8
xor esi, eax
xor esi, dword [rsp + 0x50]
xor ecx, r9d
imul ecx, r11d
xor ebx, ecx
xor esi, ebx
mov ecx, esi
xor edx, esi
shr ecx, 9
rol edx, 6
imul edx, r11d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
shr ecx, 3
mov edx, ebx
xor edx, r9d
imul edx, r8d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, dword [rsp + 0xac]
add edx, esi
rol edx, 0xa
rol ecx, 7
imul edx, r9d
add ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor edx, r11d
rol edx, 6
rol ecx, 9
imul edx, r10d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, r8d
ror edx, 3
imul ecx, r11d
mov r11d, dword [rsp + 0x58]
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
sub ecx, r8d
mov r8d, dword [rsp + 0xac]
xor ecx, r8d
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, r8d
xor esi, r11d
ror edx, 0xb
ror ecx, 0x10
imul edx, r9d
xor r9d, r9d
sub edx, ecx
xor edx, dword [rsp + 0x38]
xor ebx, edx
mov ecx, ebx
mov edx, esi
test r12d, r12d
jle 0x10007ef04
mov r8, qword [rsp + 0x28]
cmp r9d, r13d
jge 0x10007eee9
rol ecx, 8
mov byte [r8], cl
add r8, 1
xor dil, cl
jmp 0x10007eef6
rol edx, 8
mov byte [r8], dl
add r8, 1
xor dil, dl
add r9d, 1
cmp r9d, r12d
jl 0x10007eed5
mov qword [rsp + 0x28], r8
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x10007f20c
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr esi, cl
shl esi, cl
mov r13d, dword [rsp + 0x38]
mov r10, qword [rsp + 0x28]
mov rcx, r14
shr rcx, 3
mov qword [rsp + 0x98], rcx
je 0x10007f14c
mov r12d, dword [rsp + 0xac]
mov ecx, r12d
mov r14, qword [rsp + 0x98]
xor ecx, eax
mov dword [rsp + 0x28], ecx
mov ebp, dword [rsp + 0x28]
movzx ecx, word [rsp + 0xae]
mov dword [rsp + 0x58], ecx
movzx ecx, r12w
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0xaa]
mov dword [rsp + 0x50], ecx
movzx ecx, ax
mov dword [rsp + 0x20], ecx
mov edx, r12d
movzx ecx, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
movzx r9d, byte [r15]
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
shl r8d, 8
movzx ecx, byte [r15 - 2]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
or r8d, ecx
mov ecx, eax
xor esi, r8d
xor ecx, esi
sub edx, ecx
xor edx, r9d
xor ebx, edx
movzx edx, word [rsp + 0xae]
mov ecx, ebx
ror ecx, 0xc
sub ecx, edx
mov edx, dword [rsp + 0x38]
imul ecx, edx
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xc
add ecx, edx
movzx edx, word [rsp + 0xae]
imul ecx, edx
xor ebx, ecx
mov ecx, ebx
xor ecx, dword [rsp + 0x58]
mov edx, ebx
ror edx, 2
imul ecx, dword [rsp + 0x50]
xor edx, ecx
xor esi, edx
mov edx, eax
mov ecx, esi
ror ecx, 8
xor ecx, dword [rsp + 0x20]
imul ecx, dword [rsp + 0x38]
xor ebx, ecx
xor esi, ebx
xor esi, ebp
mov ecx, esi
xor edx, esi
rol edx, 6
shr ecx, 9
imul edx, dword [rsp + 0x38]
sub edx, ecx
movzx ecx, word [rsp + 0xaa]
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x20]
imul edx, ecx
mov ecx, ebx
shr ecx, 3
xor edx, ecx
xor esi, edx
mov ecx, esi
lea edx, [r12 + rsi]
rol edx, 0xa
rol ecx, 7
imul edx, dword [rsp + 0x20]
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, dword [rsp + 0x38]
rol edx, 6
rol ecx, 9
imul edx, dword [rsp + 0x58]
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x50]
ror edx, 3
imul ecx, dword [rsp + 0x38]
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
movzx edx, word [rsp + 0xaa]
sub ecx, edx
xor ecx, r12d
xor esi, ecx
mov edx, esi
mov ecx, esi
xor esi, r11d
mov r11d, r8d
sub edx, r12d
mov byte [r10 + 7], sil
ror edx, 0xb
ror ecx, 0x10
imul edx, dword [rsp + 0x20]
sub edx, ecx
xor edx, r13d
mov r13d, r9d
xor ebx, edx
mov byte [r10 + 3], bl
xor dil, bl
ror ebx, 8
mov byte [r10 + 2], bl
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 6], sil
ror ebx, 8
xor dil, sil
mov byte [r10 + 1], bl
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r10 + 5], sil
xor dil, sil
mov byte [r10], bl
ror esi, 8
mov cl, sil
mov byte [r10 + 4], sil
add r10, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub r14, 1
jne 0x10007ef82
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x90]
cmp dil, byte [r14 + rbp + 8]
je 0x10007f24c
call fcn.1002d3e40
mov rsi, qword [rsp + 0x88]
mov ebx, 0xffff
mov rbp, qword [rsp + 0x80]
mov r8, rsi
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov r11, rax
lea r10, [0x1003e8888]
mov qword [rbp + 0x10], r10
mov rcx, qword [0x100495210]
mov rax, 0xfffffffffffff000
and r11, rax
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
shr rbx, 0x10
jne 0x10007f1a3
mov qword [0x100495210], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x68]
shr rdx, 0xf
mov qword [rax + 0x98], r11
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], 0
jmp 0x10007f242
xor esi, esi
test ecx, ecx
jns 0x10007ef1f
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x10007ef1f
xor esi, esi
mov r11d, ebx
mov r13d, ebx
not r11d
xor ebx, ebx
jmp 0x10007ef29
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10007f236
jmp 0x10007f371
lea r15, [0x100000000]
mov rbx, rbp
mov rax, qword [0x1003f4900]
mov rsi, r15
mov r12, qword [rsp + 0x70]
sub rbx, r12
sub rsi, rax
jne 0x10007f276
test rbx, rbx
je 0x10007f34a
xor edi, edi
mov r11, r12
sub r11, rbp
mov rcx, qword [0x1000016e8]
lea r8d, [rcx - 1]
sub ebp, r15d
lea r13d, [r14 + rbp]
lea r14, [0x1000016e8]
test r8d, r8d
js 0x10007f2c9
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 ebp, r9d
jae 0x10007f2bf
lea r8d, [rax - 1]
jmp 0x10007f2c4
jbe 0x10007f2ce
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10007f29c
movsxd r10, edi
jmp 0x10007f343
movsxd r10, eax
jmp 0x10007f343
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10007f34a
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 0x10007f31e
sub edi, 1
je 0x10007f319
cmp edi, 1
jne 0x10007f324
mov r9, rsi
jmp 0x10007f324
mov r9, rbx
jmp 0x10007f324
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10007f334
cmp edx, 1
jne 0x10007f33f
add qword [r8 + r11], r9
jmp 0x10007f338
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x10007f2d3
mov eax, dword [0x1002f3aa4]
mov eax, 0xc63c9920
mov rdx, qword [rsp + 0xa0]
lea r10, [r12 + rdx]
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret