Function at 0x140020b70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [rdx + 8]
lea r15, [0x140000000]
xor r12d, r12d
mov qword [rcx + 0x10], rax
mov rsi, rdx
mov qword [rsp + 0x40], rdi
mov rbx, rcx
lea r14d, [r12 + 6]
nop dword [rax + rax]
movsxd rax, dword [rbx]
cmp eax, 9
ja case.default.0x140020bc8
mov ecx, dword [r15 + rax*4 + 0x2119c]
mov ebp, 7
add rcx, r15
jmp rcx
mov r8, qword [rbx + 0xa8]
lea rcx, [rbx + 0xb8]
mov rax, qword [rbx + 0xb0]
mov rdi, qword [rsi + 0x10]
sub rax, r8
sub rdi, qword [rsi + 8]
mov rdx, qword [rsi]
cmp rdi, rax
cmovae rdi, rax
add rdx, qword [rsi + 8]
add rcx, r8
mov r8, rdi
call fcn.140025320
add qword [rsi + 8], rdi
add qword [rbx + 0xa8], rdi
mov rax, qword [rbx + 0xa8]
cmp rax, qword [rbx + 0xb0]
jne 0x140021178
mov qword [rbx + 0xa8], r12
mov dword [rbx], 1
cmp dword [rbx + 0xb8], 0x587a37fd
jne 0x140020e4d
cmp word [rbx + 0xbc], 0x5a
jne 0x140020e4d
movzx r9d, byte [rbx + 0xbe]
movzx edx, byte [rbx + 0xbf]
movzx eax, r9b
not al
movzx ecx, al
movzx eax, byte [rbx + 0xc2]
mov r8d, dword [r15 + rcx*4 + 0x56cf0]
xor r8d, 0xffffff
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
movzx ecx, byte [rbx + 0xc3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xc1]
xor r8d, dword [r15 + rdx*4 + 0x56cf0]
shl ecx, 8
not r8d
or ecx, eax
movzx eax, byte [rbx + 0xc0]
shl ecx, 8
or ecx, eax
cmp r8d, ecx
jne 0x140020e43
test r9b, r9b
jne 0x140020e53
movzx eax, byte [rbx + 0xbf]
mov dword [rbx + 0x24], eax
cmp eax, 1
ja 0x140020e53
mov rcx, qword [rsi + 8]
cmp rcx, qword [rsi + 0x10]
je 0x140021178
mov rax, qword [rsi]
movzx edx, byte [rcx + rax]
test dl, dl
jne 0x140020d03
mov qword [rbx + 0x10], rcx
inc qword [rsi + 8]
mov dword [rbx], r14d
jmp case.default.0x140020bc8
lea eax, [rdx*4 + 4]
mov qword [rbx + 0xa8], r12
mov dword [rbx + 0x40], eax
mov qword [rbx + 0xb0], rax
mov dword [rbx], 2
mov r8, qword [rbx + 0xa8]
lea rcx, [rbx + 0xb8]
mov rax, qword [rbx + 0xb0]
mov rdi, qword [rsi + 0x10]
sub rax, r8
sub rdi, qword [rsi + 8]
mov rdx, qword [rsi]
cmp rdi, rax
cmovae rdi, rax
add rdx, qword [rsi + 8]
add rcx, r8
mov r8, rdi
call fcn.140025320
add qword [rsi + 8], rdi
add qword [rbx + 0xa8], rdi
mov rax, qword [rbx + 0xa8]
cmp rax, qword [rbx + 0xb0]
jne 0x140021178
mov rcx, rbx
mov qword [rbx + 0xa8], r12
call fcn.140020840
test eax, eax
jne 0x14002117a
mov dword [rbx], 3
mov rdx, rsi
mov rcx, rbx
call fcn.140020150
cmp eax, 1
jne 0x14002117a
mov dword [rbx], 4
test byte [rbx + 0x48], 3
je 0x140020deb
nop word [rax + rax]
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x140021178
mov rax, qword [rsi]
movzx ecx, byte [rdx + rax]
lea rax, [rdx + 1]
mov qword [rsi + 8], rax
test cl, cl
jne 0x140020e5e
inc qword [rbx + 0x48]
test byte [rbx + 0x48], 3
jne 0x140020dc0
mov dword [rbx], 5
cmp dword [rbx + 0x24], 1
jne 0x140020e38
nop word [rax + rax]
mov r8, qword [rsi + 8]
cmp r8, qword [rsi + 0x10]
je 0x140020e5b
mov ecx, dword [rbx + 4]
mov rax, qword [rsi]
mov edx, dword [rbx + 0x20]
shr edx, cl
movzx ecx, byte [r8 + rax]
lea rax, [r8 + 1]
mov qword [rsi + 8], rax
cmp dl, cl
jne 0x140020e5e
add dword [rbx + 4], 8
cmp dword [rbx + 4], 0x20
jb 0x140020e00
mov dword [rbx + 0x20], r12d
mov dword [rbx + 4], r12d
mov dword [rbx], 1
jmp case.default.0x140020bc8
mov r14d, ebp
mov eax, ebp
jmp 0x14002117a
mov r14d, 5
mov eax, r14d
jmp 0x14002117a
mov ebp, r12d
mov eax, ebp
jmp 0x14002117a
mov rdx, rsi
mov rcx, rbx
call fcn.1400204e0
cmp eax, 1
jne 0x14002117a
mov dword [rbx], ebp
mov r8, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x10]
movzx eax, r8b
mov rdx, qword [rsi + 8]
sub al, cl
add al, dl
test al, 3
je 0x140020ed2
mov r9, qword [rsi + 0x10]
nop word [rax + rax]
cmp rdx, r9
je 0x14002112a
mov rax, qword [rsi]
movzx ecx, byte [rdx + rax]
inc rdx
mov qword [rsi + 8], rdx
test cl, cl
jne 0x140020e5e
mov rcx, qword [rbx + 0x10]
movzx eax, dl
mov r8, qword [rbx + 0x80]
sub al, cl
add al, r8b
test al, 3
jne 0x140020ea0
sub rdx, rcx
lea rax, [r8 + rdx]
mov r8d, dword [rbx + 0x20]
mov qword [rbx + 0x80], rax
not r8d
mov r9, qword [rsi]
lea r9, [rcx + r9]
je 0x140020f11
movzx eax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r15 + rcx*4 + 0x56cf0]
sub rdx, 1
jne 0x140020ef0
not r8d
mov dword [rbx + 0x20], r8d
mov rax, qword [rbx + 0x60]
cmp rax, qword [rbx + 0x90]
jne 0x140020e5e
mov rax, qword [rbx + 0x68]
cmp rax, qword [rbx + 0x98]
jne 0x140020e5e
mov rax, qword [rbx + 0x70]
cmp rax, qword [rbx + 0xa0]
jne 0x140020e5e
mov dword [rbx], 8
mov r9, qword [rsi + 8]
cmp r9, qword [rsi + 0x10]
je 0x140020e5b
mov rax, qword [rsi]
mov r8d, dword [rbx + 0x20]
mov ecx, dword [rbx + 4]
shr r8d, cl
movzx edx, byte [r9 + rax]
lea rax, [r9 + 1]
mov qword [rsi + 8], rax
cmp r8b, dl
jne 0x140020e5e
add dword [rbx + 4], 8
cmp dword [rbx + 4], 0x20
jb case.0x140020bc8.8
mov dword [rbx + 0x20], r12d
mov qword [rbx], 9
mov qword [rbx + 0xb0], 0xc
mov r8, qword [rbx + 0xa8]
lea rcx, [rbx + 0xb8]
mov rax, qword [rbx + 0xb0]
mov rdi, qword [rsi + 0x10]
sub rax, r8
sub rdi, qword [rsi + 8]
mov rdx, qword [rsi]
cmp rdi, rax
cmovae rdi, rax
add rdx, qword [rsi + 8]
add rcx, r8
mov r8, rdi
call fcn.140025320
add qword [rsi + 8], rdi
add qword [rbx + 0xa8], rdi
mov rax, qword [rbx + 0xa8]
cmp rax, qword [rbx + 0xb0]
jne 0x140021178
mov qword [rbx + 0xa8], r12
cmp word [rbx + 0xc2], 0x5a59
jne 0x140021126
movzx r10d, byte [rbx + 0xbc]
movzx r11d, byte [rbx + 0xbd]
mov eax, r10d
movzx edi, byte [rbx + 0xbe]
xor rax, 0xff
movzx r9d, byte [rbx + 0xbf]
movzx edx, byte [rbx + 0xc0]
mov r8d, dword [r15 + rax*4 + 0x56cf0]
movzx eax, byte [rbx + 0xba]
xor r8d, 0xffffff
movzx ecx, r8b
xor rcx, r11
shr r8d, 8
xor r8d, dword [r15 + rcx*4 + 0x56cf0]
movzx ecx, r8b
xor rcx, rdi
shr r8d, 8
xor r8d, dword [r15 + rcx*4 + 0x56cf0]
movzx ecx, r8b
xor rcx, r9
shr r8d, 8
xor r8d, dword [r15 + rcx*4 + 0x56cf0]
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [r15 + rdx*4 + 0x56cf0]
movzx edx, byte [rbx + 0xc1]
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
movzx ecx, byte [rbx + 0xbb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 0xb9]
xor r8d, dword [r15 + rdx*4 + 0x56cf0]
shl ecx, 8
not r8d
or ecx, eax
movzx eax, byte [rbx + 0xb8]
shl ecx, 8
or ecx, eax
cmp r8d, ecx
jne 0x140021126
mov rax, qword [rbx + 0x80]
shl r9, 8
or r9, rdi
shr rax, 2
shl r9, 8
or r9, r11
shl r9, 8
or r9, r10
cmp rax, r9
jne 0x140021126
cmp byte [rbx + 0xc0], r12b
jne 0x140021126
movzx eax, byte [rbx + 0xc1]
cmp eax, dword [rbx + 0x24]
jne 0x140021126
mov ebp, 1
mov eax, ebp
jmp 0x14002117a
sub rdx, rcx
lea rax, [r8 + rdx]
mov r8d, dword [rbx + 0x20]
mov qword [rbx + 0x80], rax
not r8d
mov r9, qword [rsi]
lea r9, [rcx + r9]
je 0x140021171
nop dword [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r15 + rcx*4 + 0x56cf0]
sub rdx, 1
jne 0x140021150
not r8d
mov dword [rbx + 0x20], r8d
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret