Function at 0x653836e0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rbp, rdx
call fcn.65383090
test rax, rax
mov rdi, rax
je 0x65383864
cmp dword [rax + 0x20], 0x6f2d728b
lea rcx, [rax + 0x20]
je 0x65383870
lea rdx, [rax + 0x23c8]
mov rax, rcx
jmp 0x6538372a
cmp dword [rax], 0x6f2d728b
je 0x6538373c
add rax, 1
cmp rdx, rax
ja 0x65383722
cmp rcx, rax
jne 0x65383b8c
mov edx, dword [rax + 0x2c]
lea rbx, [rax + 0x40]
test edx, edx
jne 0x65383850
movsxd rdx, dword [rax + 0x38]
lea rax, [rsi + 0x18]
add rbx, rdx
movsxd rcx, dword [rbx + 0x18]
mov r9d, dword [rbx + 4]
lea r8, [rbx + 0x20]
mov edx, dword [rbx + 0x1c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x38], rax
mov eax, dword [rsi + 0x60]
add rcx, rbx
mov dword [rsp + 0x30], eax
mov eax, dword [rsi + 0x68]
mov dword [rsp + 0x28], eax
call fcn.6539fd90
test eax, eax
jne 0x65383ce2
mov eax, dword [rsp + 0x6c]
mov r12, qword [rsi + 0xa8]
test eax, eax
je 0x65383d46
movsxd rcx, dword [rbx + 8]
add rcx, rbx
movzx eax, byte [rcx]
and eax, 3
cmp al, 2
jne 0x65383c7d
add rcx, 0x20
mov rdx, rbp
call fcn.65401420
test eax, eax
jne 0x65383c18
test r12, r12
je 0x653837e3
mov rcx, r12
call fcn.654014a8
movsxd rbp, dword [rbx + 0xc]
mov rcx, rbp
call fcn.65401478
test rax, rax
mov qword [rsi + 0xa8], rax
je 0x65383da8
movsxd rdx, dword [rbx + 8]
mov r8, rbp
mov rcx, rax
add rdx, rbx
call fcn.65401468
mov r8d, dword [rbx + 0x14]
test r8d, r8d
jne 0x65383883
mov rax, qword [rdi]
lea rdx, [rax - 1]
xor eax, eax
test rdx, rdx
mov qword [rdi], rdx
jne 0x6538383c
mov dword [rsp + 0x5c], eax
mov rcx, rdi
call qword [0x65423250]
mov eax, dword [rsp + 0x5c]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movsxd r12, dword [rax + 0x28]
lea r9, [rbx + r12]
cmp byte [r9], 1
je 0x653838d0
jbe 0x6538374b
mov eax, 0xffffffff
jmp 0x6538383c
mov rax, rcx
mov edx, dword [rax + 0x2c]
lea rbx, [rax + 0x40]
test edx, edx
jne 0x65383850
jmp 0x6538374b
mov rcx, qword [rsi + 0xb8]
test rcx, rcx
je 0x65383898
call fcn.654014a8
mov r8d, dword [rbx + 0x14]
movsxd rbp, r8d
mov rcx, rbp
call fcn.65401478
test rax, rax
mov qword [rsi + 0xb8], rax
je 0x65383e71
movsxd rdx, dword [rbx + 0x10]
mov r8, rbp
mov rcx, rax
add rdx, rbx
call fcn.65401468
jmp 0x6538381a
movzx edx, byte [r9 + 2]
movzx ecx, byte [r9 + 3]
lea r8, [r9 + 4]
movsxd r13, dword [rax + 0x30]
shl ecx, 0x10
shl edx, 8
or edx, ecx
movzx ecx, byte [r9 + 1]
or edx, ecx
lea rcx, [rbx + r13]
test edx, edx
lea r11d, [rdx - 1]
je 0x6538374b
lea r14, [r12 + 0x44]
lea r10, [r13 + 0x40]
add r13, 0x50
cmp r14, r13
setge r13b
add r12, 0x54
cmp r10, r12
setge r12b
or r13b, r12b
je 0x65383bf6
cmp edx, 0x12
jbe 0x65383bf6
lea r13, [rax + r10]
neg r13
and r13d, 0xf
lea r12d, [r13 + 0xf]
cmp r12d, r11d
ja 0x65383b6a
test r13d, r13d
je 0x65383df1
movzx r11d, byte [r9 + 4]
lea r8, [r9 + 5]
lea r12, [rcx + 1]
xor byte [rcx], r11b
cmp r13d, 1
lea r11d, [rdx - 2]
je 0x65383b10
movzx r11d, byte [r9 + 5]
lea r8, [r9 + 6]
lea r12, [rcx + 2]
xor byte [rcx + 1], r11b
cmp r13d, 2
lea r11d, [rdx - 3]
je 0x65383b10
movzx r11d, byte [r9 + 6]
lea r8, [r9 + 7]
lea r12, [rcx + 3]
xor byte [rcx + 2], r11b
cmp r13d, 3
lea r11d, [rdx - 4]
je 0x65383b10
movzx r11d, byte [r9 + 7]
lea r8, [r9 + 8]
lea r12, [rcx + 4]
xor byte [rcx + 3], r11b
cmp r13d, 4
lea r11d, [rdx - 5]
je 0x65383b10
movzx r11d, byte [r9 + 8]
lea r8, [r9 + 9]
lea r12, [rcx + 5]
xor byte [rcx + 4], r11b
cmp r13d, 5
lea r11d, [rdx - 6]
je 0x65383b10
movzx r11d, byte [r9 + 9]
lea r8, [r9 + 0xa]
lea r12, [rcx + 6]
xor byte [rcx + 5], r11b
cmp r13d, 6
lea r11d, [rdx - 7]
je 0x65383b10
movzx r11d, byte [r9 + 0xa]
lea r8, [r9 + 0xb]
lea r12, [rcx + 7]
xor byte [rcx + 6], r11b
cmp r13d, 7
lea r11d, [rdx - 8]
je 0x65383b10
movzx r11d, byte [r9 + 0xb]
lea r8, [r9 + 0xc]
lea r12, [rcx + 8]
xor byte [rcx + 7], r11b
cmp r13d, 8
lea r11d, [rdx - 9]
je 0x65383b10
movzx r11d, byte [r9 + 0xc]
lea r8, [r9 + 0xd]
lea r12, [rcx + 9]
xor byte [rcx + 8], r11b
cmp r13d, 9
lea r11d, [rdx - 0xa]
je 0x65383b10
movzx r11d, byte [r9 + 0xd]
lea r8, [r9 + 0xe]
lea r12, [rcx + 0xa]
xor byte [rcx + 9], r11b
cmp r13d, 0xa
lea r11d, [rdx - 0xb]
je 0x65383b10
movzx r11d, byte [r9 + 0xe]
lea r8, [r9 + 0xf]
lea r12, [rcx + 0xb]
xor byte [rcx + 0xa], r11b
cmp r13d, 0xb
lea r11d, [rdx - 0xc]
je 0x65383b10
movzx r11d, byte [r9 + 0xf]
lea r8, [r9 + 0x10]
lea r12, [rcx + 0xc]
xor byte [rcx + 0xb], r11b
cmp r13d, 0xc
lea r11d, [rdx - 0xd]
je 0x65383b10
movzx r11d, byte [r9 + 0x10]
lea r8, [r9 + 0x11]
lea r12, [rcx + 0xd]
xor byte [rcx + 0xc], r11b
cmp r13d, 0xd
lea r11d, [rdx - 0xe]
je 0x65383b10
movzx r11d, byte [r9 + 0x11]
lea r8, [r9 + 0x12]
lea r12, [rcx + 0xe]
xor byte [rcx + 0xd], r11b
cmp r13d, 0xf
lea r11d, [rdx - 0xf]
jne 0x65383b10
lea r8, [r9 + 0x13]
movzx r9d, byte [r9 + 0x12]
lea r12, [rcx + 0xf]
xor byte [rcx + 0xe], r9b
lea r11d, [rdx - 0x10]
nop dword [rax]
sub edx, r13d
mov ecx, r13d
xor r9d, r9d
lea r13d, [rdx - 0x10]
add r14, rcx
add r10, rcx
add r14, rax
add r10, rax
xor ecx, ecx
shr r13d, 4
add r13d, 1
movdqu xmm0, xmmword [r14 + rcx]
add r9d, 1
pxor xmm0, xmmword [r10 + rcx]
movaps xmmword [r10 + rcx], xmm0
add rcx, 0x10
cmp r13d, r9d
ja 0x65383b33
shl r13d, 4
mov ecx, r13d
sub r11d, r13d
add r8, rcx
add rcx, r12
cmp edx, r13d
je 0x6538374b
mov r11d, r11d
lea r9, [r8 + r11 + 1]
add r8, 1
add rcx, 1
movzx edx, byte [r8 - 1]
xor byte [rcx - 1], dl
cmp r8, r9
jne 0x65383b72
jmp 0x6538374b
mov rax, qword [rsi + 0xa8]
test rax, rax
je 0x65383e26
movzx ebx, byte [rax]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x65383e85
mov edx, 4
mov rcx, rsi
call fcn.653813c0
cmp ebx, 1
mov r8, rax
je 0x65383e17
mov rax, qword [0x65422d40]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x29ea
mov r9d, 1
lea rdx, str._s___d:_d_
call qword [0x65422cb0]
mov eax, 0xffffffff
jmp 0x6538383c
mov edx, r11d
xor r8d, r8d
add rdx, 1
movzx r10d, byte [r9 + r8 + 4]
xor byte [rcx + r8], r10b
add r8, 1
cmp r8, rdx
jne 0x65383c00
jmp 0x6538374b
test r12, r12
je 0x65383e08
movzx ebx, byte [r12]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x65383e85
mov edx, 4
mov rcx, rsi
call fcn.653813c0
cmp ebx, 1
mov r8, rax
je 0x65383dd3
mov rax, qword [0x65422d40]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x2a08
mov r9d, 1
lea rdx, str._s___d:_d_
call qword [0x65422cb0]
mov eax, 0xffffffff
jmp 0x6538383c
test r12, r12
je 0x65383df9
movzx ebx, byte [r12]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x65383e85
mov edx, 4
mov rcx, rsi
call fcn.653813c0
cmp ebx, 1
mov r8, rax
je 0x65383de2
mov rax, qword [0x65422d40]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x2a04
mov r9d, 1
lea rdx, str._s___d:_d_
call qword [0x65422cb0]
mov eax, 0xffffffff
jmp 0x6538383c
mov rdx, qword [rsi + 0xa8]
test rdx, rdx
je 0x65383e53
movzx ebx, byte [rdx]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x65383e85
mov ecx, eax
call fcn.6539e1f0
cmp ebx, 1
mov r8, rax
je 0x65383e35
mov rax, qword [0x65422d40]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x29fc
mov r9d, 1
lea rdx, str._s___d:_d_
call qword [0x65422cb0]
mov eax, 0xffffffff
jmp 0x6538383c
test r12, r12
je 0x65383e62
movzx ebx, byte [r12]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x65383e85
mov ecx, 1
call fcn.6539e1f0
cmp ebx, 1
mov r8, rax
je 0x65383e44
mov rax, qword [0x65422d40]
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0x29ff
mov r9d, 1
lea rdx, str._s___d:_d_
call qword [0x65422cb0]
mov eax, 0xffffffff
jmp 0x6538383c
mov rbx, qword [0x65423488]
call rbx
mov r8d, 0x10028dd
mov edx, dword [rax]
mov rcx, rsi
call fcn.65388450
call rbx
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x6538383c
mov rax, qword [0x65422d50]
mov rcx, qword [rax]
jmp 0x65383c58
mov rax, qword [0x65422d50]
mov rcx, qword [rax]
jmp 0x65383cbd
mov r12, rcx
jmp 0x65383b10
movzx ebx, byte [rsi + 0x10]
shr bl, 5
and ebx, 3
jmp 0x65383c91
movzx ebx, byte [rsi + 0x10]
shr bl, 5
and ebx, 3
jmp 0x65383c2c
mov rax, qword [0x65422d50]
mov rcx, qword [rax]
jmp 0x65383bd1
movzx ebx, byte [rsi + 0x10]
shr bl, 5
and ebx, 3
jmp 0x65383ba5
mov rax, qword [0x65422d50]
mov rcx, qword [rax]
jmp 0x65383d21
mov rax, qword [0x65422d50]
mov rcx, qword [rax]
jmp 0x65383d83
movzx ebx, byte [rsi + 0x10]
shr bl, 5
and ebx, 3
jmp 0x65383cfb
movzx ebx, byte [rsi + 0x10]
shr bl, 5
and ebx, 3
jmp 0x65383d5a
mov rbx, qword [0x65423488]
call rbx
mov r8d, 0x10028ce
jmp 0x65383db7
mov ecx, 1
call fcn.654014c8
nop