Function at 0x140030340
Capabilities:
Accept command line arguments
Create process on windows
Set console window title
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
sub rsp, 0x190
lea rbp, [rsp + 0x80]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14038c080]
xor rax, rsp
mov qword [rbp + 0x100], rax
lea rcx, [0x1403a6c60]
call fcn.14008b7d0
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14003048f
mov rcx, qword [rbp]
lea rax, [rbp + 0x10]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x20]
mov edx, reloc.WLDAP32.dll_Ordinal_26
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400303d6
mov ebx, 1
jmp 0x1400303dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140030495
cmp dword [rbp + 0x20], edi
jne 0x140030495
lea rcx, [rbp + 8]
call fcn.14002ffc0
test eax, eax
jne 0x140030495
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rbp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x50], rcx
mov r8, rax
lea rcx, [rbp + 0x40]
xor edx, edx
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14003047d
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140030495
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movabs rsi, 0xde983df48cc77376
movabs r14, 0xb19d01994d69337d
mov rbx, rax
movabs rax, 0xb19d01994d69330f
mov qword [rbp], rax
mov rcx, qword [rbp]
mov qword [rbp + 0x10], rcx
mov qword [rbp], rsi
mov rcx, qword [rbp]
mov qword [rbp + 0x18], rcx
mov qword [rbp], r14
mov rcx, qword [rbp]
mov qword [rbp + 0xc0], rcx
xor ecx, ecx
mov qword [rbp], rsi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x10]
mov qword [rbp + 0xc8], rax
movabs rax, 0xb19d25d704277c3e
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0xc0], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0xc8], rax
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [rbp + 0x10]
mov rcx, rax
lea rdx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
movabs rax, 0xb19d01994d69330a
mov qword [rbp], rax
mov rcx, qword [rbp]
mov qword [rbp + 0x40], rcx
mov qword [rbp], rsi
mov rcx, qword [rbp]
mov qword [rbp + 0x48], rcx
mov qword [rbp], r14
mov rcx, qword [rbp]
mov qword [rbp + 0xc0], rcx
mov ecx, 1
mov qword [rbp], rsi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0xc8], rax
movabs rax, 0xb1b955cc02277c3e
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0xc0], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x10]
mov qword [rbp + 0xc8], rax
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x10], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [rbp + 0x40]
mov rcx, rax
lea rdx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
movabs rcx, 0x76edd638a56594ea
movabs rax, 0xd2f348b929005c2b
mov qword [rbp], rax
movabs rdi, 0xeb6b480f436a39b7
mov rax, qword [rbp]
movabs rbx, 0x5c67bc1a952e66a8
mov qword [rbp + 0x40], rax
movabs rax, 0xb0ea5880f4825358
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0xcb0a3c6a014a55d6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
movabs rax, 0x6d319c7ef94713ea
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0xb6c4023fcb4ac6f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0xc0], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0xd0], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0xd8], rax
movabs rax, 0xb6c700dcc9a9c41
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
mov qword [rbp], rcx
lea rcx, [rbp + 0x40]
mov rax, qword [rbp]
movdqa xmm2, xmmword [rbp + 0x60]
vmovdqu ymm0, ymmword [rbp + 0xc0]
vpxor ymm1, ymm0, ymmword [rbp + 0x40]
mov qword [rbp + 0xe8], rax
vxorps xmm2, xmm2, xmmword [rbp + 0xe0]
vmovdqa ymmword [rbp + 0x40], ymm1
vmovdqa xmmword [rbp + 0x60], xmm2
vzeroupper
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movabs rax, 0xdec421eb281d5d38
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc0], rax
movabs rax, 0xb0fd5e9dc0e70103
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0xd14b316a084a5cc4
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xd0], rax
movabs rax, 0x5c67bc1a952e6688
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xd8], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
lea rdx, [rbp + 0xc0]
mov qword [rbp + 0x48], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0xc0]
vmovdqa ymmword [rbp + 0xc0], ymm1
vzeroupper
call fcn.14002d820
lea rdx, [0x14002da00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movdqa xmm1, xmmword [0x140370490]
lea rdx, [rbp + 0xc0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xc0], 0
movdqu xmmword [rbp + 0xd0], xmm1
call fcn.140030eb0
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x40]
call fcn.14000d950
mov rdx, rax
lea rcx, [0x1403a6c60]
call fcn.14008d120
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp byte [0x1403a6e70], 0
mov rbx, rax
jne 0x14003093d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp + 0x40]
movabs rax, 0xdeef73dc6d571841
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0xde983df4acfd5304
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0xc0], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0xc8], rax
xorps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0x40], xmm0
call fcn.14002d820
mov rcx, rax
lea rdx, [0x1403a6e78]
call fcn.1400310c0
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test rbx, rbx
je 0x14003095c
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
call fcn.140002600
cmp byte [0x1403a55a8], 0
jne 0x1400309c7
movabs rbx, 0x7fffffffc46535ff
mov esi, 0xff
movabs rdi, 0x7fffffffffffffff
lea rcx, [rbp]
call fcn.140001fb0
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
cmp rax, rbx
je 0x1400309b1
mov ecx, 1
cmovl ecx, esi
test cl, cl
jns 0x1400309b1
add rax, 0x3b9aca00
mov qword [rbp + 0x10], rax
jmp 0x1400309b5
mov qword [rbp + 0x10], rdi
lea rcx, [rbp + 0x10]
call fcn.140004cd0
cmp byte [0x1403a55a8], 0
je 0x140030983
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140030a0b
mov rcx, qword [rbp + 0xc0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030a06
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030a06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14014a134
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140149e90
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret