Function at 0x140100798
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 [0x1401c1028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rcx, rdx
call fcn.140167698
mov rdx, qword [r13 + 0x48]
mov qword [r13 + 0x48], rax
test rdx, rdx
je 0x1401007fd
lea rcx, fcn.1400b67d0
xor r8d, r8d
call fcn.1400ba310
mov rbp, qword [r15]
mov rcx, rdi
call fcn.140167698
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 0x140100a95
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140100bdb
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 0x140100a1e
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 0x1401008ed
movzx eax, ax
cmp eax, 0x3d
je 0x1401008ed
movzx eax, word [r14 + rdi*2 + 2]
inc rdi
add rbp, 2
jmp 0x1401008d1
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.14002bae4
cmp byte [rsp + 0xf7], 0
jns 0x140100912
mov rcx, qword [rsp + 0xe0]
call fcn.14014b4e4
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 0x140100932
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 0x140100d52
je 0x140100976
test rdx, rdx
je 0x140100d55
xor r9d, r9d
cmp qword [r9 + r15 + 8], rcx
jne 0x1401009a5
lea r8, [r15 + r9]
test rcx, rcx
je 0x1401009b6
mov r10, qword [r8]
xor r11d, r11d
movzx r13d, word [r10 + r11*2]
cmp r13w, word [rdx + r11*2]
jne 0x1401009a5
inc r11
cmp rcx, r11
jne 0x14010098f
jmp 0x1401009b6
add r9, 0x10
cmp r9, 0x70
jne 0x140100979
lea r8, str.Path
mov rcx, r8
sub rcx, r15
sar rcx, 4
test rcx, rcx
jle 0x1401009dd
cmp rcx, 8
jae 0x140100d58
lea rcx, str.Path
cmp r8, rcx
jne 0x1401009e6
jmp 0x140100a00
cmp r8, r15
jne 0x140100d5b
lea rcx, [rsp + 0xa0]
mov rdx, r14
mov r8, rdi
call fcn.140050e52
mov al, byte [rsp + 0xf7]
test al, al
jns 0x140100a11
mov rcx, qword [rsp + 0xe0]
call fcn.14014b4e4
movzx eax, word [rbp]
test ax, ax
jne 0x1401008b8
lea rdi, [rsp + 0xa0]
mov rcx, rdi
xor edx, edx
call fcn.1400511e0
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 0x140100a9b
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 0x140100bcc
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.140100340
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 0x140100be2
mov rdx, qword [rsp + 0xe8]
movaps xmm0, xmmword [0x1401940a0]
lea rdi, [rsp + 0xa0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.1400e4b50
cmp byte [rdi + 8], 0
je 0x140100bc4
lea r14, [rsp + 0xa0]
mov rcx, r14
call fcn.1400e58c0
mov edi, eax
cmp byte [r14 + 8], 0
je 0x140100bbb
lea rcx, [rsp + 0xa0]
call fcn.140028790
test dil, dil
je 0x140100c8f
mov dword [rbx], 0x542
jmp 0x140100bea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov edi, 0x12
jmp 0x140100c0c
mov edi, 0x46
jmp 0x140100c23
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.1401003e0
cmp byte [rsp + 0xd7], 0
jns 0x140100c23
mov rcx, qword [rsp + 0xc0]
call fcn.14014b4e4
test r12, r12
je 0x140100c3a
lea rcx, fcn.1400b67d0
mov rdx, r12
xor r8d, r8d
call fcn.1400ba310
mov rbx, qword [r15]
mov qword [r15], 0
test rbx, rbx
je 0x140100c59
mov rcx, rbx
call fcn.1400ffb90
mov rcx, rbx
call fcn.14014b4e4
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14014c9b0
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.140100480
test al, al
je 0x140100ce4
mov rcx, qword [rsp + 0xe0]
call fcn.140120386
mov qword [r13 + 0x40], rax
test rax, rax
je 0x140100d06
lea rcx, [0x140000000]
cmp rax, rcx
je 0x140100d28
mov rcx, qword [rsp + 0xe0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x140100bff
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 0x140100bff
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 0x140100bff
lea rcx, [rsp + 0xe0]
lea rdi, [rsp + 0xa0]
mov rdx, rdi
call fcn.140100580
mov rcx, r13
mov rdx, rdi
call fcn.140100340
xor edi, edi
jmp 0x140100bff
int3
int3
int3
int3