Function at 0x29e85ba4030
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
cmp dword [rbp + 0x68], 0
mov r11, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
je 0x29e85ba42d3
mov r12, qword [rbp + 0x60]
movzx eax, byte [r12 + 1]
movzx r8d, byte [r12 + 4]
movzx ecx, byte [r12 + 7]
movzx r10d, byte [r12]
shl eax, 8
lea rdi, [r12 + 1]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov qword [rbp + 0x60], rdi
or r10d, eax
movzx eax, byte [rdi + 2]
shl eax, 0x18
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
or r8d, eax
movzx eax, byte [rdi + 5]
or ecx, eax
shl ecx, 0x10
or r8d, ecx
cmp rsi, 8
jb 0x29e85ba4198
mov rdi, qword [rbp + 0x58]
mov r15, rsi
shr r15, 3
imul rax, r15, 0xfffffffffffffff8
add rsi, rax
nop
movzx edx, byte [r14]
movzx eax, byte [r14 + 1]
movzx ecx, byte [r14 + 4]
shl eax, 8
add r14, 8
or edx, eax
movzx eax, byte [r14 - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [r14 - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [r14 - 3]
shl eax, 8
xor edx, r10d
or ecx, eax
movzx eax, byte [r14 - 2]
mov dword [rbp - 0x10], edx
shl eax, 0x10
mov rdx, rdi
or ecx, eax
movzx eax, byte [r14 - 1]
shl eax, 0x18
or ecx, eax
xor ecx, r8d
mov r8d, 1
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.29e85ba1a30
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
movzx eax, r10b
add rbx, 8
mov byte [rbx - 8], al
mov eax, r10d
shr eax, 8
mov byte [rbx - 7], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx - 6], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx - 5], al
movzx eax, r8b
mov byte [rbx - 4], al
mov eax, r8d
shr eax, 8
mov byte [rbx - 3], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx - 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx - 1], al
dec r15
jne 0x29e85ba40d0
mov rdi, qword [rbp + 0x60]
mov r11, qword [rbp + 0x58]
test rsi, rsi
je 0x29e85ba4289
xor ecx, ecx
add r14, rsi
dec rsi
mov edx, ecx
cmp rsi, 7
ja case.default.0x29e85ba41c3
lea r9, [0x29e85ad0000]
mov eax, dword [r9 + rsi*4 + 0xd4540]
add rax, r9
jmp rax
movzx ecx, byte [r14 - 1]
dec r14
shl ecx, 0x18
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
or ecx, eax
movzx edx, byte [r14 - 1]
dec r14
shl edx, 0x18
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or edx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or edx, eax
movzx eax, byte [r14 - 1]
or edx, eax
xor ecx, r8d
xor edx, r10d
mov r8d, 1
mov dword [rbp - 0xc], ecx
mov dword [rbp - 0x10], edx
lea rcx, [rbp - 0x10]
mov rdx, r11
call fcn.29e85ba1a30
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
movzx eax, r10b
mov byte [rbx], al
mov eax, r10d
shr eax, 8
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx + 3], al
movzx eax, r8b
mov byte [rbx + 4], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 7], al
mov byte [r12], r10b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, r8d
shr eax, 8
mov byte [rdi + 4], al
mov eax, r8d
shr eax, 0x10
shr r8d, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], r8b
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x70], r13
movzx r12d, byte [rax]
movzx r13d, byte [rax + 4]
movzx ecx, byte [rax + 7]
lea r15, [rax + 1]
shl ecx, 8
movzx eax, byte [r15]
mov qword [rbp - 8], r15
shl eax, 8
or r12d, eax
movzx eax, byte [r15 + 1]
shl eax, 0x10
or r12d, eax
movzx eax, byte [r15 + 2]
shl eax, 0x18
or r12d, eax
movzx eax, byte [r15 + 4]
shl eax, 8
or r13d, eax
movzx eax, byte [r15 + 5]
or ecx, eax
shl ecx, 0x10
or r13d, ecx
cmp r8, 8
jb 0x29e85ba440a
mov r15, r8
shr r15, 3
imul rax, r15, 0xfffffffffffffff8
add rsi, rax
mov qword [rbp + 0x50], rsi
nop dword [rax + rax]
movzx eax, byte [r14 + 1]
movzx esi, byte [r14]
movzx edi, byte [r14 + 4]
shl eax, 8
lea rcx, [rbp - 0x10]
xor r8d, r8d
or esi, eax
movzx eax, byte [r14 + 2]
mov rdx, r11
shl eax, 0x10
add r14, 8
or esi, eax
movzx eax, byte [r14 - 5]
shl eax, 0x18
or esi, eax
movzx eax, byte [r14 - 3]
shl eax, 8
mov dword [rbp - 0x10], esi
or edi, eax
movzx eax, byte [r14 - 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [r14 - 1]
shl eax, 0x18
or edi, eax
mov dword [rbp - 0xc], edi
call fcn.29e85ba1a30
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
mov r11, qword [rbp + 0x58]
xor ecx, r12d
mov byte [rbx], cl
xor edx, r13d
mov eax, ecx
shr eax, 8
add rbx, 8
mov r12d, esi
mov byte [rbx - 7], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov r13d, edi
mov byte [rbx - 6], al
mov byte [rbx - 5], cl
mov byte [rbx - 4], dl
mov eax, edx
shr eax, 8
mov byte [rbx - 3], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov byte [rbx - 2], al
mov byte [rbx - 1], dl
dec r15
jne 0x29e85ba4350
mov r15, qword [rbp - 8]
mov rsi, qword [rbp + 0x50]
test rsi, rsi
je 0x29e85ba44e7
movzx eax, byte [r14 + 1]
movzx edx, byte [r14 + 4]
movzx edi, byte [r14]
movzx ecx, byte [r14 + 7]
shl eax, 8
xor r8d, r8d
or edi, eax
movzx eax, byte [r14 + 2]
shl ecx, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [r14 + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [r14 + 5]
shl eax, 8
mov dword [rbp - 0x10], edi
or edx, eax
movzx eax, byte [r14 + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x68], edx
mov dword [rbp - 0xc], edx
mov rdx, r11
call fcn.29e85ba1a30
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
xor ecx, r12d
xor edx, r13d
add rbx, rsi
dec rsi
cmp rsi, 7
ja case.default.0x29e85ba449a
lea r9, [0x29e85ad0000]
mov eax, dword [r9 + rsi*4 + 0xd4560]
add rax, r9
jmp rax
dec rbx
mov eax, edx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
dec rbx
mov byte [rbx], dl
dec rbx
mov eax, ecx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, ecx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, ecx
shr eax, 8
mov byte [rbx], al
mov byte [rbx - 1], cl
mov r13d, dword [rbp + 0x68]
mov r12d, edi
mov rax, qword [rbp + 0x60]
mov byte [rax], r12b
mov eax, r12d
shr eax, 8
mov byte [r15], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [r15 + 1], al
mov byte [r15 + 2], r12b
mov byte [r15 + 3], r13b
mov eax, r13d
shr eax, 8
mov byte [r15 + 4], al
mov eax, r13d
shr eax, 0x10
shr r13d, 0x18
mov byte [r15 + 5], al
mov byte [r15 + 6], r13b
mov r13, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret