Function at 0x1800af120
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, 0x6b8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x620], xmm6
mov qword [rbp + 0x618], 0xfffffffffffffffe
mov byte [rbp + 0x458], r9b
mov qword [rbp + 0x540], r8
mov qword [rbp + 0x528], rcx
movzx eax, byte [rdx + 0xa0]
mov qword [rbp + 0x4d8], rdx
mov r8, qword [rdx + 0x98]
test r8, r8
setne cl
or cl, al
je 0x1800af320
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x418], 0
test al, al
jne 0x1800af34d
mov qword [rbp + 0x538], r8
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1800b33db
mov qword [rbp + 0x460], rax
lea rsi, [rbp + 0x468]
mov qword [rbp + 0x468], rax
lea r13, [rbp + 0x570]
lea rdi, [rbp - 0x30]
lea rbx, [rbp + 0x4e0]
lea r14, [rbp + 0x480]
lea r15, [rbp + 0x408]
lea r12, [rbp + 0x550]
nop word cs:[rax + rax]
mov rcx, rdi
mov rdx, rsi
call fcn.1800ade10
mov rcx, qword [rbp - 0x30]
mov rax, rcx
neg rax
jo 0x1800af339
mov qword [rbp + 0x5d8], rcx
mov rcx, qword [rbp - 0x28]
movups xmm6, xmmword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x608], rax
mov rax, qword [rbp - 8]
mov qword [rbp + 0x5e8], rax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp + 0x5c8], rcx
mov qword [rbp + 0x480], rcx
mov qword [rbp + 0x488], rax
mov word [rbp + 0x490], 0
mov rcx, rbx
mov rdx, r14
call fcn.1800a1340
mov rax, qword [rbp + 0x5d8]
mov qword [rbp + 0x550], rax
mov rax, qword [rbp + 0x5c8]
mov qword [rbp + 0x558], rax
movups xmmword [rbp + 0x560], xmm6
mov rax, qword [rbp + 0x4f0]
mov qword [r13 + 0x10], rax
movups xmm0, xmmword [rbp + 0x4e0]
movups xmmword [r13], xmm0
mov rax, qword [rbp + 0x608]
mov qword [rbp + 0x480], rax
mov rax, qword [rbp + 0x5e8]
mov qword [rbp + 0x488], rax
lea rax, [rbp]
movdqu xmm0, xmmword [rax]
lea rax, [rbp + 0x490]
movdqu xmmword [rax], xmm0
mov byte [rbp + 0x5c7], 0
mov rcx, rbx
mov rdx, r15
mov r8, r12
mov r9, r14
call fcn.18009d010
mov rdx, qword [rbp + 0x4e0]
lea rax, [rdx*2]
test rax, rax
je 0x1800af200
mov rcx, qword [rbp + 0x4e8]
mov r8d, 1
call fcn.180016d30
jmp 0x1800af200
mov qword [rbp + 0x3e0], 0
lea rdx, [rbp + 0x3e8]
xor ebx, ebx
jmp 0x1800afbbf
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov r8, qword [rbp + 0x538]
mov rcx, qword [rbp + 0x4d8]
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x90]
xor edx, edx
test rax, rax
setne dl
cmove r8, rax
mov qword [rbp + 0x4e0], rdx
mov qword [rbp + 0x4e8], 0
mov qword [rbp + 0x4f0], rax
mov qword [rbp + 0x4f8], rcx
mov qword [rbp + 0x500], rdx
mov qword [rbp + 0x508], 0
mov qword [rbp + 0x510], rax
mov qword [rbp + 0x518], rcx
mov qword [rbp + 0x520], r8
lea r14, [rbp + 0x4e0]
xor r12d, r12d
nop
mov rcx, r14
call fcn.18009a6c0
mov r15, rax
test rax, rax
je 0x1800af9e0
mov rbx, rdx
cmp r12, qword [rdx]
jno 0x1800af6c0
mov rbx, qword [rbp + 0x408]
test rbx, rbx
je 0x1800af3c0
mov r9, qword [r15 + 0x28]
mov rax, qword [r15 + 0x30]
mov r15, qword [rbp + 0x410]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x460]
mov rdx, rbx
mov r8, r15
call fcn.1800a0400
cmp dword [rbp + 0x460], 1
je 0x1800af3c0
mov rax, qword [rbp + 0x468]
mov rdx, qword [rbp + 0x470]
mov rcx, qword [rbp + 0x478]
mov byte [rbp + 0x448], 0
test rdx, rdx
je 0x1800af894
mov rcx, qword [rax + rcx*8 + 0x3d8]
mov rax, rdx
dec rax
je 0x1800af50e
mov r8, rax
and r8, 7
je 0x1800af47b
xor r9d, r9d
movzx r10d, word [rcx + 0x3d2]
mov rcx, qword [rcx + r10*8 + 0x3d8]
inc r9
cmp r8, r9
jne 0x1800af460
sub rax, r9
add rdx, 0xfffffffffffffffe
cmp rdx, 7
jb 0x1800af50e
nop dword [rax]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
movzx edx, word [rcx + 0x3d2]
mov rcx, qword [rcx + rdx*8 + 0x3d8]
add rax, 0xfffffffffffffff8
jne 0x1800af490
movzx eax, word [rcx + 0x3d2]
dec rax
mov qword [rbp + 0x428], rcx
mov qword [rbp + 0x430], 0
mov qword [rbp + 0x438], rax
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x428]
lea r8, [rbp + 0x448]
call fcn.18009f9d0
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x4d0], rax
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x4c0], xmm0
movdqu xmm0, xmmword [rbp - 0x30]
movdqu xmm1, xmmword [rbp - 0x20]
movdqu xmm2, xmmword [rbp - 0x10]
movdqu xmm3, xmmword [rbp]
movdqa xmmword [rbp + 0x4b0], xmm3
movdqa xmmword [rbp + 0x4a0], xmm2
movdqa xmmword [rbp + 0x490], xmm1
movdqa xmmword [rbp + 0x480], xmm0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x38]
movzx edx, word [rax + 0x3d2]
cmp rcx, rdx
jb 0x1800af5c7
nop word cs:[rax + rax]
movzx ecx, word [rax + 0x3d0]
mov rax, qword [rax + 0x160]
cmp cx, word [rax + 0x3d2]
jae 0x1800af5b0
imul rdx, rcx, 0x38
shl rcx, 5
mov r8, qword [rax + rdx + 0x198]
mov qword [rbp + 0x580], r8
movups xmm0, xmmword [rax + rdx + 0x168]
movups xmm1, xmmword [rax + rdx + 0x178]
movups xmm2, xmmword [rax + rdx + 0x188]
movaps xmmword [rbp + 0x570], xmm2
movaps xmmword [rbp + 0x560], xmm1
movaps xmmword [rbp + 0x550], xmm0
mov r8, qword [rbp + 0x4b0]
mov qword [rax + rdx + 0x198], r8
movaps xmm0, xmmword [rbp + 0x480]
movaps xmm1, xmmword [rbp + 0x490]
movaps xmm2, xmmword [rbp + 0x4a0]
movups xmmword [rax + rdx + 0x188], xmm2
movups xmmword [rax + rdx + 0x178], xmm1
movups xmmword [rax + rdx + 0x168], xmm0
movups xmm0, xmmword [rax + rcx]
movups xmm1, xmmword [rax + rcx + 0x10]
lea rdx, [rbp + 0x588]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rdx, [rbp + 0x4b8]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax + rcx], xmm0
movups xmmword [rax + rcx + 0x10], xmm1
movaps xmm0, xmmword [rbp + 0x550]
movaps xmm1, xmmword [rbp + 0x560]
movaps xmm2, xmmword [rbp + 0x570]
movaps xmm3, xmmword [rbp + 0x580]
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm2
movaps xmmword [rbp], xmm3
movdqa xmm0, xmmword [rbp + 0x590]
movdqa xmmword [rbp + 0x10], xmm0
mov rax, qword [rbp + 0x5a0]
mov qword [rbp + 0x20], rax
jmp 0x1800af8c4
mov r14, qword [r15 + 0x10]
test r14, r14
js 0x1800b32d4
mov rsi, qword [r15 + 8]
je 0x1800af6f6
movzx eax, byte [0x180213101]
mov edi, 1
mov edx, 1
mov rcx, r14
call fcn.180016d20
test rax, rax
jne 0x1800af6fb
jmp 0x1800b32d6
mov eax, 1
mov qword [rbp + 0x5e8], rax
mov rcx, rax
mov rdx, rsi
mov qword [rbp + 0x608], r14
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov r14, qword [r15 + 0x30]
lea rdi, [r14 + r14]
test r14, r14
js 0x1800b330e
mov r13d, 0
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
ja 0x1800b3311
movzx eax, byte [r15 + 0x18]
mov byte [rbp + 0x5d8], al
mov rsi, qword [r15 + 0x28]
test rdi, rdi
je 0x1800af77f
movzx eax, byte [0x180213101]
mov r13d, 2
mov edx, 2
mov rcx, rdi
call fcn.180016d20
mov r15, rax
mov r12, r14
test rax, rax
jne 0x1800af788
jmp 0x1800b3311
mov r15d, 2
xor r12d, r12d
mov rcx, r15
mov rdx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x608]
mov qword [rbp - 0x30], rax
mov rcx, qword [rbp + 0x5e8]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rax
movzx eax, byte [rbp + 0x5d8]
mov byte [rbp - 0x18], al
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r15
mov qword [rbp], r14
mov rsi, qword [rbx + 0x10]
test rsi, rsi
js 0x1800b32ed
mov rdi, qword [rbx + 8]
je 0x1800af800
movzx eax, byte [0x180213101]
mov r15d, 1
mov edx, 1
mov rcx, rsi
call fcn.180016d20
mov r13, rax
test rax, rax
jne 0x1800af806
jmp 0x1800b32f0
mov r13d, 1
mov rcx, r13
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbx + 0x18]
mov qword [rbp + 0x550], rsi
mov qword [rbp + 0x558], r13
mov qword [rbp + 0x560], rsi
mov byte [rbp + 0x568], al
mov byte [rbp + 0x5c6], 0
lea rcx, [rbp + 0x480]
lea rdx, [rbp + 0x408]
lea r8, [rbp - 0x30]
lea r9, [rbp + 0x550]
call fcn.18009d010
mov rdx, qword [rbp + 0x480]
lea rax, [rdx*2]
test rax, rax
lea r14, [rbp + 0x4e0]
mov r12d, 0
je 0x1800af3c0
mov rcx, qword [rbp + 0x488]
mov r8d, 1
call fcn.180016d30
jmp 0x1800af3c0
mov qword [rbp + 0x550], rax
mov qword [rbp + 0x558], 0
mov qword [rbp + 0x560], rcx
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x550]
lea r8, [rbp + 0x448]
call fcn.18009f9d0
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x5a0], rax
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x590], xmm0
movdqa xmm0, xmmword [rbp - 0x30]
movdqa xmm1, xmmword [rbp - 0x20]
movdqa xmm2, xmmword [rbp - 0x10]
movdqa xmm3, xmmword [rbp]
movdqa xmmword [rbp + 0x580], xmm3
movdqa xmmword [rbp + 0x570], xmm2
dec qword [rbp + 0x418]
movdqa xmmword [rbp + 0x560], xmm1
movdqa xmmword [rbp + 0x550], xmm0
cmp byte [rbp + 0x448], 0
je 0x1800af95d
test r15, r15
je 0x1800b3345
mov rax, qword [rbx + 0x3d8]
mov qword [rbp + 0x408], rax
dec r15
mov qword [rbp + 0x410], r15
mov qword [rax + 0x160], 0
mov edx, 0x438
mov r8d, 8
mov rcx, rbx
call fcn.180016d30
mov rdx, qword [rbp + 0x550]
mov rcx, qword [rbp + 0x558]
mov rdi, qword [rbp + 0x570]
mov rsi, qword [rbp + 0x578]
mov rbx, qword [rbp + 0x588]
mov r15, qword [rbp + 0x590]
mov rax, rdx
neg rax
jo 0x1800af3c0
jae 0x1800af9a0
mov r8d, 1
call fcn.180016d30
test rdi, rdi
je 0x1800af9b9
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.180016d30
lea rax, [rbx*2]
test rax, rax
je 0x1800af3c0
mov r8d, 1
mov rcx, r15
mov rdx, rbx
call fcn.180016d30
jmp 0x1800af3c0
movdqu xmm0, xmmword [rbp + 0x408]
movdqu xmmword [rbp + 0x3e8], xmm0
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x3e0], 1
movzx eax, byte [0x180213101]
mov ecx, 4
mov edx, 1
call fcn.180016d20
test rax, rax
je 0x1800b3362
mov dword [rax], 0x48544150
mov rcx, rax
add rcx, 4
mov qword [rbp + 0x550], rax
mov qword [rbp + 0x558], rcx
mov word [rbp + 0x560], 0
lea rcx, [rbp + 0x480]
lea rdx, [rbp + 0x550]
mov qword [rbp + 0x5d8], rax
call fcn.1800a1340
mov qword [rbp - 0x30], 4
mov rcx, qword [rbp + 0x5d8]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], 4
mov qword [rbp - 0x18], 0
movdqu xmm0, xmmword [rbp + 0x480]
movdqu xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x490]
mov qword [rbp], rax
mov rax, qword [rbp + 0x3e8]
mov rsi, qword [rbp - 8]
test rax, rax
je 0x1800afb8c
mov ebx, dword [rbp]
mov rcx, qword [rbp + 0x3f0]
mov qword [rbp + 0x608], rcx
mov r15, qword [sym.imp.kernel32.dll_CompareStringOrdinal]
lea rcx, [rax + 0x168]
movzx edx, word [rax + 0x3d2]
mov qword [rbp + 0x5c8], rdx
imul r13, rdx, 0x38
mov qword [rbp + 0x5e8], rax
lea rdi, [rax - 0x10]
mov r14, 0xffffffffffffffff
nop dword [rax + rax]
test r13, r13
je 0x1800afb40
lea r12, [rcx + 0x38]
mov r8, qword [rcx + 0x28]
mov r9d, dword [rcx + 0x30]
mov dword [rsp + 0x20], 1
mov rcx, rsi
mov edx, ebx
call r15
add r13, 0xffffffffffffffc8
add rdi, 0x20
inc r14
mov rcx, r12
cmp eax, 3
je 0x1800afb00
cmp eax, 1
jne 0x1800afb73
jmp 0x1800afb47
mov r14, qword [rbp + 0x5c8]
mov rax, qword [rbp + 0x608]
sub rax, 1
jb 0x1800b0030
mov qword [rbp + 0x608], rax
mov rax, qword [rbp + 0x5e8]
mov rax, qword [rax + r14*8 + 0x3d8]
jmp 0x1800afacd
cmp eax, 2
jne 0x1800b324e
mov rbx, qword [rdi - 8]
mov rdi, qword [rdi]
xor ebx, ebx
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x4e0], rax
lea rax, [rbp + 0x4e0]
mov qword [rbp + 0x480], rax
lea rax, [0x1800a48d0]
mov qword [rbp + 0x488], rax
lea rax, str.comparing_environment_keys_failed:
mov qword [rbp + 0x550], rax
mov qword [rbp + 0x558], 1
mov qword [rbp + 0x570], 0
lea rax, [rbp + 0x480]
mov qword [rbp + 0x560], rax
mov qword [rbp + 0x568], 1
lea rdx, str.std_src_syspalwindowsprocess.rs
lea rcx, [rbp + 0x550]
call fcn.18014cd20
jmp 0x1800b34d9
xor edi, edi
lea r8, str._rustc_59cec72a57af178767a7b8e7f624b06cc50f1087library_alloc_src_slice.rs
mov rcx, rdi
mov rdx, r14
call fcn.18014ca33
jmp 0x1800b34d9
xor r15d, r15d
mov byte [rbp + 0x5c6], 1
lea r8, str._rustc_59cec72a57af178767a7b8e7f624b06cc50f1087library_alloc_src_slice.rs
mov rcx, r15
mov rdx, rsi
call fcn.18014ca33
jmp 0x1800b34d9
xor r13d, r13d
lea r8, str._rustc_59cec72a57af178767a7b8e7f624b06cc50f1087library_alloc_src_slice.rs
mov rcx, r13
mov rdx, rdi
call fcn.18014ca33
jmp 0x1800b34d9
lea rcx, str.assertion_failed:_self.height___0
lea r8, str._rustc_59cec72a57af178767a7b8e7f624b06cc50f1087library_alloc_srccollections_btree_node.rsassertion_failed:_edge.height__self.height___1
mov edx, 0x21
call fcn.18014cdc0
jmp 0x1800b34d9
mov byte [rbp + 0x617], 1
lea r8, str._rustc_59cec72a57af178767a7b8e7f624b06cc50f1087library_alloc_src_slice.rs
mov ecx, 1
mov edx, 4
call fcn.18014ca33
jmp 0x1800b34d9
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x480], rax
lea rax, [rbp + 0x480]
mov qword [rbp + 0x550], rax
lea rax, [0x1800a48d0]
mov qword [rbp + 0x558], 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 + 0x550]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 1
lea rdx, str.std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x30]
call fcn.18014cd20
jmp 0x1800b34d9