Function at 0x65b220
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x318
call fcn.00693bc0
sub rsp, rax
mov rax, qword [0x0072f1d0]
mov qword [rsp + 0x2c0], rax
mov qword [rsp + 0x310], rbx
mov qword [rsp + 0x308], rbp
mov rbp, qword [rsp + 0x358]
mov qword [rsp + 0x300], rsi
mov rsi, qword [rsp + 0x348]
mov qword [rsp + 0x2f8], rdi
mov rdi, rcx
mov qword [rsp + 0x2e0], r14
mov rcx, rsi
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x38], r8
mov ebx, edx
mov qword [rsp + 0x2d8], r15
mov r14d, 1
call fcn.005b4490
test eax, eax
movsxd r15, eax
jns 0x65b2a7
xor eax, eax
jmp 0x65b4eb
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x2f0], r12
call fcn.005ed2e0
test rdi, rdi
mov r12d, dword [rsp + 0x350]
jne 0x65b2cd
xor ebx, ebx
jmp 0x65b2f6
cmp ebx, 0xffffffff
jne 0x65b2f6
xor ebx, ebx
mov rax, rdi
cmp byte [rdi], bl
je 0x65b2f2
nop
nop
cmp ebx, 0x80000000
jae 0x65b2f2
inc rax
inc ebx
cmp byte [rax], 0
jne 0x65b2e0
btr ebx, 0x1f
lea rcx, [rsp + 0x160]
mov r9, rsi
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], 0
call fcn.005ecf40
test eax, eax
jne 0x65b32d
lea rcx, [rsp + 0x160]
call fcn.005ed3d0
xor eax, eax
jmp 0x65b4e3
test r12d, r12d
mov qword [rsp + 0x2e8], r13
je 0x65b4c9
mov esi, dword [rsp + reloc.MFC42u.dll_COleDateTime::operator]
nop
nop
nop
mov eax, r14d
mov r13d, r12d
cmp r12d, r15d
cmovg r13d, r15d
shr eax, 0x18
lea rdx, [rsp + 0x160]
mov byte [rsp + 0x30], al
mov eax, r14d
lea rcx, [rsp + 0x40]
shr eax, 0x10
mov byte [rsp + 0x33], r14b
mov byte [rsp + 0x31], al
mov eax, r14d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.005ed320
test eax, eax
je 0x65b530
movsxd r8, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.005ed1f0
test eax, eax
je 0x65b541
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
call fcn.005ed1f0
test eax, eax
je 0x65b541
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.005ed210
test eax, eax
je 0x65b541
lea rcx, [rsp + 0x40]
call fcn.005ed3d0
movsxd rdi, r13d
lea rdx, [rsp + 0x280]
mov r8, rdi
mov rcx, rbp
call sub.msvcrt.dll_memcpy
mov ebx, 1
cmp esi, ebx
jle 0x65b4ba
nop
nop
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.005ed320
test eax, eax
je 0x65b530
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x40]
mov r8, r15
call fcn.005ed1f0
test eax, eax
je 0x65b541
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.005ed210
test eax, eax
je 0x65b541
lea rcx, [rsp + 0x40]
call fcn.005ed3d0
test r13d, r13d
jle 0x65b4b0
lea r8, [rsp + 0x280]
mov rcx, rbp
mov rdx, rdi
sub r8, rbp
nop
nop
nop
movzx eax, byte [r8 + rcx]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x65b4a0
inc ebx
cmp ebx, esi
jl 0x65b420
inc r14d
add rbp, rdi
sub r12d, r13d
jne 0x65b350
lea rcx, [rsp + 0x160]
call fcn.005ed3d0
mov eax, 1
mov r13, qword [rsp + 0x2e8]
mov r12, qword [rsp + 0x2f0]
mov r15, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x2e0]
mov rdi, qword [rsp + 0x2f8]
mov rsi, qword [rsp + 0x300]
mov rbp, qword [rsp + 0x308]
mov rbx, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x2c0]
call fcn.00693b90
add rsp, 0x318
ret
lea rcx, [rsp + 0x160]
call fcn.005ed3d0
xor eax, eax
jmp 0x65b4db
lea rcx, [rsp + 0x160]
call fcn.005ed3d0
lea rcx, [rsp + 0x40]
call fcn.005ed3d0
xor eax, eax
jmp 0x65b4db