Function at 0x1400014d0
Capabilities:
Accept command line arguments
Access pe header
Create thread
Inject thread

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x70
call fcn.1400018c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r14d, r14d
lea rdx, [rsp + 0xa0]
mov rcx, rax
mov dword [rsp + 0xa0], r14d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0xa0], 4
mov rbx, rax
jne 0x1400017e8
mov r8, qword [rax + 0x10]
lea r12, [0x140003020]
mov rcx, r12
mov edx, 0x104
call qword [sym.imp.ntdll.dll_wcscpy_s]
test eax, eax
jne 0x1400017e8
mov r8, qword [rbx + 0x18]
lea edx, [rax + 0x40]
lea rcx, [0x140003228]
call qword [sym.imp.ntdll.dll_wcscpy_s]
test eax, eax
jne 0x1400017e8
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x98]
lea rdx, [0x140002190]
mov dword [rsp + 0x98], r14d
call sub.ntdll.dll_swscanf_s
cmp eax, 1
jne 0x1400017e8
mov rax, qword [rbx + 8]
cmp word [rax], 0x30
jne 0x1400015a1
movzx eax, word [rax + 2]
mov ecx, 0xffdf
sub ax, 0x58
test cx, ax
jne 0x1400015a1
movsxd rax, dword [rsp + 0x98]
mov rbx, rax
jmp 0x1400015d4
mov eax, dword [rsp + 0x98]
cmp eax, 0xffffffff
jne 0x1400015ba
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x98], eax
mov r8d, eax
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov eax, dword [rsp + 0x98]
test rbx, rbx
jne 0x1400015f1
test eax, eax
je 0x1400017e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x70
pop r14
pop r12
pop rbx
ret
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0xa8], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400017df
lea rdx, [rsp + 0xa8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400017df
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x40], eax
jne 0x1400017df
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rsi
mov rsi, r14
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r15
lea r15, [0x140000000]
mov rcx, r15
call sub.ntdll.dll_RtlImageNtHeader
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
xor edx, edx
mov rcx, rbx
mov ebp, dword [rax + 0x50]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x140001761
mov rdx, rax
mov rcx, r15
call fcn.140001120
mov rsi, rax
test rax, rax
je 0x140001761
mov r9d, ebp
mov qword [rsp + 0x20], r14
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001761
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call sym.injector.exe_int___cdecl_CopyImageProtect_struct__IMAGE_DOS_HEADER____ptr64__void____ptr64__void____ptr64_
test eax, eax
je 0x140001761
lea rcx, [0x1400013b0]
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
sub r9, r15
xor r8d, r8d
xor edx, edx
lea rax, [r9 + r12]
add r9, rcx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbp, rax
test rax, rax
je 0x140001761
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xa8]
mov dword [rsp + 0xa8], r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14000176e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rsi, rsi
je 0x14000179c
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0xa8], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x8000
lea r8, [rsp + 0xa8]
mov rcx, rax
lea rdx, [rsp + 0x40]
call sub.ntdll.dll_NtFreeVirtualMemory
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400017c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
mov eax, ebp
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
pop r14
pop r12
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x57
add rsp, 0x70
pop r14
pop r12
pop rbx
ret