Function at 0x14004e040
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rsi, rcx
xor r13d, r13d
mov r14, r13
mov qword [rsp + 0x70], r13
mov byte [rax + 8], r13b
mov byte [rax + 9], r13b
mov byte [rax + 0xa], r13b
mov dword [rsp + 0x178], r13d
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x14004e0aa
call fcn.14004c6d0
mov dword [rax], 0x16
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059e70
xor eax, eax
jmp 0x14004e7e3
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
jne 0x14004e0dd
call fcn.14004c6d0
mov dword [rax], 0x16
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059e70
xor eax, eax
jmp 0x14004e7e3
cmp byte [rdx], 0x20
jne 0x14004e0eb
add rdx, 1
cmp byte [rdx], 0x20
je 0x14004e0e2
movzx eax, byte [rdx]
cmp al, 0x77
je 0x14004e11c
cmp al, 0x72
je 0x14004e11c
call fcn.14004c6d0
mov dword [rax], 0x16
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059e70
xor eax, eax
jmp 0x14004e7e3
mov byte [rsp + 0x160], al
add rdx, 1
cmp byte [rdx], 0x20
jne 0x14004e139
nop
add rdx, 1
cmp byte [rdx], 0x20
je 0x14004e130
movzx eax, byte [rdx]
test al, al
je 0x14004e16e
cmp al, 0x74
je 0x14004e16e
cmp al, 0x62
je 0x14004e16e
call fcn.14004c6d0
mov dword [rax], 0x16
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059e70
xor eax, eax
jmp 0x14004e7e3
mov byte [rsp + 0x161], al
cmp al, 0x74
jne 0x14004e181
mov r8d, 0x4000
jmp 0x14004e18f
mov r8d, r13d
mov ecx, 0x8000
cmp al, 0x62
cmove r8d, ecx
bts r8d, 7
mov edx, 0x400
lea rcx, [rsp + 0x58]
call fcn.140063b30
cmp eax, 0xffffffff
je 0x14004e7e0
cmp byte [rsp + 0x160], 0x77
jne 0x14004e1d1
mov ebx, r13d
mov r12d, r13d
mov dword [rsp + 0x170], r13d
mov r15d, 1
mov dword [rsp + 0x68], r15d
jmp 0x14004e1e8
mov ebx, 1
mov r12d, ebx
mov dword [rsp + 0x170], ebx
mov r15d, r13d
mov dword [rsp + 0x68], r13d
mov ecx, 9
call fcn.140060bb0
test eax, eax
jne 0x14004e20f
mov ecx, dword [rsp + 0x58]
call fcn.14005e710
mov ecx, dword [rsp + 0x5c]
call fcn.14005e710
xor eax, eax
jmp 0x14004e7e3
mov ecx, 9
call fcn.140060cc0
nop
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movsxd rdi, r12d
movsxd rcx, dword [rsp + rdi*4 + 0x58]
mov rdx, rcx
sar rdx, 5
lea r8, [0x14008a0c0]
and ecx, 0x1f
lea rcx, [rcx + rcx*4]
add rcx, rcx
mov rdx, qword [r8 + rdx*8]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x80]
mov r8, rax
mov rdx, qword [rdx + rcx*8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14004e7af
mov ecx, dword [rsp + rdi*4 + 0x58]
call fcn.14005e710
mov dword [rsp + rdi*4 + 0x60], r13d
movsxd rax, r15d
lea rdx, [rsp + 0x160]
mov ecx, dword [rsp + rax*4 + 0x58]
call fcn.140063800
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14004e7af
xor ecx, ecx
call fcn.14004dfa0
mov r15, rax
test rax, rax
je 0x14004e792
lea r8, str.COMSPEC
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140052f80
mov edi, eax
test eax, eax
je 0x14004e304
cmp eax, 0x16
jne 0x14004e304
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
test edi, edi
jne 0x14004e312
mov r12, qword [rsp + 0x70]
test r12, r12
jne 0x14004e339
mov dword [rsp + 0x50], r13d
lea rcx, [rsp + 0x50]
call fcn.14004c8e0
lea rax, str.command.com
lea r12, str.cmd.exe
bt dword [rsp + 0x50], 0xf
cmovb r12, rax
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.14004a070
mov dword [rsp + 0xb0], 0x68
mov dword [rsp + 0xec], 0x100
test ebx, ebx
jne 0x14004e37a
mov rax, qword [rsp + 0x80]
mov rdx, rax
mov rcx, qword [0x14008a0c0]
jmp 0x14004e38c
mov rcx, qword [0x14008a0c0]
mov rdx, qword [rcx]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rdx
cmp ebx, 1
je 0x14004e39d
mov rax, qword [rcx + 0x50]
mov qword [rsp + 0x108], rax
mov rax, qword [rcx + 0xa0]
mov qword [rsp + 0x110], rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdi, [rdx + rcx + 4]
lea edx, [rax + 1]
mov rcx, rdi
call fcn.1400607a0
mov r13, rax
test rax, rax
je 0x14004e787
mov r8, r12
mov rdx, rdi
mov rcx, rax
call fcn.140056570
test eax, eax
je 0x14004e418
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
jmp 0x14004e41a
xor ebx, ebx
lea r8, str.__c
mov rdx, rdi
mov rcx, r13
call fcn.1400624b0
test eax, eax
je 0x14004e444
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
mov r8, rsi
mov rdx, rdi
mov rcx, r13
call fcn.1400624b0
test eax, eax
je 0x14004e46a
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
call fcn.14004c6d0
mov esi, dword [rax]
mov dword [rsp + 0x50], esi
xor edx, edx
mov rcx, r12
call fcn.1400562d0
test eax, eax
jne 0x14004e4cc
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
jmp 0x14004e72d
mov qword [rsp + 0x78], rbx
mov edx, 1
mov ecx, 0x104
call fcn.1400607a0
mov rbx, rax
test rax, rax
jne 0x14004e518
xor ecx, ecx
call fcn.14004ad40
mov rcx, r13
call fcn.14004ad40
mov rcx, qword [rsp + 0x70]
call fcn.14004ad40
call fcn.14004c6d0
mov dword [rax], esi
mov r12d, dword [rsp + 0x170]
xor r13d, r13d
jmp 0x14004e792
lea r8, str.PATH
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140052f80
mov edi, eax
test eax, eax
je 0x14004e54e
cmp eax, 0x16
jne 0x14004e54e
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
test edi, edi
je 0x14004e58d
mov rcx, qword [rsp + 0x78]
call fcn.14004ad40
mov rcx, rbx
call fcn.14004ad40
mov rcx, r13
call fcn.14004ad40
mov rcx, qword [rsp + 0x70]
call fcn.14004ad40
call fcn.14004c6d0
mov dword [rax], esi
mov r12d, dword [rsp + 0x170]
xor r13d, r13d
jmp 0x14004e792
mov rsi, qword [rsp + 0x78]
mov r8d, 0x103
mov rdx, rbx
mov rcx, rsi
call fcn.140063730
mov rsi, rax
test rax, rax
je 0x14004e70c
cmp byte [rbx], 0
je 0x14004e703
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx + rbx - 2]
movzx eax, byte [rdi]
cmp al, 0x5c
jne 0x14004e616
mov edx, 0x5c
mov rcx, rbx
call fcn.140062aa0
cmp rdi, rax
je 0x14004e64a
lea r8, [0x140073ed8]
mov edx, 0x104
mov rcx, rbx
call fcn.1400624b0
test eax, eax
je 0x14004e64a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
jmp 0x14004e64a
cmp al, 0x2f
je 0x14004e64a
lea r8, [0x140073ed8]
mov edx, 0x104
mov rcx, rbx
call fcn.1400624b0
test eax, eax
je 0x14004e64a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add rdx, rcx
cmp rdx, 0x104
jae 0x14004e715
mov r8, r12
mov edx, 0x104
mov rcx, rbx
call fcn.1400624b0
test eax, eax
je 0x14004e6a8
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140059dd0
jmp 0x14004e6aa
xor edi, edi
xor edx, edx
mov rcx, rbx
call fcn.1400562d0
test eax, eax
jne 0x14004e6fe
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
jmp 0x14004e717
jmp 0x14004e592
mov edi, dword [rsp + 0x178]
jmp 0x14004e717
mov edi, dword [rsp + 0x178]
jmp 0x14004e717
mov edi, eax
mov rcx, qword [rsp + 0x78]
call fcn.14004ad40
mov rcx, rbx
call fcn.14004ad40
mov esi, dword [rsp + 0x50]
mov rcx, r13
call fcn.14004ad40
mov rcx, qword [rsp + 0x70]
call fcn.14004ad40
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14004c6d0
mov dword [rax], esi
test edi, edi
je 0x14004e777
mov rax, qword [rsp + 0x90]
mov qword [r15 + 8], rax
mov qword [r15], r14
jmp 0x14004e7d6
xor r13d, r13d
mov qword [r15], r13
mov r12d, dword [rsp + 0x170]
jmp 0x14004e792
mov r12d, dword [rsp + 0x170]
xor r13d, r13d
mov rcx, r14
call fcn.14004b080
movsxd r15, dword [rsp + 0x68]
mov dword [rsp + r15*4 + 0x60], r13d
mov r14, r13
mov qword [rsp + 0x88], r13
movsxd rax, r12d
cmp dword [rsp + rax*4 + 0x60], 0
je 0x14004e7c2
mov ecx, dword [rsp + rax*4 + 0x58]
call fcn.14005e710
movsxd rax, r15d
cmp dword [rsp + rax*4 + 0x60], 0
je 0x14004e7d6
mov ecx, dword [rsp + rax*4 + 0x58]
call fcn.14005e710
nop
mov ecx, 9
call fcn.140060b90
mov rax, r14
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret