Function at 0x140101206
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm7
movaps xmmword [rsp + 0x120], xmm6
mov r15, r9
mov rdi, r8
mov r14, rdx
mov r13, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rcx, rdx
call fcn.14016d0d8
mov rdx, qword [r13 + 0x48]
mov qword [r13 + 0x48], rax
test rdx, rdx
je 0x14010126b
lea rcx, fcn.1400b5400
xor r8d, r8d
call fcn.1400b8f60
mov rbp, qword [r15]
mov rcx, rdi
call fcn.14016d0d8
xor esi, esi
cmp qword [rbp + 0xa0], 0
mov r12, rax
setne dil
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rsp + 0xd0], 0
mov r8, qword [r15]
cmp byte [r8 + 0x21], 0
je 0x140101503
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140101649
mov byte [rsp + 0x67], dil
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r15
xorps xmm7, xmm7
movaps xmmword [rsp + 0xa0], xmm7
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x68], rax
movzx eax, word [rax]
test ax, ax
je 0x14010148c
lea r12, [rsp + 0x100]
lea rbx, [rsp + 0xe0]
lea r15, str.Path
mov rbp, qword [rsp + 0x68]
mov r14, rbp
movaps xmmword [rsp + 0xe0], xmm7
mov qword [rsp + 0xf0], 0
xor edi, edi
test ax, ax
je 0x14010135b
movzx eax, ax
cmp eax, 0x3d
je 0x14010135b
movzx eax, word [r14 + rdi*2 + 2]
inc rdi
add rbp, 2
jmp 0x14010133f
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.14002bd84
cmp byte [rsp + 0xf7], 0
jns 0x140101380
mov rcx, qword [rsp + 0xe0]
call fcn.140150da4
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xf0], rax
movups xmm0, xmmword [rsp + 0x100]
movaps xmmword [rsp + 0xe0], xmm0
inc rdi
cmp word [rbp], 0
lea rbp, [rbp + 2]
jne 0x1401013a0
movzx eax, byte [rsp + 0xf7]
test al, al
mov rcx, rax
cmovs rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
cmovns rdx, rbx
test rcx, rcx
js 0x1401017c0
je 0x1401013e4
test rdx, rdx
je 0x1401017c3
xor r9d, r9d
cmp qword [r9 + r15 + 8], rcx
jne 0x140101413
lea r8, [r15 + r9]
test rcx, rcx
je 0x140101424
mov r10, qword [r8]
xor r11d, r11d
movzx r13d, word [r10 + r11*2]
cmp r13w, word [rdx + r11*2]
jne 0x140101413
inc r11
cmp rcx, r11
jne 0x1401013fd
jmp 0x140101424
add r9, 0x10
cmp r9, 0x70
jne 0x1401013e7
lea r8, str.Path
mov rcx, r8
sub rcx, r15
sar rcx, 4
test rcx, rcx
jle 0x14010144b
cmp rcx, 8
jae 0x1401017c6
lea rcx, str.Path
cmp r8, rcx
jne 0x140101454
jmp 0x14010146e
cmp r8, r15
jne 0x1401017c9
lea rcx, [rsp + 0xa0]
mov rdx, r14
mov r8, rdi
call fcn.140051072
mov al, byte [rsp + 0xf7]
test al, al
jns 0x14010147f
mov rcx, qword [rsp + 0xe0]
call fcn.140150da4
movzx eax, word [rbp]
test ax, ax
jne 0x140101326
lea rdi, [rsp + 0xa0]
mov rcx, rdi
xor edx, edx
call fcn.140051400
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xc0], xmm0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov dl, byte [rsp + 0xd7]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x90]
mov r8, qword [r15]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov dil, byte [rsp + 0x67]
jmp 0x140101509
xor eax, eax
xor ecx, ecx
xor edx, edx
mov rbx, qword [rsp + 0x1b8]
mov sil, dil
shl esi, 0x13
or esi, 0x40c
movzx r8d, byte [r8 + 0x20]
xor r9d, r9d
lea r10, [rsp + 0x100]
mov qword [r10 + 0x10], r9
add rbp, 0x38
test dl, dl
movzx edx, dl
cmovs rdx, rcx
movaps xmmword [r10], xmm6
lea r11, [rsp + 0xc0]
cmovs r11, rax
test rdx, rdx
cmove r11, rdx
mov rcx, qword [r13 + 0x18]
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
mov rdx, r14
mov r8, r12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14010163a
xorps xmm0, xmm0
lea rdi, [rsp + 0xe0]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.140100d00
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x98]
mov qword [rcx], rax
mov rdx, qword [r13 + 0x20]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x140101650
mov rdx, qword [rsp + 0xe8]
movaps xmm0, xmmword [0x1401990c0]
lea rdi, [rsp + 0xa0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.1400e5030
cmp byte [rdi + 8], 0
je 0x140101632
lea r14, [rsp + 0xa0]
mov rcx, r14
call fcn.1400e5d60
mov edi, eax
cmp byte [r14 + 8], 0
je 0x140101629
lea rcx, [rsp + 0xa0]
call fcn.140028a50
test dil, dil
je 0x1401016fd
mov dword [rbx], 0x542
jmp 0x140101658
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov edi, 0x12
jmp 0x14010167a
mov edi, 0x46
jmp 0x140101691
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
lea rcx, [rsp + 0xe0]
call fcn.140100e40
cmp byte [rsp + 0xd7], 0
jns 0x140101691
mov rcx, qword [rsp + 0xc0]
call fcn.140150da4
test r12, r12
je 0x1401016a8
lea rcx, fcn.1400b5400
mov rdx, r12
xor r8d, r8d
call fcn.1400b8f60
mov rbx, qword [r15]
mov qword [r15], 0
test rbx, rbx
je 0x1401016c7
mov rcx, rbx
call fcn.1401004f8
mov rcx, rbx
call fcn.140150da4
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140152280
mov eax, edi
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x1b0]
lea rdx, [rsp + 0xe0]
call fcn.140100ee0
test al, al
je 0x140101752
mov rcx, qword [rsp + 0xe0]
call fcn.1401231a0
mov qword [r13 + 0x40], rax
test rax, rax
je 0x140101774
lea rcx, [0x140000000]
cmp rax, rcx
je 0x140101796
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x14010166d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x14010166d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x14010166d
lea rcx, [rsp + 0xe0]
lea rdi, [rsp + 0xa0]
mov rdx, rdi
call fcn.140101020
mov rcx, r13
mov rdx, rdi
call fcn.140100d00
xor edi, edi
jmp 0x14010166d
int3
int3
int3
int3