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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r14, r8
mov r12, rdx
xor r8d, r8d
mov r13d, ecx
mov r15d, r8d
test r14, r14
je 0x180150ada
mov ebx, dword [0x1802b6054]
test ebx, ebx
jne 0x180150774
lea eax, [rbx + 1]
mov dword [0x1802bd604], eax
mov ebx, eax
mov dword [0x1802b6054], eax
jmp 0x18015077a
mov eax, dword [0x1802bd604]
mov ecx, dword [0x1802b7318]
cmp ecx, 0xffffffff
je 0x18015078d
test eax, eax
je 0x180150832
mov dword [rbp - 0x20], 0x4a
xor eax, eax
mov byte [rbp - 0x1c], 0x1a
mov rdx, r8
mov byte [rbp - 0x1b], 5
mov byte [rbp - 0x1a], 0x19
mov byte [rbp - 0x19], 3
mov byte [rbp - 0x18], 0x12
mov byte [rbp - 0x17], 6
mov byte [rbp - 0x16], 0x13
mov byte [rbp - 0x15], 0x15
mov byte [rbp - 0x14], 9
mov byte [rbp - 0x13], 5
mov byte [rbp - 0x12], 0x18
mov byte [rbp - 0x11], 0x18
mov byte [rbp - 0x10], 0xf
mov byte [rbp - 0xf], 9
mov byte [rbp - 0xe], 0x1e
mov byte [rbp - 0xd], al
mov al, byte [rbp - 0x1c]
mov al, byte [rbp + rdx - 0x1c]
mov ecx, dword [rbp - 0x20]
xor cl, al
mov byte [rbp + rdx - 0x1c], cl
inc rdx
cmp rdx, 0xf
jb 0x1801507db
lea rcx, [rbp - 0x1c]
mov byte [rbp - 0xd], r8b
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ecx, ecx
test rax, rax
setne cl
xor edx, edx
mov dword [0x1802b7318], ecx
lea rcx, [rbp - 0x1c]
lea r8d, [rdx + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov eax, dword [0x1802bd604]
xor r8d, r8d
mov ecx, dword [0x1802b7318]
mov ebx, dword [0x1802b6054]
cmp byte [r14], 0x2d
jne 0x180150840
mov r15d, 2
jmp 0x180150853
test ecx, ecx
jne 0x18015084a
cmp byte [r14], 0x2b
jne 0x180150856
cmp byte [r14], 0x2b
mov r15d, r8d
jne 0x180150856
inc r14
mov qword [0x1802bd608], r8
test eax, eax
je 0x180150874
or esi, 0xffffffff
or edi, esi
mov dword [0x1802b7308], esi
mov dword [0x1802b730c], edi
jmp 0x180150880
mov edi, dword [0x1802b730c]
mov esi, dword [0x1802b7308]
test eax, eax
jne 0x180150894
mov rax, qword [0x1802b7310]
cmp byte [rax], r8b
jne 0x18015094a
mov dword [0x1802bd604], r8d
cmp ebx, r13d
jge 0x180150a9a
movsxd rax, ebx
mov rax, qword [r12 + rax*8]
mov qword [0x1802b7310], rax
cmp byte [rax], 0x2d
jne 0x180150a6a
cmp byte [rax + 1], r8b
jne 0x1801508f4
mov edx, 0x2d
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, dword [0x1802b6054]
xor r8d, r8d
test rax, rax
je 0x180150a6a
mov edi, dword [0x1802b730c]
mov esi, dword [0x1802b7308]
mov rax, qword [0x1802b7310]
cmp edi, 0xffffffff
je 0x180150905
cmp esi, 0xffffffff
cmove esi, ebx
mov dword [0x1802b7308], esi
lea rcx, [rax + 1]
cmp byte [rcx], r8b
je 0x18015094a
cmp byte [rcx], 0x2d
mov rax, rcx
jne 0x18015094a
cmp byte [rcx + 1], r8b
jne 0x18015094a
inc ebx
lea rax, [0x1802bd277]
mov dword [0x1802b6054], ebx
mov qword [0x1802b7310], rax
cmp esi, 0xffffffff
je 0x180150acc
mov r9, r12
call fcn.180150658
sub ebx, esi
jmp 0x180150ab7
movsx edi, byte [rax]
mov esi, 0x3a
inc rax
mov qword [0x1802b7310], rax
cmp edi, esi
je 0x180150a43
cmp edi, 0x2d
jne 0x180150972
cmp byte [rax], r8b
jne 0x180150a50
mov edx, edi
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
xor r8d, r8d
test rax, rax
je 0x180150a26
cmp byte [rax + 1], sil
je 0x1801509a1
mov rax, qword [0x1802b7310]
cmp byte [rax], r8b
jne 0x180150a1f
jmp 0x180150a19
mov rcx, qword [0x1802b7310]
mov qword [0x1802bd608], r8
cmp byte [rcx], r8b
jne 0x180150a04
cmp byte [rax + 2], sil
je 0x180150a0b
mov eax, dword [0x1802b6054]
inc eax
mov dword [0x1802b6054], eax
cmp eax, r13d
jl 0x1801509fe
lea rax, [0x1802bd277]
mov qword [0x1802b7310], rax
cmp byte [r14], sil
je 0x1801509ee
mov rcx, qword [0x1802bf678]
mov edx, edi
call fcn.1801505bc
cmp byte [r14], sil
mov eax, 0x3f
cmove eax, esi
jmp 0x180150add
cdqe
mov rcx, qword [r12 + rax*8]
mov qword [0x1802bd608], rcx
lea rax, [0x1802bd277]
mov qword [0x1802b7310], rax
inc dword [0x1802b6054]
mov eax, edi
jmp 0x180150add
mov rax, qword [0x1802b7310]
cmp edi, 0x2d
jne 0x180150a3d
cmp byte [rax], r8b
je 0x180150ada
jmp 0x180150a50
mov ebx, dword [0x1802b6054]
cmp byte [rax], r8b
jne 0x180150a50
inc ebx
mov dword [0x1802b6054], ebx
cmp byte [r14], sil
je 0x180150a63
mov rcx, qword [0x1802bf688]
mov edx, edi
call fcn.1801505bc
mov eax, 0x3f
jmp 0x180150add
lea rax, [0x1802bd277]
mov qword [0x1802b7310], rax
test r15d, r15d
je 0x180150ada
movsxd rax, ebx
inc ebx
mov dword [0x1802b6054], ebx
mov rcx, qword [r12 + rax*8]
mov eax, 1
mov qword [0x1802bd608], rcx
jmp 0x180150add
lea rax, [0x1802bd277]
mov qword [0x1802b7310], rax
cmp esi, 0xffffffff
je 0x180150ac1
mov r9, r12
call fcn.180150658
sub edi, esi
add ebx, edi
mov dword [0x1802b6054], ebx
jmp 0x180150acc
cmp edi, 0xffffffff
je 0x180150acc
mov dword [0x1802b6054], edi
or dword [0x1802b7308], 0xffffffff
or dword [0x1802b730c], 0xffffffff
or eax, 0xffffffff
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret