Function at 0x1400352a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rbp, qword [rsp + 0xa0]
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
mov r10d, dword [rbp]
mov r11d, dword [rbp + 4]
je 0x140035378
cmp r14d, 8
jl 0x140035343
lea r15, [rsp + 0x28]
nop word cs:[rax + rax]
mov ebx, r14d
xor r10d, dword [r12]
xor r11d, dword [r12 + 4]
lea r14d, [rbx - 8]
add r12, 8
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x2c], r11d
mov rcx, r15
mov rdx, rdi
call fcn.140035640
mov r10d, dword [rsp + 0x28]
mov dword [rsi], r10d
mov r11d, dword [rsp + 0x2c]
mov dword [rsi + 4], r11d
add rsi, 8
cmp ebx, 0xf
ja 0x140035300
test r14d, r14d
je 0x14003547f
xor eax, eax
lea ecx, [r14 - 1]
cmp ecx, 6
ja case.default.0x14003536f
mov edx, r14d
add r12, rdx
lea rdx, [0x1402b1e00]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
xor ecx, ecx
jmp 0x14003550a
cmp r14d, 8
jl 0x140035410
mov qword [rsp + 0x20], rdi
nop word [rax + rax]
mov ebx, r10d
mov edi, r11d
mov r13d, r14d
lea r14d, [r13 - 8]
mov ebp, dword [r12]
mov dword [rsp + 0x28], ebp
mov r15d, dword [r12 + 4]
add r12, 8
mov dword [rsp + 0x2c], r15d
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
call fcn.140035770
mov r11d, r15d
mov r10d, ebp
xor ebx, dword [rsp + 0x28]
xor edi, dword [rsp + 0x2c]
mov byte [rsi], bl
mov byte [rsi + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [rsi + 2], al
shr ebx, 0x18
mov byte [rsi + 3], bl
mov ecx, edi
mov byte [rsi + 4], cl
mov byte [rsi + 5], ch
mov eax, edi
shr eax, 0x10
mov byte [rsi + 6], al
shr ecx, 0x18
mov byte [rsi + 7], cl
add rsi, 8
cmp r13d, 0xf
ja 0x140035390
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x20]
test r14d, r14d
je 0x1400354a4
mov r15d, r11d
mov ebx, r10d
mov eax, dword [r12]
mov r13d, eax
mov dword [rsp + 0x28], eax
mov eax, dword [r12 + 4]
mov r12d, eax
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140035770
lea eax, [r14 - 1]
cmp eax, 6
ja case.default.0x140035472
mov edx, ebx
xor edx, dword [rsp + 0x28]
mov r8d, r15d
xor r8d, dword [rsp + 0x2c]
mov ecx, r14d
add rsi, rcx
lea rcx, [0x1402b1e1c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355ea
mov eax, r10d
shr eax, 8
mov ecx, r10d
shr ecx, 0x10
mov edx, r10d
shr edx, 0x18
mov r8d, r11d
shr r8d, 8
mov r9d, r11d
shr r9d, 0x10
jmp 0x14003555e
mov ecx, r10d
mov ebx, r11d
jmp 0x1400355ed
xor ecx, ecx
jmp 0x1400354ee
xor ecx, ecx
jmp 0x140035512
xor ecx, ecx
jmp 0x1400354fc
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
movzx ecx, byte [r12 - 1]
dec r12
shl ecx, 8
or eax, ecx
movzx ecx, byte [r12 - 1]
dec r12
or eax, ecx
mov ecx, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x18
movzx edx, byte [r12 - 1]
dec r12
shl edx, 0x10
or eax, edx
movzx edx, byte [r12 - 1]
dec r12
shl edx, 8
or eax, edx
movzx edx, byte [r12 - 1]
or eax, edx
xor eax, r10d
xor ecx, r11d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140035640
mov r10d, dword [rsp + 0x28]
mov eax, r10d
shr eax, 8
mov ecx, r10d
shr ecx, 0x10
mov dword [rsi], r10d
mov edx, r10d
shr edx, 0x18
mov r11d, dword [rsp + 0x2c]
mov r8d, r11d
shr r8d, 8
mov r9d, r11d
shr r9d, 0x10
mov dword [rsi + 4], r11d
mov ebx, r11d
shr ebx, 0x18
mov byte [rbp], r10b
mov byte [rbp + 1], al
mov byte [rbp + 2], cl
mov byte [rbp + 3], dl
mov byte [rbp + 4], r11b
mov byte [rbp + 5], r8b
mov byte [rbp + 6], r9b
jmp 0x140035612
mov eax, r8d
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355c8
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355d9
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355ce
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355ed
mov ebx, r12d
mov ecx, r13d
jmp 0x1400355e4
mov eax, r8d
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
mov eax, r8d
mov ebx, r12d
mov ecx, r13d
mov byte [rsi - 1], ah
dec rsi
mov byte [rsi - 1], al
dec rsi
mov eax, edx
shr eax, 0x18
mov byte [rsi - 1], al
dec rsi
mov eax, edx
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
mov byte [rsi - 1], dh
dec rsi
mov byte [rsi - 1], dl
mov byte [rbp], cl
mov byte [rbp + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [rbp + 2], al
shr ecx, 0x18
mov byte [rbp + 3], cl
mov byte [rbp + 4], bl
mov byte [rbp + 5], bh
mov eax, ebx
shr eax, 0x10
mov byte [rbp + 6], al
shr ebx, 0x18
mov byte [rbp + 7], bl
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265f90
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret