Function at 0x140048a20
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 ebx, dword [rbp]
mov edx, dword [rbp + 4]
je 0x140048adc
cmp r14, 8
jb 0x140048ab1
lea r15, [rsp + 0x28]
nop
xor ebx, dword [r12]
xor edx, dword [r12 + 4]
add r12, 8
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x2c], edx
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call fcn.1400475d0
mov ebx, dword [rsp + 0x28]
mov dword [rsi], ebx
mov edx, dword [rsp + 0x2c]
mov dword [rsi + 4], edx
add rsi, 8
add r14, 0xfffffffffffffff8
cmp r14, 7
ja 0x140048a70
mov r10d, edx
test r14, r14
je 0x140048bbe
add r12, r14
xor eax, eax
dec r14
lea rcx, [0x1402a7a30]
movsxd rdx, dword [rcx + r14*4]
add rdx, rcx
jmp rdx
xor ecx, ecx
jmp 0x140048c3e
cmp r14, 8
jb 0x140048b66
nop word cs:[rax + rax]
mov r15d, edx
mov r13d, dword [r12]
mov dword [rsp + 0x28], r13d
mov ebp, dword [r12 + 4]
add r12, 8
mov dword [rsp + 0x2c], ebp
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400475d0
mov edx, ebp
xor ebx, dword [rsp + 0x28]
mov ecx, r15d
xor ecx, 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 ebx, r13d
mov byte [rsi + 4], cl
mov byte [rsi + 5], ch
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 6], al
shr ecx, 0x18
mov byte [rsi + 7], cl
add rsi, 8
add r14, 0xfffffffffffffff8
cmp r14, 7
ja 0x140048af0
mov rbp, qword [rsp + 0xa0]
test r14, r14
je 0x140048be0
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 r15d, edx
mov rdx, rdi
xor r8d, r8d
call fcn.1400475d0
mov edx, r15d
xor ebx, dword [rsp + 0x28]
xor edx, dword [rsp + 0x2c]
add rsi, r14
dec r14
lea rax, [0x1402a7a4c]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
mov ecx, r12d
jmp 0x140048cfb
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov r8d, r10d
shr r8d, 8
mov r9d, r10d
shr r9d, 0x10
jmp 0x140048c92
mov ecx, edx
jmp 0x140048d01
xor ecx, ecx
jmp 0x140048c30
movzx edx, byte [r12 - 1]
dec r12
shl edx, 8
or eax, edx
movzx edx, byte [r12 - 1]
or edx, eax
xor edx, ebx
mov dword [rsp + 0x28], edx
xor ecx, r10d
mov dword [rsp + 0x2c], ecx
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov r8d, 1
call fcn.1400475d0
mov ebx, dword [rsp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov dword [rsi], ebx
mov edx, ebx
shr edx, 0x18
mov r10d, dword [rsp + 0x2c]
mov r8d, r10d
shr r8d, 8
mov r9d, r10d
shr r9d, 0x10
mov dword [rsi + 4], r10d
mov r11d, r10d
shr r11d, 0x18
mov byte [rbp], bl
mov byte [rbp + 1], al
mov byte [rbp + 2], cl
mov byte [rbp + 3], dl
mov byte [rbp + 4], r10b
mov byte [rbp + 5], r8b
mov byte [rbp + 6], r9b
mov ecx, r11d
jmp 0x140048d26
mov ecx, r12d
jmp 0x140048cf5
mov byte [rsi - 1], bh
dec rsi
mov byte [rsi - 1], bl
mov ebx, r13d
mov byte [rbp], bl
mov byte [rbp + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [rbp + 2], al
shr ebx, 0x18
mov byte [rbp + 3], bl
mov byte [rbp + 4], cl
mov byte [rbp + 5], ch
mov eax, ecx
shr eax, 0x10
mov byte [rbp + 6], al
shr ecx, 0x18
mov byte [rbp + 7], cl
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