Function at 0x140006580
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.140016bf0
sub rsp, rax
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, r9
mov rbx, r8
test r8, r8
je 0x14000679b
mov r9d, 0x1000
lea rdx, [rsp + 0x60]
call fcn.140002c40
xor edx, edx
test al, al
jne 0x140006684
mov dword [rsp + 0x20], 0xce7ece09
mov r8d, 0x31ae
mov dword [rsp + 0x24], 0xce75ce09
mov dword [rsp + 0x28], 0xce36ce15
mov dword [rsp + 0x2c], 0xce7ece36
mov dword [rsp + 0x30], 0xce7bce2e
mov dword [rsp + 0x34], 0xce38ce2e
mov dword [rsp + 0x38], 0xce3bce3f
mov dword [rsp + 0x3c], 0xce0cce40
mov dword [rsp + 0x40], 0xce07ce0d
mov dword [rsp + 0x44], 0xce09ce11
mov dword [rsp + 0x48], 0xce47ce03
mov dword [rsp + 0x4c], 0xce0cce00
mov dword [rsp + 0x50], 0xce0fce0b
mov dword [rsp + 0x54], 0xce1fce09
mov dword [rsp + 0x58], 0xce1d
mov byte [rsp + 0x5c], 1
nop word [rax + rax]
movzx eax, dx
sub ax, r8w
xor word [rsp + rdx*2 + 0x20], ax
inc rdx
cmp rdx, 0x1d
jb 0x140006660
mov byte [rsp + 0x5c], 0
lea rdx, [rsp + 0x20]
jmp 0x14000677f
movsxd rax, dword [rbp - 0x64]
lea rcx, [rsp + 0x60]
add rcx, rax
mov r9d, edx
movzx eax, word [rcx + 0x14]
lea r11, [rcx + 0x18]
movzx r10d, word [rcx + 6]
add r11, rax
test r10d, r10d
je 0x1400066eb
nop dword [rax + rax]
mov eax, r9d
lea rcx, [rax + rax*4]
cmp dword [r11 + rcx*8], 0x45474150
lea r8, [r11 + rcx*8]
jne 0x1400066e3
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r8 + rax], dl
jne 0x1400066d0
cmp rax, 4
je 0x1400067b7
inc r9d
cmp r9d, r10d
jb 0x1400066b0
mov dword [rsp + 0x20], 0xce7ece09
mov r8d, 0x31ae
mov dword [rsp + 0x24], 0xce75ce09
mov dword [rsp + 0x28], 0xce36ce15
mov dword [rsp + 0x2c], 0xce7ece36
mov dword [rsp + 0x30], 0xce7bce2e
mov dword [rsp + 0x34], 0xce34ce3a
mov dword [rsp + 0x38], 0xce3bce30
mov dword [rsp + 0x3c], 0xce12ce40
mov dword [rsp + 0x40], 0xce00ce07
mov dword [rsp + 0x44], 0xce0cce10
mov dword [rsp + 0x48], 0xce09ce09
mov word [rsp + 0x4c], dx
mov byte [rsp + 0x4e], 1
nop dword [rax]
nop word [rax + rax]
movzx eax, dx
sub ax, r8w
xor word [rsp + rdx*2 + 0x20], ax
inc rdx
cmp rdx, 0x16
jb 0x140006760
mov byte [rsp + 0x4e], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000a700
lea rdx, [0x14000a8e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140015b50
add rsp, 0x1070
pop rdi
pop rbx
pop rbp
ret
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1400066eb
mov ecx, dword [r8 + 8]
lea rax, [rsp + rax + 0x60]
test rax, rax
je 0x1400066eb
test ecx, ecx
je 0x1400066eb
test rdi, rdi
je 0x1400067e4
mov dword [rdi], ecx
lea rcx, [rsp + 0x60]
sub rax, rcx
add rax, rbx
jmp 0x14000679d