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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, r8
mov rdi, rdx
mov rax, qword [rdx]
mov r10, qword [rax + 0x20]
mov dword [rbp - 0x59], 0x6f
mov ecx, 0x2b
mov word [rbp - 0x55], cx
lea r12d, [rcx - 0x21]
mov word [rbp - 0x53], r12w
lea eax, [rcx - 0x12]
mov word [rbp - 0x51], ax
lea eax, [rcx - 0x25]
mov word [rbp - 0x4f], ax
lea eax, [rcx - 0x1f]
mov word [rbp - 0x4d], ax
mov word [rbp - 0x4b], r12w
lea eax, [rcx - 5]
mov word [rbp - 0x49], ax
mov word [rbp - 0x47], cx
xor eax, eax
mov word [rbp - 0x45], ax
movzx eax, word [rbp - 0x55]
xor ebx, ebx
mov edx, ebx
lea r15d, [rcx - 0x2a]
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, 8
jb 0x1400f361c
mov word [rbp - 0x45], bx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
xor r8d, r8d
lea rdx, [rbp - 0x55]
mov rcx, rdi
call r10
mov r14d, eax
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rbp - 0x55]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rax, qword [rdi]
mov r10, qword [rax + 0x20]
mov dword [rbp - 0x69], 0xf
mov eax, 0x5c
mov word [rbp - 0x65], ax
mov eax, 0x66
mov word [rbp - 0x63], ax
mov eax, 0x75
mov word [rbp - 0x61], ax
mov eax, 0x6a
mov word [rbp - 0x5f], ax
xor eax, eax
mov word [rbp - 0x5d], ax
movzx eax, word [rbp - 0x65]
mov rdx, rbx
mov r13d, 4
movzx eax, word [rbp + rdx*2 - 0x65]
mov ecx, dword [rbp - 0x69]
xor cx, ax
mov word [rbp + rdx*2 - 0x65], cx
add rdx, r15
cmp rdx, r13
jb 0x1400f36ac
mov word [rbp - 0x5d], bx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x11]
xor r8d, r8d
lea rdx, [rbp - 0x65]
mov rcx, rdi
call r10
mov edi, eax
mov r8, r12
xor edx, edx
lea rcx, [rbp - 0x65]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
mov eax, 0x57
mov word [rbp - 0x41], ax
mov eax, 0x7d
mov word [rbp - 0x3f], ax
mov eax, 0x77
mov word [rbp - 0x3d], ax
mov eax, 0x78
mov word [rbp - 0x3b], ax
lea ecx, [rax - 0xf]
mov word [rbp - 0x39], cx
lea eax, [rcx + 8]
mov word [rbp - 0x37], ax
lea eax, [rcx - 0x21]
mov word [rbp - 0x35], ax
lea eax, [rcx + 0xd]
mov word [rbp - 0x33], ax
lea eax, [rcx + 4]
mov word [rbp - 0x31], ax
lea eax, [rcx + 0x11]
mov word [rbp - 0x2f], ax
mov word [rbp - 0x2d], cx
mov word [rbp - 0x2b], bx
movzx eax, word [rbp - 0x41]
mov rcx, rbx
movzx eax, word [rbp + rcx*2 - 0x41]
sub ax, r13w
mov word [rbp + rcx*2 - 0x41], ax
add rcx, r15
cmp rcx, 0xb
jb 0x1400f375c
mov r8d, 0x10
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edx, edx
lea r8d, [rdx + 0x18]
lea rcx, [rbp - 0x41]
call qword [sym.imp.VCRUNTIME140.dll_memset]
test r14d, r14d
js 0x1400f37fe
test edi, edi
js 0x1400f37fe
cmp word [rbp - 0x29], r15w
je 0x1400f37fe
cmp word [rbp - 0x11], r15w
je 0x1400f37fe
lea rdx, [rbp + 0xf]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x1400f37ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov r8d, r12d
xor edx, edx
mov rcx, qword [rbp - 9]
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 0x1400f37ea
mov qword [rsi], rdi
mov bl, r15b
lea rcx, [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov al, bl
lea r11, [rsp + 0xd0]
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
mov r8, qword [r8]
mov rdx, qword [rdx]
jmp 0x1400f3594