Function at 0x18004de30
Capabilities:
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, 0x708
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x670], xmm6
mov qword [rbp + 0x668], 0xfffffffffffffffe
mov qword [rbp + 0x600], r8
mov r13, rdx
mov qword [rbp + 0x5e8], rcx
movzx eax, byte [rdx + 0xa0]
mov r14, qword [rdx + 0x98]
test al, al
mov qword [rbp + 0x550], rdx
jne 0x18004dea0
test r14, r14
jne 0x18004dea0
mov qword [rbp + 0x460], 0
xor r12d, r12d
jmp 0x18004eabb
mov qword [rbp + 0x560], 0
mov qword [rbp + 0x570], 0
test al, al
jne 0x18004e0dc
mov qword [rbp + 0x608], r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x180050cc2
lea r14, [rbp + 0x40]
lea rsi, [rbp + 0x580]
lea rdi, [rbp + 0x20]
mov qword [rbp + 0x630], rax
mov rbx, rax
nop dword [rax]
cmp word [rbx], 0
je 0x18004e0c1
mov r12, rbx
mov r15, 0xffffffffffffffff
mov rcx, 0xfffffffffffffffe
nop dword [rax + rax]
mov rax, rcx
cmp word [r12 + r15*2 + 2], 0
lea r15, [r15 + 1]
lea rcx, [rcx + 2]
jne 0x18004df10
lea rbx, [r12 + r15*2]
add rbx, 2
cmp r15, 1
je 0x18004def0
test r15, r15
je 0x180050c07
xor r13d, r13d
nop
cmp word [r12 + r13*2 + 2], 0x3d
je 0x18004df60
inc r13
add rax, 0xfffffffffffffffe
jne 0x18004df40
jmp 0x18004def0
lea r8, [r13 + 1]
cmp r13, r15
jae 0x180050c1f
mov rcx, rsi
mov rdx, r12
call fcn.1800474f0
add r13, 2
mov r8, r15
sub r8, r13
jb 0x180050c39
lea rdx, [r12 + r13*2]
mov rcx, rdi
call fcn.1800474f0
mov r9, qword [rbp + 0x580]
mov r8, qword [rbp + 0x588]
movdqu xmm6, xmmword [rbp + 0x590]
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [r14 - 0x10]
movaps xmmword [rbp + 0x610], xmm0
movabs rax, 0x8000000000000000
cmp r9, rax
je 0x18004e0c1
mov qword [rbp + 0x648], r9
mov qword [rbp + 0x658], rdx
mov qword [rbp + 0x640], rcx
movq rax, xmm6
add rax, r8
mov qword [rbp + 0x580], r8
mov qword [rbp + 0x588], rax
mov word [rbp + 0x590], 0
lea r15, [rbp + 0x4c0]
mov rcx, r15
mov rdx, rsi
mov qword [rbp + 0x5f8], r8
call fcn.180051e20
mov rax, qword [rbp + 0x648]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x5f8]
mov qword [rbp + 0x28], rax
movdqu xmmword [rbp + 0x30], xmm6
mov rax, qword [rbp + 0x4d0]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rbp + 0x4c0]
movups xmmword [r14], xmm0
mov rax, qword [rbp + 0x658]
mov qword [rbp + 0x580], rax
mov rax, qword [rbp + 0x640]
mov qword [rbp + 0x588], rax
movaps xmm0, xmmword [rbp + 0x610]
lea rax, [rbp + 0x590]
movups xmmword [rax], xmm0
mov byte [rbp + 0x63f], 0
mov rcx, r15
lea rdx, [rbp + 0x560]
mov r8, rdi
mov r9, rsi
call fcn.180052050
mov rax, qword [rbp + 0x4c0]
shl rax, 1
test rax, rax
je 0x18004def0
mov rcx, qword [rbp + 0x4c8]
mov edx, 1
call fcn.18001b8e0
jmp 0x18004def0
mov rcx, qword [rbp + 0x630]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r13, qword [rbp + 0x550]
mov r14, qword [rbp + 0x608]
mov rax, qword [r13 + 0x88]
mov r12, qword [r13 + 0x90]
xor ecx, ecx
test rax, rax
setne cl
mov qword [rbp + 0x648], rcx
cmove r14, rax
xor ecx, ecx
mov qword [rbp + 0x5f0], rcx
xor esi, esi
jmp 0x18004e112
lea r8, str.library_std_src_syspalwindowsos.rs
mov ecx, 1
xor edx, edx
call fcn.180069790
jmp 0x180050d7d
lea rax, str.library_std_src_syspalwindowsos.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.180069810
jmp 0x180050d7d
lea r8, str.library_std_src_syspalwindowsos.rs
mov rcx, r13
mov rdx, r15
call fcn.180069790
jmp 0x180050d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x4c0], rax
lea rax, [rbp + 0x4c0]
mov qword [rbp + 0x580], rax
lea rax, [0x180049a20]
mov qword [rbp + 0x588], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x580]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 1
lea rdx, str.library_std_src_syspalwindowsos.rs
lea rcx, [rbp + 0x20]
call fcn.180069750
jmp 0x180050d7d