Function at 0x140012f10
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push rsi
sub rsp, 0x470
mov rsi, rdx
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [0x1400bdea0]
mov rdx, rsi
call fcn.140001f30
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14003c9e0
mov qword [rsp + 0x480], rbx
mov qword [rsp + 0x488], rdi
xor dil, dil
cmp dword [0x1400bdec8], 0
je 0x14003ca02
movzx r9d, byte [0x1400ad244]
lea rax, [rsp + 0x490]
lea r8, [0x1400bdec8]
lea rdx, [0x1400bdef0]
lea rcx, [0x1400bfb30]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x490], dil
call fcn.140015840
test al, al
je 0x14003ca33
movzx eax, byte [0x1400bfb30]
movzx ebx, byte [0x1400bfb31]
lea r9, [0x1400bdec0]
lea r8, [rsp + 0x260]
lea rcx, [0x1400bdef0]
mov edx, 0x104
mov byte [0x1400bdecc], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
movzx edi, byte [rsp + 0x490]
mov r8d, dword [0x1400bdec8]
lea rdx, [0x1400bdef0]
lea rcx, [0x1400be100]
call fcn.1400129c0
test eax, eax
jne 0x14003ca42
cmp bl, 1
je 0x14003ca68
lea rcx, [0x1400bdea0]
call fcn.1400155b0
lea rcx, [0x1400bdea0]
call fcn.1400154d0
cmp byte [0x1400bdecc], 0
jne 0x14001303d
lea rcx, [0x1400be7a0]
call fcn.1400139d0
lea rcx, [0x1400be100]
mov edx, 1
call fcn.140004840
cmp byte [0x1400bdecc], 0
jne 0x140013063
lea rcx, [0x1400be7a0]
call fcn.140013b40
lea rcx, [0x1400bfb30]
call fcn.140001160
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x488]
add rsp, 0x470
pop rsi
ret
lea r8, [0x140096412]
lea rdx, str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
mov r9d, reloc.WSOCK32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x14001308a
mov r8, qword [0x1400bded0]
or r9d, 0xffffffff
lea rcx, [0x1400bfb30]
lea edx, [r9 + 2]
xor bl, bl
call fcn.1400164a0
movzx r11d, byte [0x1400ad244]
mov byte [0x1400bfb32], r11b
jmp 0x140012fe5
mov dword [0x1400ad25c], 1
jmp 0x14001306f
lea rcx, [0x1400bfb30]
call fcn.140001160
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400ad25c], 1
jmp 0x14001307a
call fcn.140041320
test al, al
jne 0x140013010
lea rdx, [rsp + 0x260]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test dil, dil
je 0x14003cb0c
lea rdx, [0x140096488]
lea rcx, [rsp + 0x30]
call fcn.1400022f0
lea rdx, [0x1400bdef0]
lea rcx, [rsp + 0x30]
call fcn.1400121b0
lea rdx, [0x140096488]
lea rcx, [rsp + 0x30]
call fcn.1400121b0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9, qword [rsp + 0x30]
mov rcx, rax
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x260]
lea rdx, str.runas
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.1400036e0
nop
jmp 0x140013063
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea r8, [rsp + 0x260]
lea rdx, str.runas
mov rcx, rax
lea rax, [rsp + 0x50]
mov r9, rsi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
jmp 0x140013063