Function at 0x1400420c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push r15
sub rsp, 0x50
mov rbp, rcx
xor r15d, r15d
mov rcx, qword [rcx]
mov rsi, rdx
mov dword [rsp + 0x24], r15d
cmp dword [rbp + 0x14], r15d
jle 0x140042693
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
movsxd rax, dword [rbp + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x28], rcx
test r13d, r13d
jle 0x140042668
mov r8d, dword [rbp + 0xc]
add r14, 4
mov rdx, qword [rsi + 0x48]
add r8d, r15d
movsxd rax, r8d
xor r9d, r9d
mov r10d, dword [r14]
mov dword [rsi + 0x68], r8d
movsxd rcx, dword [rdx + 0x14]
imul rcx, rax
add rcx, qword [rdx]
sub r13d, 1
mov qword [rsi + 0x70], rcx
js 0x14004252a
nop word [rax + rax]
mov r15d, dword [r14 + 4]
lea r14, [r14 + 8]
mov r12d, dword [r14]
mov eax, r12d
cdq
movzx ebx, dl
add ebx, eax
mov eax, r10d
cdq
sar ebx, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ebp, eax
cmp ebx, eax
jne 0x14004219b
mov eax, r12d
sub eax, r10d
imul eax, r15d
add r9d, eax
jmp 0x140042513
movzx eax, r10b
mov ecx, 0x100
sub ecx, eax
imul ecx, r15d
lea eax, [r9 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov edi, eax
test eax, eax
jle 0x1400422e7
mov r9d, 1
mov r8d, ebp
mov rcx, rsi
cmp eax, 0xff
jl 0x140042204
lea rdx, [rsp + 0x80]
call fcn.1400387c0
mov rax, qword [rsi + 0x48]
mov ecx, ebp
imul ecx, dword [rax + 0x18]
movzx eax, byte [rsp + 0x80]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul r9d, dword [rsi + 0x58]
jmp 0x140042238
lea rdx, [rsp + 0x88]
call fcn.1400387c0
mov rax, qword [rsi + 0x48]
mov ecx, ebp
imul edi, dword [rsi + 0x58]
imul ecx, dword [rax + 0x18]
movzx eax, byte [rsp + 0x88]
mov r9d, eax
shr edi, 8
shl r9d, 0x10
or r9d, eax
imul r9d, edi
movsxd r10, ecx
mov edx, 0x100
add r10, qword [rsi + 0x70]
mov ecx, 0x100
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
test r15d, r15d
jle 0x14004250b
inc ebp
sub ebx, ebp
test ebx, ebx
jle 0x14004250b
cmp ebx, dword [rsi + 0x80]
jle 0x140042323
movsxd rdi, ebx
mov qword [rsi + 0x80], rdi
mov rcx, qword [rsi + 0x78]
call fcn.1400e1bf4
mov rcx, rdi
call fcn.1400e2094
mov qword [rsi + 0x78], rax
mov rdi, qword [rsi + 0x78]
mov r9d, ebx
mov rdx, rdi
mov r8d, ebp
mov rcx, rsi
call fcn.1400387c0
mov rax, qword [rsi + 0x48]
mov r11d, r15d
imul r11d, dword [rsi + 0x58]
movsxd rcx, dword [rax + 0x18]
mov eax, ecx
imul eax, ebp
sar r11d, 8
movsxd r10, eax
add r10, qword [rsi + 0x70]
cmp r11d, 0xfe
jge 0x14004243f
mov rbp, rcx
nop dword [rax + rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
mov r9d, eax
mov ecx, 0x100
shl r9d, 0x10
mov edx, 0x100
or r9d, eax
dec ebx
imul r9d, r11d
shr r9d, 8
and r9d, 0xff00ff
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
add r10, rbp
test ebx, ebx
jg 0x140042370
jmp 0x14004250b
mov r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
mov r9d, eax
mov ecx, 0x100
shl r9d, 0x10
mov edx, 0x100
or r9d, eax
dec ebx
mov eax, r9d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and eax, 0xff00ff
and r8d, 0xff00ff
imul eax, ecx
imul r8d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
and r8d, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
and edx, 0xff00ff
mov ecx, 0x100
sub ecx, eax
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
add r10, r11
test ebx, ebx
jg 0x140042450
movzx r9d, r12b
imul r9d, r15d
sub r13d, 1
mov r10d, r12d
jns 0x140042160
mov r15d, dword [rsp + 0x24]
mov rbp, qword [rsp + 0x70]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
test eax, eax
jle 0x140042663
mov eax, r10d
mov r9d, 1
cdq
mov rcx, rsi
movzx edi, dl
add edi, eax
sar edi, 8
mov r8d, edi
cmp ebx, 0xff
jl 0x140042588
lea rdx, [rsp + 0x20]
call fcn.1400387c0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsi + 0x48]
mov r9d, eax
shl r9d, 0x10
or r9d, eax
imul edi, dword [rcx + 0x18]
imul r9d, dword [rsi + 0x58]
jmp 0x1400425b4
lea rdx, [rsp + 0x21]
call fcn.1400387c0
mov rax, qword [rsi + 0x48]
imul ebx, dword [rsi + 0x58]
imul edi, dword [rax + 0x18]
movzx eax, byte [rsp + 0x21]
mov r9d, eax
shr ebx, 8
shl r9d, 0x10
or r9d, eax
imul r9d, ebx
shr r9d, 8
mov ecx, 0x100
and r9d, 0xff00ff
movsxd r10, edi
add r10, qword [rsi + 0x70]
mov eax, r9d
shr eax, 0x10
mov edx, 0x100
sub ecx, eax
mov eax, dword [r10]
mov r8d, eax
shr eax, 8
and r8d, 0xff00ff
and eax, 0xff00ff
imul r8d, ecx
imul eax, ecx
mov ecx, 0x100
shr r8d, 8
shr eax, 8
and r8d, 0xff00ff
and eax, 0xff00ff
add r8d, r9d
add r9d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r9d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r8d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r9d
or ecx, r8d
shr eax, 8
xor edx, ecx
shl r9d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r9d
xor edx, ecx
mov dword [r10], edx
mov rcx, qword [rsp + 0x28]
inc r15d
mov dword [rsp + 0x24], r15d
cmp r15d, dword [rbp + 0x14]
jl 0x140042101
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rsi
pop rbp
ret