Function at 0x4ad03be4
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x90], rsp
mov rsi, r9
mov r15d, edx
mov qword [rsp + 0xa8], rcx
mov r14, qword [rsp + 0x310]
mov qword [rsp + 0xb8], r14
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
mov dword [rsp + 0xa0], ebx
mov qword [r11 - 0x268], rbx
mov qword [r11 - 0x250], 0x30
lea r9, [r11 - 0x250]
xor r8d, r8d
lea edi, [rbx + 1]
mov edx, edi
lea rcx, [r11 - 0x210]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp eax, ebx
jne 0x4ad03c92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2e13c], eax
mov rcx, r14
call fcn.4ad113f4
mov eax, edi
jmp 0x4ad04251
mov dword [rsp + 0x88], edi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 4
lea r9, [rsp + 0x88]
xor edx, edx
mov r8d, 0x60001
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
cmp eax, ebx
jne 0x4ad03cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2e13c], eax
mov rcx, r14
call fcn.4ad113f4
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov eax, edi
jmp 0x4ad04251
mov r12d, 0x70
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0xd8]
mov qword [rsp + 0x178], r11
mov dword [rsp + 0x110], r12d
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x130], ebx
mov dword [rsp + 0x134], edi
lea eax, [r12 - 0xc]
mov dword [rsp + 0x138], eax
mov dword [rsp + 0x13c], eax
mov dword [rsp + 0x14c], ebx
mov word [rsp + 0x150], di
mov dword [rsp + 0x1f0], 0x68
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov r11, qword [rsp + 0x200]
mov qword [rsp + 0x120], r11
lea rcx, str.COPYCMD
call fcn.4ad04a34
lea rcx, [0x4ad29778]
cmp rax, rbx
cmovne rcx, rax
call fcn.4ad01880
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
cmp rax, rbx
jne 0x4ad03de1
lea rdx, [0x4ad03dd7]
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, 1
jmp 0x4ad04251
cmp dword [0x4ad2e104], ebx
jne 0x4ad03dfa
cmp dword [0x4ad2e108], ebx
jne 0x4ad03dfa
cmp qword [0x4ad2e1e8], rbx
je 0x4ad03e39
cmp r14, rbx
je 0x4ad03e39
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rbx
je 0x4ad03e39
lea rdx, str.XCOPY.EXE
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
jne 0x4ad03e39
lea rdx, [0x4ad29d30]
lea rcx, str.COPYCMD
call fcn.4ad21434
mov rax, qword [0x4ad2e1e8]
cmp rax, rbx
je 0x4ad03ea2
mov rcx, qword [rax + 0x38]
cmp rcx, rbx
je 0x4ad03ea2
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x48], rax
lea r12, [0x4ad3c0a0]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov r13d, eax
mov dword [rsp + 0x60], eax
jmp 0x4ad03ef2
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
lea r12, [0x4ad3c0a0]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r13d, eax
mov dword [rsp + 0x60], eax
cmp r13d, ebx
jne 0x4ad03f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov dword [0x4ad2e13c], eax
mov rsi, qword [rsp + 0x68]
jmp 0x4ad03f29
mov rsi, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rsi
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x78]
lea rcx, str.COPYCMD
call fcn.4ad0134c
cmp r13d, ebx
jne 0x4ad040f4
cmp byte [0x4ad2e0ca], bl
je 0x4ad03f5a
mov eax, dword [0x4ad2e13c]
cmp eax, 0xc1
je 0x4ad03f6b
jmp 0x4ad03f60
mov eax, dword [0x4ad2e13c]
cmp eax, 0x2e4
jne 0x4ad04077
mov r13d, 0x70
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x180]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x180], r13d
mov dword [rsp + 0x184], 0x8140
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x198], r14
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x78]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], r12
movzx eax, word [rsp + 0x150]
mov dword [rsp + 0x1b0], eax
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov r13d, eax
mov dword [rsp + 0x60], eax
cmp eax, ebx
je 0x4ad04005
mov rsi, qword [rsp + 0x1e8]
mov qword [rsp + 0x68], rsi
mov r12d, 2
jmp 0x4ad04041
cmp qword [rsp + 0x1b8], rbx
jne 0x4ad04021
mov dword [0x4ad2e13c], 8
mov r12d, 2
jmp 0x4ad04041
mov eax, dword [rsp + 0x1b8]
mov r12d, 2
cmp qword [rsp + 0x1b8], 0x20
cmove eax, r12d
mov dword [0x4ad2e13c], eax
jmp 0x4ad0407d
mov r12d, 2
cmp r13d, ebx
jne 0x4ad040fa
mov ecx, 0x208
call fcn.4ad016dc
mov rdi, rax
cmp rax, rbx
jne 0x4ad040b4
lea rdx, [0x4ad040aa]
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, 1
jmp 0x4ad04251
mov r8, r14
mov edx, 0x104
mov rcx, rax
call fcn.4ad01744
mov rcx, rdi
call fcn.4ad113f4
mov rcx, rdi
call fcn.4ad01040
lea rdx, [0x4ad040ea]
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, 1
jmp 0x4ad04251
mov r12d, 2
mov r14d, esi
and r14d, edi
mov rax, rsi
shr rax, 1
and eax, edi
cmp rsi, rbx
je 0x4ad04145
cmp byte [0x4ad2e0ca], bl
je 0x4ad0414b
cmp qword [0x4ad2e1e8], rbx
jne 0x4ad0414b
cmp dword [0x4ad2e104], ebx
jne 0x4ad0414b
cmp dword [0x4ad2e108], ebx
jne 0x4ad0414b
cmp r15d, ebx
jne 0x4ad0414b
cmp eax, ebx
jne 0x4ad04145
mov rcx, rsi
call fcn.4ad2274c
cmp r12w, ax
jne 0x4ad0414b
mov r15d, 4
mov r13d, ebx
mov dword [rsp + 0x70], ebx
mov dword [0x4ad2e1a4], edi
cmp r15d, ebx
jne 0x4ad04206
mov rcx, rsi
call fcn.4ad014f8
mov r13d, eax
mov dword [0x4ad2e188], eax
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], eax
mov r9d, eax
lea r8, str._08X
mov edx, 0x14
lea rcx, [rsp + 0x278]
call fcn.4ad01484
lea rdx, [rsp + 0x278]
lea rcx, str.ExitCode
call fcn.4ad0134c
lea r11d, [r13 - 0x20]
cmp r11d, 0x5e
ja 0x4ad041e7
mov r9d, r13d
lea r8, [0x4ad2a118]
mov edx, 0xc
lea rcx, [rsp + 0x260]
call fcn.4ad01484
lea rdx, [rsp + 0x260]
lea rcx, str.ExitCodeAscii
call fcn.4ad0134c
jmp 0x4ad041fa
lea rdx, [0x4ad297a8]
lea rcx, str.ExitCodeAscii
call fcn.4ad0134c
cmp r14d, ebx
je 0x4ad04236
call fcn.4ad21530
jmp 0x4ad04236
cmp r15d, 4
jne 0x4ad04221
cmp rsi, rbx
je 0x4ad04236
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rbx
jmp 0x4ad04236
mov rax, qword [0x4ad2e260]
cmp r15d, r12d
cmove rax, rsi
mov qword [0x4ad2e260], rax
mov rcx, qword [rsp + 0x78]
call fcn.4ad01040
lea rcx, [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov eax, r13d
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.4ad01000
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret