Function at 0x140176158
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 r15, rdx
xor r8d, r8d
mov r13d, ecx
test r14, r14
je 0x14017644a
mov ebx, dword [0x1402c6054]
test ebx, ebx
jne 0x1401761a9
lea eax, [rbx + 1]
mov dword [0x1402cd054], eax
mov ebx, eax
mov dword [0x1402c6054], eax
jmp 0x1401761af
mov eax, dword [0x1402cd054]
mov ecx, dword [0x1402c7318]
mov r12d, 2
cmp ecx, 0xffffffff
je 0x1401761c8
test eax, eax
je 0x1401762c8
mov dword [rbp - 0x20], 0x21
mov rdx, r8
mov eax, dword [rbp - 0x20]
xor al, 0x50
mov byte [rbp - 0x1c], al
mov eax, dword [rbp - 0x20]
inc al
xor al, 0x4f
mov byte [rbp - 0x1b], al
mov eax, dword [rbp - 0x20]
add al, r12b
xor al, 0x53
mov byte [rbp - 0x1a], al
mov eax, dword [rbp - 0x20]
add al, 3
xor al, 0x49
mov byte [rbp - 0x19], al
mov eax, dword [rbp - 0x20]
add al, 4
xor al, 0x58
mov byte [rbp - 0x18], al
mov eax, dword [rbp - 0x20]
add al, 5
xor al, 0x4c
mov byte [rbp - 0x17], al
mov eax, dword [rbp - 0x20]
add al, 6
xor al, 0x59
mov byte [rbp - 0x16], al
mov eax, dword [rbp - 0x20]
add al, 7
xor al, 0x5f
mov byte [rbp - 0x15], al
mov eax, dword [rbp - 0x20]
add al, 8
xor al, 0x43
mov byte [rbp - 0x14], al
mov eax, dword [rbp - 0x20]
add al, 9
xor al, 0x4f
mov byte [rbp - 0x13], al
mov eax, dword [rbp - 0x20]
add al, 0xa
xor al, 0x52
mov byte [rbp - 0x12], al
mov eax, dword [rbp - 0x20]
add al, 0xb
xor al, 0x52
mov byte [rbp - 0x11], al
mov eax, dword [rbp - 0x20]
add al, 0xc
xor al, 0x45
mov byte [rbp - 0x10], al
mov eax, dword [rbp - 0x20]
add al, 0xd
xor al, 0x43
mov byte [rbp - 0xf], al
mov eax, dword [rbp - 0x20]
add al, 0xe
xor al, 0x54
mov byte [rbp - 0xe], al
xor eax, eax
mov byte [rbp - 0xd], al
mov al, byte [rbp - 0x1c]
mov al, byte [rbp + rdx - 0x1c]
mov ecx, dword [rbp - 0x20]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x1c], cl
inc rdx
cmp rdx, 0xf
jb 0x14017626f
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 [0x1402c7318], ecx
lea rcx, [rbp - 0x1c]
lea r8d, [rdx + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov eax, dword [0x1402cd054]
xor r8d, r8d
mov ecx, dword [0x1402c7318]
mov ebx, dword [0x1402c6054]
cmp byte [r14], 0x2d
je 0x1401762e6
test ecx, ecx
jne 0x1401762d8
cmp byte [r14], 0x2b
jne 0x1401762e1
cmp byte [r14], 0x2b
mov r12d, r8d
je 0x1401762e6
mov r12d, r8d
jmp 0x1401762e9
inc r14
mov qword [0x1402cd058], r8
test eax, eax
je 0x140176307
or edi, 0xffffffff
or esi, edi
mov dword [0x1402c7308], edi
mov dword [0x1402c730c], esi
jmp 0x140176323
mov rax, qword [0x1402c7310]
cmp byte [rax], r8b
jne 0x14017646b
mov esi, dword [0x1402c730c]
mov edi, dword [0x1402c7308]
mov dword [0x1402cd054], r8d
cmp ebx, r13d
jge 0x14017640a
movsxd rax, ebx
mov rax, qword [r15 + rax*8]
mov qword [0x1402c7310], rax
cmp byte [rax], 0x2d
jne 0x1401763da
cmp byte [rax + 1], r8b
jne 0x14017637f
mov edx, 0x2d
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, dword [0x1402c6054]
xor r8d, r8d
test rax, rax
je 0x1401763da
mov esi, dword [0x1402c730c]
mov edi, dword [0x1402c7308]
mov rax, qword [0x1402c7310]
cmp esi, 0xffffffff
je 0x140176390
cmp edi, 0xffffffff
cmove edi, ebx
mov dword [0x1402c7308], edi
lea rcx, [rax + 1]
cmp byte [rcx], r8b
je 0x14017646b
cmp byte [rcx], 0x2d
mov rax, rcx
jne 0x14017646b
cmp byte [rcx + 1], r8b
jne 0x14017646b
inc ebx
lea rax, [0x1402cccc7]
mov dword [0x1402c6054], ebx
mov qword [0x1402c7310], rax
cmp edi, 0xffffffff
je 0x14017643c
mov r9, r15
call fcn.140176090
sub ebx, edi
jmp 0x140176427
lea rax, [0x1402cccc7]
mov qword [0x1402c7310], rax
test r12d, r12d
je 0x14017644a
movsxd rax, ebx
inc ebx
mov dword [0x1402c6054], ebx
mov rcx, qword [r15 + rax*8]
mov eax, 1
mov qword [0x1402cd058], rcx
jmp 0x14017644d
lea rax, [0x1402cccc7]
mov qword [0x1402c7310], rax
cmp edi, 0xffffffff
je 0x140176431
mov r9, r15
call fcn.140176090
sub esi, edi
add ebx, esi
mov dword [0x1402c6054], ebx
jmp 0x14017643c
cmp esi, 0xffffffff
je 0x14017643c
mov dword [0x1402c6054], esi
or dword [0x1402c7308], 0xffffffff
or dword [0x1402c730c], 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
movsx edi, byte [rax]
mov esi, 0x3a
inc rax
mov qword [0x1402c7310], rax
cmp edi, esi
je 0x140176569
cmp edi, 0x2d
jne 0x140176493
cmp byte [rax], r8b
jne 0x140176576
mov edx, edi
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_strchr]
xor r8d, r8d
test rax, rax
je 0x14017654d
cmp byte [rax + 1], sil
je 0x1401764c2
mov rax, qword [0x1402c7310]
cmp byte [rax], r8b
jne 0x140176546
jmp 0x140176540
mov rcx, qword [0x1402c7310]
mov qword [0x1402cd058], r8
cmp byte [rcx], r8b
jne 0x14017652b
cmp byte [rax + 2], sil
je 0x140176532
mov eax, dword [0x1402c6054]
inc eax
mov dword [0x1402c6054], eax
cmp eax, r13d
jl 0x140176525
mov cl, byte [r14]
lea rax, [0x1402cccc7]
mov qword [0x1402c7310], rax
cmp cl, sil
je 0x140176515
mov rcx, qword [0x1402cf0c8]
mov edx, edi
call fcn.140175ff4
mov cl, byte [r14]
cmp cl, sil
mov eax, 0x3f
cmove eax, esi
jmp 0x14017644d
cdqe
mov rcx, qword [r15 + rax*8]
mov qword [0x1402cd058], rcx
lea rax, [0x1402cccc7]
mov qword [0x1402c7310], rax
inc dword [0x1402c6054]
mov eax, edi
jmp 0x14017644d
mov rax, qword [0x1402c7310]
cmp edi, 0x2d
jne 0x140176563
cmp byte [rax], r8b
jne 0x140176576
jmp 0x14017644a
mov ebx, dword [0x1402c6054]
cmp byte [rax], r8b
jne 0x140176576
inc ebx
mov dword [0x1402c6054], ebx
cmp byte [r14], sil
je 0x140176589
mov rcx, qword [0x1402cf0d8]
mov edx, edi
call fcn.140175ff4
mov eax, 0x3f
jmp 0x14017644d