Function at 0x10789f0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
sub rsp, 0x260
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, qword [0x010aaf10]
lea r8, [r11 - 0xf8]
or edx, 0xffffffff
xor ecx, ecx
mov word [rsp + 0x1b4], 0xdc
call qword [sym.imp.USER32.dll_EnumDisplaySettingsW]
mov edi, dword [rsp + 0x1c4]
cmp edi, 1
je 0x1078b10
cmp edi, 3
je 0x1078b10
cmp dword [rsi + 0x128], 0
je 0x1078c90
mov ebp, 0x68
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, rbp
call fcn.0107f150
and word [rsp + 0xd0], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
lea r12, [0x01067cd8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
and qword [rsp + 0x30], 0
lea rdx, str._BF_1
lea rcx, [0x01067d20]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x8000020
and dword [rsp + 0x20], 0
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0xcc], 0x80
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1078c90
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
jmp 0x1078c8a
mov ebp, 0x68
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, rbp
call fcn.0107f150
and word [rsp + 0xd0], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
lea r12, [0x01067cd8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
and qword [rsp + 0x30], 0
lea rdx, [0x0109f010]
lea rcx, [0x01067d20]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x8000020
and dword [rsp + 0x20], 0
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0xcc], 0x80
mov dword [rsp + 0x50], 0xff
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1078c90
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
xor eax, eax
cmp dword [rsp + 0x50], eax
setne al
mov dword [rsi + 0x128], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsi + 0x128], 0
je 0x1078c90
lea rcx, [rsp + 0x100]
mov r8, rbp
xor edx, edx
call fcn.0107f150
and word [rsp + 0x140], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x100]
lea rdx, str._BF_0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
and qword [rsp + 0x30], 0
lea rcx, [0x01067d20]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x8000020
and dword [rsp + 0x20], 0
mov dword [rsp + 0x100], ebp
mov dword [rsp + 0x13c], 0x80
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1078c90
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.0107dbd0
lea r11, [rsp + 0x260]
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret