Function at 0x140203300
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [rcx + 0x180]
mov r13, qword [rcx + 0x178]
mov rsi, rcx
mov qword [rsp + 0x30], rdi
mov r10, rdx
mov r12, r8
mov rdi, qword [rcx + 0x168]
mov rdx, r9
mov rax, r9
mov r8, qword [rcx + 0x160]
movabs r9, 0xfffffffe0
xor ecx, ecx
add rdx, qword [rsi + 0x38]
mov qword [rsp + 0x28], rdi
setb cl
cmp r9, rdx
jb 0x140203771
test rcx, rcx
jne 0x140203771
mov qword [rsi + 0x38], rdx
mov edx, dword [rsi + 0x174]
mov r9d, dword [rsi + 0x170]
test edx, edx
je 0x1402036a7
test rax, rax
je 0x140203749
movdqu xmm1, xmmword [rsi + 0x40]
pxor xmm0, xmm0
mov edx, dword [rsi + 0xc]
mov edi, 0x10
mov dword [rsi + 0x174], 0
bswap edx
movups xmmword [rsi + 0x188], xmm1
mov dword [rsp + 0x48], edx
mov edx, 1
movups xmmword [rsi + 0x40], xmm0
cmp rax, 0xf
jbe 0x140203402
test dl, dl
je 0x140203402
mov qword [rsp + 0xb8], rax
mov r9d, edi
mov rax, qword [rsp + 0x28]
lea rdx, [rsi + 0x60]
mov qword [rsp + 0xa8], r10
lea rcx, [rsi + 0x40]
lea r8, [rsi + 0x188]
xor edi, edi
call rax
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xb8]
cmp rax, 0xbff
jbe 0x140203521
lea rcx, [rsi + 0x60]
mov qword [rsp + 0x20], r12
lea r15, [rsi + 0x10]
mov r14, rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rsi + 0x40]
lea rbp, [r12 + 0xc00]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0xa8], r10
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x4c], edi
mov rdi, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x48]
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x20]
nop
add r12d, 1
mov r8, rdi
mov rdx, r15
mov rcx, r14
call r13
mov eax, r12d
add rbx, 0x10
add rsi, 0x10
bswap eax
mov dword [r14 + 0xc], eax
mov rax, qword [rsi - 0x10]
xor rax, qword [r14 + 0x10]
mov qword [rbx - 0x10], rax
mov rax, qword [rsi - 8]
xor rax, qword [r14 + 0x18]
mov qword [rbx - 8], rax
cmp rbx, rbp
jne 0x140203460
mov rsi, qword [rsp + 0x20]
add dword [rsp + 0x48], 0xc0
mov r9d, 0xc00
mov rbx, rbp
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
add rbp, 0xc00
add qword [rsp + 0xa8], 0xc00
mov rcx, qword [rsp + 0x38]
mov r8, rsi
call rax
mov rax, rsi
sub qword [rsp + 0xb8], 0xc00
add rax, 0xc00
cmp qword [rsp + 0xb8], 0xbff
mov qword [rsp + 0x20], rax
ja 0x14020344d
mov edi, dword [rsp + 0x4c]
mov r10, qword [rsp + 0xa8]
mov rsi, r14
mov r12, rbx
mov rax, qword [rsp + 0xb8]
mov r9, rax
and r9, 0xfffffffffffffff0
je 0x140203621
lea r11, [r12 + rax]
mov r15d, dword [rsp + 0x48]
mov rbx, r12
lea rdx, [rsi + 0x10]
mov qword [rsp + 0xb0], r12
mov rbp, r10
mov r12, r9
mov r14, r11
add r15d, 1
mov qword [rsp + 0x20], rdx
mov rcx, rsi
add rbx, 0x10
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0x30]
add rbp, 0x10
mov qword [rsp + 0xa8], r10
call r13
mov ecx, r15d
mov rdx, qword [rsp + 0x20]
mov r10, qword [rsp + 0xa8]
bswap ecx
mov dword [rsi + 0xc], ecx
mov rcx, qword [rbp - 0x10]
xor rcx, qword [rsi + 0x10]
mov rax, qword [rsp + 0xb8]
mov qword [rbx - 0x10], rcx
mov rcx, qword [rbp - 8]
xor rcx, qword [rsi + 0x18]
mov qword [rbx - 8], rcx
mov rcx, r14
sub rcx, rbx
cmp rcx, 0xf
ja 0x14020354f
mov ecx, dword [rsp + 0x48]
lea rdx, [rax - 0x10]
mov r9, r12
and eax, 0xf
shr rdx, 4
mov r12, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea ecx, [rcx + rdx + 1]
add rdx, 1
mov rax, qword [rsp + 0x28]
shl rdx, 4
mov dword [rsp + 0x48], ecx
lea rcx, [rsi + 0x40]
add r12, rdx
add r10, rdx
lea rdx, [rsi + 0x60]
mov r8, r12
mov qword [rsp + 0xa8], r10
sub r8, r9
call rax
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xb8]
test rax, rax
mov qword [rsp + 0xa8], r10
mov qword [rsp + 0xb8], rax
je 0x14020368e
mov r8, qword [rsp + 0x30]
lea rdx, [rsi + 0x10]
mov rcx, rsi
call r13
mov edx, dword [rsp + 0x48]
mov rax, qword [rsp + 0xb8]
mov r10, qword [rsp + 0xa8]
add edx, 1
lea r8, [rax - 1]
bswap edx
mov dword [rsi + 0xc], edx
xor edx, edx
movzx ecx, byte [r10 + rdx]
xor cl, byte [rsi + rdx + 0x10]
lea r9d, [rdi + rdx]
mov byte [r12 + rdx], cl
add rdx, 1
mov byte [rsi + r9 + 0x188], cl
cmp rdx, rax
jne 0x140203667
lea edi, [rdi + r8 + 1]
mov dword [rsi + 0x170], edi
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edi, r9d
mov edx, dword [rsi + 0xc]
bswap edx
mov dword [rsp + 0x48], edx
and edi, 0xf
je 0x140203763
test rax, rax
jne 0x1402036cd
jmp 0x14020373d
test rax, rax
je 0x140203739
mov ecx, edi
movzx edx, byte [r10]
add r12, 1
add edi, 1
xor dl, byte [rsi + rcx + 0x10]
mov ecx, r9d
add r10, 1
add r9d, 1
mov byte [r12 - 1], dl
sub rax, 1
mov byte [rsi + rcx + 0x188], dl
and edi, 0xf
jne 0x1402036c8
mov qword [rsp + 0xb8], rax
lea rdx, [rsi + 0x60]
mov rax, qword [rsp + 0x28]
lea rcx, [rsi + 0x40]
mov qword [rsp + 0xa8], r10
lea r8, [rsi + 0x188]
call rax
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xb8]
jmp 0x140203402
test edi, edi
je 0x1402036fe
mov dword [rsi + 0x170], r9d
jmp 0x140203694
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call r8
mov dword [rsi + 0x174], 0
jmp 0x140203694
test r9d, r9d
mov edi, r9d
setne dl
jmp 0x1402033bd
mov eax, 0xffffffff
jmp 0x140203696