Function at 0x140002fa0
Capabilities:
Accept command line arguments
Access peb ldr_data
Check for peb beingdebugged flag
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140009008]
xor rax, rsp
mov qword [rbp + 0xb0], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov edi, dword [rax]
mov dword [rsp + 0x54], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
xor r15d, r15d
mov ebx, r15d
mov dword [rsp + 0x58], r15d
mov r14d, r15d
mov dword [rsp + 0x40], r15d
mov rax, qword [rax]
mov r12d, r15d
mov rdx, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], rax
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x5c], r15d
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x50], r15d
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x4c], r15d
call fcn.140003820
mov rsi, rax
mov qword [rsp + 0x78], rax
lea rax, [0x140006b00]
mov qword [0x140009148], rax
call qword [sym.imp.php8ts.dll_php_tsrm_startup]
mov rcx, qword gs:[0x58]
mov r13d, 8
add r13, qword [rcx]
call qword [sym.imp.php8ts.dll_tsrm_get_ls_cache]
mov qword [r13], 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, [r15 + 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, [r15 + 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]
lea rcx, [rbp - 0x78]
call fcn.1400010c0
mov dword [rsp + 0x30], 2
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
lea r9, [rsp + 0x68]
lea r8, [0x140006890]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.php8ts.dll_php_getopt]
cmp eax, 0xffffffff
je case.0x140003141.3
add eax, 2
lea rcx, [0x140000000]
cmp eax, 0x78
ja case.0x140003141.5
cdqe
movzx eax, byte [rcx + rax + 0x345c]
mov edx, dword [rcx + rax*4 + 0x343c]
add rdx, rcx
jmp rdx
test rbx, rbx
je 0x140003151
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov qword [rbp - 0x80], rax
jmp case.0x140003141.5
mov dword [rsp + 0x4c], 1
jmp case.0x140003141.5
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x78]
call qword [sym.imp.php8ts.dll_php_ini_builder_define]
jmp case.0x140003141.5
mov dword [rsp + 0x50], 1
jmp case.0x140003141.5
mov rcx, qword [rsi]
call fcn.140001870
mov r13, qword [rsp + 0x70]
jmp 0x1400033b3
mov rcx, qword [rsi]
call fcn.140001870
mov r13, qword [rsp + 0x70]
mov r14d, 1
mov dword [rsp + 0x40], r14d
jmp 0x1400033b3
lea rax, [0x140001800]
mov qword [0x1400090e0], rbx
lea rcx, [0x140009040]
mov qword [0x140009130], rax
mov dword [0x140009138], 1
mov dword [0x140009104], 1
call qword [sym.imp.php8ts.dll_sapi_startup]
mov eax, dword [rsp + 0x4c]
lea rdx, str.html_errors0_nregister_argc_argv1_nimplicit_flush1_noutput_buffering0_nmax_execution_time0_nmax_input_time_1_n
mov r12d, 1
mov dword [0x140009100], eax
mov rax, qword [rsi]
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x5c], r12d
mov qword [0x1400090f8], rax
lea r8d, [r12 + 0x6d]
call qword [sym.imp.php8ts.dll_php_ini_builder_prepend]
lea rcx, [rbp - 0x78]
call fcn.1400010e0
mov qword [0x140009140], rax
lea rcx, [0x140009040]
mov rax, qword [0x140009050]
call qword [0x140005638]
cmp eax, 0xffffffff
jne 0x14000326b
mov r13, qword [rsp + 0x70]
mov r14d, r12d
mov dword [rsp + 0x40], r12d
jmp 0x1400033b3
xor ecx, ecx
mov dword [rsp + 0x60], r12d
call qword [sym.imp.php8ts.dll_php_win32_cp_cli_do_setup]
call qword [sym.imp.php8ts.dll_php_win32_cp_get_orig]
mov ecx, dword [rax]
mov dword [0x14000982c], ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x44]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rcx, dword [rsp + 0x44]
mov r14, rax
mov dword [rsp + 0x54], ecx
shl rcx, 3
mov qword [rbp - 0x58], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
je 0x1400032f7
mov edi, r15d
cmp dword [rsp + 0x44], r15d
jle 0x1400032f7
nop dword [rax + rax]
movsxd rcx, edi
xor edx, edx
lea rbx, [rcx*8]
mov rcx, qword [rbx + r14]
lea r8, [rdx - 1]
call qword [sym.imp.php8ts.dll_php_win32_cp_conv_w_to_cur]
inc edi
mov qword [rbx + rsi], rax
cmp edi, dword [rsp + 0x44]
jl 0x1400032d0
mov edx, r12d
mov dword [rsp + 0x58], r12d
lea rcx, [0x140001ab0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rdx, qword [r13]
cmp dword [rsp + 0x50], r15d
je 0x140003329
mov rax, qword [sym.imp.php8ts.dll_compiler_globals_offset]
mov rcx, qword [rax]
or dword [rdx + rcx + 0xac], 3
mov rcx, qword [sym.imp.php8ts.dll_executor_globals_offset]
mov rax, qword [rcx]
mov qword [rdx + rax + 0x1a0], r15
mov rcx, qword [rcx]
mov rax, qword [rcx + rdx + 0x1a0]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rcx + rdx + 0x1a0], rax
lea rcx, [rbp - 0x50]
mov rdx, rsp
call sub.VCRUNTIME140.dll___intrinsic_setjmp
mov edi, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x78]
test eax, eax
jne 0x140003382
mov rdx, rsi
mov ecx, edi
call fcn.140001ad0
mov r14d, eax
mov dword [rsp + 0x40], eax
jmp 0x140003387
mov r14d, dword [rsp + 0x40]
mov rax, qword [sym.imp.php8ts.dll_executor_globals_offset]
mov rcx, qword [r13]
mov r13, qword [rbp - 0x60]
mov r15d, dword [rsp + 0x58]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x68]
mov r12d, dword [rsp + 0x5c]
mov rbx, qword [rbp - 0x80]
mov qword [rdx + rcx + 0x1a0], rax
test rbx, rbx
je 0x1400033c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x78]
call fcn.1400010d0
cmp dword [rsp + 0x60], 0
je 0x1400033d7
call qword [sym.imp.php8ts.dll_php_module_shutdown]
test r12d, r12d
je 0x1400033e2
call qword [sym.imp.php8ts.dll_sapi_shutdown]
call qword [sym.imp.php8ts.dll_tsrm_shutdown]
xor ecx, ecx
call qword [sym.imp.php8ts.dll_php_win32_cp_cli_do_restore]
test r15d, r15d
je 0x140003426
test edi, edi
jle 0x140003413
mov rbx, rsi
nop dword [rax]
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 0x140003400
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x78], r13
call fcn.1400038b0
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3