Function at 0x140082040
Capabilities:
Create process on windows
Encode data using base64
Get common file path
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x668
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x5d0], xmm6
mov qword [rbp + 0x5c8], 0xfffffffffffffffe
mov byte [rbp + 0x428], r9b
mov qword [rbp + 0x4d8], rcx
mov r15, qword [rdx + 0x60]
movzx eax, byte [rdx + 0x68]
test al, al
mov qword [rbp + 0x5a0], r8
mov qword [rbp + 0x588], rdx
jne 0x1400820b1
test r15, r15
jne 0x1400820b1
mov r13, r8
mov qword [rbp + 0x3f0], 0
xor r12d, r12d
jmp 0x140082e28
mov qword [rbp + 0x4c0], 0
mov qword [rbp + 0x4d0], 0
test al, al
jne 0x14008230f
mov qword [rbp + 0x598], r15
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140085878
lea r15, [rbp - 0x18]
lea rdi, [rbp + 0x560]
lea rbx, [rbp + 0x430]
mov qword [rbp + 0x5a8], rax
mov r14, rax
nop word cs:[rax + rax]
cmp word [r14], 0
je 0x1400822f4
mov r13, r14
mov rcx, 0xfffffffffffffffe
xor edx, edx
nop word [rax + rax]
mov r12, rdx
mov rax, rcx
inc rdx
add rcx, 2
cmp word [r13 + r12*2], 0
jne 0x140082130
lea r14, [rdx*2]
add r14, r13
cmp r12, 1
je 0x140082110
test r12, r12
je 0x1400857bd
xor esi, esi
nop word cs:[rax + rax]
cmp word [r13 + rsi*2 + 2], 0x3d
je 0x140082190
inc rsi
add rax, 0xfffffffffffffffe
jne 0x140082170
jmp 0x140082110
lea r8, [rsi + 1]
cmp rsi, r12
jae 0x1400857d5
mov rcx, rdi
mov rdx, r13
call fcn.1400792e0
add rsi, 2
mov r8, r12
sub r8, rsi
jb 0x1400857ef
lea rdx, [rsi*2]
add rdx, r13
mov rcx, rbx
call fcn.1400792e0
movups xmm0, xmmword [rbp + 0x560]
movups xmm1, xmmword [rbp + 0x570]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp + 0x430]
movups xmm1, xmmword [rbp + 0x440]
movups xmmword [r15 + 0x18], xmm1
movups xmmword [r15 + 8], xmm0
movdqa xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
movaps xmm2, xmmword [rbp - 0x10]
movaps xmm3, xmmword [rbp]
movdqa xmmword [rbp + 0x4f0], xmm0
movaps xmmword [rbp + 0x500], xmm1
movaps xmmword [rbp + 0x510], xmm2
movaps xmmword [rbp + 0x520], xmm3
cmp byte [rbp + 0x508], 2
je 0x1400822f4
mov rcx, qword [rbp + 0x4f0]
mov rax, qword [rbp + 0x500]
add rax, rcx
mov qword [rbp + 0x5b8], rcx
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x438], rax
mov word [rbp + 0x440], 0
mov rcx, rdi
mov rdx, rbx
call fcn.140086aa0
movaps xmm0, xmmword [rbp + 0x4f0]
movaps xmm1, xmmword [rbp + 0x500]
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
movdqu xmm0, xmmword [rbp + 0x560]
movdqa xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp + 0x570]
mov qword [rbp - 0x20], rax
mov byte [rbp + 0x597], 0
mov rcx, rbx
lea rdx, [rbp + 0x4c0]
lea r8, [rbp - 0x30]
lea r9, [rbp + 0x510]
call fcn.140086ce0
cmp byte [rbp + 0x448], 2
je 0x140082110
cmp qword [rbp + 0x438], 0
je 0x140082110
mov r8, qword [rbp + 0x430]
mov rcx, qword [0x1400f0220]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140082110
mov rcx, qword [rbp + 0x5a8]
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rdx, qword [rbp + 0x588]
mov r15, qword [rbp + 0x598]
mov rax, qword [rdx + 0x50]
mov r8, qword [rdx + 0x58]
xor r13d, r13d
test rax, rax
setne r13b
cmove r15, rax
xor ebx, ebx
jmp 0x140082339
lea r8, str.library_std_src_syswindowsos.rs
mov ecx, 1
xor edx, edx
call fcn.1400a43b0
jmp 0x1400859a5
lea rax, str.library_std_src_syswindowsos.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400a44b0
jmp 0x1400859a5
lea r8, str.library_std_src_syswindowsos.rs
mov rcx, rsi
mov rdx, r12
call fcn.1400a43b0
jmp 0x1400859a5
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x430], rax
lea rax, [rbp + 0x430]
mov qword [rbp + 0x4f0], rax
lea rax, [0x14007ba20]
mov qword [rbp + 0x4f8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x10], 0
lea rax, [rbp + 0x4f0]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rbp - 0x30]
call fcn.1400a4370
jmp 0x1400859a5