Function at 0x140044850
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using base64
Encrypt data using speck
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, 0x658
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x5c0], xmm6
mov qword [rbp + 0x4e0], rcx
movzx eax, byte [rdx + 0xa0]
mov qword [rbp + 0x558], rdx
mov rdx, qword [rdx + 0x98]
test al, al
mov qword [rbp + 0x560], r8
jne 0x1400448bb
test rdx, rdx
jne 0x1400448bb
mov r12, r8
mov qword [rbp + 0x3f8], 0
lea rcx, [rbp + 0x400]
xor esi, esi
jmp 0x1400454b3
mov qword [rbp + 0x4c0], 0
mov qword [rbp + 0x4d0], 0
test al, al
jne 0x140044ac4
mov qword [rbp + 0x5b8], rdx
call sub.kernel32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140047a0f
lea rdi, [rbp + 0x4f0]
mov qword [rbp + 0x580], rax
mov r14, rax
nop
cmp word [r14], 0
je 0x140044ab1
mov r13, r14
mov r12, 0xffffffffffffffff
mov rcx, 0xfffffffffffffffe
nop dword [rax]
mov rax, rcx
cmp word [r13 + r12*2 + 2], 0
lea r12, [r12 + 1]
lea rcx, [rcx + 2]
jne 0x140044920
lea r14, [r12*2 + 2]
add r14, r13
cmp r12, 1
je 0x140044900
test r12, r12
je 0x14004794d
xor esi, esi
nop word cs:[rax + rax]
cmp word [r13 + rsi*2 + 2], 0x3d
je 0x140044980
inc rsi
add rax, 0xfffffffffffffffe
jne 0x140044960
jmp 0x140044900
lea r8, [rsi + 1]
cmp rsi, r12
jae 0x140047965
mov rcx, rdi
mov rdx, r13
call fcn.140020a10
add rsi, 2
mov r8, r12
sub r8, rsi
jb 0x14004797f
lea rdx, [rsi*2]
add rdx, r13
lea rcx, [rbp - 0x30]
call fcn.140020a10
mov rbx, qword [rbp + 0x4f0]
mov rsi, qword [rbp + 0x4f8]
movdqu xmm6, xmmword [rbp + 0x500]
mov r13, qword [rbp - 0x30]
mov r12, qword [rbp - 0x28]
lea rax, [rbp - 0x10]
invalid
invalid
movups xmm0, xmmword [rax - 0x10]
movaps xmmword [rbp + 0x590], xmm0
movabs rax, 0x8000000000000000
cmp rbx, rax
je 0x140044ab1
movq rax, xmm6
add rax, rsi
mov qword [rbp + 0x4f0], rsi
mov qword [rbp + 0x4f8], rax
mov word [rbp + 0x500], 0
lea r15, [rbp + 0x430]
mov rcx, r15
mov rdx, rdi
call fcn.140048050
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rsi
movdqu xmmword [rbp - 0x20], xmm6
mov rax, qword [rbp + 0x440]
lea rcx, [rbp - 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x430]
movups xmmword [rcx], xmm0
mov qword [rbp + 0x4f0], r13
mov qword [rbp + 0x4f8], r12
movaps xmm0, xmmword [rbp + 0x590]
lea rax, [rbp + 0x500]
movups xmmword [rax], xmm0
mov rcx, r15
lea rdx, [rbp + 0x4c0]
lea r8, [rbp - 0x30]
mov r9, rdi
call fcn.140048250
mov rax, qword [rbp + 0x430]
shl rax, 1
test rax, rax
je 0x140044900
mov rcx, qword [rbp + 0x438]
mov edx, 1
call fcn.14000b630
jmp 0x140044900
mov rcx, qword [rbp + 0x580]
call sub.kernel32.dll_FreeEnvironmentStringsW
mov rdx, qword [rbp + 0x5b8]
mov rcx, qword [rbp + 0x558]
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x90]
mov qword [rbp + 0x580], rcx
xor ecx, ecx
test rax, rax
setne cl
mov qword [rbp + 0x5b0], rcx
cmove rdx, rax
mov qword [rbp + 0x5b8], rdx
xor ecx, ecx
mov qword [rbp + 0x570], rcx
xor r13d, r13d
jmp 0x140044b12
lea r8, str.library_std_src_syspalwindowsos.rs
mov ecx, 1
xor edx, edx
call fcn.140006e90
jmp 0x140047aef
lea rax, str.library_std_src_syspalwindowsos.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400077d0
jmp 0x140047aef
lea r8, str.library_std_src_syspalwindowsos.rs
mov rcx, rsi
mov rdx, r12
call fcn.140006e90
jmp 0x140047aef
call sub.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, [0x14003fc70]
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_syspalwindowsos.rs
lea rcx, [rbp - 0x30]
call fcn.140006e50
jmp 0x140047aef