Function at 0x140004dc0
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.140001c90
lea rsi, [rax + 0x18]
mov qword [rsp + 0x70], rsi
call fcn.14000bcac
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140004e42
mov ecx, 0x80004005
call fcn.140002350
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 0x140004fce
lea edx, [r13 + 0x5d]
call fcn.14002255c
mov rdi, rax
test rax, rax
je 0x140004fce
sub rdi, qword [r15 + 0x258]
sar rdi, 1
test edi, edi
js 0x140004fce
lea r8d, [rdi + 1]
lea rdx, [rsp + 0xa8]
lea rcx, [r15 + 0x258]
call fcn.14000a850
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rcx, rsi
je 0x140004f05
cmp dword [rsi + 0x10], 0
jl 0x140004ef6
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140004ef6
call fcn.140001c90
mov rbp, rax
mov ecx, r13d
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140004ee9
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 0x140004f05
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.1400021a0
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004f28
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.14000a920
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x68]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140004f9f
cmp dword [rdi + 0x10], 0
jl 0x140004f90
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140004f90
call fcn.140001c90
mov rbx, rax
mov ecx, r13d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140004f85
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 0x140004f9f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.1400021a0
nop
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004fc9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x70]
jmp 0x140004fce
mov rsi, qword [rsp + 0x70]
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.14000bcac
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140005003
mov ecx, 0x80004005
call fcn.140002350
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, [0x14003f2f8]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14003f2f8]
lea rcx, [rsp + 0x60]
call fcn.140002930
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 0x14000507f
mov ecx, 0x80070057
call fcn.140002350
int3
movsxd rdx, ecx
lea rcx, [rsp + 0x130]
call fcn.140021e04
mov rbp, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor eax, eax
mov edx, eax
cmp ecx, r12d
setge dl
test edx, edx
jne 0x1400050b2
mov ecx, 0x80070057
call fcn.140002350
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 0x1400050d8
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140002140
mov rdi, qword [rsp + 0x60]
cmp r14, r12
ja 0x1400050e3
lea r8, [rdi + r14*2]
jmp 0x1400050eb
lea r8, [rsp + 0x130]
movsxd rdx, ebp
add rdx, rdx
lea rcx, [rdi + r12*2]
mov r9, rdx
call fcn.1400216c0
test ebx, ebx
js 0x1400054f1
cmp ebx, dword [rdi - 0xc]
jg 0x1400054f1
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.140002930
xor edx, edx
mov dword [rsp + 0x78], edx
mov r14, rdx
cmp qword [r15 + 0x2a0], rdx
jle 0x1400053aa
lea r8, [0x14003f314]
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 0x14000539f
movsxd rdx, ecx
mov rcx, r8
call fcn.140021e04
mov r15, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor eax, eax
mov edx, eax
cmp ecx, r12d
setge dl
test edx, edx
je 0x140005394
lea edi, [r12 + r15]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400051f2
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140002140
mov rbx, qword [rsp + 0x60]
cmp rbp, r12
ja 0x1400051fd
lea r8, [rbx + rbp*2]
jmp 0x140005205
mov r8, qword [rsp + 0x80]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r12*2]
mov r9, rdx
call fcn.1400216c0
test edi, edi
js 0x140005389
cmp edi, dword [rbx - 0xc]
jg 0x140005389
mov dword [rbx - 0x10], edi
movsxd rax, edi
xor ecx, ecx
mov word [rbx + rax*2], cx
test r14, r14
js 0x140005383
mov rax, qword [rsp + 0x88]
cmp r14, qword [rax + 0x2a0]
jge 0x140005383
mov rax, qword [rax + 0x298]
mov rdx, qword [rax + r14*8]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.140002930
xor eax, eax
mov rcx, r13
lea r8, [0x14003f2f8]
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 0x140005378
movsxd rdx, ecx
mov rcx, r8
call fcn.140021e04
mov rbp, rax
mov ecx, 0x7fffffff
sub ecx, eax
mov edx, edi
cmp ecx, r12d
setge dl
test edx, edx
je 0x14000536d
lea edi, [r12 + rax]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400052f7
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140002140
mov rbx, qword [rsp + 0x60]
cmp r15, r12
ja 0x140005302
lea r8, [rbx + r15*2]
jmp 0x14000530a
mov r8, qword [rsp + 0x80]
movsxd rdx, ebp
add rdx, rdx
lea rcx, [rbx + r12*2]
mov r9, rdx
call fcn.1400216c0
test edi, edi
js 0x140005362
cmp edi, dword [rbx - 0xc]
jg 0x140005362
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, [0x14003f314]
jl 0x140005170
jmp 0x1400053af
mov ecx, 0x80070057
call fcn.140002350
int3
mov ecx, 0x80070057
call fcn.140002350
int3
mov ecx, 0x80070057
call fcn.140002350
int3
call fcn.14000bfd8
int3
mov ecx, 0x80070057
call fcn.140002350
int3
mov ecx, 0x80070057
call fcn.140002350
int3
mov ecx, 0x80070057
call fcn.140002350
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.140023340
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 0x14000544c
lea rdx, [0x14003f320]
mov rcx, r15
call fcn.140004ca0
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 0x1400054ac
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 0x1400054cd
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 0x1400054ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x1400054fc
mov ecx, 0x80070057
call fcn.140002350
nop
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400216a0
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