Function at 0x140035330
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 [0x14039de68]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0xa8], 0
mov r10d, dword [rbp]
mov r11d, dword [rbp + 4]
je 0x1400353ee
cmp r14d, 8
jl 0x1400353c3
lea r15, [rsp + 0x28]
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.140035690
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 0x140035380
test r14d, r14d
je 0x1400354de
mov eax, r14d
add r12, rax
xor eax, eax
dec r14d
lea rcx, [0x1402a5e00]
movsxd rdx, dword [rcx + r14*4]
add rdx, rcx
jmp rdx
xor ecx, ecx
jmp 0x140035565
cmp r14d, 8
jl 0x140035480
mov qword [rsp + 0x20], rdi
nop dword [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.1400357d0
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 0x140035400
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x20]
test r14d, r14d
je 0x140035503
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
mov r15d, r11d
lea rcx, [rsp + 0x28]
mov ebx, r10d
mov rdx, rdi
call fcn.1400357d0
mov edx, ebx
xor edx, dword [rsp + 0x28]
xor r15d, dword [rsp + 0x2c]
mov eax, r14d
add rsi, rax
dec r14d
lea rax, [0x1402a5e1c]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
mov ebx, r12d
mov ecx, r13d
jmp 0x140035637
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 0x1400355b9
mov ecx, r10d
mov ebx, r11d
jmp 0x14003563a
xor ecx, ecx
jmp 0x140035557
movzx edx, byte [r12 - 1]
dec r12
shl edx, 8
or eax, edx
movzx edx, byte [r12 - 1]
or edx, eax
xor edx, r10d
xor ecx, r11d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140035690
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 0x14003565f
mov ebx, r12d
mov ecx, r13d
jmp 0x140035631
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.140259980
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret