Function at 0x1002a79a4
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 [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea r8, section..data
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rax + 1]
mov ebp, dword [rax + 9]
lea r15, [0x100000000]
mov r14d, dword [rax + 5]
mov qword [rsp + 0x60], rdx
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov r13d, 0xfffffff
and rbp, r13
and rcx, r13
mov qword [rsp + 0x90], rcx
and r14, r13
add rbp, r15
mov qword [rsp + 0x80], r14
xor r12d, r12d
cmp rdi, r8
mov qword [rsp + 0x78], rbp
jb 0x1002a7a63
mov eax, dword [0x1002f8888]
mov ecx, dword [0x1002a02b4]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x1002a7a63
mov rax, rdi
mov ecx, dword [0x1002f8888]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x1002a7a66
mov r8, r12
cmp r8, r12
jne 0x1002a7a75
mov r8, rdi
and r8, 0xffffffffffff0000
sub r9, r8
lea rax, [r9 - 0x40]
mov ebx, ebp
mov r9d, dword [0x1002f8888]
cmp rax, r12
cmovl rax, r12
lea rdi, [rax + r8]
sub r9, r14
sub ebx, r15d
mov dword [rsp + 0x20], ebx
xor eax, eax
inc r9
cmp r9, r12
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x1002a7ae2
mov rcx, qword [0x1004c43a0]
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 0x1002a7ab3
mov qword [0x1004c43a0], rcx
mov ecx, ebx
xor edx, edx
div r9
lea rsi, [rdx + r8]
mov rdx, r14
mov r8, rsi
mov qword [rsp + 0x50], rsi
mov eax, 0xb6cbe760
lea rcx, [rsp + 0x58]
mov dil, r12b
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x58], rdx
mov eax, 0x9578b8a7
mov rcx, r15
mov rax, qword [0x1000487b8]
mov r9d, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x58]
and r10, r13
and r9, r13
mov qword [rsp + 0x30], r12
mov r13d, 4
add r10, r15
sub rcx, rax
mov qword [rsp + 0x38], rcx
jne 0x1002a7bb7
mov r11, r12
cmp r9, r12
jbe 0x1002a7e9b
mov r15d, 0x20d19aab
mov esi, 0xdf2e6555
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
movzx eax, byte [r10 + r11]
inc r11
sub eax, r15d
add r8d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x28], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r8d, edx
cmp r11, r9
jb 0x1002a7b65
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r8d
jmp 0x1002a7e96
mov rbx, 0xfffffffffffff000
movsxd rcx, dword [0x10000003c]
lea rax, [r10 + r9]
mov r8d, dword [rcx + r15 + 0xb0]
add r8, r15
mov ecx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x68], rax
mov eax, r10d
sub eax, r15d
mov r11d, eax
mov esi, eax
add rax, r9
mov r12, rax
and r11, rbx
and r12, rbx
sub rsi, r11
sub rax, r12
add rcx, r8
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
jmp 0x1002a7c1c
mov eax, dword [r8]
cmp rax, r11
jae 0x1002a7c21
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1002a7c0d
xor ebx, ebx
cmp r8, rcx
je 0x1002a7c5f
mov eax, dword [r8]
cmp rax, r11
jne 0x1002a7c5f
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1002a7c5a
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x1002a7c5a
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x1002a7c41
mov rcx, qword [rsp + 0x28]
mov edi, 0xdf2e6555
mov r15d, 0x20d19aab
mov edx, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x30]
cmp r8, rcx
je 0x1002a7e20
mov eax, dword [r8]
cmp rax, r12
ja 0x1002a7e20
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x1002a7cb4
add r8, r11
cmp r8, rcx
je 0x1002a7e20
mov eax, dword [r8]
cmp rax, r12
ja 0x1002a7e20
xor ebx, ebx
jmp 0x1002a7c88
mov eax, dword [r8]
cmp rax, r12
jne 0x1002a7cd2
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x1002a7e20
mov rax, rbx
inc rbx
mov r11d, 0xf000
test word [r8 + rax*2 + 8], r11w
je 0x1002a7c73
xor r14d, r14d
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x1002a7d5d
mov rbp, rax
movzx eax, byte [r14 + r10]
inc r14
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rdi
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp r14, rbp
jb 0x1002a7d10
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rax, qword [rsi]
shr r11d, 0xc
cmp r11d, 3
mov qword [rsp + 0x40], rax
je 0x1002a7d7f
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x1002a7d85
mov r10d, 2
mov r11, qword [rsp + 0x38]
neg r11
sub r10d, 2
je 0x1002a7daf
cmp r10d, 1
je 0x1002a7d9f
or r10, 0xffffffffffffffff
jmp 0x1002a7db7
mov r10d, 8
add rax, r11
mov qword [rsp + 0x40], rax
jmp 0x1002a7db7
add dword [rsp + 0x40], r11d
mov r10, r13
xor r11d, r11d
test r10, r10
je 0x1002a7e13
movzx eax, byte [rsp + r11 + 0x40]
inc r11
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rdi
mov qword [rsp + 0x88], rax
mov ecx, dword [rsp + 0x88]
shr rax, 0x20
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp r11, r10
jb 0x1002a7dbf
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x28]
add r10, rsi
jmp 0x1002a7c73
mov rbp, qword [rsp + 0x78]
xor r12d, r12d
mov r14, qword [rsp + 0x80]
mov r8, r12
mov r11, qword [rsp + 0x68]
sub r11, r10
mov dil, r8b
je 0x1002a7e92
mov esi, 0xdf2e6555
movzx eax, byte [r8 + r10]
inc r8
sub eax, r15d
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x68], rax
mov ecx, dword [rsp + 0x68]
shr rax, 0x20
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp r8, r11
jb 0x1002a7e45
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov ebx, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
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 0x1002a7e9e
mov eax, 0xa4c2ffd9
mov rax, qword [rsp + 0x98]
mov r10, rsi
mov qword [rsp + 0x28], rsi
mov r12, r14
mov r15, rbp
and r12d, 7
je 0x1002a83a9
not ebx
xor r8d, r8d
mov dword [rsp + 0x48], r8d
xor r11d, r11d
mov dword [rsp + 0x38], r11d
xor r10d, r10d
test r12d, r12d
jle 0x1002a7f30
lea r9d, [r8 + 0x38]
movzx edx, byte [r15]
cmp r10d, r13d
jge 0x1002a7f0f
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1002a7f17
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x1002a7efb
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x48], r8d
movzx r10d, word [rsp + 0x9e]
movzx r9d, word [rsp + 0x9c]
mov esi, dword [rsp + 0x9c]
mov ecx, eax
movzx r8d, word [rsp + 0x9a]
movzx r11d, ax
xor ecx, ebx
sub esi, ecx
xor esi, dword [rsp + 0x20]
mov edx, esi
ror edx, 9
mov ecx, esi
xor ecx, r11d
imul ecx, r10d
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
ror edx, 5
xor ecx, r10d
imul ecx, r9d
xor edx, ecx
xor esi, edx
mov ecx, esi
sub ecx, r8d
xor ecx, dword [rsp + 0x9c]
xor ebx, ecx
mov ecx, ebx
ror ecx, 7
sub ecx, r11d
imul ecx, r8d
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 7
rol ecx, 4
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov edx, ebx
xor edx, r8d
mov ecx, ebx
rol edx, 6
ror ecx, 0xf
imul edx, r9d
sub edx, ecx
xor esi, edx
mov edx, dword [rsp + 0x9c]
sub edx, esi
mov ecx, esi
ror edx, 4
ror ecx, 2
imul edx, r8d
add ecx, edx
xor ebx, ecx
mov edx, dword [rsp + 0x9c]
mov ecx, ebx
xor edx, ebx
ror edx, 7
ror ecx, 0x10
imul edx, r11d
xor ecx, edx
xor esi, ecx
mov edx, eax
mov ecx, esi
sub edx, esi
ror edx, 6
rol ecx, 0xe
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
sub ecx, eax
sub ecx, r9d
xor esi, ecx
mov ecx, esi
mov edx, esi
xor edx, r10d
imul edx, r8d
shr ecx, 0xb
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, r9d
shr ecx, 3
xor r9d, r9d
rol edx, 4
imul edx, r11d
mov r11d, dword [rsp + 0x48]
xor edx, ecx
xor ebx, r11d
mov r8d, ebx
xor edx, dword [rsp + 0x38]
xor esi, edx
test r12d, r12d
mov edx, esi
jle 0x1002a8089
mov rcx, qword [rsp + 0x28]
cmp r9d, r13d
jge 0x1002a806f
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1002a807c
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x1002a805d
mov qword [rsp + 0x28], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x1002a8391
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r13d, dword [rsp + 0x38]
mov r10, qword [rsp + 0x28]
mov r12, r14
shr r12, 3
test r12, r12
je 0x1002a82dc
movzx r14d, word [rsp + 0x9c]
movzx ecx, word [rsp + 0x9e]
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0x9a]
mov dword [rsp + 0x28], ecx
movzx ecx, word [rsp + 0x9c]
neg ecx
mov dword [rsp + 0x48], ecx
mov ebp, dword [rsp + 0x48]
movzx ecx, ax
mov dword [rsp + 0x20], ecx
movzx ecx, byte [r15 + 1]
mov edx, dword [rsp + 0x9c]
movzx r9d, byte [r15]
movzx r8d, byte [r15 + 4]
shl r9d, 8
shl r8d, 8
or r9d, ecx
movzx ecx, byte [r15 + 2]
add r15, 8
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 5]
shl r9d, 8
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
xor ebx, r8d
mov ecx, eax
xor ecx, ebx
sub edx, ecx
xor edx, r9d
xor esi, edx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x20]
ror edx, 9
imul ecx, dword [rsp + 0x38]
add edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
xor ecx, dword [rsp + 0x38]
ror edx, 5
imul ecx, r14d
xor edx, ecx
xor esi, edx
mov ecx, esi
movzx edx, word [rsp + 0x9a]
sub ecx, edx
xor ecx, dword [rsp + 0x9c]
xor ebx, ecx
mov ecx, ebx
ror ecx, 7
sub ecx, dword [rsp + 0x20]
imul ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 7
rol ecx, 4
imul edx, dword [rsp + 0x38]
sub edx, ecx
movzx ecx, word [rsp + 0x9a]
xor ebx, edx
mov edx, ebx
xor edx, ecx
rol edx, 6
mov ecx, ebx
ror ecx, 0xf
imul edx, r14d
sub edx, ecx
xor esi, edx
mov edx, dword [rsp + 0x9c]
sub edx, esi
ror edx, 4
mov ecx, esi
ror ecx, 2
imul edx, dword [rsp + 0x28]
add ecx, edx
mov edx, dword [rsp + 0x9c]
xor ebx, ecx
mov ecx, ebx
xor edx, ebx
ror edx, 7
imul edx, dword [rsp + 0x20]
ror ecx, 0x10
xor ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
sub edx, esi
ror edx, 6
rol ecx, 0xe
imul edx, dword [rsp + 0x38]
sub edx, ecx
xor ebx, edx
mov ecx, ebx
sub ecx, eax
sub ecx, r14d
xor esi, ecx
movzx ecx, word [rsp + 0x9e]
mov edx, esi
xor edx, ecx
movzx ecx, word [rsp + 0x9a]
imul edx, ecx
mov ecx, esi
shr ecx, 0xb
xor edx, ecx
xor ebx, edx
mov ecx, ebx
lea edx, [rbp + rbx]
shr ecx, 3
xor ebx, r11d
mov r11d, r8d
rol edx, 4
mov byte [r10 + 7], bl
imul edx, dword [rsp + 0x20]
xor edx, ecx
xor edx, r13d
xor esi, edx
mov r13d, r9d
mov byte [r10 + 3], sil
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 2], sil
ror ebx, 8
xor dil, sil
mov byte [r10 + 6], bl
ror esi, 8
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
mov byte [r10 + 5], bl
xor dil, sil
ror esi, 8
mov byte [r10], sil
xor dil, bl
ror ebx, 8
mov cl, bl
mov byte [r10 + 4], bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r12, 1
jne 0x1002a80f8
mov r14, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
cmp dil, byte [r14 + rbp + 8]
je 0x1002a83d1
call fcn.100058248
mov r11d, 0xffff
mov rbx, rax
lea r10, [0x1001094ec]
mov rax, 0xfffffffffffff000
mov rsi, qword [rsp + 0x70]
mov qword [rsi + 0x10], r10
lea r8, [rsi + 0x18]
and r8, 0xfffffffffffffff8
mov rcx, qword [0x1004c43a0]
and rbx, rax
lea r9, [r8 + 0xfff]
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 0x1002a832a
movabs rax, 0x8000800080008001
mov qword [0x1004c43a0], rcx
mul rdi
mov rax, qword [rsp + 0x60]
shr rdx, 0xf
imul rdx, rdx, 0xffff
mov qword [rax + 0x98], rbx
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], r11
jmp 0x1002a83c7
xor ebx, ebx
test ecx, ecx
jns 0x1002a80a4
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002a80a4
mov r13d, ebx
mov r11d, ebx
xor ebx, ebx
xor esi, esi
not r11d
jmp 0x1002a80ae
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1002a83bb
jmp 0x1002a84ea
mov rbx, rbp
mov rax, qword [0x1000487b8]
mov r12, qword [rsp + 0x50]
lea r15, [0x100000000]
sub rbx, r12
mov rsi, r15
sub rsi, rax
jne 0x1002a83fb
test rbx, rbx
je 0x1002a84ce
mov rcx, qword [0x1001d1e58]
xor edi, edi
mov r11, r12
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r13d, [r14 + rbp]
lea r14, [0x1001d1e58]
js 0x1002a844e
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 0x1002a8444
lea r8d, [rax - 1]
jmp 0x1002a8449
jbe 0x1002a8453
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1002a8421
movsxd r10, edi
jmp 0x1002a84c7
movsxd r10, eax
jmp 0x1002a84c7
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x1002a84ce
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 0x1002a84a3
sub edi, 1
je 0x1002a849e
cmp edi, 1
jne 0x1002a84a9
mov r9, rsi
jmp 0x1002a84a9
mov r9, rbx
jmp 0x1002a84a9
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002a84b9
cmp edx, 1
jne 0x1002a84c4
add qword [r8 + r11], r9
jmp 0x1002a84bd
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1002a8458
mov eax, dword [0x1002f8888]
mov eax, 0xca9585a7
mov rsi, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x90]
lea r10, [r12 + rdx]
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret