Function at 0x140002c50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8c0
mov rax, qword [0x14007bb58]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov ebp, 1
mov dword [rsp + 0x40], ecx
mov r14d, ecx
mov qword [rsp + 0x58], rdx
xor r15d, r15d
mov dword [rsp + 0x4c], ebp
mov ecx, ebp
mov qword [rsp + 0x70], r15
mov r12, rdx
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 + 0x48], ebp
mov r13d, ebp
lea rdi, str.auto
cmp r14d, ebp
jle 0x1400032bf
mov r14d, ebp
mov qword [rsp + 0x60], rbp
nop
mov r9, qword [rsp + 0x58]
lea r12, [0x1400554be]
mov dword [rsp + 0x44], r15d
mov rsi, qword [r9 + r14*8]
cmp byte [rsi], 0x2d
jne 0x140003348
movzx eax, byte [rsi + 1]
lea rdi, [rsi + 1]
test al, al
je 0x140003330
cmp al, 0x2d
jne 0x140002f78
add rsi, 2
mov edx, 0x3d
mov rcx, rsi
call sub.VCRUNTIME140.dll_strchr
cmp byte [rsi], 0
mov rdi, rax
mov qword [rsp + 0x68], rax
je 0x140003328
cmp dword [0x14007b144], 0
lea rbx, [0x14007b140]
mov ebp, 1
mov dword [rsp + 0x50], ebp
je 0x140002dbc
mov rcx, qword [rbx + 0x10]
mov edx, 0x28
call sub.VCRUNTIME140.dll_strchr
mov rcx, qword [rbx + 0x10]
mov edx, 0x3d
mov r13, rax
call sub.VCRUNTIME140.dll_strchr
mov r14, rax
test r13, r13
jne 0x140002e46
test rax, rax
jne 0x140002dd0
mov r8, qword [rbx + 0x10]
mov rax, rsi
sub r8, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002da3
inc rax
test ecx, ecx
jne 0x140002d90
test edx, edx
jne 0x140002f23
mov r13d, dword [rsp + 0x48]
xor r15d, r15d
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x44]
cmp dword [rbx + 4], 0
je 0x140004294
jmp 0x14000306f
sub r14d, dword [rbx + 0x10]
test rdi, rdi
jne 0x140002deb
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140002de0
jmp 0x140002df1
mov eax, edi
sub eax, esi
mov edi, eax
cmp r14d, edi
jne 0x140002f1e
mov rdx, qword [rbx + 0x10]
mov rcx, rsi
movsxd r8, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140002f1e
mov ebp, dword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov r13d, dword [rsp + 0x48]
movsxd rax, edi
lea rcx, [rax + rsi]
movzx eax, byte [rax + rsi]
lea r12, [rcx + 1]
cmp al, 0x3d
cmovne r12, rcx
xor r15d, r15d
cmp al, 0x3d
mov r8d, r15d
sete r8b
jmp 0x140002dc1
mov rcx, qword [rbx + 0x10]
mov r15d, r13d
sub r15d, dword [rbx + 0x10]
mov edx, 0x29
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
mov eax, 1
sub eax, dword [rbx + 0x10]
add ebp, eax
test rdi, rdi
je 0x140002e76
test r14, r14
je 0x140002e76
sub edi, esi
jmp 0x140002e89
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140002e80
mov rax, qword [rbx + 0x10]
lea r8, str._.s
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.1400064b0
cmp eax, 0x18
ja 0x1400042f8
lea rax, [r13 + 1]
sub ebp, r15d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
sub ebp, 2
lea r8, str._s_.s
mov edx, 0x18
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x90]
call fcn.1400064b0
cmp eax, 0x18
ja 0x1400042f8
movsxd rdi, edi
lea rdx, [rsp + 0x78]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140002f36
mov r8, rdi
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140002f36
mov rdi, qword [rsp + 0x68]
add rbx, 0x20
cmp dword [rbx + 4], 0
jne 0x140002d51
jmp 0x140002dab
test r14, r14
je 0x140002dab
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140002dab
mov r14, qword [rsp + 0x60]
xor r15d, r15d
cmp byte [rax], 0x3d
mov r12, rax
mov r13d, dword [rsp + 0x48]
jne 0x140002db8
mov r8d, 1
lea r12, [rax + 1]
mov ebp, r8d
jmp 0x140002dc1
mov ebp, r15d
nop dword [rax + rax]
mov eax, dword [0x14007b144]
lea rbx, [0x14007b140]
test eax, eax
je 0x140002fa3
movsx ecx, byte [rdi]
cmp ecx, eax
je 0x140002fa3
mov eax, dword [rbx + 0x24]
add rbx, 0x20
test eax, eax
jne 0x140002f94
cmp dword [rbx + 4], 0
je 0x140004388
movzx edx, byte [rdi + 1]
lea r12, [rdi + 1]
test dl, dl
je 0x14000306a
mov ecx, dword [rbx]
lea eax, [rcx - 6]
cmp eax, 1
jbe 0x14000303b
test ecx, ecx
je 0x140003048
mov r8d, dword [rsp + 0x44]
cmp byte [r12], 0
jne 0x1400030d1
lea eax, [rcx - 2]
test eax, 0xfffffffa
jne 0x1400030a5
cmp ecx, 3
je 0x1400030a5
mov eax, dword [rbx + 4]
cmp eax, 0xffffffff
je 0x140003092
cmp eax, 0x6f
jne 0x14000328c
mov rdx, qword [0x14007bbe8]
xor ecx, ecx
call fcn.140001010
cmp qword [0x14007bbe0], 0
mov r10d, dword [rsp + 0x40]
mov qword [0x14007bbe8], rax
jne 0x140003291
mov qword [0x14007bbe0], rax
jmp 0x140003291
movzx ecx, dl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
jne 0x14000306a
movsx ecx, byte [rdi]
mov edx, dword [0x14007bca8]
call fcn.140002710
cmp byte [r12], 0
mov rdi, r12
mov dword [0x14007bca8], eax
jne 0x140002f80
mov r8d, dword [rsp + 0x44]
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140002fd0
mov edx, dword [0x14007bca8]
mov ecx, dword [rbx + 4]
call fcn.140002710
mov dword [0x14007bca8], eax
jmp 0x14000328c
lea r10, str.auto
mov qword [0x14007bb90], r10
jmp 0x14000328c
mov r10d, dword [rsp + 0x40]
lea eax, [r10 - 1]
cmp r13d, eax
jge 0x140004321
test r8d, r8d
jne 0x140004321
mov r9, qword [rsp + 0x58]
inc r13d
inc r14
mov r12, qword [r9 + r14*8]
jmp 0x1400030d6
mov r10d, dword [rsp + 0x40]
cmp ecx, 7
jne 0x140003121
mov r8d, ebp
mov rdx, rbx
mov rcx, r12
call fcn.140001a50
mov rbx, qword [rbx + 8]
mov ecx, eax
mov rdx, qword [rbx + 8]
mov rdx, qword [rdx]
call fcn.140001010
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rdx, qword [rbx]
cmp qword [rdx], 0
jne 0x14000328c
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
jmp 0x14000328c
cmp ecx, 8
jne 0x140003179
mov rbx, qword [rbx + 8]
mov rdx, 0xffffffffffffffff
mov r8, qword [rbx + 8]
inc rdx
cmp byte [r12 + rdx], 0
jne 0x140003135
mov r8, qword [r8]
mov rcx, r12
call fcn.140001080
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140004005
mov rax, qword [rbx]
cmp qword [rax], 0
jne 0x14000328c
mov qword [rax], rcx
jmp 0x14000328c
cmp ecx, 9
jne 0x1400031ce
mov rbx, qword [rbx + 8]
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x140003b5c
mov qword [rax], r15
mov qword [rax + 8], r12
mov rax, qword [rbx]
cmp qword [rax], 0
jne 0x1400031b8
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rax], rdx
jmp 0x14000328c
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov qword [rcx], rdx
mov rax, qword [rbx + 8]
mov qword [rax], rdx
jmp 0x14000328c
cmp ecx, 0xa
jne 0x140003254
mov rcx, r15
lea r11, str.binary
movzx eax, byte [r12 + rcx]
inc rcx
cmp al, byte [r11 + rcx - 1]
jne 0x140003202
cmp rcx, 7
jne 0x1400031e1
mov dword [0x14007bc88], r15d
jmp 0x140003291
lea rdx, str.without_match
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140003221
mov dword [0x14007bc88], 1
jmp 0x14000328c
mov rcx, r15
lea rdx, str.text
nop dword [rax + rax]
movzx eax, byte [r12 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140004359
cmp rcx, 5
jne 0x140003230
mov dword [0x14007bc88], 2
jmp 0x14000328c
lea eax, [rcx - 3]
cmp eax, 3
jbe 0x140003265
mov rax, qword [rbx + 8]
mov qword [rax], r12
jmp 0x140003291
mov r8d, ebp
mov rdx, rbx
mov rcx, r12
call fcn.140001a50
mov edx, dword [rbx]
mov rcx, qword [rbx + 8]
cmp edx, 4
je 0x14000328a
cmp edx, 5
jne 0x14000328a
mov eax, eax
mov qword [rcx], rax
jmp 0x14000328c
mov dword [rcx], eax
mov r10d, dword [rsp + 0x40]
inc r13d
inc r14
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x60], r14
cmp r13d, r10d
jl 0x140002ce0
mov r12, qword [rsp + 0x58]
mov ebp, dword [rsp + 0x4c]
lea rdi, str.auto
mov r14d, dword [rsp + 0x40]
mov ecx, dword [0x14007bbd0]
test ecx, ecx
jle 0x1400032eb
mov eax, dword [0x14007bbc8]
test eax, eax
cmove eax, ecx
mov dword [0x14007bbc8], eax
mov eax, dword [0x14007bbcc]
test eax, eax
cmove eax, ecx
mov dword [0x14007bbcc], eax
mov r10, qword [0x14007bbc0]
mov ecx, r15d
test r10, r10
mov edx, r15d
setne cl
cmp qword [0x14007bbe0], 0
setne dl
add ecx, dword [0x14007bd18]
add ecx, edx
add ecx, dword [0x14007bd08]
mov dword [0x14007bd3c], ecx
cmp ecx, 1
jg 0x1400042cc
jmp 0x140003350
inc r13d
jmp 0x1400032aa
cmp qword [0x14007bc20], 0
jne 0x140003348
cmp qword [0x14007bc30], 0
je 0x1400043c6
mov r12, r9
jmp 0x1400032af
mov rax, qword [0x14007bbe0]
mov ecx, dword [0x14007b00c]
test rax, rax
je 0x140003375
mov ebx, dword [rax + 8]
cmp ebx, ecx
jg 0x140003509
mov rax, qword [rax]
test rax, rax
jne 0x140003362
test r10, r10
je 0x1400033cc
cmp byte [r10], 0
mov rbx, r10
mov qword [rsp + 0x68], r10
je 0x1400033cc
cmp byte [r10], 0x24
jne 0x1400033b8
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov rdx, r10
mov rcx, rbx
call fcn.140001610
test eax, eax
je 0x140004005
mov r10, qword [rsp + 0x68]
inc r10
mov qword [rsp + 0x68], r10
cmp byte [r10], 0
jne 0x140003388
mov ecx, dword [0x14007b00c]
lea eax, [rcx + 1]
xor ecx, ecx
mov dword [0x14007bcf4], eax
call fcn.140006ab0
xor ecx, ecx
mov qword [0x14007bcb0], rax
call fcn.140006bb0
mov ecx, dword [0x14007bcf4]
xor edx, edx
mov qword [0x14007bcb8], rax
call fcn.1400128e0
mov ecx, dword [0x14007bcf4]
xor edx, edx
mov qword [0x14007bcc8], rax
call fcn.1400128e0
mov rcx, qword [0x14007bcc8]
mov qword [0x14007bcd0], rax
call fcn.1400128c0
mov rcx, qword [0x14007bcd0]
mov qword [0x14007bce0], rax
call fcn.1400128c0
mov rcx, qword [0x14007bcb8]
lea rdx, [0x140005a70]
mov qword [0x14007bce8], rax
xor r8d, r8d
mov rax, qword [0x14007bcc8]
mov qword [0x14007bcc0], rax
mov rax, qword [0x14007bce0]
mov qword [0x14007bcd8], rax
mov dword [0x14007bcf0], r15d
call fcn.140006cb0
mov rax, qword [0x14007b020]
cmp rax, 0xffffffffffffffff
je 0x140003493
mov rcx, qword [0x14007bcb8]
mov edx, eax
call fcn.140006cf0
mov edx, dword [0x14007bbd4]
test edx, edx
je 0x1400034a9
mov rcx, qword [0x14007bcb8]
call fcn.140006d00
mov edx, dword [0x14007bbd8]
test edx, edx
je 0x1400034bf
mov rcx, qword [0x14007bcb8]
call fcn.140006ce0
mov rax, qword [0x14007bba8]
test rax, rax
jne 0x14000354a
lea rbx, str.LC_ALL
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x14007bba8], rax
test rax, rax
jne 0x140003551
lea rbx, str.LC_CTYPE
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x14007bba8], rax
test rax, rax
je 0x14000359d
jmp 0x140003551
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.pcre2grep:_Requested_group__d_cannot_be_captured._n
mov rcx, rax
call fcn.140002190
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:_Use___om_capture_to_increase_the_size_of_the_capture_vector._n
call fcn.140002190
mov ebp, 2
jmp 0x140004085
lea rbx, str.__locale
mov rdx, rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
test rax, rax
jne 0x140003580
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bba8]
lea rdx, str.pcre2grep:_Failed_to_set_locale__s__obtained_from__s__n
jmp 0x140003ffa
xor ecx, ecx
call fcn.14004de00
mov rcx, qword [0x14007bcb0]
mov rdx, rax
mov qword [0x14007bca0], rax
call fcn.140006cc0
mov rdx, qword [0x14007bb90]
test rdx, rdx
je 0x1400035cb
mov rcx, r15
lea r8, str.never
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003674
cmp rcx, 6
jne 0x1400035b3
cmp dword [0x14007bd00], 0
jne 0x1400035e0
cmp dword [0x14007bd3c], 0
mov eax, r15d
je 0x1400035e5
mov eax, 1
mov rsi, qword [0x14007bbb0]
lea rcx, [0x140000000]
mov dword [0x14007bcf8], eax
test rsi, rsi
je 0x14000396c
mov dword [0x14007bc8c], 1
mov eax, 1
cdqe
mov rdi, qword [rcx + rax*8 + 0x7b8e0]
nop dword [rax + rax]
movzx eax, byte [rsi]
test al, al
jne 0x14000362f
cmp byte [rdi], al
je 0x140003928
movsx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
movsx ecx, byte [rdi]
inc rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
inc rdi
cmp ebx, eax
je 0x140003620
mov eax, dword [0x14007bc8c]
inc eax
mov dword [0x14007bc8c], eax
cmp eax, 7
jge 0x140003941
mov rsi, qword [0x14007bbb0]
lea rcx, [0x140000000]
jmp 0x140003611
mov rcx, r15
lea r8, str.always
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400036ca
cmp rcx, 7
jne 0x140003680
mov ecx, 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
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
mov ecx, r15d
mov dword [0x14007bd00], 1
test eax, eax
sete cl
mov dword [0x14007bd04], ecx
jmp 0x140003711
mov rcx, r15
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x1400038fd
cmp rcx, 5
jne 0x1400036d0
mov ecx, 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
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
mov dword [0x14007bd00], eax
test eax, eax
je 0x1400035d4
lea rcx, str.PCRE2GREP_COLOUR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000381b
lea rcx, str.PCRE2GREP_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000381b
lea rcx, str.PCREGREP_COLOUR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000381b
lea rcx, str.PCREGREP_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne 0x14000381b
lea rcx, str.GREP_COLORS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140003806
lea rdx, [0x140056270]
mov rcx, rax
call sub.VCRUNTIME140.dll_strstr
mov rcx, rax
test rax, rax
jne 0x1400037bc
lea rdx, [0x140056274]
mov rcx, rbx
call sub.VCRUNTIME140.dll_strstr
mov rcx, rax
test rax, rax
je 0x140003806
movzx r8d, byte [rcx + 3]
lea rbx, [0x14007bd48]
add rcx, 3
mov edx, r15d
cmp r8b, 0x3a
je 0x1400037f4
test r8b, r8b
je 0x1400037f4
cmp edx, 0xf
jae 0x1400037f4
mov eax, edx
inc rcx
inc edx
mov byte [rax + rbx], r8b
movzx r8d, byte [rcx]
cmp r8b, 0x3a
jne 0x1400037d5
mov eax, edx
cmp rax, 0x10
jae 0x1400043d8
mov byte [rax + rbx], 0
jmp 0x14000381b
lea rcx, str.GREP_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140003853
lea rdx, str._0123456789
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov rdx, rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140003835
mov rax, qword [str.1_31]
cmp rdx, rcx
cmove rax, rbx
mov qword [str.1_31], rax
cmp dword [0x14007bd00], 0
je 0x1400035d4
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [0x14007bd58], rax
lea rdx, [0x14007bd60]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400038d5
cmp dword [0x14007bd04], eax
jne 0x1400038d5
mov qword [rsp + 0x30], r15
lea r8d, [rax + 2]
mov dword [rsp + 0x28], r15d
lea rcx, str.CONOUT_
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
lea rdx, [0x14007bd60]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [str.1_31]
call fcn.140001400
mov word [0x14007bd78], ax
test ax, ax
jne 0x1400035cb
mov dword [0x14007bd00], r15d
jmp 0x1400035d4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bb90]
lea rdx, str.pcre2grep:_Unknown_colour_setting___s__n
mov rcx, rax
call fcn.140002190
mov ebp, 2
jmp 0x140004085
mov edx, dword [0x14007bc8c]
cmp edx, 7
jge 0x140003941
mov rcx, qword [0x14007bcb0]
call fcn.140006d10
jmp 0x14000397d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bbb0]
lea rdx, str.pcre2grep:_Invalid_newline_specifier___s__n
mov rcx, rax
call fcn.140002190
mov ebp, 2
jmp 0x140004085
lea rdx, [0x14007bc8c]
mov ecx, 5
call fcn.140006850
mov rdx, qword [0x14007bb98]
lea r9, str.skip
lea r8, str.read
test rdx, rdx
je 0x1400039bf
mov rcx, r15
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003a60
cmp rcx, 5
jne 0x1400039a0
mov dword [0x14007b0e8], r15d
mov rdx, qword [0x14007bba0]
test rdx, rdx
je 0x1400039ef
mov rcx, r15
nop
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140003aee
cmp rcx, 5
jne 0x1400039d0
mov dword [0x14007bc98], r15d
mov edx, dword [0x14007bcac]
mov rcx, qword [0x14007bcb0]
call fcn.140006cd0
cmp dword [0x14007b0f0], 0
je 0x140003a2e
lea rdx, [rsp + 0x4c]
mov ecx, 1
call fcn.140006850
mov eax, dword [0x14007b0f0]
cmp dword [rsp + 0x4c], 0
cmove eax, r15d
mov dword [0x14007b0f0], eax
mov rax, qword [0x14007b010]
test rax, rax
jne 0x140003b3f
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:___buffer_size_must_be_greater_than_zero_n
call fcn.140002190
mov ebp, 2
jmp 0x140004085
mov rcx, r15
lea r10, str.recurse
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x140003a93
cmp rcx, 8
jne 0x140003a70
mov dword [0x14007b0e8], 2
jmp 0x1400039bf
mov rcx, r15
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140003ac3
cmp rcx, 5
jne 0x140003aa0
mov dword [0x14007b0e8], 1
jmp 0x1400039bf
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bb98]
lea rdx, str.pcre2grep:_Invalid_value___s__for__d_n
mov rcx, rax
call fcn.140002190
mov ebp, 2
jmp 0x140004085
mov rcx, r15
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140003b14
cmp rcx, 5
jne 0x140003af1
mov dword [0x14007bc98], 1
jmp 0x1400039ef
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bba0]
lea rdx, str.pcre2grep:_Invalid_value___s__for__D_n
mov rcx, rax
call fcn.140002190
mov ebp, 2
jmp 0x140004085
lea rcx, [rax + rax*2]
mov qword [0x14007b0e0], rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x14007bc80], rax
test rax, rax
jne 0x140003b80
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:_malloc_failed_n
call fcn.140002190
mov ebp, 2
jmp 0x140004085
mov rax, qword [0x14007bc30]
test rax, rax
jne 0x140003c1b
cmp qword [0x14007bc20], rax
jne 0x140003c1b
cmp r13d, r14d
jl 0x140003bdb
lea ecx, [rax + 2]
call fcn.1400066d0
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140053760
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movsxd rax, r13d
mov rdx, 0xffffffffffffffff
mov rcx, qword [r12 + rax*8]
nop dword [rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x140003bf0
xor r8d, r8d
call fcn.140001080
inc r13d
mov qword [0x14007bc38], rax
mov qword [0x14007bc30], rax
test rax, rax
je 0x140004005
mov edi, 1
mov rbx, rax
test rax, rax
je 0x140003c6f
cmp edi, 1
jne 0x140003c36
cmp qword [rax], 0
mov eax, r15d
je 0x140003c38
mov eax, edi
mov edx, dword [0x14007bca8]
lea r9, str.command_line
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.140001150
test eax, eax
je 0x140004005
mov rbx, qword [rbx]
inc edi
test rbx, rbx
je 0x140003c6f
mov rax, qword [0x14007bc30]
jmp 0x140003c28
mov rbx, qword [0x14007bc20]
test rbx, rbx
je 0x140003ca7
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
lea r8, [0x14007bc38]
lea rdx, [0x14007bc30]
call fcn.140006250
test eax, eax
je 0x140004005
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003c80
cmp dword [0x14007b0f0], 0
je 0x140003cdd
xor r8d, r8d
mov edx, 0x100000
mov ecx, 0x8000
call fcn.140048730
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140003cdd
mov rcx, qword [0x14007bcb8]
mov r8, rax
xor edx, edx
call fcn.140048720
and dword [0x14007bca8], 0xfdffffff
xor edx, edx
mov rcx, qword [0x14007bcb0]
call fcn.140006cd0
lea rcx, [0x140000000]
mov rsi, r15
nop
mov rax, qword [rsi + rcx + 0x7b0f8]
mov edi, 1
mov rbx, qword [rax]
test rbx, rbx
je 0x140003d5b
cmp edi, 1
jne 0x140003d23
cmp qword [rbx], 0
mov eax, r15d
je 0x140003d25
mov eax, edi
mov r9, qword [rsi + rcx + 0x7b118]
xor r8d, r8d
mov edx, dword [0x14007bca8]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140001150
test eax, eax
je 0x140004005
mov rbx, qword [rbx]
lea rcx, [0x140000000]
inc edi
test rbx, rbx
jne 0x140003d15
add rsi, 8
cmp rsi, 0x20
jl 0x140003d00
mov rbx, qword [0x14007bc00]
test rbx, rbx
je 0x140003d98
mov rcx, qword [rbx + 8]
lea r8, [0x14007bc48]
lea rdx, [0x14007bc40]
call fcn.140006250
test eax, eax
je 0x140004005
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003d71
mov rbx, qword [0x14007bbf0]
test rbx, rbx
je 0x140003dcb
mov rcx, qword [rbx + 8]
lea r8, [0x14007bc58]
lea rdx, [0x14007bc50]
call fcn.140006250
test eax, eax
je 0x140004005
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003da4
mov r14, qword [0x14007bc10]
test r14, r14
jne 0x140003e40
cmp r13d, dword [rsp + 0x40]
jl 0x140003e2c
cmp dword [0x14007b008], r14d
jl 0x140003dfa
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
cmp dword [0x14007b0ec], 1
cmovg r15, qword [section..data]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [section..data]
mov r9, r15
mov rcx, rax
xor edx, edx
call fcn.1400048c0
mov ebp, eax
jmp 0x140004085
test r14, r14
je 0x140003f88
nop word [rax + rax]
mov rcx, qword [r14 + 8]
movzx eax, byte [rcx]
cmp al, byte [0x140056c70]
jne 0x140003e68
movzx eax, byte [rcx + 1]
cmp al, byte [0x140056c71]
jne 0x140003e68
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rax
jmp 0x140003e81
lea rdx, [0x140056cf4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x140003fd3
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140003f5f
lea rcx, [rsp + 0xb0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140003eb0
cdqe
lea rbx, [rsp + 0xb0]
add rbx, rax
lea rax, [rsp + 0xb0]
cmp rbx, rax
jbe 0x140003f02
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [rbx - 1]
lea rdi, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140003f02
lea rax, [rsp + 0xb0]
mov rbx, rdi
cmp rdi, rax
ja 0x140003ee0
mov byte [rbx], 0
cmp byte [rsp + 0xb0], 0
je 0x140003f40
cmp dword [0x14007b0e8], 2
lea rcx, [rsp + 0xb0]
mov edx, r15d
sete dl
xor r8d, r8d
call fcn.1400021e0
cmp eax, 1
jle 0x140003f35
mov ebp, eax
jmp 0x140003f40
test eax, eax
jne 0x140003f40
cmp ebp, 1
cmove ebp, r15d
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov edx, 0x800
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140003ea0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rsi, rax
je 0x140003f75
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r14, qword [r14]
test r14, r14
jne 0x140003e40
mov r14, qword [0x14007bc10]
movsxd rcx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp r13d, eax
jne 0x140003f9f
mov esi, 1
test r14, r14
je 0x140003fa2
mov esi, r15d
movsxd rbx, r13d
mov rdi, rcx
cmp rbx, rcx
jge 0x140004022
cmp dword [0x14007b0e8], 2
mov edx, r15d
mov rcx, qword [r12 + rbx*8]
mov r8d, esi
sete dl
call fcn.1400021e0
cmp eax, 1
jle 0x14000400f
mov ebp, eax
jmp 0x14000401a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r14 + 8]
lea rdx, str.pcre2grep:_Failed_to_open__s:__s_n
mov r9, rbx
mov rcx, rax
call fcn.140002190
mov ebp, 2
jmp 0x140004085
test eax, eax
jne 0x14000401a
cmp ebp, 1
cmove ebp, r15d
inc rbx
cmp rbx, rdi
jl 0x140003fb1
cmp dword [0x14007bd30], 0
je 0x140004085
mov eax, dword [0x14007bc90]
cmp eax, 1
je 0x140004085
mov edx, dword [0x14007b0ec]
cmp edx, 3
je 0x140004085
test eax, eax
je 0x140004064
cmp edx, 1
jl 0x140004064
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.TOTAL:
call fcn.140002190
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14007bc94]
lea rdx, str._lu_r_n
mov rcx, rax
call fcn.140002190
xor ecx, ecx
call fcn.140048480
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000409e
mov rcx, rax
call fcn.140048890
mov rcx, qword [0x14007bc80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [0x14007bca0]
test rdx, rdx
je 0x1400040be
xor ecx, ecx
call fcn.14004e0f0
mov rcx, qword [0x14007bcb0]
call fcn.140006ba0
mov rcx, qword [0x14007bcb8]
call fcn.140006ba0
mov rcx, qword [0x14007bcc8]
call fcn.140012930
mov rcx, qword [0x14007bcd0]
call fcn.140012930
mov rbx, qword [0x14007bc30]
test rbx, rbx
je 0x140004122
nop word [rax + rax]
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140004114
call fcn.140010c70
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004100
mov rbx, qword [0x14007bc40]
test rbx, rbx
je 0x140004152
nop
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140004144
call fcn.140010c70
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004130
mov rbx, qword [0x14007bc60]
test rbx, rbx
je 0x140004182
nop
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140004174
call fcn.140010c70
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004160
mov rbx, qword [0x14007bc50]
test rbx, rbx
je 0x1400041b2
nop
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400041a4
call fcn.140010c70
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004190
mov rbx, qword [0x14007bc70]
test rbx, rbx
je 0x1400041e2
nop
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400041d4
call fcn.140010c70
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x1400041c0
mov rbx, qword [0x14007bbf0]
test rbx, rbx
je 0x140004201
nop
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x1400041f0
mov rbx, qword [0x14007bc00]
test rbx, rbx
je 0x140004221
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004210
mov rbx, qword [0x14007bc20]
test rbx, rbx
je 0x140004241
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004230
mov rbx, qword [0x14007bc10]
test rbx, rbx
je 0x140004261
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140004250
mov rcx, qword [0x14007bbe0]
test rcx, rcx
je 0x14000428c
nop dword [rax]
mov rax, qword [rcx]
mov qword [0x14007bbe0], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14007bbe0]
test rcx, rcx
jne 0x140004270
mov ecx, ebp
call fcn.140005de0
int3
mov ecx, 2
movsxd rbx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x58]
lea rdx, str.pcre2grep:_Unknown_option__s_n
mov rcx, rax
mov r8, qword [r9 + rbx*8]
call fcn.140002190
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:_Cannot_mix___only_matching____output____file_offsets_and_or___line_offsets_n
call fcn.140002190
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rbx + 0x10]
lea rdx, str.pcre2grep:_Buffer_overflow_when_parsing__s_option_n
mov rcx, rax
call fcn.140002190
mov ecx, 2
call fcn.140005de0
int3
mov ecx, 2
movsxd rbx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x58]
lea rdx, str.pcre2grep:_Data_missing_after__s_n
mov rcx, rax
mov r8, qword [r9 + rbx*8]
call fcn.140002190
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r12
lea rdx, str.pcre2grep:_unknown_value___s__for_binary_files_n
mov rcx, rax
call fcn.140002190
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
movsx edi, byte [rdi]
mov ecx, 2
movsxd rbx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsp + 0x58]
lea rdx, str.pcre2grep:_Unknown_option_letter__c_in___s__n
mov rcx, rax
mov r8d, edi
mov r9, qword [r9 + rbx*8]
call fcn.140002190
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
mov ecx, 2
call fcn.1400066d0
mov ecx, eax
call fcn.140005de0
int3
call fcn.1400534c8
int3