Function at 0x10021c4e0
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 [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x78], rcx
lea r14, [0x100000000]
mov ebx, 0xfffffff
lea r8, section..data
lea rax, [rcx + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rax]
mov ecx, dword [rax + 1]
lea r9, [rax + 0xd]
mov r15d, dword [rax + 9]
mov r12d, dword [rax + 5]
lea rdi, [r9 - 1]
and r12, rbx
shr rcx, 1
and r15, rbx
add r12, r14
mov qword [rsp + 0x70], r12
and rcx, rbx
xor r13d, r13d
cmp rdi, r8
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x88], r15
jb 0x10021c5ad
mov ecx, dword [0x100172988]
mov eax, dword [0x1000d5e38]
imul ecx, eax
mov eax, ecx
add rax, r8
cmp rdi, rax
jae 0x10021c5ad
mov ecx, dword [0x1000d5e38]
mov rax, rdi
sub rax, r8
cqo
idiv rcx
mov edx, dword [0x1000d5e38]
imul rdx, rax
add r8, rdx
jmp 0x10021c5b0
mov r8, r13
cmp r8, r13
jne 0x10021c5bf
mov r8, rdi
and r8, 0xffffffffffff0000
mov esi, r12d
sub r9, r8
lea rax, [r9 - 0x40]
mov r9d, dword [0x1000d5e38]
cmp rax, r13
cmovl rax, r13
sub r9, r15
sub esi, r14d
mov dword [rsp + 0x28], esi
lea rdi, [rax + r8]
xor eax, eax
lea ecx, [rax + 0x40]
rep stosb byte [rdi], al
inc r9
cmp r9, r13
mov rdi, r9
je 0x10021c62d
mov rcx, qword [0x100346e50]
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, r13
jne 0x10021c5fe
mov qword [0x100346e50], rcx
xor edx, edx
div r9
mov ecx, esi
lea rbp, [rdx + r8]
mov qword [rsp + 0x58], rbp
mov rdx, r15
mov r8, rbp
mov eax, 0x22591591
mov rdx, qword [r12 + r15]
lea rcx, [rsp + 0x60]
mov dil, r13b
mov qword [rsp + 0x60], rdx
mov eax, 0xefe2170d
mov rax, qword [0x100037580]
mov r9d, dword [rsp + 0x64]
mov rcx, r14
and r9, rbx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], r13
and ebx, 0xfffffff
add rbx, r14
sub rcx, rax
mov qword [rsp + 0x20], rcx
mov r14d, 4
jne 0x10021c718
mov r10, r13
cmp r9, r13
jbe 0x10021ca58
mov ebp, 0xe7acf032
mov ecx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
movzx eax, byte [rbx + r10]
inc r10
sub eax, 0x18530fce
add r8d, eax
add eax, ecx
imul rax, rbp
mov qword [rsp + 0x20], rax
mov ecx, dword [rsp + 0x20]
shr rax, 0x20
add eax, ecx
imul rax, rbp
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 ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
add r8d, ecx
cmp r10, r9
jb 0x10021c6b1
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], r8d
jmp 0x10021ca53
lea rax, [rbx + r9]
movsxd rcx, dword [0x10000003c]
lea rdx, [0x100000000]
mov r8d, dword [rcx + rdx + 0xb0]
mov qword [rsp + 0x90], rax
mov eax, ebx
sub eax, edx
mov r11d, eax
add r8, rdx
mov r10d, eax
lea r13, [rax + r9]
and r10, 0xfffffffffffff000
mov edx, dword [rcx + rdx + 0xb4]
mov rcx, r13
and rcx, 0xfffffffffffff000
sub r11, r10
mov qword [rsp + 0x38], rcx
sub r13, rcx
add rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r13
jmp 0x10021c78c
mov eax, dword [r8]
cmp rax, r10
jae 0x10021c791
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rdx
jne 0x10021c77d
xor esi, esi
cmp r8, rdx
je 0x10021c7d4
mov eax, dword [r8]
cmp rax, r10
jne 0x10021c7d4
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10021c7cf
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r11
jae 0x10021c7ca
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x10021c7b1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov ebp, 0xe7acf032
mov r15, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x34]
mov r10d, dword [rsp + 0x30]
cmp r8, rdx
je 0x10021c9c4
mov eax, dword [r8]
cmp rax, rcx
ja 0x10021c9c4
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x10021c829
add r8, rdi
cmp r8, rdx
je 0x10021c9c4
mov eax, dword [r8]
cmp rax, rcx
ja 0x10021c9c4
xor esi, esi
jmp 0x10021c7fd
mov eax, dword [r8]
cmp rax, rcx
jne 0x10021c845
movzx eax, word [r8 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x10021c9c4
mov rax, rsi
inc rsi
mov edi, 0xf000
test word [r8 + rax*2 + 8], di
je 0x10021c7e8
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, r11d
xor edi, edi
and r13d, 0xfff
add r13d, dword [r8]
add r13, rax
mov rax, r13
sub rax, rbx
je 0x10021c8e9
mov r12, rax
movzx eax, byte [rdi + rbx]
inc rdi
sub eax, 0x18530fce
add r10d, eax
add eax, r9d
imul rax, rbp
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
add eax, ecx
imul rax, rbp
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp rdi, r12
jb 0x10021c882
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], r10d
shr r11d, 0xc
cmp r11d, 3
mov rax, qword [r13]
mov qword [rsp + 0x40], rax
je 0x10021c90a
sub r11d, 0xa
neg r11d
sbb edx, edx
add edx, 3
jmp 0x10021c90f
mov edx, 2
mov r11, r15
neg r11
sub edx, 2
je 0x10021c935
cmp edx, 1
je 0x10021c925
or r11, 0xffffffffffffffff
jmp 0x10021c93d
add rax, r11
mov r11d, 8
mov qword [rsp + 0x40], rax
jmp 0x10021c93d
add dword [rsp + 0x40], r11d
mov r11, r14
xor ebx, ebx
test r11, r11
je 0x10021c9ac
movzx eax, byte [rsp + rbx + 0x40]
inc rbx
sub eax, 0x18530fce
add r10d, eax
add eax, r9d
imul rax, rbp
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
add eax, ecx
imul rax, rbp
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp rbx, r11
jb 0x10021c944
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], r10d
lea rbx, [r11 + r13]
mov rcx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
jmp 0x10021c7e8
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x70]
xor r13d, r13d
mov r11, qword [rsp + 0x90]
sub r11, rbx
mov r8, r13
mov dil, r8b
je 0x10021ca4f
movzx eax, byte [rbx + r8]
inc r8
sub eax, 0x18530fce
add r10d, eax
add eax, r9d
imul rax, rbp
mov qword [rsp + 0x20], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x20]
add eax, ecx
imul rax, rbp
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 r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r8, r11
jb 0x10021c9e7
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x30], r10d
mov esi, dword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov rcx, r13
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x9f], al
jb 0x10021ca5b
mov eax, 0x64bf0c77
mov r8, r12
mov r13, r15
and r13d, 7
mov rax, qword [rsp + 0xa0]
mov r11, rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x20], rbp
je 0x10021cf6a
xor r9d, r9d
xor ebx, ebx
not esi
mov dword [rsp + 0x48], r9d
xor r11d, r11d
test r13d, r13d
mov dword [rsp + 0x50], ebx
jle 0x10021caf3
lea r10d, [r9 + 0x38]
movzx edx, byte [r8]
cmp r11d, r14d
jge 0x10021cace
lea ecx, [r10 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10021cad6
mov ecx, r10d
shl edx, cl
or r9d, edx
inc r11d
inc r8
sub r10d, 8
cmp r11d, r13d
jl 0x10021cabb
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x38], r8
mov edx, dword [rsp + 0xa4]
movzx ebx, dx
movzx r10d, word [rsp + 0xa6]
movzx r11d, ax
movzx r9d, word [rsp + 0xa2]
mov ebp, edx
xor ebp, eax
mov edx, r11d
xor ebp, esi
xor ebp, dword [rsp + 0x28]
mov ecx, ebp
mov r8d, eax
sub ecx, r10d
sub ecx, eax
xor esi, ecx
mov ecx, esi
xor edx, esi
shr ecx, 1
imul edx, ebx
add edx, ecx
xor ebp, edx
mov edx, ebp
mov ecx, ebp
shr ecx, 2
sub edx, r10d
imul edx, r9d
sub edx, ecx
xor esi, edx
mov edx, esi
mov ecx, r9d
xor ecx, esi
ror edx, 0xe
imul ecx, r11d
sub ecx, edx
xor ebp, ecx
mov ecx, r10d
sub r8d, ebp
mov edx, ebp
rol r8d, 8
rol edx, 0xa
imul ecx, r8d
sub ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, r9d
xor ecx, esi
ror edx, 5
imul ecx, ebx
xor edx, ecx
mov ecx, r9d
xor ebp, edx
mov edx, dword [rsp + 0xa4]
mov r8d, ebp
add edx, ebp
ror edx, 2
rol r8d, 0xc
imul ecx, edx
add r8d, ecx
xor esi, r8d
mov r8d, dword [rsp + 0xa4]
mov ecx, r8d
mov edx, eax
xor edx, esi
sub ecx, edx
xor ebp, ecx
mov ecx, ebp
ror ecx, 5
xor ecx, r10d
imul ecx, r11d
xor esi, ecx
xor r10d, esi
mov ecx, esi
shr ecx, 0xf
imul r10d, ebx
xor r10d, ecx
xor ebp, r10d
mov ecx, ebp
lea edx, [r8 + rbp]
ror edx, 0xe
rol ecx, 0xa
imul r9d, edx
mov edx, dword [rsp + 0x50]
sub r9d, ecx
xor esi, r9d
xor r9d, r9d
xor ebx, esi
mov ecx, esi
ror ecx, 3
imul ebx, r11d
add ecx, ebx
mov ebx, dword [rsp + 0x48]
xor ecx, edx
xor esi, ebx
xor ebp, ecx
test r13d, r13d
mov ecx, ebp
mov edx, esi
jle 0x10021cc45
mov r8, qword [rsp + 0x20]
cmp r9d, r14d
jge 0x10021cc2c
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x10021cc38
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x10021cc19
mov qword [rsp + 0x20], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10021cf52
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr esi, cl
shl esi, cl
mov r11, qword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
mov r13, r15
shr r13, 3
test r13, r13
je 0x10021ce97
movzx edx, word [rsp + 0xa6]
mov r14d, dword [rsp + 0xa4]
mov r12d, dword [rsp + 0x50]
movzx ecx, r14w
mov r15d, r14d
xor r15d, eax
mov dword [rsp + 0x48], ecx
movzx ecx, ax
mov dword [rsp + 0x28], ecx
movzx r10d, byte [r8]
shl r10d, 8
movzx r9d, byte [r8 + 4]
movzx ecx, byte [r8 + 1]
shl r9d, 8
add r8, 8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 6]
mov qword [rsp + 0x38], r8
or r10d, ecx
shl r10d, 8
movzx ecx, byte [r8 - 5]
or r10d, ecx
movzx ecx, byte [r8 - 3]
or r9d, ecx
movzx ecx, byte [r8 - 2]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r8 - 1]
movzx r8d, word [rsp + 0xa2]
or r9d, ecx
mov ecx, r15d
xor ecx, r10d
xor esi, r9d
xor ecx, esi
xor ebp, ecx
mov ecx, ebp
sub ecx, edx
sub ecx, eax
xor esi, ecx
mov ecx, esi
mov edx, dword [rsp + 0x28]
xor edx, esi
shr ecx, 1
imul edx, dword [rsp + 0x48]
add edx, ecx
movzx ecx, word [rsp + 0xa6]
xor ebp, edx
mov edx, ebp
sub edx, ecx
mov ecx, ebp
shr ecx, 2
imul edx, r8d
sub edx, ecx
mov ecx, r8d
xor esi, edx
xor ecx, esi
mov edx, esi
mov r8d, eax
ror edx, 0xe
imul ecx, dword [rsp + 0x28]
sub ecx, edx
xor ebp, ecx
movzx ecx, word [rsp + 0xa6]
sub r8d, ebp
rol r8d, 8
mov edx, ebp
rol edx, 0xa
imul ecx, r8d
sub ecx, edx
xor esi, ecx
mov edx, esi
movzx ecx, word [rsp + 0xa2]
xor ecx, esi
ror edx, 5
imul ecx, dword [rsp + 0x48]
xor edx, ecx
xor ebp, edx
lea edx, [r14 + rbp]
mov r8d, ebp
movzx ecx, word [rsp + 0xa2]
ror edx, 2
rol r8d, 0xc
imul ecx, edx
mov edx, eax
add r8d, ecx
mov ecx, r14d
xor esi, r8d
xor edx, esi
sub ecx, edx
movzx edx, word [rsp + 0xa6]
xor ebp, ecx
mov ecx, ebp
ror ecx, 5
xor ecx, edx
imul ecx, dword [rsp + 0x28]
xor esi, ecx
xor edx, esi
mov ecx, esi
shr ecx, 0xf
imul edx, dword [rsp + 0x48]
xor edx, ecx
movzx ecx, word [rsp + 0xa2]
xor ebp, edx
lea r8d, [r14 + rbp]
ror r8d, 0xe
mov edx, ebp
rol edx, 0xa
imul ecx, r8d
mov r8, qword [rsp + 0x38]
sub ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, dword [rsp + 0x48]
xor ecx, esi
xor esi, ebx
mov byte [r11 + 7], sil
mov ebx, r9d
ror edx, 3
imul ecx, dword [rsp + 0x28]
add edx, ecx
xor edx, r12d
xor ebp, edx
xor dil, bpl
movzx edx, word [rsp + 0xa6]
mov r12d, r10d
mov byte [r11 + 3], bpl
ror ebp, 8
xor dil, sil
mov byte [r11 + 2], bpl
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
ror ebp, 8
xor dil, sil
mov byte [r11 + 5], sil
mov byte [r11], bpl
ror esi, 8
mov cl, sil
mov byte [r11 + 4], sil
add r11, 8
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r13, 1
jne 0x10021cca3
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x88]
cmp dil, byte [r15 + r12 + 8]
je 0x10021cf91
call fcn.1000de678
lea r10, [0x100046aec]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov r8, rsi
mov ebx, 0xffff
mov qword [rbp + 0x10], r10
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
mov r11, rax
mov rax, 0xfffffffffffff000
and r11, rax
and r9, rax
mov rcx, qword [0x100346e50]
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 0x10021ceeb
movabs rax, 0x8000800080008001
mov qword [0x100346e50], rcx
mul rdi
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], r11
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], rbx
jmp 0x10021cf87
xor esi, esi
test ecx, ecx
jns 0x10021cc5f
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x10021cc5f
mov dword [rsp + 0x50], esi
mov ebx, esi
not ebx
xor esi, esi
xor ebp, ebp
jmp 0x10021cc69
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x10021cf7b
jmp 0x10021d0b1
mov rax, qword [0x100037580]
mov rbp, qword [rsp + 0x58]
lea r14, [0x100000000]
mov rbx, r12
sub rbx, rbp
mov rsi, r14
sub rsi, rax
jne 0x10021cfbb
test rbx, rbx
je 0x10021d08e
mov rcx, qword [0x100021bc8]
mov r11, rbp
xor edi, edi
lea r8d, [rcx - 1]
sub r11, r12
sub r12d, r14d
lea r13d, [r15 + r12]
test r8d, r8d
lea r15, [0x100021bc8]
js 0x10021d00e
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 0x10021d004
lea r8d, [rax - 1]
jmp 0x10021d009
jbe 0x10021d013
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10021cfe1
movsxd r10, edi
jmp 0x10021d087
movsxd r10, eax
jmp 0x10021d087
mov edx, dword [r15 + r10*4 + 4]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x10021d08e
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 0x10021d063
sub edi, 1
je 0x10021d05e
cmp edi, 1
jne 0x10021d069
mov r9, rsi
jmp 0x10021d069
mov r9, rbx
jmp 0x10021d069
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x10021d079
cmp edx, 1
jne 0x10021d084
add qword [r8 + r11], r9
jmp 0x10021d07d
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10021d018
mov eax, dword [0x1000d5e38]
mov eax, 0xa3a3a55d
mov r10, qword [rsp + 0x98]
add r10, rbp
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov qword [rbp + 0x10], r10
add qword [rsi], 0xd
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret