Function at 0x1401d597e
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, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rcx, rdx
call fcn.140222aa4
mov rcx, qword [rbx + 0x48]
mov qword [rbx + 0x48], rax
test rcx, rcx
je 0x1401d59d1
call fcn.1400fea50
mov r13, qword [rsi]
mov rcx, rdi
call fcn.140222aa4
mov r12, rax
xor ebp, ebp
cmp qword [r13 + 0xa0], 0
setne dil
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rsp + 0xd0], 0
mov rcx, qword [rsi]
call fcn.1401d57f0
test al, al
je 0x1401d5a94
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1401d5c82
mov r15, rax
mov qword [rsp + 0x60], r12
lea r8, [rsp + 0xb0]
mov qword [r8], 7
lea rax, str.Path
mov qword [r8 + 8], rax
lea r12, [rsp + 0xe0]
mov rcx, r12
mov rdx, r15
call fcn.1401d5d74
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xc0], xmm0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov dl, byte [rsp + 0xd7]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
jmp 0x1401d5a9f
mov qword [rsp + 0x60], r12
xor eax, eax
xor ecx, ecx
xor edx, edx
mov bpl, dil
shl ebp, 0x13
or ebp, 0x40c
mov qword [rsp + 0x58], rsi
mov r8, qword [rsi]
movzx edi, byte [r8 + 0x20]
xor r12d, r12d
lea r15, [rsp + 0x90]
mov qword [r15 + 0x10], r12
add r13, 0x38
test dl, dl
movzx edx, dl
cmovs rdx, rcx
movaps xmmword [r15], xmm6
lea rsi, [rsp + 0xc0]
cmovs rsi, rax
test rdx, rdx
cmove rsi, rdx
lea rcx, [rbx + 0x18]
call fcn.1400fd170
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r14
mov r12, qword [rsp + 0x60]
mov r8, r12
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1401d5c44
mov r15, qword [rsp + 0x188]
movabs rdi, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x10], rdi
movaps xmm6, xmmword [0x14026fe30]
movaps xmmword [r14], xmm6
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.1400f3d90
mov rax, qword [r14 + 8]
lea r14, [rsp + 0x68]
mov qword [r14], rax
lea rcx, [rbx + 0x20]
call fcn.1400fd170
mov rcx, r14
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x1401d5c60
mov rdx, qword [rsp + 0x78]
lea r14, [rsp + 0xe0]
mov qword [r14 + 0x10], rdi
movaps xmmword [r14], xmm6
mov rcx, r14
mov r8b, 1
xor r9d, r9d
call fcn.14015bf60
cmp byte [r14], 0
je 0x1401d5c89
lea r14, [rsp + 0xe8]
mov rcx, r14
call fcn.14015cb00
mov ebp, eax
cmp byte [r14 - 8], 0
je 0x1401d5be1
mov rcx, r14
call fcn.140055c40
test bpl, bpl
mov rsi, qword [rsp + 0x58]
jne 0x1401d5c8e
mov rcx, qword [rsp + 0x180]
lea rdx, [rsp + 0x70]
call fcn.1400f3fc0
test al, al
je 0x1401d5d0d
mov rcx, qword [rsp + 0x70]
call fcn.1401f28c2
mov qword [rbx + 0x40], rax
test rax, rax
je 0x1401d5d2d
lea rcx, [0x140000000]
cmp rax, rcx
je 0x1401d5d4d
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x41
jmp 0x1401d5ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x188]
mov dword [rcx], eax
mov ebx, reloc.WS2_32.dll_select
mov rsi, qword [rsp + 0x58]
jmp 0x1401d5cb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, reloc.WS2_32.dll_setsockopt
mov rsi, qword [rsp + 0x58]
jmp 0x1401d5ca7
mov ebx, 0x46
jmp 0x1401d5cc8
mov rsi, qword [rsp + 0x58]
mov dword [r15], 0x542
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, reloc.WS2_32.dll_setsockopt
lea rcx, [rsp + 0x70]
call fcn.1400f3f00
cmp byte [rsp + 0xd7], 0
jns 0x1401d5cc8
mov rcx, qword [rsp + 0xc0]
call fcn.1402021a8
test r12, r12
je 0x1401d5cd5
mov rcx, r12
call fcn.1400fea50
mov rcx, rsi
xor edx, edx
call fcn.1401d63d0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, reloc.WS2_32.dll_socket
jmp 0x1401d5ca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x2b
jmp 0x1401d5ca7
lea rcx, [rsp + 0x70]
lea r14, [rsp + 0xe0]
mov rdx, r14
call fcn.1400f4100
mov rcx, rbx
mov rdx, r14
call fcn.1400f3dc0
xor ebx, ebx
jmp 0x1401d5ca7