Function at 0x140012f60
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
xor ebx, ebx
mov r13d, dword [0x140062c10]
mov rax, qword gs:[0x58]
mov r12, qword [rax + r13*8]
mov ecx, 0x64
mov eax, dword [rcx + r12]
mov r9d, 0x48
test al, 1
jne 0x140013095
or eax, 1
mov dword [rcx + r12], eax
lea rcx, [r12 + r9]
movups xmm0, xmmword [0x14004ad18]
movaps xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x14004ad28]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x14004ad30]
mov dword [rsp + 0x48], eax
mov qword [rcx], rbx
mov word [rcx + 8], bx
mov byte [rcx + 0xa], bl
xorps xmm0, xmm0
movups xmmword [rcx + 0xc], xmm0
mov r8d, ebx
lea rdx, [rcx + 0xe]
lea r10, [rsp + 0x3c]
sub r10, rcx
lea r11, [rsp + 0x30]
sub r11, rcx
lea rbx, [rsp + 0x32]
sub rbx, rcx
lea rdi, [rsp + 0x34]
sub rdi, rcx
lea rsi, [rsp + 0x36]
sub rsi, rcx
lea r14, [rsp + 0x38]
sub r14, rcx
lea r15, [rsp + 0x3a]
sub r15, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r10 + rdx - 0xe]
mov word [rdx - 2], ax
movzx eax, word [r11 + rdx]
mov word [rdx], ax
movzx eax, word [rbx + rdx]
mov word [rdx + 2], ax
movzx eax, word [rdx + rdi]
mov word [rdx + 4], ax
movzx eax, word [rdx + rsi]
mov word [rdx + 6], ax
movzx eax, word [rdx + r14]
mov word [rdx + 8], ax
movzx eax, word [rdx + r15]
mov word [rdx + 0xa], ax
movzx eax, word [r10 + rdx]
mov word [rdx + 0xc], ax
add r8d, 8
lea rdx, [rdx + 0x10]
cmp r8d, 8
jb 0x140013040
xor ebx, ebx
lea r8, [r12 + r9]
cmp byte [r8 + 0xa], 0
jne 0x1400130c5
mov edx, ebx
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [r8 + rax*2]
lea eax, [rdx + 0x78]
xor word [rcx + 0xc], ax
inc edx
cmp edx, 8
jb 0x1400130b0
mov byte [r8 + 0xa], 1
lea rcx, [r8 + 0xc]
mov r8d, 0x104
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, qword gs:[0x58]
mov r12, qword [rax + r13*8]
mov ecx, 0x88
mov eax, dword [rcx + r12]
mov r13d, 0x68
test al, 1
jne 0x140013203
or eax, 1
mov dword [rcx + r12], eax
mov ecx, r13d
add rcx, r12
movups xmm0, xmmword [0x14004ad38]
movaps xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x14004ad48]
movaps xmmword [rsp + 0x40], xmm1
mov qword [rcx], 0
mov word [rcx + 8], bx
mov byte [rcx + 0xa], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0xc], xmm0
mov dword [rcx + 0x1c], eax
mov edx, ebx
lea rax, [rcx + 0xe]
lea r8, [rsp + 0x3c]
sub r8, rcx
lea r9, [rsp + 0x30]
sub r9, rcx
lea r10, [rsp + 0x32]
sub r10, rcx
lea r11, [rsp + 0x34]
sub r11, rcx
lea rbx, [rsp + 0x36]
sub rbx, rcx
lea rdi, [rsp + 0x38]
sub rdi, rcx
lea rsi, [rsp + 0x3a]
sub rsi, rcx
lea r14, [rsp + 0x3e]
sub r14, rcx
lea r15, [rsp + 0x40]
sub r15, rcx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax + r8 - 0xe]
mov word [rax - 2], cx
movzx ecx, word [r9 + rax]
mov word [rax], cx
movzx ecx, word [r10 + rax]
mov word [rax + 2], cx
movzx ecx, word [r11 + rax]
mov word [rax + 4], cx
movzx ecx, word [rbx + rax]
mov word [rax + 6], cx
movzx ecx, word [rdi + rax]
mov word [rax + 8], cx
movzx ecx, word [rsi + rax]
mov word [rax + 0xa], cx
movzx ecx, word [rax + r8]
mov word [rax + 0xc], cx
movzx ecx, word [r14 + rax]
mov word [rax + 0xe], cx
movzx ecx, word [r15 + rax]
mov word [rax + 0x10], cx
add edx, 0xa
lea rax, [rax + 0x14]
cmp edx, 0xa
jb 0x1400131a0
mov r8d, r13d
add r8, r12
xor esi, esi
cmp byte [r8 + 0xa], sil
jne 0x140013235
mov edx, esi
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [r8 + rax*2]
lea eax, [rdx + 0x78]
xor word [rcx + 0xc], ax
inc edx
cmp edx, 0xa
jb 0x140013220
mov byte [r8 + 0xa], 1
lea rdi, [r8 + 0xc]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x80]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140013260
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140001670
nop
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140013280
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140012ed0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14001330d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013308
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013446
call fcn.14001d3f0
movdqa xmm0, xmmword [0x14004b640]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rcx, [rsp + 0x70]
call fcn.140002db0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ebx, dword [rbp + rcx - 0x80]
mov qword [rsp + rcx + 0x70], r8
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x80]
call fcn.140003ea0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x20]
call fcn.14001b214
nop
test ebx, ebx
je 0x14001344c
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14001341f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001341a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013440
call fcn.14001d3f0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400240ec
nop
call fcn.1400240ec
nop
xor ecx, ecx
call fcn.140024904
int3