Function at 0x14003bde0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx]
mov r14, rdx
mov dword [rsp + 0x50], ebx
cmp dword [rdi + 0x14], ebx
jle 0x14003c590
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r13
mov qword [rsp], r15
nop dword [rax]
movsxd rax, dword [rdi + 0x1c]
mov r15, rcx
mov r13d, dword [r15]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x58], rcx
test r13d, r13d
jle 0x14003c569
mov rdx, qword [r14]
add r15, 4
mov r8d, dword [rdi + 0xc]
xor r11d, r11d
add r8d, ebx
mov eax, dword [rdx + 0xc]
mov r9d, dword [r15]
imul eax, r8d
sub r8d, dword [r14 + 0x18]
movsxd rcx, eax
mov eax, r8d
add rcx, qword [rdx]
cdq
mov qword [r14 + 0x20], rcx
mov rcx, qword [r14 + 8]
idiv dword [rcx + 0x18]
imul edx, dword [rcx + 0xc]
movsxd rax, edx
add rax, qword [rcx]
sub r13d, 1
mov qword [r14 + 0x28], rax
js 0x14003c343
nop dword [rax + rax]
mov ebp, dword [r15 + 4]
lea r15, [r15 + 8]
mov r12d, dword [r15]
mov ecx, r9d
mov esi, r12d
sar ecx, 8
sar esi, 8
cmp esi, ecx
jne 0x14003bebc
mov eax, r12d
sub eax, r9d
imul eax, ebp
add r11d, eax
jmp 0x14003c32d
movzx eax, r9b
mov edi, 0x100
sub edi, eax
imul edi, ebp
add edi, r11d
sar edi, 8
test edi, edi
jle 0x14003c0e5
mov rax, qword [r14]
mov r8, qword [r14 + 8]
mov eax, dword [rax + 0x10]
imul eax, ecx
cmp edi, 0xff
jl 0x14003bfe5
movsxd rdi, eax
mov eax, ecx
sub eax, dword [r14 + 0x14]
add rdi, qword [r14 + 0x20]
cdq
idiv dword [r8 + 0x14]
mov rax, qword [r14 + 0x28]
imul edx, dword [r8 + 0x10]
movsxd r8, edx
mov edx, 0x100
mov r9d, dword [r8 + rax]
mov ebx, r9d
shr ebx, 8
and r9d, 0xff00ff
imul r9d, dword [r14 + 0x10]
and ebx, 0xff00ff
imul ebx, dword [r14 + 0x10]
mov r8d, 0x100
shr r9d, 8
shr ebx, 8
and r9d, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [rdi]
mov r11d, eax
shr eax, 8
and eax, 0xff00ff
and r11d, 0xff00ff
imul eax, edx
imul r11d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r11d, 8
add ebx, eax
and r11d, 0xff00ff
add r11d, r9d
mov eax, ebx
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, ebx
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
or edx, r11d
shr eax, 8
xor r8d, edx
shl ebx, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, ebx
xor r8d, edx
mov dword [rdi], r8d
jmp 0x14003c0e5
imul edi, dword [r14 + 0x10]
movsxd rbx, eax
mov eax, ecx
sub eax, dword [r14 + 0x14]
add rbx, qword [r14 + 0x20]
cdq
idiv dword [r8 + 0x14]
mov rax, qword [r14 + 0x28]
imul edx, dword [r8 + 0x10]
sar edi, 8
movsxd r8, edx
mov edx, 0x100
mov r9d, dword [r8 + rax]
mov r11d, r9d
shr r11d, 8
and r9d, 0xff00ff
and r11d, 0xff00ff
imul r9d, edi
imul r11d, edi
mov r8d, 0x100
shr r9d, 8
shr r11d, 8
and r9d, 0xff00ff
and r11d, 0xff00ff
mov eax, r11d
shr eax, 0x10
sub edx, eax
mov eax, dword [rbx]
mov r10d, eax
shr eax, 8
and eax, 0xff00ff
and r10d, 0xff00ff
imul eax, edx
imul r10d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r10d, 8
add r11d, eax
and r10d, 0xff00ff
add r10d, r9d
mov eax, r11d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r11d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r11d
or edx, r10d
shr eax, 8
xor r8d, edx
shl r11d, 8
and eax, 0xff00ff
mov edx, 0x100
sub edx, eax
and r8d, 0xff00ff
shl edx, 8
or edx, r11d
xor r8d, edx
mov dword [rbx], r8d
test ebp, ebp
jle 0x14003c325
inc ecx
sub esi, ecx
test esi, esi
jle 0x14003c325
mov rax, qword [r14]
mov ebx, dword [r14 + 0x10]
imul ebx, ebp
movsxd rdx, dword [rax + 0x10]
mov eax, edx
imul eax, ecx
sub ecx, dword [r14 + 0x14]
sar ebx, 8
movsxd r11, eax
add r11, qword [r14 + 0x20]
cmp ebx, 0xfe
jge 0x14003c239
mov rdi, rdx
nop dword [rax]
mov r8, qword [r14 + 8]
mov eax, ecx
cdq
inc ecx
dec esi
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
mov r8d, dword [r11]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r14 + 0x28]
mov r9d, dword [rdx + rax]
mov r10d, r9d
shr r10d, 8
and r9d, 0xff00ff
and r10d, 0xff00ff
imul r9d, ebx
imul r10d, ebx
mov edx, 0x100
shr r9d, 8
shr r10d, 8
and r9d, 0xff00ff
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, r8d
and eax, 0xff00ff
shr r8d, 8
imul eax, edx
and r8d, 0xff00ff
imul r8d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r8d, 8
add r9d, eax
and r8d, 0xff00ff
add r10d, r8d
mov r8d, 0x100
mov eax, r10d
shr eax, 8
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
add r11, rdi
test esi, esi
jg 0x14003c130
jmp 0x14003c325
mov rbx, rdx
nop dword [rax]
mov r8, qword [r14 + 8]
mov eax, ecx
cdq
inc ecx
dec esi
idiv dword [r8 + 0x14]
mov eax, dword [r8 + 0x10]
imul eax, edx
movsxd rdx, eax
mov rax, qword [r14 + 0x28]
mov r8d, dword [rdx + rax]
mov r10d, r8d
and r8d, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
mov edx, 0x100
mov eax, r10d
shr eax, 0x10
sub edx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, edx
imul r9d, edx
mov edx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r9d, r8d
mov eax, r10d
shr eax, 8
mov r8d, 0x100
and eax, 0xff00ff
sub r8d, eax
mov eax, r10d
shl eax, 8
shl r8d, 8
or r8d, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
or edx, r9d
shr eax, 8
xor r8d, edx
shl r10d, 8
and eax, 0xff00ff
and r8d, 0xff00ff
mov edx, 0x100
sub edx, eax
shl edx, 8
or edx, r10d
xor r8d, edx
mov dword [r11], r8d
add r11, rbx
test esi, esi
jg 0x14003c240
movzx r11d, r12b
imul r11d, ebp
sub r13d, 1
mov r9d, r12d
jns 0x14003be90
mov ebx, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
sar r11d, 8
test r11d, r11d
jle 0x14003c564
mov rax, qword [r14]
sar r9d, 8
cmp r11d, 0xff
jl 0x14003c463
mov ecx, dword [rax + 0x10]
imul ecx, r9d
sub r9d, dword [r14 + 0x14]
mov eax, r9d
cdq
movsxd r11, ecx
mov rcx, qword [r14 + 8]
add r11, qword [r14 + 0x20]
idiv dword [rcx + 0x14]
mov rax, qword [r14 + 0x28]
imul edx, dword [rcx + 0x10]
movsxd rcx, edx
mov edx, dword [rcx + rax]
mov r10d, edx
and edx, 0xff00ff
shr r10d, 8
imul edx, dword [r14 + 0x10]
and r10d, 0xff00ff
imul r10d, dword [r14 + 0x10]
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
shr r10d, 8
and r10d, 0xff00ff
mov eax, r10d
shr eax, 0x10
sub ecx, eax
mov eax, dword [r11]
mov r9d, eax
shr eax, 8
and eax, 0xff00ff
and r9d, 0xff00ff
imul eax, ecx
imul r9d, ecx
mov ecx, 0x100
shr eax, 8
and eax, 0xff00ff
shr r9d, 8
add r10d, eax
and r9d, 0xff00ff
add r9d, edx
mov eax, r10d
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
sub edx, eax
mov eax, r10d
shl eax, 8
shl edx, 8
or edx, eax
mov eax, r9d
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, r10d
or ecx, r9d
shr eax, 8
xor edx, ecx
shl r10d, 8
and eax, 0xff00ff
mov ecx, 0x100
sub ecx, eax
and edx, 0xff00ff
shl ecx, 8
or ecx, r10d
xor edx, ecx
mov dword [r11], edx
jmp 0x14003c564
mov eax, dword [rax + 0x10]
mov rcx, qword [r14 + 8]
imul eax, r9d
sub r9d, dword [r14 + 0x14]
imul r11d, dword [r14 + 0x10]
movsxd r10, eax
mov eax, r9d
add r10, qword [r14 + 0x20]
cdq
idiv dword [rcx + 0x14]
mov rax, qword [r14 + 0x28]
imul edx, dword [rcx + 0x10]
sar r11d, 8
movsxd rcx, edx
mov edx, dword [rcx + rax]
mov r9d, edx
and edx, 0xff00ff
shr r9d, 8
imul edx, r11d
and r9d, 0xff00ff
imul r9d, r11d
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
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
add r9d, eax
and r8d, 0xff00ff
add r8d, edx
mov eax, r9d
shr eax, 8
mov edx, 0x100
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 + 0x58]
inc ebx
mov dword [rsp + 0x50], ebx
cmp ebx, dword [rdi + 0x14]
jl 0x14003be20
mov r15, qword [rsp]
mov r13, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret