Function at 0x140003160
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor edi, edi
mov qword [rbp - 0x68], rdx
lea rax, [0x140019040]
mov qword [rbp - 0x58], rdx
mov r15, rdx
mov qword [0x14001daf8], rdx
mov edx, 1
mov dword [rsp + 0x70], ecx
mov r13d, ecx
mov dword [rsp + 0x78], edi
mov ebx, edi
mov dword [rsp + 0x50], edi
mov ecx, edx
mov qword [rbp - 0x78], rbx
mov r12d, edi
mov dword [rsp + 0x7c], edi
mov dword [rbp - 0x80], edi
mov esi, edi
mov qword [rsp + 0x48], rdi
mov r14, rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x64], edi
mov qword [rbp - 0x70], rax
call qword [sym.imp.php7.dll_php_win32_console_fileno_set_vt100]
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
call qword [sym.imp.php7.dll_php_win32_console_fileno_set_vt100]
lea rax, [0x14000dcb0]
mov qword [0x140019148], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___p__fmode]
xor ecx, ecx
mov dword [rax], 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
lea ecx, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov dword [rsp + 0x30], 2
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], edi
lea r9, [rsp + 0x48]
lea r8, [0x14000da50]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov ecx, r13d
call qword [sym.imp.php7.dll_php_getopt]
cmp eax, 0xffffffff
je 0x140003535
add eax, 0xffffffc1
lea r8, str.cli_set_process_title
lea rcx, [0x140000000]
cmp eax, 0x37
ja case.0x1400032e2.70
cdqe
movzx eax, byte [rcx + rax + 0x38b4]
mov edx, dword [rcx + rax*4 + 0x3894]
add rdx, rcx
jmp rdx
test rbx, rbx
je 0x1400032f2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov qword [rbp - 0x78], rax
jmp case.0x1400032e2.70
mov dword [rsp + 0x64], 1
jmp case.0x1400032e2.70
mov rcx, qword [rsp + 0x48]
or rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rcx + rdi], r12b
jne 0x140003320
mov edx, 0x3d
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x14000345a
movsx ecx, byte [rax + 1]
lea rbx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
test eax, eax
jne 0x1400033fe
movzx eax, byte [rbx]
cmp al, 0x27
ja 0x140003372
movabs rcx, 0x8400000001
bt rcx, rax
jb 0x1400033fe
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
add rdx, 5
add rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdx, qword [rsp + 0x48]
mov r8, rbx
mov rcx, qword [rsp + 0x40]
sub r8, rdx
add rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
mov rax, rbx
sub rax, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x60]
add rcx, rax
inc rdx
sub rdi, rdx
mov byte [rcx + rsi], 0x22
lea rbx, [rcx + 1]
mov r8, qword [rsp + 0x48]
lea rcx, [rbx + rsi]
add r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbx + rdi]
mov rbx, qword [rbp - 0x78]
add rdx, qword [rsp + 0x48]
xor edi, edi
lea rax, [rdx + 2]
mov dword [rdx + rsi], 0xa22
mov qword [rsp + 0x40], rax
jmp case.0x1400032e2.70
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
add rbx, rdi
lea rdx, [rbx + 3]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, qword [rsp + 0x40]
mov r8, rdi
mov rdx, qword [rsp + 0x48]
add rcx, rax
mov rsi, rax
mov qword [rsp + 0x58], rax
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [0x14000d968]
xor edi, edi
mov word [rbx + rsi], ax
movzx eax, byte [0x14000d96a]
mov byte [rbx + rsi + 2], al
lea rax, [rbx + 1]
mov rbx, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
jmp case.0x1400032e2.70
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
add rbx, rdi
lea rdx, [rbx + 5]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, qword [rsp + 0x40]
mov r8, rdi
mov rdx, qword [rsp + 0x48]
add rcx, rax
mov rsi, rax
mov qword [rsp + 0x58], rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x14000d96c]
xor edi, edi
mov dword [rbx + rsi], eax
movzx eax, byte [0x14000d970]
mov byte [rbx + rsi + 4], al
lea rax, [rbx + 3]
mov rbx, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
jmp case.0x1400032e2.70
lea r14, str.cli_server
mov qword [0x140019338], r8
mov qword [rbp - 0x70], r14
jmp case.0x1400032e2.70
mov dword [rsp + 0x68], 1
jmp case.0x1400032e2.70
mov rcx, qword [r15]
mov edx, 0x2f
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1400034f0
inc rax
jmp 0x1400034f7
lea rax, [0x14000ccb8]
mov qword [rsp + 0x38], rax
lea rcx, str.Usage:__s__options____f___file________args...__n____s__options___r__code________args...__n____s__options____B__begin_code____R__code____E__end_code_________args...__n____s__options____B__begin_code____F__file____E__end_code_________args...__n____s__options___S__addr_:_port____t_docroot___router__n____s__options______args...__n____s__options___a_n_n___a_______________Run_as_interactive_shell_n___c__path__file__Look_for_php.ini_file_in_this_directory_n___n_______________No_configuration__ini__files_will_be_used_n___d_foo_bar______Define_INI_entry_foo_with_value_bar_n___e_______________Generate_extended_information_for_debugger_profiler_n___f__file_________Parse_and_execute__file_._n___h_______________This_help_n___i_______________PHP_information_n___l_______________Syntax_check_only__lint__n___m_______________Show_compiled_in_modules_n___r__code_________Run_PHP__code__without_using_script_tags___..___n___B__begin_code___Run_PHP__begin_code__before_processing_input_lines_n___R__code_________Run_PHP__code__for_every_input_line_n___F__file_________Parse_and_execute__file__for_every_input_line_n___E__end_code_____Run_PHP__end_code__after_processing_all_input_lines_n___H_______________Hide_any_passed_arguments_from_external_tools._n___S__addr_:_port__Run_with_built_in_web_server._n___t__docroot______Specify_document_root__docroot__for_built_in_web_server._n___s_______________Output_HTML_syntax_highlighted_source._n___v_______________Version_number_n___w_______________Output_source_with_stripped_comments_and_whitespace._n___z__file_________Load_Zend_extension__file_._n_n__args...__________Arguments_passed_to_script._Use____args_when_first_argument_n___________________starts_with___or_script_is_read_from_stdin_n_n____ini____________Show_configuration_file_names_n_n____rf__name_______Show_information_about_function__name_._n____rc__name_______Show_information_about_class__name_._n____re__name_______Show_information_about_extension__name_._n____rz__name_______Show_information_about_Zend_extension__name_._n____ri__name_______Show_configuration_for_extension__name_._n_n
mov qword [rsp + 0x30], rax
mov r9, rax
mov qword [rsp + 0x28], rax
mov r8, rax
mov rdx, rax
mov qword [rsp + 0x20], rax
call fcn.140001060
jmp 0x140003808
lea r12, [0x140019040]
mov r14, r12
mov qword [rbp - 0x70], r12
jmp 0x14000353c
lea r12, [0x140019040]
lea rax, [0x1400017f0]
mov rcx, r14
mov qword [r14 + 0xf0], rax
mov qword [r14 + 0xa0], rbx
mov dword [r14 + 0xf8], 1
mov dword [r14 + 0xc4], 1
call qword [sym.imp.php7.dll_sapi_startup]
mov eax, dword [rsp + 0x64]
mov dword [r14 + 0xc0], eax
mov rax, qword [r15]
mov qword [r14 + 0xb8], rax
mov dword [rbp - 0x80], 1
cmp r14, r12
jne 0x14000368c
test rsi, rsi
je 0x14000362d
mov rbx, qword [rsp + 0x40]
mov rcx, rsi
lea rdx, [rbx + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
lea r8, [rbx + 1]
mov qword [rsp + 0x58], rax
mov rdx, rax
mov rsi, rax
lea rcx, [rax + 0x6e]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
movaps xmm0, xmmword [str.html_errors0_nregister_argc_argv1_nimplicit_flush1_noutput_buffering0_nmax_execution_time0_nmax_input_time_1_n]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x14000d990]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x14000d9a0]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [0x14000d9b0]
movups xmmword [rsi + 0x30], xmm1
movaps xmm0, xmmword [0x14000d9c0]
movups xmmword [rsi + 0x40], xmm0
movaps xmm1, xmmword [0x14000d9d0]
movups xmmword [rsi + 0x50], xmm1
movsd xmm0, qword [0x14000d9e0]
movsd qword [rsi + 0x60], xmm0
mov eax, dword [0x14000d9e8]
mov dword [rsi + 0x68], eax
movzx eax, word [0x14000d9ec]
mov word [rsi + 0x6c], ax
jmp 0x14000368c
mov ecx, 0x70
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movaps xmm0, xmmword [str.html_errors0_nregister_argc_argv1_nimplicit_flush1_noutput_buffering0_nmax_execution_time0_nmax_input_time_1_n]
mov rsi, rax
mov qword [rsp + 0x58], rax
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14000d990]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14000d9a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14000d9b0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14000d9c0]
movups xmmword [rax + 0x40], xmm0
movaps xmm1, xmmword [0x14000d9d0]
movups xmmword [rax + 0x50], xmm1
movaps xmm0, xmmword [0x14000d9e0]
movups xmmword [rax + 0x60], xmm0
mov qword [r14 + 0x100], rsi
mov rbx, qword [r14 + 0x10]
mov rcx, rbx
call qword [fcn.1400017c0]
mov rcx, r14
call rbx
cmp eax, 0xffffffff
jne 0x1400036ba
mov r12d, 1
mov dword [rsp + 0x50], r12d
jmp 0x140003804
xor ecx, ecx
mov dword [rsp + 0x7c], 1
call qword [sym.imp.php7.dll_php_win32_cp_cli_do_setup]
call qword [sym.imp.php7.dll_php_win32_cp_get_orig]
mov ecx, dword [rax]
mov dword [0x14001dac0], ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x54]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rcx, dword [rsp + 0x54]
mov r14, rax
mov dword [rsp + 0x70], ecx
shl rcx, 3
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x68], rax
mov rsi, rax
test rax, rax
je 0x140003749
cmp dword [rsp + 0x54], 0
jle 0x140003747
nop word [rax + rax]
movsxd rax, edi
or r8, 0xffffffffffffffff
xor edx, edx
lea rbx, [rax*8]
mov rcx, qword [rbx + r14]
call qword [sym.imp.php7.dll_php_win32_cp_conv_w_to_cur]
inc edi
mov qword [rbx + rsi], rax
cmp edi, dword [rsp + 0x54]
jl 0x140003720
xor edi, edi
mov edx, 1
mov dword [rsp + 0x78], 1
lea rcx, [0x140001f30]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp dword [rsp + 0x68], 0
je 0x140003778
mov rax, qword [sym.imp.php7.dll_compiler_globals]
or dword [rax + 0xe4], 1
mov rax, qword [sym.imp.php7.dll_executor_globals]
mov rdx, rsp
mov qword [rax + 0x1a0], rdi
mov rcx, qword [sym.imp.php7.dll_executor_globals]
mov rax, qword [rcx + 0x1a0]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x50]
mov qword [rcx + 0x1a0], rax
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll___intrinsic_setjmp
mov r13d, dword [rsp + 0x70]
mov r15, qword [rbp - 0x68]
test eax, eax
jne 0x1400037e4
mov rdx, r15
mov ecx, r13d
cmp qword [rbp - 0x70], r12
jne 0x1400037d6
call fcn.140001f50
mov r12d, eax
mov dword [rsp + 0x50], eax
jmp 0x1400037e9
call fcn.140008890
mov r12d, eax
mov dword [rsp + 0x50], eax
jmp 0x1400037e9
mov r12d, dword [rsp + 0x50]
mov rax, qword [sym.imp.php7.dll_executor_globals]
mov rcx, qword [rbp - 0x60]
mov edi, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x58]
mov qword [rax + 0x1a0], rcx
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140003816
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x140003824
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x7c], 0
je 0x140003831
call qword [sym.imp.php7.dll_php_module_shutdown]
cmp dword [rbp - 0x80], 0
je 0x14000383d
call qword [sym.imp.php7.dll_sapi_shutdown]
xor ecx, ecx
call qword [sym.imp.php7.dll_php_win32_cp_cli_do_restore]
test edi, edi
je 0x14000387b
test r13d, r13d
jle 0x140003867
mov rbx, r15
mov edi, r13d
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140003854
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x68], rax
call fcn.14000acf0
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3