Function at 0x180001b98
Capabilities:
Accept command line arguments
Copy file
Create a process with modified i/o handles and window
Create process on windows
Create thread
Delete registry value
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xe58]
sub rsp, 0xf40
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18001c290]
xor rax, rsp
mov qword [rbp + 0xe30], rax
mov rbx, rcx
xor r14d, r14d
cmp byte [0x18001f360], r14b
jne 0x180002474
mov qword [0x18001f368], rcx
call fcn.180002f8c
lea rdx, [rbp + 0x1c0]
mov edi, 0x104
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, edi
lea rcx, [rbp + 0xb10]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov edx, edi
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r8d, edi
lea rdx, [rbp + 0x4e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, edi
lea rdx, [rbp + 0xc20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, edi
lea r8, [rbp + 0x2d0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r9d, edi
lea r8, [rbp + 0x6f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
lea rcx, str._vKu
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
lea rcx, [0x180019278]
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
test rax, rax
je 0x180001d92
mov dword [rsp + 0x60], 0x68
xor edx, edx
lea r8d, [r14 + 0x60]
lea rcx, [rsp + 0x68]
call fcn.180006500
or dword [rbp - 0x64], 0x101
mov word [rbp - 0x60], r14w
lea rcx, [0x180019288]
call fcn.180003358
lea ebx, [r14 + 7]
mov qword [rbp + 8], rbx
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.180002698
nop
lea rdx, [rbp + 0x4e0]
lea rcx, [rbp - 0x10]
call fcn.1800024d0
lea rcx, [0x1800192a0]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1800024d0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
cmp qword [rbp + 8], 8
jb 0x18000246d
mov rcx, qword [rbp - 0x10]
jmp 0x180002468
lea rcx, [0x180019280]
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
test rax, rax
je 0x180001dd0
lea rcx, [0x180019100]
call fcn.180003318
mov rcx, rax
call fcn.180003438
jmp 0x18000246d
lea rcx, [0x1800192a8]
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
test rax, rax
jne 0x180001f6d
lea rcx, [0x180018ef0]
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
test rax, rax
jne 0x180001f6d
lea rcx, [0x1800192a0]
call fcn.180003318
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rbx
mov rcx, rax
call fcn.1800041d4
test rax, rax
jne 0x18000246d
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x1c0]
call fcn.1800041d4
test rax, rax
je 0x18000246d
mov ebx, 7
mov qword [rbp + 8], rbx
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp - 0x10]
call fcn.180002698
nop
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
lea rdx, [rbp + 0x6f0]
lea rcx, [rbp + 0x30]
call fcn.180002698
lea r11, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r11, qword [rbp - 0x10]
lea rcx, [0x1800192b0]
call fcn.180003358
mov rdx, rax
mov rcx, r11
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
setne dil
lea r11, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae r11, qword [rbp + 0x30]
lea rcx, [0x1800192b8]
call fcn.180003358
mov rdx, rax
mov rcx, r11
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
setne sil
call fcn.1800014c8
test eax, eax
je 0x180001f4b
cmp sil, 1
je 0x180001f4b
cmp dil, 1
je 0x180001f2d
lea rcx, [0x180019170]
call fcn.180003318
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x180001f4b
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [0x1800016bc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp qword [rbp + 0x48], 8
jb 0x180001f5b
mov rcx, qword [rbp + 0x30]
call fcn.180003c64
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
jmp 0x180001d7e
call fcn.1800014c8
test eax, eax
je 0x1800020b6
call fcn.1800017c0
lea rcx, [0x1800192c0]
call fcn.180003318
mov rcx, rax
call fcn.180001704
cmp eax, 1
jne 0x180002055
mov dword [rsp + 0x60], 0x68
xor edx, edx
lea r8d, [rax + 0x5f]
lea rcx, [rsp + 0x68]
call fcn.180006500
or dword [rbp - 0x64], 0x101
mov word [rbp - 0x60], r14w
lea rcx, [0x1800192d0]
call fcn.180003318
mov qword [rbp + 8], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp], r14
mov byte [rbp - 0x10], r14b
cmp byte [rax], r14b
jne 0x180001fe6
mov r9, r14
jmp 0x180001ff3
or r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], r14b
jne 0x180001fea
mov r8, r9
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1800027c8
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp qword [rbp + 8], 0x10
jb 0x180002055
mov rcx, qword [rbp - 0x10]
call fcn.180003c64
lea rcx, [0x180018f00]
call fcn.180003318
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000246d
lea rcx, [0x180018f18]
call fcn.180003318
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000246d
lea rdx, [rbp + 0x900]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, 7
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r14
mov word [rbp + 0x10], r14w
lea rdx, [rbp + 0x900]
lea rcx, [rbp + 0x10]
call fcn.180002698
nop
lea edx, [rbx + 9]
lea rcx, [rbp + 0x90]
call fcn.180001538
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1800028c8
nop
cmp qword [rbp + 0xa8], 8
jb 0x180002122
mov rcx, qword [rbp + 0x90]
call fcn.180003c64
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rcx, qword [rbp + 0x10]
call fcn.1800043b4
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov qword [rbp + 8], rbx
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
lea rcx, [rbp - 0x10]
call fcn.180002698
nop
lea rdx, [0x180018f20]
lea rcx, [rbp + 0x10]
call fcn.1800024d0
lea rcx, [0x180018f28]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1800024d0
lea rdx, [0x180018f20]
lea rcx, [rbp + 0x10]
call fcn.1800024d0
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rcx, qword [rbp + 0x10]
call fcn.1800043b4
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
lea rcx, [rbp + 0x30]
call fcn.180002698
nop
lea rcx, [0x180018f38]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1800024d0
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdx, qword [rbp + 0x10]
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], r14
mov word [rbp + 0x70], r14w
lea rcx, [rbp + 0x70]
call fcn.180002698
nop
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x70]
call fcn.1800024d0
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
xor r8d, r8d
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rdx, qword [rbp + 0x70]
xor r8d, r8d
lea rcx, [rbp + 0xc20]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x60], 0x68
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x68]
call fcn.180006500
or dword [rbp - 0x64], 0x101
mov word [rbp - 0x60], r14w
lea rcx, [0x180019458]
call fcn.180003358
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], r14
mov word [rbp + 0x50], r14w
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.180002698
nop
lea rcx, [0x180019494]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1800024d0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp + 0x50]
call fcn.1800024d0
lea rcx, [0x180018f48]
call fcn.180003318
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdi, 0xffffffff80000001
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002330
lea rcx, [0x180018f18]
call fcn.180003318
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x180018f00]
call fcn.180003318
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002384
lea rcx, [0x180018f18]
call fcn.180003318
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x1800194a0]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1800024d0
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rdx, qword [rbp + 0x50]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
cmp qword [rbp + 0x68], 8
jb 0x1800023f0
mov rcx, qword [rbp + 0x50]
call fcn.180003c64
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], r14
mov word [rbp + 0x50], r14w
cmp qword [rbp + 0x88], 8
jb 0x180002410
mov rcx, qword [rbp + 0x70]
call fcn.180003c64
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x80], r14
mov word [rbp + 0x70], r14w
cmp qword [rbp + 0x48], 8
jb 0x180002433
mov rcx, qword [rbp + 0x30]
call fcn.180003c64
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
cmp qword [rbp + 8], 8
jb 0x180002450
mov rcx, qword [rbp - 0x10]
call fcn.180003c64
mov qword [rbp + 8], rbx
mov qword [rbp], r14
mov word [rbp - 0x10], r14w
cmp qword [rbp + 0x28], 8
jb 0x18000246d
mov rcx, qword [rbp + 0x10]
call fcn.180003c64
mov byte [0x18001f360], 1
mov eax, 1
mov rcx, qword [rbp + 0xe30]
xor rcx, rsp
call fcn.180003c80
lea r11, [rsp + 0xf40]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret