Function at 0x100002100
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, 0xa0
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea r15, [0x100000000]
mov rax, qword [rcx + 0x10]
mov r13d, 0xfffffff
lea r9, [rax + 0xd]
lea rdi, [r9 - 1]
mov qword [rsp + 0x78], rcx
lea r8, section..data
mov ebp, dword [rax + 5]
mov ecx, dword [rax + 9]
and rbp, r13
and rcx, r13
mov r14d, dword [rax + 1]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x88], rcx
and r14, r13
add rbp, r15
xor r12d, r12d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], rbp
cmp rdi, r8
jb 0x1000021bc
mov ecx, dword [0x1002a02b4]
mov eax, dword [0x1002f8888]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x1000021bc
mov rax, rdi
mov ecx, dword [0x1002f8888]
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1002f8888]
imul rdx, rax
add r8, rdx
jmp 0x1000021bf
mov r8, r12
cmp r8, r12
jne 0x1000021ce
mov r8, rdi
and r8, 0xffffffffffff0000
mov esi, ebp
sub r9, r8
lea rax, [r9 - 0x40]
cmp rax, r12
cmovl rax, r12
mov r9d, dword [0x1002f8888]
sub r9, r14
sub esi, r15d
lea rdi, [rax + r8]
mov dword [rsp + 0x2c], esi
xor eax, eax
inc r9
cmp r9, r12
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
mov rdi, r9
je 0x10000223b
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 0x10000220c
mov qword [0x1004c43a0], rcx
mov ecx, esi
xor edx, edx
div r9
lea rbx, [rdx + r8]
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r14
mov eax, 0x5b06910f
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x50]
mov dil, r12b
mov eax, 0xaffab2f
mov rax, qword [0x1000487b8]
mov r10, qword [rsp + 0x50]
mov rcx, r15
mov r9d, dword [rsp + 0x54]
and r10, r13
and r9, r13
add r10, r15
mov r13d, 4
sub rcx, rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rcx
jne 0x100002323
cmp r9, r12
mov r11, r12
jbe 0x100002643
mov esi, 0xd4afbe6b
mov r8d, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
movzx eax, byte [r10 + r11]
inc r11
sub eax, 0x2b504195
add r8d, eax
add eax, ecx
imul rax, rsi
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 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, rsi
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add ecx, eax
add r8d, ecx
cmp r11, r9
jb 0x1000022bc
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x10000263f
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r15 + 0xb0]
mov edx, dword [rcx + r15 + 0xb4]
mov qword [rsp + 0x80], rax
add r8, r15
mov eax, r10d
sub eax, r15d
mov r11d, eax
mov ecx, eax
mov rsi, rcx
lea r12, [r9 + rcx]
mov rax, 0xfffffffffffff000
and r11, rax
lea rcx, [rdx + r8]
mov qword [rsp + 0x48], rcx
mov r15, r12
sub rsi, r11
and r15, rax
sub r12, r15
mov qword [rsp + 0x40], r12
jmp 0x100002390
mov eax, dword [r8]
cmp rax, r11
jae 0x100002395
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x100002381
xor ebx, ebx
cmp r8, rcx
je 0x1000023d3
mov eax, dword [r8]
cmp rax, r11
jne 0x1000023d3
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1000023ce
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x1000023ce
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x1000023b5
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x34]
mov esi, 0xd4afbe6b
mov rbp, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x30]
cmp r8, rcx
je 0x1000025b8
mov eax, dword [r8]
cmp rax, r15
ja 0x1000025b8
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x100002427
add r8, rdi
cmp r8, rcx
je 0x1000025b8
mov eax, dword [r8]
cmp rax, r15
ja 0x1000025b8
xor ebx, ebx
jmp 0x1000023fb
mov eax, dword [r8]
cmp rax, r15
jne 0x100002443
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, r12
jae 0x1000025b8
mov rax, rbx
inc rbx
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x1000023e6
movzx r11d, word [r8 + rax*2 + 8]
xor edi, edi
mov r12d, r11d
lea rax, [0x100000000]
and r12d, 0xfff
add r12d, dword [r8]
add r12, rax
mov rax, r12
sub rax, r10
je 0x1000024e2
mov r14, rax
movzx eax, byte [r10 + rdi]
inc rdi
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x38]
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, rsi
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov edx, dword [rsp + 0x38]
add edx, eax
add r9d, edx
cmp rdi, r14
jb 0x100002480
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
shr r11d, 0xc
cmp r11d, 3
je 0x100002505
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10000250b
mov r10d, 2
mov r11, rbp
neg r11
sub r10d, 2
je 0x100002533
cmp r10d, 1
je 0x100002523
or r10, 0xffffffffffffffff
jmp 0x10000253b
mov r10d, 8
add rax, r11
mov qword [rsp + 0x38], rax
jmp 0x10000253b
mov r10, r13
add dword [rsp + 0x38], r11d
xor r11d, r11d
test r10, r10
je 0x1000025a6
movzx eax, byte [rsp + r11 + 0x38]
inc r11
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 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, rsi
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x20]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x100002543
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
add r10, r12
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
jmp 0x1000023e6
xor r12d, r12d
mov r14, qword [rsp + 0x70]
mov r8, r12
mov rbp, qword [rsp + 0x68]
mov dil, r8b
mov r11, qword [rsp + 0x80]
sub r11, r10
je 0x10000263a
movzx eax, byte [r8 + r10]
inc r8
sub eax, 0x2b504195
add r9d, eax
add eax, edx
imul rax, rsi
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, rsi
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov edx, dword [rsp + 0x20]
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x1000025d8
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], r9d
mov rbx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x2c]
mov rcx, r12
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x30]
cmp rcx, 8
mov byte [rsp + rcx + 0x8f], al
jb 0x100002646
mov eax, 0x1ae0430
mov r10, rbx
mov r12, r14
and r12d, 7
mov r15, rbp
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rbx
je 0x100002b21
mov ebx, esi
not ebx
xor r8d, r8d
mov dword [rsp + 0x48], r8d
xor r11d, r11d
xor r10d, r10d
mov dword [rsp + 0x40], r11d
test r12d, r12d
jle 0x1000026da
lea r9d, [r8 + 0x38]
cmp r10d, r13d
movzx edx, byte [r15]
jge 0x1000026b9
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x1000026c1
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r12d
jl 0x1000026a5
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x48], r8d
movzx r9d, word [rsp + 0x92]
movzx r10d, word [rsp + 0x96]
mov ecx, esi
sub ecx, eax
movzx r8d, ax
movzx r11d, word [rsp + 0x94]
sub ecx, r10d
xor ebx, ecx
mov ecx, ebx
xor ecx, r8d
mov esi, ebx
rol ecx, 3
ror esi, 9
imul ecx, r11d
add esi, ecx
xor esi, dword [rsp + 0x2c]
mov edx, esi
xor edx, r10d
mov ecx, esi
shr ecx, 3
rol edx, 6
imul edx, r9d
add edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0x94]
mov ecx, ebx
xor edx, ebx
ror edx, 0xc
rol ecx, 0xa
imul edx, r8d
xor ecx, edx
xor esi, ecx
mov edx, eax
mov ecx, esi
xor edx, esi
rol edx, 1
rol ecx, 0xf
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 0xb
add ecx, r11d
imul ecx, r8d
xor esi, ecx
mov edx, esi
mov ecx, esi
sub edx, r11d
shr ecx, 0xc
imul edx, r9d
sub edx, ecx
xor ebx, edx
mov edx, ebx
sub edx, dword [rsp + 0x94]
mov ecx, ebx
ror edx, 0xa
ror ecx, 7
imul edx, r8d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 0xf
rol ecx, 3
imul edx, r10d
xor ecx, edx
xor ebx, ecx
lea edx, [rbx + rax]
mov ecx, ebx
ror edx, 0xd
ror ecx, 0xb
imul edx, r11d
add ecx, edx
xor esi, ecx
mov ecx, esi
xor ecx, r11d
mov r11d, dword [rsp + 0x48]
mov edx, esi
ror edx, 0xd
imul ecx, r9d
add edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0x94]
mov ecx, eax
xor r9d, r9d
xor ecx, ebx
xor ebx, r11d
sub edx, ecx
mov r8d, ebx
xor edx, dword [rsp + 0x40]
xor esi, edx
test r12d, r12d
mov edx, esi
jle 0x100002827
mov rcx, qword [rsp + 0x20]
cmp r9d, r13d
jge 0x10000280d
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x10000281a
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r12d
jl 0x1000027fb
mov qword [rsp + 0x20], rcx
lea ecx, [r12 - 4]
test ecx, ecx
jle 0x100002b09
sub r13d, ecx
shl r13d, 3
mov ecx, r13d
shr ebx, cl
shl ebx, cl
mov r13d, dword [rsp + 0x40]
mov r10, qword [rsp + 0x20]
mov r12, r14
shr r12, 3
test r12, r12
je 0x100002a54
movzx edx, word [rsp + 0x96]
movzx ebp, word [rsp + 0x94]
movzx ecx, ax
mov dword [rsp + 0x2c], ecx
movzx ecx, word [rsp + 0x92]
mov dword [rsp + 0x48], edx
mov r14d, dword [rsp + 0x2c]
mov dword [rsp + 0x40], ecx
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
movzx ecx, byte [r15 - 5]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
xor esi, r9d
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
or r8d, ecx
mov ecx, esi
sub ecx, eax
sub ecx, edx
xor ecx, r8d
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
xor edx, r14d
rol edx, 3
ror ecx, 9
imul edx, ebp
add ecx, edx
xor esi, ecx
movzx ecx, word [rsp + 0x96]
mov edx, esi
xor edx, ecx
rol edx, 6
movzx ecx, word [rsp + 0x92]
imul edx, ecx
mov ecx, esi
shr ecx, 3
add edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, dword [rsp + 0x94]
xor edx, ebx
ror edx, 0xc
rol ecx, 0xa
imul edx, r14d
xor ecx, edx
xor esi, ecx
mov edx, eax
mov ecx, esi
xor edx, esi
rol edx, 1
rol ecx, 0xf
imul edx, dword [rsp + 0x48]
add ecx, edx
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 0xb
add ecx, ebp
imul ecx, r14d
xor esi, ecx
movzx ecx, word [rsp + 0x92]
mov edx, esi
sub edx, ebp
imul edx, ecx
mov ecx, esi
shr ecx, 0xc
sub edx, ecx
xor ebx, edx
mov edx, ebx
sub edx, dword [rsp + 0x94]
ror edx, 0xa
mov ecx, ebx
ror ecx, 7
imul edx, r14d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
sub edx, eax
ror edx, 0xf
rol ecx, 3
imul edx, dword [rsp + 0x48]
xor ecx, edx
xor ebx, ecx
lea edx, [rbx + rax]
ror edx, 0xd
mov ecx, ebx
ror ecx, 0xb
imul edx, ebp
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, esi
xor ecx, ebp
ror edx, 0xd
imul ecx, dword [rsp + 0x40]
add edx, ecx
xor ebx, edx
mov edx, dword [rsp + 0x94]
mov ecx, eax
xor ecx, ebx
xor ebx, r11d
sub edx, ecx
mov r11d, r8d
xor edx, r13d
mov r13d, r9d
mov byte [r10 + 7], bl
xor esi, edx
xor dil, sil
movzx edx, word [rsp + 0x96]
mov byte [r10 + 3], sil
ror esi, 8
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 2], sil
ror esi, 8
mov byte [r10 + 6], bl
xor dil, bl
mov byte [r10 + 1], sil
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r10 + 5], bl
mov byte [r10], sil
xor dil, bl
ror ebx, 8
mov byte [r10 + 4], bl
mov cl, bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r12, 1
jne 0x100002888
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
cmp dil, byte [r14 + rbp + 8]
je 0x100002b49
call fcn.100058248
lea r10, [0x1001094ec]
mov rbx, rax
mov rax, 0xfffffffffffff000
mov r11d, 0xffff
mov rsi, qword [rsp + 0x78]
lea r8, [rsi + 0x18]
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
and rbx, rax
and r9, rax
xor edi, edi
mov qword [rsi + 0x10], r10
mov rcx, qword [0x1004c43a0]
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 0x100002aa2
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
mov qword [0x1004c43a0], rcx
sub rdi, rdx
inc rdi
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x98], rbx
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x60], r11
jmp 0x100002b3f
xor ebx, ebx
test ecx, ecx
jns 0x100002842
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x100002842
xor ebx, ebx
mov r11d, esi
not r11d
mov r13d, esi
xor esi, esi
jmp 0x10000284c
mov rax, qword [rsp + 0x60]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100002b33
jmp 0x100002c62
lea r15, [0x100000000]
mov rsi, r15
mov rbx, rbp
mov rax, qword [0x1000487b8]
mov r12, qword [rsp + 0x58]
sub rbx, r12
sub rsi, rax
jne 0x100002b73
test rbx, rbx
je 0x100002c46
mov r11, r12
xor edi, edi
mov rcx, qword [0x1001d1e58]
lea r8d, [rcx - 1]
sub r11, rbp
sub ebp, r15d
lea r13d, [r14 + rbp]
test r8d, r8d
lea r14, [0x1001d1e58]
js 0x100002bc6
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 0x100002bbc
lea r8d, [rax - 1]
jmp 0x100002bc1
jbe 0x100002bcb
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100002b99
movsxd r10, edi
jmp 0x100002c3f
movsxd r10, eax
jmp 0x100002c3f
mov edx, dword [r14 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x100002c46
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 0x100002c1b
sub edi, 1
je 0x100002c16
cmp edi, 1
jne 0x100002c21
mov r9, rsi
jmp 0x100002c21
mov r9, rbx
jmp 0x100002c21
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100002c31
cmp edx, 1
jne 0x100002c3c
add qword [r8 + r11], r9
jmp 0x100002c35
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100002bd0
mov eax, dword [0x1002f8888]
mov eax, 0xbee23d58
mov rsi, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
lea r10, [r12 + rdx]
mov qword [rsi + 0x10], r10
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret