Function at 0x140017834
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
lea rdx, [rbp - 0x19]
mov rcx, r8
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
cmp dword [rbp - 0x19], 6
jne 0x140017b39
mov rax, qword [rax]
mov qword [0x140069fc0], rax
mov rax, qword [rdi + 8]
mov qword [0x140069fe8], rax
lea ebx, [r15 + 0x10]
mov r8d, ebx
xor edx, edx
mov rcx, qword [rdi + 0x10]
call fcn.14002d6f4
mov qword [0x140069fc8], rax
mov r8d, ebx
xor edx, edx
mov rcx, qword [rdi + 0x18]
call fcn.14002d6c4
mov dword [0x140069fe4], eax
mov rax, qword [rdi + 0x20]
mov qword [0x140069fd8], rax
xor edx, edx
lea r8d, [r15 + 0xa]
mov rcx, qword [rdi + 0x28]
call fcn.14002d6c4
mov dword [0x140069fe0], eax
mov rcx, qword [0x140069fc0]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400178e7
test rax, rax
je 0x140017b39
mov rcx, qword [0x140069fe8]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140017904
test rax, rax
je 0x140017b39
mov rcx, qword [0x140069fc8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140017b39
cmp dword [0x140069fe4], r15d
je 0x140017b39
mov rax, qword [0x140069fd8]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140017940
test rbx, rbx
je 0x140017b39
cmp dword [0x140069fe0], r15d
je 0x140017b39
call fcn.140017524
cmp qword [0x14006a368], r15
jne 0x14001797b
cmp qword [0x14006a360], r15
je 0x140017a07
movsxd rbx, dword [0x140069fe0]
call fcn.140017524
mov rdx, qword [0x14006a360]
mov rax, qword [0x14006a368]
test rax, rax
jne 0x1400179a4
test rdx, rdx
je 0x1400179c5
test rax, rax
je 0x1400179b0
mov rcx, rbx
call rax
test eax, eax
setne al
jmp 0x1400179c1
mov ecx, r15d
cmp rbx, 0xfffffffffffffffe
sete cl
call rdx
test eax, eax
sete al
test al, al
jne 0x140017a07
call fcn.140017524
mov rax, qword [0x14006a358]
test rax, rax
jne 0x1400179db
mov rbx, r15
jmp 0x1400179e3
mov rcx, rbx
call rax
mov rbx, rax
call fcn.140017524
mov rax, qword [0x14006a358]
test rax, rax
jne 0x1400179f9
mov rax, r15
jmp 0x1400179fe
mov rcx, rbx
call rax
cmp rbx, rax
jne 0x140017b39
mov ebx, 1
mov ecx, ebx
call fcn.1400246c8
mov qword [rbp - 0x11], rax
mov byte [rsp + 0x20], r15b
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x140069fc0]
lea ecx, [rbx + 0x4c]
call fcn.140041424
mov ecx, 0x1f4
call fcn.140041214
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rcx, r14
call fcn.140017f24
test al, al
jne 0x140017a5a
mov ebx, 2
jmp 0x140017b3e
call fcn.14001f3a8
lea rdx, [rbp - 0x15]
mov rcx, qword [0x140069fc8]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp - 0x15]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0xf], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x17], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 9]
lea r8, [0x14001d274]
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140017b5d
mov qword [rbp - 1], rax
mov rdx, r14
lea rcx, [rbp + 0x1f]
call fcn.14001d31c
nop
call fcn.14001803c
mov ebx, eax
lea rcx, [rbp + 0x1f]
call fcn.14001d3d0
nop
lea rcx, [rbp - 9]
call fcn.14001d208
call fcn.14001a3ec
nop
test rsi, rsi
je 0x140017b2e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x11], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140017b3e
mov ebx, 1
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001d2fc
nop
int3