Function at 0x140034ff0
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 [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
mov r10d, dword [rbp]
mov r11d, dword [rbp + 4]
je 0x140035177
cmp r14d, 8
jl 0x140035093
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.140035350
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 0x140035050
test r14d, r14d
je 0x1400352ae
xor eax, eax
lea ecx, [r14 - 1]
cmp ecx, 6
ja case.default.0x1400350c6
mov edx, r14d
add r12, rdx
lea rdx, [0x1402db240]
movsxd r9, dword [rdx + rcx*4]
add r9, rdx
xor ecx, ecx
xor r8d, r8d
xor edx, edx
jmp r9
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
mov r8d, ecx
movzx ecx, byte [r12 - 1]
dec r12
shl ecx, 8
or eax, ecx
mov edx, r8d
movzx ecx, byte [r12 - 1]
or eax, ecx
xor eax, r10d
xor edx, r11d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], edx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140035350
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
jmp 0x1400352ce
cmp r14d, 8
jl 0x140035210
mov qword [rsp + 0x20], rdi
nop word cs:[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.140035490
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 0x140035190
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x20]
test r14d, r14d
je 0x1400352ef
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.140035490
lea eax, [r14 - 1]
cmp eax, 6
ja case.default.0x14003526e
mov edx, ebx
xor edx, dword [rsp + 0x28]
xor r15d, dword [rsp + 0x2c]
mov ecx, r14d
add rsi, rcx
lea rcx, [0x1402db25c]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov ecx, r15d
jmp rax
mov eax, ecx
shr eax, 0x10
mov byte [rsi - 1], al
dec rsi
mov byte [rsi - 1], ch
dec rsi
mov byte [rsi - 1], cl
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 ebx, r12d
mov ecx, r13d
jmp 0x1400352f5
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
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 0x14003531a
mov ecx, r10d
mov ebx, r11d
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.140263300
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
jmp 0x140035126