Function at 0x14003d870
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor ebx, ebx
mov rcx, qword [rcx]
mov rdi, rdx
mov dword [rsp + 0x70], ebx
cmp dword [rsi + 0x14], ebx
jle 0x14003ddc5
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movsxd rax, dword [rsi + 0x1c]
mov r14, rcx
mov r13d, dword [r14]
lea rcx, [rcx + rax*4]
dec r13d
mov qword [rsp + 0x78], rcx
test r13d, r13d
jle 0x14003dd9d
mov edx, dword [rsi + 0xc]
add r14, 4
mov r10, qword [rdi]
add edx, ebx
mov r11, qword [rdi + 8]
xor r8d, r8d
movsxd rax, edx
mov r9d, dword [r14]
movsxd rcx, dword [r10 + 0x14]
sub edx, dword [rdi + 0x18]
imul rcx, rax
add rcx, qword [r10]
mov qword [rdi + 0x20], rcx
movsxd rax, dword [r11 + 0x14]
movsxd rcx, edx
imul rcx, rax
add rcx, qword [r11]
sub r13d, 1
mov qword [rdi + 0x28], rcx
js 0x14003dc9f
nop word [rax + rax]
mov ebp, dword [r14 + 4]
lea r14, [r14 + 8]
mov r15d, dword [r14]
mov eax, r15d
cdq
movzx r11d, dl
add r11d, eax
mov eax, r9d
cdq
sar r11d, 8
movzx edx, dl
add eax, edx
sar eax, 8
mov ebx, eax
cmp r11d, eax
jne 0x14003d95e
mov eax, r15d
sub eax, r9d
imul eax, ebp
add r8d, eax
jmp 0x14003dc82
movzx eax, r9b
mov ecx, 0x100
sub ecx, eax
imul ecx, ebp
lea eax, [r8 + rcx]
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r8d, eax
test eax, eax
jle 0x14003da61
mov rax, qword [rdi]
mov ecx, dword [rax + 0x18]
mov eax, dword [rdi + 0x14]
imul ecx, ebx
movsxd r10, ecx
mov ecx, ebx
add r10, qword [rdi + 0x20]
sub ecx, eax
mov rax, qword [rdi + 8]
imul ecx, dword [rax + 0x18]
mov rax, qword [rdi + 0x28]
movsxd rcx, ecx
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r9d, edx
shl r9d, 0x10
or r9d, edx
mov edx, ecx
cmp r8d, 0xff
jl 0x14003d9cf
imul r9d, dword [rdi + 0x10]
jmp 0x14003d9dc
imul r8d, dword [rdi + 0x10]
sar r8d, 8
imul r9d, r8d
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
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r8d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r8d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
test ebp, ebp
jle 0x14003dc7a
inc ebx
sub r11d, ebx
test r11d, r11d
jle 0x14003dc7a
mov r10, qword [rdi]
mov eax, ebx
sub ebx, dword [rdi + 0x14]
mov esi, ebp
imul esi, dword [rdi + 0x10]
movsxd r8, dword [r10 + 0x18]
imul eax, r8d
sar esi, 8
cdqe
add rax, qword [rdi + 0x20]
cmp esi, 0xfe
jge 0x14003db80
mov r12, r8
nop word [rax + rax]
mov rcx, qword [rdi + 8]
mov edx, ebx
inc ebx
dec r11d
imul edx, dword [rcx + 0x18]
mov rcx, qword [rdi + 0x28]
movsxd rdx, edx
movzx r8d, byte [rdx + rcx]
mov edx, 0x100
mov r10d, r8d
shl r10d, 0x10
or r10d, r8d
mov r8d, 0x100
imul r10d, esi
shr r10d, 8
and r10d, 0xff00ff
mov ecx, r10d
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [rax]
mov r9d, ecx
shr ecx, 8
and ecx, 0xff00ff
and r9d, 0xff00ff
imul ecx, edx
imul r9d, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr r9d, 8
and r9d, 0xff00ff
add r9d, r10d
add r10d, ecx
mov ecx, r10d
shl r10d, 8
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r9d
shl r8d, 8
shr ecx, 8
or r8d, r10d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r9d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, r12
test r11d, r11d
jg 0x14003dab0
jmp 0x14003dc7a
mov r9, qword [rdi + 8]
movsxd rdx, dword [r9 + 0x18]
mov ecx, edx
imul ecx, ebx
movsxd rbx, ecx
add rbx, qword [rdi + 0x28]
cmp r8d, edx
jne 0x14003dbbe
cmp dword [r9 + 0x10], 1
jne 0x14003dbbe
cmp dword [r10 + 0x10], 1
jne 0x14003dbbe
imul edx, r11d
mov rcx, rax
movsxd r8, edx
mov rdx, rbx
call fcn.140279770
jmp 0x14003dc7a
mov rsi, r8
mov r12, rdx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov edx, 0x100
mov r9d, dword [rax]
sub edx, ecx
mov r10d, r9d
mov r8d, ecx
shr r9d, 8
and r10d, 0xff00ff
imul r10d, edx
and r9d, 0xff00ff
imul r9d, edx
add rbx, r12
shl r8d, 0x10
mov edx, 0x100
or r8d, ecx
dec r11d
shr r10d, 8
shr r9d, 8
and r10d, 0xff00ff
add r10d, r8d
and r9d, 0xff00ff
add r9d, r8d
mov r8d, 0x100
mov ecx, r9d
shl r9d, 8
shr ecx, 8
and ecx, 0xff00ff
sub r8d, ecx
mov ecx, r10d
shl r8d, 8
shr ecx, 8
or r8d, r9d
and ecx, 0xff00ff
and r8d, 0xff00ff00
sub edx, ecx
or edx, r10d
and edx, 0xff00ff
xor edx, r8d
mov dword [rax], edx
add rax, rsi
test r11d, r11d
jg 0x14003dbd0
movzx r8d, r15b
imul r8d, ebp
sub r13d, 1
mov r9d, r15d
jns 0x14003d920
mov r10, qword [rdi]
mov r11, qword [rdi + 8]
mov ebx, dword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
mov eax, r8d
cdq
movzx edx, dl
add eax, edx
sar eax, 8
mov r8d, eax
test eax, eax
jle 0x14003dd98
mov ecx, dword [r10 + 0x18]
mov eax, r9d
cdq
movzx edx, dl
add eax, edx
mov edx, dword [rdi + 0x14]
sar eax, 8
imul ecx, eax
sub eax, edx
imul eax, dword [r11 + 0x18]
movsxd r10, ecx
add r10, qword [rdi + 0x20]
movsxd rcx, eax
mov rax, qword [rdi + 0x28]
movzx edx, byte [rcx + rax]
mov ecx, 0x100
mov r9d, edx
shl r9d, 0x10
or r9d, edx
mov edx, ecx
cmp r8d, 0xff
jl 0x14003dd06
imul r9d, dword [rdi + 0x10]
jmp 0x14003dd13
imul r8d, dword [rdi + 0x10]
sar r8d, 8
imul r9d, r8d
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
shl r9d, 8
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, r8d
shl edx, 8
shr eax, 8
or edx, r9d
and eax, 0xff00ff
and edx, 0xff00ff00
sub ecx, eax
or ecx, r8d
and ecx, 0xff00ff
xor ecx, edx
mov dword [r10], ecx
mov rcx, qword [rsp + 0x78]
inc ebx
mov dword [rsp + 0x70], ebx
cmp ebx, dword [rsi + 0x14]
jl 0x14003d8b0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret