Function at 0x14012d730
Capabilities:
Create a process with modified i/o handles and window
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, 0x6b8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x620], xmm6
mov qword [rbp + 0x618], 0xfffffffffffffffe
mov byte [rbp + 0x440], r9b
mov qword [rbp + 0x5d0], r8
mov qword [rbp + 0x538], rcx
movzx eax, byte [rdx + 0xa0]
mov qword [rbp + 0x4a8], rdx
mov r8, qword [rdx + 0x98]
test al, al
jne 0x14012d7b0
test r8, r8
jne 0x14012d7b0
mov qword [rbp + 0x3e0], 0
lea rdx, [rbp + 0x3e8]
xor eax, eax
mov qword [rbp + 0x5e8], rax
jmp 0x14012e1ed
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x418], 0
test al, al
jne 0x14012d959
mov qword [rbp + 0x5e0], r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14013153e
mov qword [rbp + 0x4b0], rax
lea rsi, [rbp + 0x4b8]
mov qword [rbp + 0x4b8], rax
lea r13, [rbp + 0x570]
lea rdi, [rbp - 0x30]
lea rbx, [rbp + 0x4f0]
lea r14, [rbp + 0x450]
lea r15, [rbp + 0x408]
lea r12, [rbp + 0x550]
mov rcx, rdi
mov rdx, rsi
call fcn.14012b520
mov rcx, qword [rbp - 0x30]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x14012d945
mov qword [rbp + 0x5e8], rcx
mov rcx, qword [rbp - 0x28]
movups xmm6, xmmword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x5f8], rax
mov rax, qword [rbp - 8]
mov qword [rbp + 0x608], rax
mov rax, qword [rbp - 0x20]
add rax, rcx
mov qword [rbp + 0x5c0], rcx
mov qword [rbp + 0x450], rcx
mov qword [rbp + 0x458], rax
mov word [rbp + 0x460], 0
mov rcx, rbx
mov rdx, r14
call fcn.14011e5e0
mov rax, qword [rbp + 0x5e8]
mov qword [rbp + 0x550], rax
mov rax, qword [rbp + 0x5c0]
mov qword [rbp + 0x558], rax
movups xmmword [rbp + 0x560], xmm6
mov rax, qword [rbp + 0x500]
mov qword [r13 + 0x10], rax
movups xmm0, xmmword [rbp + 0x4f0]
movups xmmword [r13], xmm0
mov rax, qword [rbp + 0x5f8]
mov qword [rbp + 0x450], rax
mov rax, qword [rbp + 0x608]
mov qword [rbp + 0x458], rax
lea rax, [rbp]
movups xmm0, xmmword [rax]
lea rax, [rbp + 0x460]
movups xmmword [rax], xmm0
mov byte [rbp + 0x5df], 0
mov rcx, rbx
mov rdx, r15
mov r8, r12
mov r9, r14
call fcn.14011a520
mov rdx, qword [rbp + 0x4f0]
lea rax, [rdx*2]
test rax, rax
je 0x14012d820
mov rcx, qword [rbp + 0x4f8]
mov r8d, 1
call fcn.14000c650
jmp 0x14012d820
mov rcx, qword [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r8, qword [rbp + 0x5e0]
mov rcx, qword [rbp + 0x4a8]
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x90]
xor edx, edx
test rax, rax
cmove r8, rax
setne dl
mov qword [rbp + 0x4f0], rdx
mov qword [rbp + 0x4f8], 0
mov qword [rbp + 0x500], rax
mov qword [rbp + 0x508], rcx
mov qword [rbp + 0x510], rdx
mov qword [rbp + 0x518], 0
mov qword [rbp + 0x520], rax
mov qword [rbp + 0x528], rcx
mov qword [rbp + 0x530], r8
lea r14, [rbp + 0x4f0]
nop dword [rax + rax]
mov rcx, r14
call fcn.140118170
mov r15, rax
test rax, rax
je 0x14012dff7
mov rbx, rdx
movabs rax, 0x8000000000000000
cmp qword [rdx], rax
jne 0x14012dbd0
mov rbx, qword [rbp + 0x408]
test rbx, rbx
je 0x14012d9d0
mov r9, qword [r15 + 0x28]
mov rax, qword [r15 + 0x30]
mov r15, qword [rbp + 0x410]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x4b0]
mov rdx, rbx
mov r8, r15
call fcn.14011d930
cmp qword [rbp + 0x4b0], 0
jne 0x14012d9d0
mov rax, qword [rbp + 0x4b8]
mov rdx, qword [rbp + 0x4c0]
mov rcx, qword [rbp + 0x4c8]
mov byte [rbp + 0x428], 0
test rdx, rdx
je 0x14012dd85
mov rcx, qword [rax + rcx*8 + 0x3d8]
mov rax, rdx
dec rax
je 0x14012db2e
mov r8, rax
and r8, 7
je 0x14012da9b
xor r9d, r9d
nop dword [rax + rax]
movzx r10d, word [rcx + 0x3d2]
mov rcx, qword [rcx + r10*8 + 0x3d8]
inc r9
cmp r8, r9
jne 0x14012da80
sub rax, r9
add rdx, 0xfffffffffffffffe
cmp rdx, 7
jb 0x14012db2e
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 0x14012dab0
movzx eax, word [rcx + 0x3d2]
dec rax
mov qword [rbp + 0x4d0], rcx
mov qword [rbp + 0x4d8], 0
mov qword [rbp + 0x4e0], rax
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x4d0]
lea r8, [rbp + 0x428]
call fcn.14011cf00
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x4a0], rax
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x490], xmm0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movups xmm2, xmmword [rbp - 0x10]
movups xmm3, xmmword [rbp]
movaps xmmword [rbp + 0x480], xmm3
movaps xmmword [rbp + 0x470], xmm2
movaps xmmword [rbp + 0x460], xmm1
movaps xmmword [rbp + 0x450], xmm0
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x38]
movzx ecx, word [rdx + 0x3d2]
cmp rax, rcx
jae 0x14012ddba
mov rcx, rdx
jmp 0x14012dde9
mov rsi, qword [r15 + 8]
mov r14, qword [r15 + 0x10]
test r14, r14
je 0x14012dc06
js 0x140131453
movzx eax, byte [0x140202fc1]
mov edi, 1
mov edx, 1
mov rcx, r14
call fcn.14000c640
test rax, rax
jne 0x14012dc0b
jmp 0x140131455
mov eax, 1
mov qword [rbp + 0x608], rax
mov rcx, rax
mov rdx, rsi
mov qword [rbp + 0x5f8], r14
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
movzx r12d, byte [r15 + 0x18]
mov rsi, qword [r15 + 0x28]
mov r14, qword [r15 + 0x30]
test r14, r14
je 0x14012dc75
mov rax, r14
shr rax, 0x3e
lea rdi, [r14 + r14]
test rax, rax
jne 0x140131465
movzx eax, byte [0x140202fc1]
mov r13d, 2
mov edx, 2
mov rcx, rdi
call fcn.14000c640
test rax, rax
je 0x140131468
mov r15, rax
jmp 0x14012dc7d
mov r15d, 2
xor edi, edi
mov rcx, r15
mov rdx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x5f8]
mov qword [rbp - 0x30], rax
mov rcx, qword [rbp + 0x608]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], r12b
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov qword [rbp], r14
mov rdi, qword [rbx + 8]
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x14012dcf7
lea r14, [rbp + 0x4f0]
js 0x140131478
movzx eax, byte [0x140202fc1]
mov r13d, 1
mov edx, 1
mov rcx, rsi
call fcn.14000c640
test rax, rax
je 0x14013147b
mov r15, rax
jmp 0x14012dd04
mov r15d, 1
lea r14, [rbp + 0x4f0]
mov rcx, r15
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], r15
mov qword [rbp + 0x560], rsi
mov byte [rbp + 0x568], al
mov byte [rbp + 0x5de], 0
lea rcx, [rbp + 0x450]
lea rdx, [rbp + 0x408]
lea r8, [rbp - 0x30]
lea r9, [rbp + 0x550]
call fcn.14011a520
mov rdx, qword [rbp + 0x450]
lea rax, [rdx*2]
test rax, rax
je 0x14012d9d0
mov rcx, qword [rbp + 0x458]
mov r8d, 1
call fcn.14000c650
jmp 0x14012d9d0
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 + 0x428]
call fcn.14011cf00
jmp 0x14012ded9
mov r8, qword [rbp + 0x30]
nop
mov rcx, qword [rdx + 0x160]
test rcx, rcx
je 0x14012dde4
inc r8
movzx eax, word [rdx + 0x3d0]
mov rdx, rcx
cmp ax, word [rcx + 0x3d2]
jae 0x14012ddc0
jmp 0x14012dde9
mov rax, r8
xor ecx, ecx
imul rdx, rax, 0x38
shl rax, 5
mov r8, qword [rcx + rdx + 0x198]
mov qword [rbp + 0x580], r8
movups xmm0, xmmword [rcx + rdx + 0x168]
movups xmm1, xmmword [rcx + rdx + 0x178]
movups xmm2, xmmword [rcx + rdx + 0x188]
movaps xmmword [rbp + 0x570], xmm2
movaps xmmword [rbp + 0x560], xmm1
movaps xmmword [rbp + 0x550], xmm0
mov r8, qword [rbp + 0x480]
mov qword [rcx + rdx + 0x198], r8
movaps xmm0, xmmword [rbp + 0x450]
movaps xmm1, xmmword [rbp + 0x460]
movaps xmm2, xmmword [rbp + 0x470]
movups xmmword [rcx + rdx + 0x188], xmm2
movups xmmword [rcx + rdx + 0x178], xmm1
movups xmmword [rcx + rdx + 0x168], xmm0
movups xmm0, xmmword [rcx + rax]
movups xmm1, xmmword [rcx + rax + 0x10]
lea rdx, [rbp + 0x588]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rdx, [rbp + 0x488]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + rax], xmm0
movups xmmword [rcx + rax + 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
movaps xmm0, xmmword [rbp + 0x590]
movaps xmmword [rbp + 0x10], xmm0
mov rax, qword [rbp + 0x5a0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x5a0], rax
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x590], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
movaps xmm2, xmmword [rbp - 0x10]
movaps xmm3, xmmword [rbp]
movaps xmmword [rbp + 0x580], xmm3
movaps xmmword [rbp + 0x570], xmm2
dec qword [rbp + 0x418]
movaps xmmword [rbp + 0x560], xmm1
movaps xmmword [rbp + 0x550], xmm0
cmp byte [rbp + 0x428], 0
je 0x14012df6a
test r15, r15
je 0x1401314af
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.14000c650
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]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x14012d9d0
test rdx, rdx
je 0x14012dfb7
mov r8d, 1
call fcn.14000c650
test rdi, rdi
je 0x14012dfd0
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000c650
lea rax, [rbx*2]
test rax, rax
je 0x14012d9d0
mov r8d, 1
mov rcx, r15
mov rdx, rbx
call fcn.14000c650
jmp 0x14012d9d0
movups xmm0, xmmword [rbp + 0x408]
movups xmmword [rbp + 0x3e8], xmm0
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x3e0], 1
movzx eax, byte [0x140202fc1]
mov ecx, 4
mov edx, 1
call fcn.14000c640
test rax, rax
je 0x1401314e9
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 + 0x450]
lea rdx, [rbp + 0x550]
mov qword [rbp + 0x5c0], rax
call fcn.14011e5e0
mov qword [rbp - 0x30], 4
mov rcx, qword [rbp + 0x5c0]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], 4
mov qword [rbp - 0x18], 0
movups xmm0, xmmword [rbp + 0x450]
movups xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x460]
mov qword [rbp], rax
mov rdx, qword [rbp + 0x3e8]
mov rsi, qword [rbp - 8]
test rdx, rdx
je 0x14012e1b3
mov ebx, dword [rbp]
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x5f8], rax
xor eax, eax
mov qword [rbp + 0x5e8], rax
mov r15, qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
lea rcx, [rdx + 0x168]
movzx eax, word [rdx + 0x3d2]
mov qword [rbp + 0x5e0], rax
imul r13, rax, 0x38
mov qword [rbp + 0x608], rdx
lea r14, [rdx - 0x10]
mov rdi, 0xffffffffffffffff
nop word cs:[rax + rax]
test r13, r13
je 0x14012e160
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 r14, 0x20
inc rdi
mov rcx, r12
cmp eax, 3
je 0x14012e120
cmp eax, 1
jne 0x14012e193
jmp 0x14012e167
mov rdi, qword [rbp + 0x5e0]
mov rax, qword [rbp + 0x5f8]
sub rax, 1
jb 0x14012e6ff
mov qword [rbp + 0x5f8], rax
mov rdx, qword [rbp + 0x608]
mov rdx, qword [rdx + rdi*8 + 0x3d8]
jmp 0x14012e0e9
cmp eax, 2
jne 0x1401313cd
mov rax, qword [r14 - 8]
mov qword [rbp + 0x5e8], rax
mov rdi, qword [r14]
mov rcx, qword [rbp + 0x5c0]
jmp 0x14012e1bc
xor eax, eax
mov qword [rbp + 0x5e8], rax
mov edx, 4
mov r8d, 1
call fcn.14000c650
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x14012e1e6
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.14000c650
lea rdx, [rbp + 0x3e8]
mov rcx, qword [rbp + 0x4a8]
mov r15, qword [rcx + 0x10]
lea rbx, str.program_path_has_no_file_name
test r15, r15
mov rax, qword [rbp + 0x5d0]
je 0x14012e56d
mov r8, qword [rcx + 8]
cmp r15, 4
mov qword [rbp + 0x5e0], rdx
jae 0x14012e229
lea rax, [0x140135a80]
jmp 0x14012e252
mov eax, dword [r8]
bswap eax
xor ecx, ecx
cmp eax, 0x5c5c3f5c
setb cl
cmp eax, 0x5c5c3f5d
adc ecx, 0xffffffff
lea rcx, [0x140135aa0]
lea rax, [0x140135a80]
cmove rax, rcx
mov qword [rbp + 0x5c0], r8
movzx esi, byte [r15 + r8 - 1]
mov byte [rbp + 0x617], 1
mov ecx, esi
call rax
test al, al
mov rax, qword [rbp + 0x5d0]
jne 0x14012e56d
mov rbx, qword [rbp + 0x5c0]
lea r14, [rbx + r15]
cmp r15, 3
mov qword [rbp + 0x5f8], r15
jbe 0x14012e2ee
movzx eax, byte [r14 - 4]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x2e
jne 0x14012e30c
movzx eax, byte [r14 - 3]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x65
jne 0x14012e30c
movzx eax, byte [r14 - 2]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x78
jne 0x14012e30c
lea eax, [rsi - 0x41]
cmp al, 0x1a
setb al
shl al, 5
or al, sil
cmp al, 0x65
sete al
jmp 0x14012e30e
xor eax, eax
cmp r15, rax
je 0x14012e486
movzx ecx, byte [rbx + rax]
cmp ecx, 0x2f
je 0x14012e379
inc rax
cmp ecx, 0x5c
jne 0x14012e2f0
jmp 0x14012e379
xor eax, eax
xor ecx, ecx
cmp r15, rcx
je 0x14012e486
movzx edx, byte [rbx + rcx]
cmp edx, 0x2f
je 0x14012e32a
inc rcx
cmp edx, 0x5c
jne 0x14012e310
test al, al
je 0x14012e379
mov qword [rbp + 0x5c8], r14
mov byte [rbp + 0x617], 1
test r15, r15
js 0x1401315b2
movzx eax, byte [0x140202fc1]
xor r8d, r8d
lea r11, str.nul_byte_found_in_provided_data
jmp 0x14012e1aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x4f0], rax
lea rax, [rbp + 0x4f0]
mov qword [rbp + 0x450], rax
lea rax, [fcn.140120c30]
mov qword [rbp + 0x458], 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 + 0x450]
mov qword [rbp + 0x560], rax
mov qword [rbp + 0x568], 1
lea rdx, str.library_std_src_syspalwindowsprocess.rs
lea rcx, [rbp + 0x550]
call fcn.140158f90
jmp 0x14013163d
xor edi, edi
mov rcx, rdi
mov rdx, r14
call fcn.140158d20
jmp 0x14013163d
xor r13d, r13d
mov rcx, r13
mov rdx, rdi
call fcn.140158d20
jmp 0x14013163d
xor r13d, r13d
mov byte [rbp + 0x5de], 1
mov rcx, r13
mov rdx, rsi
call fcn.140158d20
jmp 0x14013163d
lea rcx, str.assertion_failed:_self.height___0
lea r8, str._rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_srccollections_btree_node.rsassertion_failed:_edge.height__self.height___1
mov edx, 0x21
call fcn.140159030
jmp 0x14013163d
mov byte [rbp + 0x617], 1
mov ecx, 1
mov edx, 4
call fcn.140158d20
jmp 0x14013163d
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x450], rax
lea rax, [rbp + 0x450]
mov qword [rbp + 0x550], rax
lea rax, [fcn.140120c30]
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.library_std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x30]
call fcn.140158f90
jmp 0x14013163d
xor esi, esi