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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x80]
test r9, r9
mov qword [rbp + 0x30], rcx
mov r14d, edx
mov rdi, r8
mov r15, r9
je 0x402c4d
cmp qword [r9], 0
je 0x402c4d
mov esi, 1
jmp 0x402723
mov rsi, rax
lea rax, [rsi + 1]
lea r8, [rsi*8]
cmp qword [r15 + rax*8 - 8], 0
jne 0x402720
lea rax, [r8 + 0x1e]
and rax, 0xfffffffffffffff0
call fcn.00405f40
mov r12d, 1
sub rsp, rax
mov rdx, r15
lea rbx, [rsp + 0x50]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
lea r9, [0x00402660]
mov rdx, rsi
mov r8d, 8
mov rcx, rbx
call sub.msvcrt.dll_qsort
lea eax, [rsi - 1]
lea rsi, [rax*8 + 8]
lea r13, [r15 + rsi]
mov rcx, qword [r15]
add r15, 8
call sub.msvcrt.dll_strlen
cmp r13, r15
lea r12d, [r12 + rax + 1]
jne 0x402784
movsxd rcx, r12d
add rsi, rbx
call fcn.004035f0
mov qword [rbp - 0x28], rax
mov rcx, rax
nop dword [rax]
mov rdx, qword [rbx]
add rbx, 8
call fcn.004036f0
cmp rsi, rbx
lea rcx, [rax + 1]
jne 0x4027b0
mov byte [rax + 1], 0
mov rcx, qword [rbp + 0x30]
call sub.msvcrt.dll_strlen
mov rcx, qword [rbp + 0x30]
mov edx, 0x2f
mov rsi, rax
call sub.msvcrt.dll_strchr
test rax, rax
je 0x402c65
lea rbx, [0x0040d37e]
xor r8d, r8d
lea rcx, [r8 + rsi + 6]
mov r12d, 0x80000000
call fcn.004035f0
movzx edx, byte [rbx]
mov r13, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp dl, 0x3b
je 0x402c5a
test dl, dl
mov r15, rbx
jne 0x402834
jmp 0x402c5a
test al, al
je 0x402840
add r15, 1
movzx eax, byte [r15]
cmp al, 0x3b
jne 0x402830
mov r14, r15
mov rcx, rsi
mov rdx, rbx
sub r14, rbx
mov r8, r14
call sub.msvcrt.dll_memcpy
lea r9, [rsi + r14]
cmp r15, rbx
mov rcx, r9
je 0x402868
add rcx, 1
mov byte [r9], 0x5c
mov rdx, qword [rbp + 0x30]
mov rbx, rsi
call sub.msvcrt.dll_strcpy
xor eax, eax
cmp byte [r15], 0x3b
sete al
add r15, rax
movzx eax, byte [rsi]
test al, al
jne 0x40289b
jmp 0x4028ad
add rbx, 1
movzx eax, byte [rbx]
test al, al
je 0x4028ad
cmp al, 0x2f
jne 0x402890
mov byte [rbx], 0x5c
add rbx, 1
movzx eax, byte [rbx]
test al, al
jne 0x40289b
lea r14, str..com
lea rdx, str..com
jmp 0x4028d0
add r14, 8
mov rdx, qword [r14]
test rdx, rdx
je 0x402c14
mov rcx, rsi
mov byte [rbx], 0
call sub.msvcrt.dll_strcat
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r8d, 3
mov edx, r12d
mov rcx, rsi
call r13
cmp rax, 0xffffffffffffffff
je 0x4028c0
mov rcx, rax
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r12, [rdi + 8]
call rbx
mov r8, qword [rdi]
xor ecx, ecx
test r8, r8
je 0x402a18
nop word [rax + rax]
movzx eax, byte [r8]
xor r11d, r11d
mov r9d, 0xffffffff
mov edx, 1
test al, al
jne 0x402964
jmp 0x402c41
movzx eax, byte [r8 + rdx]
add r9d, 1
lea r10, [rdx + 1]
test al, al
je 0x4029c0
mov rdx, r10
mov r10d, eax
and r10d, 0xfffffffd
cmp r10b, 0x20
je 0x4029b0
cmp al, 9
je 0x4029b0
cmp al, 0x22
jne 0x402950
cmp r9d, 0xffffffff
je 0x4029a5
cmp byte [r8 + rdx - 2], 0x5c
jne 0x4029a5
lea rax, [rdx - 3]
jmp 0x40299c
sub rax, 1
cmp byte [r8 + rax + 1], 0x5c
jne 0x4029a5
add rcx, 1
cmp eax, 0xffffffff
jne 0x402990
add rcx, 1
jmp 0x402950
mov r11d, 1
jmp 0x402975
test r11d, r11d
mov eax, 1
je 0x402a00
lea eax, [rdx - 1]
cdqe
cmp byte [r8 + rax], 0x5c
jne 0x4029fb
lea r9, [r8 + rax - 1]
lea r8, [rcx + 1]
add rax, r8
jmp 0x4029f3
sub r9, 1
cmp byte [r9 + 1], 0x5c
jne 0x4029fb
add r8, 1
cmp r8, rax
mov rcx, r8
jne 0x4029e4
mov eax, 3
add r12, 8
mov r8, qword [r12 - 8]
add rcx, rdx
add rcx, rax
test r8, r8
jne 0x402930
call fcn.004035f0
mov r9, qword [rdi]
add rdi, 8
mov r12, rax
movabs r11, 0x500000201
test r9, r9
je 0x402b42
nop word [rax + rax]
movzx r8d, byte [r9]
mov edx, 1
cmp r8b, 0x22
ja 0x402a7e
bt r11, r8
jae 0x402a7e
jmp 0x402b05
mov r10d, ecx
add rdx, 1
and r10d, 0xfffffffd
cmp r10b, 0x20
je 0x402b05
cmp cl, 9
je 0x402b05
movzx ecx, byte [r9 + rdx]
test cl, cl
jne 0x402a60
mov rcx, r12
xor r12d, r12d
mov r10, 0xfffffffffffffffe
xor edx, edx
jmp 0x402ac8
movzx r8d, byte [r9 + r10 + 2]
add r10, 1
lea rcx, [r13 + 1]
mov byte [r13], r8b
movzx r8d, byte [r9 + r10 + 2]
lea r13d, [rdx + 1]
test r8b, r8b
je 0x402bd0
movsxd rdx, r13d
cmp r8b, 0x22
mov r13, rcx
jne 0x402aa0
test edx, edx
je 0x402afc
cmp byte [r9 + r10 + 1], 0x5c
jne 0x402afc
mov r8, r10
jmp 0x402aee
sub r8, 1
cmp byte [r9 + r8 + 1], 0x5c
jne 0x402afc
add rcx, 1
cmp r8d, 0xffffffff
mov byte [rcx - 1], 0x5c
jne 0x402ae2
lea r13, [rcx + 1]
mov byte [rcx], 0x5c
jmp 0x402aa0
mov byte [r12], 0x22
movzx r8d, byte [r9]
lea rcx, [r12 + 1]
mov r12d, 1
test r8b, r8b
jne 0x402a8d
lea r8, [rcx + 1]
mov byte [rcx], 0x22
add rdi, 8
mov r9, qword [rdi - 8]
lea r12, [r8 + 1]
mov byte [r8], 0x20
test r9, r9
jne 0x402a40
mov rdi, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
xor r9d, r9d
mov byte [r12 - 1], 0
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 1
mov rcx, rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdx
mov rdi, qword [rbp - 0x28]
mov edx, dword [rbp + 0x50]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402cf6
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 8]
call rbx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x60]
mov rax, qword [rax]
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test r12d, r12d
mov r8, rcx
je 0x402b29
cmp byte [r9 + rdx], 0x5c
jne 0x402b22
lea r8, [r9 + rdx - 1]
lea rdx, [rcx + rdx + 1]
jmp 0x402c02
sub r8, 1
cmp byte [r8 + 1], 0x5c
jne 0x402b22
add rcx, 1
mov byte [rcx - 1], 0x5c
cmp rcx, rdx
jne 0x402bf3
jmp 0x402b22
movzx edx, byte [r15]
mov rbx, r15
test dl, dl
jne 0x402813
mov rcx, rsi
mov qword [rbp - 0x30], rax
call sub.msvcrt.dll_free
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x30]
jmp 0x402bb7
mov eax, 3
xor edx, edx
jmp 0x402a00
mov qword [rbp - 0x28], 0
jmp 0x4027c9
mov rcx, rsi
mov r15, rbx
jmp 0x402868
mov rcx, qword [rbp + 0x30]
mov edx, 0x5c
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x4027ec
test r14d, r14d
je 0x4027ec
lea rcx, str.PATH
call sub.msvcrt.dll_getenv
test rax, rax
mov rbx, rax
je 0x4027ec
mov rcx, rax
xor r8d, r8d
movzx edx, byte [rcx]
test dl, dl
je 0x4027f6
cmp dl, 0x3b
mov rax, rcx
jne 0x402cc4
jmp 0x402cf0
test dl, dl
je 0x402cd0
add rax, 1
movzx edx, byte [rax]
cmp dl, 0x3b
jne 0x402cc0
mov r14, rax
sub r14, rcx
cmp r8, r14
cmovb r8, r14
cmp dl, 0x3b
je 0x402cf0
mov rcx, rax
jmp 0x402ca3
add rax, 1
jmp 0x402ce2
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, 0xffffffffffffffff
jmp 0x402bb7