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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x3c], ebx
mov dword [rbp + 0x88], 0x819d8a9a
xor eax, eax
mov byte [rbp + 0x8c], al
mov edx, ebx
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp + 0x88]
add rcx, rax
lea eax, [rdx - 0x32]
xor byte [rcx], al
inc edx
cmp edx, 4
jb 0x1800177a0
mov byte [rbp + 0x8c], bl
lea rcx, [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
lea rax, [0x1800014f0]
mov qword [rsp + 0x60], rax
lea rax, [0x180001428]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x3c], 2
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea r14, [0x1800014e0]
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, [0x180001460]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], rbx
mov dword [rbp - 0x18], ebx
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.18001a540
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x3c], 0xa
movups xmmword [rsp + 0x40], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1800178b0
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1800178b0
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x1800178e1
test cl, 4
jne 0x1800178d7
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800178d7
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1800178e1
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1800178ef
mov rcx, rsi
call fcn.18001a3d0
nop
mov dword [rsp + 0x3c], 7
mov dword [rsp + 0x30], 0xb6bfa392
mov dword [rsp + 0x34], 0xb0b8bab4
mov word [rsp + 0x38], 0xe6
nop
movsxd rax, ebx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rbx - 0x32]
xor byte [rcx], al
inc ebx
cmp ebx, 9
jb 0x180017910
mov byte [rsp + 0x39], 0
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180017940
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x18001798a
lea rax, [rcx + rdi]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x180017970
mov rax, qword [rsi]
lea rbx, [rax + rcx]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
jmp 0x1800179a0
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call fcn.18001a980
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r14
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.1800184f0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rsi
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret