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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14, r8
mov rdi, rdx
mov rax, qword [rdx]
mov r10, qword [rax + 0x20]
mov dword [rbp - 0x2d], 0x5a
mov edx, 0x1e
mov word [rbp - 0x29], dx
lea ecx, [rdx + 0x21]
mov word [rbp - 0x27], cx
lea eax, [rdx + 0xe]
mov word [rbp - 0x25], ax
lea eax, [rdx + 0x15]
mov word [rbp - 0x23], ax
lea eax, [rdx + 0x1b]
mov word [rbp - 0x21], ax
mov word [rbp - 0x1f], cx
lea eax, [rdx - 0xb]
mov word [rbp - 0x1d], ax
mov word [rbp - 0x1b], dx
xor eax, eax
mov word [rbp - 0x19], ax
movzx eax, word [rbp - 0x29]
xor ebx, ebx
mov edx, ebx
lea r15d, [rcx - 0x3e]
movzx eax, word [rbp + rdx*2 - 0x29]
mov ecx, dword [rbp - 0x2d]
xor cx, ax
mov word [rbp + rdx*2 - 0x29], cx
add rdx, r15
cmp rdx, 8
jb 0x1800c3a71
mov word [rbp - 0x19], bx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x11]
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rdi
call r10
mov esi, eax
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rbp - 0x29]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rax, qword [rdi]
mov r10, qword [rax + 0x20]
mov dword [rbp - 0x59], 0x52
mov word [rbp - 0x55], r15w
mov eax, 0x3b
mov word [rbp - 0x53], ax
mov eax, 0x28
mov word [rbp - 0x51], ax
mov eax, 0x37
mov word [rbp - 0x4f], ax
xor eax, eax
mov word [rbp - 0x4d], ax
movzx eax, word [rbp - 0x55]
mov rdx, rbx
movzx eax, word [rbp + rdx*2 - 0x55]
mov ecx, dword [rbp - 0x59]
xor cx, ax
mov word [rbp + rdx*2 - 0x55], cx
add rdx, r15
cmp rdx, 4
jb 0x1800c3af6
mov word [rbp - 0x4d], bx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 7]
xor r8d, r8d
lea rdx, [rbp - 0x55]
mov rcx, rdi
call r10
mov edi, eax
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x55]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
mov dword [rbp - 0x49], 0x1f
mov eax, 0x4c
mov word [rbp - 0x45], ax
mov eax, 0x66
mov word [rbp - 0x43], ax
mov eax, 0x6c
mov word [rbp - 0x41], ax
mov eax, 0x6b
mov word [rbp - 0x3f], ax
lea ecx, [rax + 0xf]
mov word [rbp - 0x3d], cx
lea eax, [rcx - 8]
mov word [rbp - 0x3b], ax
lea eax, [rcx - 0x1f]
mov word [rbp - 0x39], ax
lea eax, [rcx - 0xd]
mov word [rbp - 0x37], ax
lea eax, [rcx - 4]
mov word [rbp - 0x35], ax
lea eax, [rcx - 0x11]
mov word [rbp - 0x33], ax
mov word [rbp - 0x31], cx
xor eax, eax
mov word [rbp - 0x2f], ax
movzx eax, word [rbp - 0x45]
mov rdx, rbx
movzx eax, word [rbp + rdx*2 - 0x45]
mov ecx, dword [rbp - 0x49]
xor cx, ax
mov word [rbp + rdx*2 - 0x45], cx
add rdx, r15
cmp rdx, 0xb
jb 0x1800c3bb1
mov word [rbp - 0x2f], bx
mov r8d, 0x10
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x45]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rbp - 0x45]
call qword [sym.imp.VCRUNTIME140.dll_memset]
test esi, esi
js 0x1800c3c59
test edi, edi
js 0x1800c3c59
cmp word [rbp - 0x11], r15w
je 0x1800c3c59
cmp word [rbp + 7], r15w
je 0x1800c3c59
lea rdx, [rbp + 0x27]
mov rcx, qword [rbp - 9]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x1800c3c45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoui64]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], ebx
jne 0x1800c3c45
mov qword [r14], rdi
mov bl, r15b
lea rcx, [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, bl
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r8, qword [r8]
mov rdx, qword [rdx]
jmp 0x1800c39f0