Function at 0x140271690
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 8], rcx
push rbx
push rbp
sub rsp, 0x48
mov rbp, qword [rsp + 0x80]
mov qword [rax - 0x18], rsi
mov rsi, rdx
mov qword [rax - 0x20], rdi
mov rdi, rcx
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov eax, r9d
movsxd rbx, r8d
test rdx, rdx
je 0x140271802
test al, 8
jne 0x140271802
mov r10, qword [rcx + 0x18]
lea eax, [rbx - 1]
mov qword [rsp + 0x80], r10
mov r9d, 0xd
movsxd r8, eax
test eax, eax
js 0x140271718
nop word [rax + rax]
movzx edx, byte [rsi + r8]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x140271700
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x140271754
nop
mov eax, dword [rdi + 0x1c]
inc eax
cmp ebx, eax
jne 0x14027174c
mov r8, rbx
lea rcx, [rdi + 0x30]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14027178a
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140271730
xor r14d, r14d
xor r12d, r12d
mov rdi, qword [rsp + 0x60]
add rdi, 0x34
mov dword [rdi], 0
test r14, r14
je 0x140271775
lea rax, [r14 + 0x10]
mov qword [r14], rax
or dword [rbp + 8], 1
mov rcx, rdi
test r14, r14
je 0x140271a22
jmp 0x1402718dc
mov r13d, dword [rdi + 0x18]
lea r12d, [rbx + 0x31]
sub r13d, r12d
call fcn.14030be00
test eax, eax
je 0x1402717b5
xor r14d, r14d
mov rdi, qword [rsp + 0x60]
xor r12d, r12d
add rdi, 0x34
mov dword [rdi], 7
jmp 0x140271775
lea eax, [r13 + 0x1a]
movsxd rcx, eax
call fcn.1402d7360
mov r14, rax
test rax, rax
je 0x1402717a1
movsxd rdx, r12d
lea rcx, [rax + 0x10]
add rdx, rdi
movsxd r8, r13d
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x10
mov rdx, rdi
sub ecx, r12d
movsxd r8, ecx
mov rcx, qword [rsp + 0x80]
add r8, r14
call fcn.1402670a0
lea r12d, [rax + r13]
jmp 0x14027175a
mov rcx, qword [rcx + 0x18]
lea r13, [rdi + 0x34]
mov r8d, ebx
lea r9, [rcx + 0x18]
call fcn.1402672b0
mov rcx, qword [rdi + 0x18]
mov dword [r13], eax
mov r12, qword [rcx + 0x18]
test r12, r12
je 0x14027187b
mov rbx, 0xffffffffffffffff
lea rsi, [r12 + 0x30]
mov rdi, rbx
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140271836
xor r8d, r8d
mov rdx, r12
call fcn.1402670a0
mov r12d, dword [r12 + 0x18]
lea eax, [rdi + 1]
sub r12d, edi
cdqe
add rax, rsi
sub r12d, 0x31
mov qword [rsp + 0x80], rax
test rsi, rsi
je 0x14027188a
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140271870
jmp 0x14027188c
xor eax, eax
xor esi, esi
mov qword [rsp + 0x80], rax
xor r12d, r12d
xor ebx, ebx
test rax, rax
je 0x140271a22
cmp dword [r13], 0
jne 0x140271a22
call fcn.14030be00
test eax, eax
jne 0x140271a1a
mov ecx, 0x10
call fcn.1402d7360
mov r14, rax
test rax, rax
je 0x140271a1a
mov qword [rax + 8], 0
mov rdi, r13
mov rax, qword [rsp + 0x80]
mov rcx, r13
mov qword [r14], rax
mov dword [rbp + 0x60], 0
test ebx, ebx
je 0x14027191b
cmp ebx, dword [rbp + 0x64]
jbe 0x140271905
mov r8d, ebx
lea rdx, [rbp + 0x58]
call fcn.1402c3c70
test eax, eax
jne 0x14027191b
mov rdi, qword [rsp + 0x60]
add rdi, 0x34
movsxd rcx, dword [rbp + 0x60]
mov rdx, rsi
add rcx, qword [rbp + 0x58]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [rbp + 0x60], ebx
mov dword [r14 + 0xc], r12d
lea rdx, [rbp + 0x68]
mov dword [r14 + 8], r12d
mov qword [rbp + 0x10], r14
mov rcx, qword [r14]
call fcn.1402c6b60
test byte [rsp + 0x78], 2
mov rbx, qword [rsp + 0x60]
movzx edx, al
mov qword [rbp + 0x20], rdx
mov r9d, dword [r14 + 8]
mov dword [rbp + 0x3c], r9d
je 0x140271962
or dword [rbp + 8], 2
mov rdx, rbp
mov rcx, rbx
call fcn.1402729b0
jmp 0x140271a27
cmp dword [rdi], 0
jne 0x140271a27
mov rax, qword [rbx]
mov edi, edx
mov r8, qword [rbp + 0x10]
cmp dword [rax + 0x5c], 1
jne 0x1402719d0
cmp r9d, dword [r8 + 0xc]
cmovge r9d, dword [r8 + 0xc]
mov byte [rbp + 0x74], 0
mov dword [rbp + 0x70], 1
cmp edx, r9d
jge 0x140271a11
mov rax, qword [r8]
cmp byte [rdx + rax], 0
jne 0x140271a11
lea eax, [rdx + 1]
mov byte [rbp + 0x74], 1
mov edx, eax
cmp eax, r9d
jge 0x1402719c0
mov ecx, eax
mov rax, qword [r8]
cmp byte [rcx + rax], 0
jne 0x1402719c0
inc edx
movsxd rax, edx
mov qword [rbp + 0x20], rax
jmp 0x140271a27
movsxd rax, edx
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x70], 0
jmp 0x140271a27
mov rcx, rdx
inc edx
add rcx, qword [r8]
movzx r8d, byte [rcx]
mov dword [rsp + 0x80], r8d
test r8b, r8b
jns 0x140271a01
lea rdx, [rsp + 0x80]
call fcn.1402c6d50
mov r8d, dword [rsp + 0x80]
lea edx, [rdi + rax]
movzx eax, r8b
and al, 1
sar r8d, 1
mov dword [rbp + 0x70], r8d
mov byte [rbp + 0x74], al
movsxd rax, edx
mov qword [rbp + 0x20], rax
jmp 0x140271a27
mov dword [r13], 7
mov rbx, qword [rsp + 0x60]
test byte [rbp + 8], 2
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
je 0x140271a58
lea rax, [0x1402725a0]
mov qword [rbp + 0x28], rax
add rsp, 0x48
pop rbp
pop rbx
ret
mov rax, qword [rbx]
lea rcx, [0x140271e10]
lea rdx, [0x140272370]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbp + 0x28], rcx
add rsp, 0x48
pop rbp
pop rbx
ret