Function at 0x140124450
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov r13, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, r13
setb r9b
movabs rax, 0xfffffffe0
cmp rcx, rax
seta r8b
xor eax, eax
or r8b, r9b
jne 0x1401246ef
mov qword [rsp + 0x28], rdx
lea rbp, [rsi + 0x50]
mov r15, qword [rsi + 0x160]
mov r12, qword [rsi + 0x150]
mov rax, qword [rsi + 0x158]
mov qword [rsp + 0x38], rax
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x1401244e2
lea rcx, [rsi + 0x40]
mov rdx, rbp
mov rax, r12
call qword [0x140185010]
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x140124537
test r13, r13
je 0x1401246e4
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi]
inc rdi
mov byte [rbx], dl
xor byte [rsi + rcx + 0x40], dl
inc rbx
lea r14, [r13 - 1]
inc eax
and eax, 0xf
je 0x14012451d
cmp r13, 1
mov r13, r14
jne 0x1401244f5
test eax, eax
jne 0x1401246e4
lea rcx, [rsi + 0x40]
mov rdx, rbp
mov rax, r12
call qword [0x140185010]
jmp 0x14012453a
mov r14, r13
mov r13d, dword [rsi + 0xc]
bswap r13d
cmp r14, 0xc00
mov qword [rsp + 0x30], rbp
jb 0x140124629
mov qword [rsp + 0x20], r14
lea rbp, [rsi + 0x10]
lea rax, [rsi + 0x40]
mov qword [rsp + 0x40], rax
mov r14, 0xfffffffffffff400
mov r12, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
mov r8, r12
mov rax, r15
call qword [0x140185010]
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi + r14 + 0xc00]
mov qword [rbx + r14 + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + r14 + 0xc08]
mov qword [rbx + r14 + 0xc08], rax
add r14, 0x10
jne 0x140124571
mov r12, rbx
add r12, r14
mov r9d, 0xc00
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov r8, r12
mov rax, qword [rsp + 0x38]
call qword [0x140185010]
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffff400
mov rax, rdi
add rax, r14
mov edx, 0xc00
lea rdi, [rax + rdx]
lea rbx, [r12 + rdx]
mov qword [rsp + 0x20], rcx
cmp rcx, 0xbff
ja 0x140124565
add rax, 0xc00
add r12, 0xc00
mov rbx, r12
mov rdi, rax
mov r14, qword [rsp + 0x20]
mov rax, r14
and rax, 0xff0
je 0x1401246a6
mov qword [rsp + 0x20], rax
lea rbp, [rsi + 0x10]
mov r12, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
mov r8, r12
mov rax, r15
call qword [0x140185010]
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + 8]
mov qword [rbx + 8], rax
add rbx, 0x10
add rdi, 0x10
add r14, 0xfffffffffffffff0
cmp r14, 0xf
ja 0x140124642
mov r8, rbx
mov r9, qword [rsp + 0x20]
sub r8, r9
lea rcx, [rsi + 0x40]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
call qword [0x140185010]
test r14, r14
mov r8, qword [rsp + 0x28]
je 0x140124700
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov rax, r15
call qword [0x140185010]
inc r13d
bswap r13d
mov dword [rsi + 0xc], r13d
xor eax, eax
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi + rcx]
mov byte [rbx + rcx], dl
xor byte [rsi + rcx + 0x40], dl
inc rax
cmp r14, rax
jne 0x1401246cc
mov dword [rsi + 0x170], eax
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1401246e4