Function at 0x140004ad0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004b200]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r15, rcx
mov qword [rsp + 0x88], rcx
mov rcx, qword [rcx + 0x258]
sub rcx, 0x18
call fcn.140002690
lea rsi, [rax + 0x18]
mov qword [rsp + 0x70], rsi
call fcn.14000bbec
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140004b52
mov ecx, 0x80004005
call fcn.140002000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rcx, qword [r15 + 0x258]
or r13, 0xffffffffffffffff
cmp dword [rcx - 0x10], 0
jle 0x140004cde
lea edx, [r13 + 0x5d]
call fcn.140022074
mov rdi, rax
test rax, rax
je 0x140004cde
sub rdi, qword [r15 + 0x258]
sar rdi, 1
test edi, edi
js 0x140004cde
lea r8d, [rdi + 1]
lea rdx, [rsp + 0xa8]
lea rcx, [r15 + 0x258]
call fcn.14000a760
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140004c15
cmp dword [rsi + 0x10], 0
jl 0x140004c06
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140004c06
call fcn.140002690
mov rbp, rax
mov ecx, r13d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140004bf9
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x70], rax
xor ebp, ebp
jmp 0x140004c15
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140001e50
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004c38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, edi
lea rdx, [rsp + 0xb0]
lea rcx, [r15 + 0x258]
call fcn.14000a830
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x68]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140004caf
cmp dword [rdi + 0x10], 0
jl 0x140004ca0
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140004ca0
call fcn.140002690
mov rbx, rax
mov ecx, r13d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140004c95
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x68], rax
jmp 0x140004caf
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140001e50
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004cd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x70]
jmp 0x140004cde
mov rsi, qword [rsp + 0x70]
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.14000bbec
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140004d13
mov ecx, 0x80004005
call fcn.140002000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
xor eax, eax
mov rcx, r13
lea rdi, [0x14003f318]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14003f318]
lea rcx, [rsp + 0x60]
call fcn.140002590
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
dec rcx
lea r14, [rsp + 0x130]
mov rdi, qword [rsp + 0x60]
sub r14, rdi
sar r14, 1
mov r12d, dword [rdi - 0x10]
mov eax, ebp
test ecx, ecx
setns al
test eax, eax
jne 0x140004d8f
mov ecx, 0x80070057
call fcn.140002000
int3
movsxd rdx, ecx
lea rcx, [rsp + 0x130]
call fcn.140021dc0
mov rbp, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor eax, eax
mov edx, eax
cmp ecx, r12d
setge dl
test edx, edx
jne 0x140004dc2
mov ecx, 0x80070057
call fcn.140002000
int3
lea ebx, [r12 + rbp]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x140004de8
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140001df0
mov rdi, qword [rsp + 0x60]
cmp r14, r12
ja 0x140004df3
lea r8, [rdi + r14*2]
jmp 0x140004dfb
lea r8, [rsp + 0x130]
movsxd rdx, ebp
add rdx, rdx
lea rcx, [rdi + r12*2]
mov r9, rdx
call fcn.1400215c0
test ebx, ebx
js 0x140005201
cmp ebx, dword [rdi - 0xc]
jg 0x140005201
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
xor ecx, ecx
mov word [rdi + rax*2], cx
xor eax, eax
mov rcx, r13
lea rdi, str.______
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.______
lea rcx, [rsp + 0x60]
call fcn.140002590
xor edx, edx
mov dword [rsp + 0x78], edx
mov r14, rdx
cmp qword [r15 + 0x2a0], rdx
jle 0x1400050ba
lea r8, [0x14003f334]
mov rbx, qword [rsp + 0x60]
nop word [rax + rax]
xor eax, eax
mov rcx, r13
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x80], r8
mov rbp, r8
sub rbp, rbx
sar rbp, 1
mov r12d, dword [rbx - 0x10]
mov eax, edx
test ecx, ecx
setns al
test eax, eax
je 0x1400050af
movsxd rdx, ecx
mov rcx, r8
call fcn.140021dc0
mov r15, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor eax, eax
mov edx, eax
cmp ecx, r12d
setge dl
test edx, edx
je 0x1400050a4
lea edi, [r12 + r15]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140004f02
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001df0
mov rbx, qword [rsp + 0x60]
cmp rbp, r12
ja 0x140004f0d
lea r8, [rbx + rbp*2]
jmp 0x140004f15
mov r8, qword [rsp + 0x80]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r12*2]
mov r9, rdx
call fcn.1400215c0
test edi, edi
js 0x140005099
cmp edi, dword [rbx - 0xc]
jg 0x140005099
mov dword [rbx - 0x10], edi
movsxd rax, edi
xor ecx, ecx
mov word [rbx + rax*2], cx
test r14, r14
js 0x140005093
mov rax, qword [rsp + 0x88]
cmp r14, qword [rax + 0x2a0]
jge 0x140005093
mov rax, qword [rax + 0x298]
mov rdx, qword [rax + r14*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140002590
xor eax, eax
mov rcx, r13
lea r8, [0x14003f318]
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x80], r8
mov r15, r8
mov rbx, qword [rsp + 0x60]
sub r15, rbx
sar r15, 1
mov r12d, dword [rbx - 0x10]
xor edi, edi
test ecx, ecx
setns al
test eax, eax
je 0x140005088
movsxd rdx, ecx
mov rcx, r8
call fcn.140021dc0
mov rbp, rax
mov ecx, 0x7fffffff
sub ecx, eax
mov edx, edi
cmp ecx, r12d
setge dl
test edx, edx
je 0x14000507d
lea edi, [r12 + rax]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140005007
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140001df0
mov rbx, qword [rsp + 0x60]
cmp r15, r12
ja 0x140005012
lea r8, [rbx + r15*2]
jmp 0x14000501a
mov r8, qword [rsp + 0x80]
movsxd rdx, ebp
add rdx, rdx
lea rcx, [rbx + r12*2]
mov r9, rdx
call fcn.1400215c0
test edi, edi
js 0x140005072
cmp edi, dword [rbx - 0xc]
jg 0x140005072
mov dword [rbx - 0x10], edi
movsxd rax, edi
xor ecx, ecx
mov word [rbx + rax*2], cx
mov edx, dword [rsp + 0x78]
inc edx
mov dword [rsp + 0x78], edx
inc r14
movsxd rax, edx
mov r15, qword [rsp + 0x88]
cmp rax, qword [r15 + 0x2a0]
mov rdx, rcx
lea r8, [0x14003f334]
jl 0x140004e80
jmp 0x1400050bf
mov ecx, 0x80070057
call fcn.140002000
int3
mov ecx, 0x80070057
call fcn.140002000
int3
mov ecx, 0x80070057
call fcn.140002000
int3
call fcn.14000bf18
int3
mov ecx, 0x80070057
call fcn.140002000
int3
mov ecx, 0x80070057
call fcn.140002000
int3
mov ecx, 0x80070057
call fcn.140002000
int3
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x90], rdx
xor eax, eax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rsp + 0xc8]
call fcn.140023010
mov dword [rsp + 0xc0], 0x68
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9d, [rax + 1]
mov r8, qword [r15 + 0x260]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x14000515c
lea rdx, [0x14003f340]
mov rcx, r15
call fcn.1400049f0
int3
or edx, 0xffffffff
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x7c]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0x7c]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400051bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400051dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x1400051fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x14000520c
mov ecx, 0x80070057
call fcn.140002000
nop
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400215a0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret