Function at 0x140042dd0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004324c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r11, r8
mov rsi, r9
shr r11, 4
mov rbx, rdx
cmp byte [rcx], 0
mov r10, rcx
je 0x140042e1a
mov r8, r11
call fcn.140043250
jmp 0x14004322f
lea r8, [rcx + 8]
test r11, r11
je 0x140043215
lea rax, [rbp - 0x10]
neg r9
mov r14, r10
lea rdi, [rbp - 0x10]
sub r14, rax
lea r12, [0x140000000]
inc rsi
mov qword [rbp - 0x30], r14
sub rdi, rdx
lea rax, [rbp - 0x20]
mov r15, r10
sub r15, rax
mov qword [rbp - 0x28], r15
cmp byte [r10 + 1], 0
je 0x140042e7e
mov rcx, rbx
sub r8, rbx
mov edx, 4
mov eax, dword [r8 + rcx]
xor eax, dword [rcx]
mov dword [rcx + rdi], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140042e69
jmp 0x140042e85
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
xor edx, edx
lea rax, [rbp - 0x10]
add rax, rdx
mov ecx, dword [r14 + rax + 0x18]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x20], ecx
add rdx, 4
cmp rdx, 0x10
jl 0x140042e87
movzx ecx, byte [rbp - 0x20]
lea r8, [rsi - 1]
movzx eax, byte [rbp - 0x1b]
mov dword [rbp + 0x40], 1
mov edx, dword [r12 + rcx*4 + 0x9a070]
xor edx, dword [r12 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r12 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r12 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r12 + rcx*4 + 0x9ac70]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r12 + rax*4 + 0x9a070]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r12 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r12 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x19]
mov dword [rsi + 3], edx
mov edx, dword [r12 + rcx*4 + 0x9a870]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r12 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r12 + rax*4 + 0x9a070]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r12 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x1a]
mov dword [rsi + 7], edx
mov edx, dword [r12 + rcx*4 + 0x9a470]
xor edx, dword [r12 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r12 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r12 + rax*4 + 0x9a070]
mov dword [rsi + 0xb], edx
mov eax, dword [r10 + 4]
dec eax
cmp eax, 1
jle 0x1400430af
mov r14d, dword [rbp + 0x40]
lea r13, [r15 + 0x28]
lea r12, [rbp - 0x20]
add r12, r9
lea r15, [0x140000000]
add r13, r12
mov rcx, r8
mov edx, 4
mov eax, dword [rcx + r13]
xor eax, dword [rcx]
mov dword [r12 + rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140042faa
movzx ecx, byte [rbp - 0x20]
inc r14d
movzx eax, byte [rbp - 0x1b]
add r13, 0x10
mov edx, dword [r15 + rcx*4 + 0x9a070]
xor edx, dword [r15 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r15 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r15 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r15 + rcx*4 + 0x9ac70]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r15 + rax*4 + 0x9a070]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r15 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r15 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x19]
mov dword [rsi + 3], edx
mov edx, dword [r15 + rcx*4 + 0x9a870]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r15 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r15 + rax*4 + 0x9a070]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r15 + rax*4 + 0x9a470]
movzx eax, byte [rbp - 0x1a]
mov dword [rsi + 7], edx
mov edx, dword [r15 + rcx*4 + 0x9a470]
xor edx, dword [r15 + rax*4 + 0x9a870]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r15 + rax*4 + 0x9ac70]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r15 + rax*4 + 0x9a070]
mov dword [rsi + 0xb], edx
mov eax, dword [r10 + 4]
dec eax
cmp r14d, eax
jl 0x140042fa2
mov r14, qword [rbp - 0x30]
lea r12, [0x140000000]
mov r15, qword [rbp - 0x28]
mov eax, dword [r10 + 4]
xor edx, edx
dec eax
movsxd rcx, eax
shl rcx, 4
add rcx, 0x18
add rcx, r10
mov eax, dword [r8 + rdx*4]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [rbp + rdx*4 - 0x20], eax
inc rdx
cmp rdx, 4
jl 0x1400430c5
movzx eax, byte [rbp - 0x20]
mov rdx, r8
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [r8], al
movzx eax, byte [rbp - 0x1b]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi], al
movzx eax, byte [rbp - 0x16]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 1], al
movzx eax, byte [rbp - 0x11]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 2], al
movzx eax, byte [rbp - 0x1c]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 3], al
movzx eax, byte [rbp - 0x17]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 4], al
movzx eax, byte [rbp - 0x12]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 5], al
movzx eax, byte [rbp - 0x1d]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 6], al
movzx eax, byte [rbp - 0x18]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 7], al
movzx eax, byte [rbp - 0x13]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 8], al
movzx eax, byte [rbp - 0x1e]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 9], al
movzx eax, byte [rbp - 0x19]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 0xa], al
movzx eax, byte [rbp - 0x14]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 0xb], al
movzx eax, byte [rbp - 0x1f]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 0xc], al
movzx eax, byte [rbp - 0x1a]
mov al, byte [r12 + rax*4 + 0x9a071]
mov byte [rsi + 0xd], al
movzx eax, byte [rbp - 0x15]
mov al, byte [r12 + rax*4 + 0x9a071]
mov r12d, 4
mov byte [rsi + 0xe], al
movsxd r13, dword [r10 + 4]
shl r13, 4
add r13, r10
lea rax, [r9 + rdx]
mov ecx, dword [rax + r13 + 0x18]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r12, 1
jne 0x1400431df
add rbx, 0x10
lea r12, [0x140000000]
add rsi, 0x10
sub r9, 0x10
sub rdi, 0x10
sub r11, 1
jne 0x140042e57
sub r10, r8
mov ecx, 4
mov eax, dword [r8]
mov dword [r10 + r8 + 8], eax
lea r8, [r8 + 4]
sub rcx, 1
jne 0x14004321d
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret