Function at 0x140001e70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140038060]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.140008a90
lea rcx, [rsp + 0x60]
call fcn.1400030f0
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x70], 6
jne 0x1400021c1
lea rdx, [0x140033628]
call fcn.140004820
mov rcx, rax
call fcn.140004b00
mov esi, 2
mov r8d, esi
lea rcx, [rsp + 0x60]
call fcn.1400034e0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140003400
mov ebx, dword [rax + 8]
add ebx, dword [rax]
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.1400034e0
movsxd rbx, ebx
mov rcx, rbx
call fcn.140006594
mov rdi, rax
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400036d0
lea rcx, [rsp + 0x70]
call fcn.140003eb0
test rax, rax
jne 0x140001f75
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
mov ecx, 6
cmp qword [rbp + rdx - 0x58], rax
cmovne ecx, esi
or ecx, dword [rsp + rdx + 0x70]
and ecx, 0x17
mov dword [rsp + rdx + 0x70], ecx
and ecx, dword [rsp + rdx + 0x74]
jne 0x14000216b
movsd xmm0, qword [str.ab123456789]
movsd qword [rbp + 0x80], xmm0
mov eax, dword [0x140033640]
mov dword [rbp + 0x88], eax
mov rcx, rbx
call fcn.140006594
mov rsi, rax
test rbx, rbx
jle 0x140001fd7
xor eax, eax
mov rdx, rsi
sub rdi, rsi
mov r8, rbx
nop dword [rax]
xor ecx, ecx
cmp rax, 0xb
cmovne rcx, rax
movzx eax, byte [rbp + rcx + 0x80]
xor al, byte [rdi + rdx]
dec al
mov byte [rdx], al
lea rax, [rcx + 1]
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140001fb0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x58], 0
mov qword [rbp + 0x78], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp + 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rax
call rdi
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
jae 0x140002055
test rbx, rbx
je 0x140002084
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rsi, [rsi + 1]
sub rbx, 1
jne 0x140002040
jmp 0x140002084
lea rdx, [rbx - 1]
add rdx, rsi
lea r8, [rcx - 1]
add r8, rbx
test rbx, rbx
je 0x140002084
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r8], al
lea r8, [r8 - 1]
lea rdx, [rdx - 1]
sub rbx, 1
jne 0x140002070
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtProtectVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [rbp + 0x70], 0
mov qword [0x14003a9b8], rax
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
lea r8, [rbp + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, r14
call rax
call qword [rsp + 0x58]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.140002e30
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.140005c70
nop
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140006530
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
test cl, 4
je 0x140002179
lea rbx, str.ios_base::badbit_set
jmp 0x14000218e
test sil, cl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x80]
call fcn.1400013d0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001c70
lea rdx, [0x1400374e0]
lea rcx, [rsp + 0x30]
call fcn.140008304
int3
lea rdx, [0x140033618]
call fcn.140004820
mov rcx, rax
call fcn.140003850
xor ecx, ecx
call fcn.14000cc10
int3