Function at 0x1400049a0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edx, edx
mov r8d, 0x101
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
cmp byte [0x14000b160], 0x21
jne 0x140004b84
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.140003470
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
mov ebx, dword [rsp + rax + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140001360
test ebx, ebx
jne 0x140004b6e
xor esi, esi
lea rcx, str.Creating_a_flag..._n
call fcn.140001080
lea rcx, str.Insert_flag_value_
call fcn.140001080
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
mov edx, 0x100
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov byte [rbp + 0x180], sil
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r8d, [rbx + 0x25]
lea rcx, [rsp + 0x40]
call fcn.140003470
nop
cmp qword [rbp - 0x30], rsi
je 0x140004b3b
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
movups xmm2, xmmword [rax]
movdqa xmm1, xmm2
psrldq xmm1, 8
movq rbx, xmm1
movq rax, xmm2
add rbx, rax
cmp rbx, 0x3e80
jge 0x140004b59
lea rdx, [rbx + 1]
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x50]
call fcn.1400037a0
test rax, rax
jne 0x140004b37
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov byte [rbx + rsi], 0
lea rcx, [rsp + 0x40]
call fcn.140001360
lea rdx, [rbp + 0x80]
mov rcx, rsi
call fcn.140003c50
jmp 0x140004db3
lea rcx, str.Rules_are_too_long_n
call fcn.140001020
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, str.Generating_config_file..._n
call fcn.140001080
call fcn.140004300
jmp 0x140004db3
xor esi, esi
mov eax, esi
lea r12, [0x14000b050]
lea rcx, [0x14000b160]
nop word [rax + rax]
movdqu xmm1, xmmword [rax + rcx]
movdqu xmm0, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rax + r12], xmm1
movdqu xmm1, xmmword [rax + rcx + 0x10]
movdqu xmm0, xmmword [rax + r12 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax + r12 + 0x10], xmm1
movdqu xmm1, xmmword [rax + rcx + 0x20]
movdqu xmm0, xmmword [rax + r12 + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax + r12 + 0x20], xmm1
movdqu xmm1, xmmword [rax + rcx + 0x30]
movdqu xmm0, xmmword [rax + r12 + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + r12 + 0x30], xmm1
add rax, 0x40
cmp rax, 0x100
jl 0x140004ba0
mov rax, rsi
movdqa xmm2, xmmword [0x140007d80]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + rcx]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rcx], xmm1
movdqu xmm0, xmmword [rax + rcx + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rcx + 0x10], xmm1
movdqu xmm0, xmmword [rax + rcx + 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rcx + 0x20], xmm1
movdqu xmm0, xmmword [rax + rcx + 0x30]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rcx + 0x30], xmm1
add rax, 0x40
cmp rax, 0x3e80
jl 0x140004c20
mov qword [rsp + 0x38], rsi
mov r14d, esi
lea r8, [rsp + 0x38]
lea rdx, [0x140007bd4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov rbx, rax
test rax, rax
je 0x140004da4
movabs r15, 0x800002401
nop word [rax + rax]
mov qword [rsp + 0x30], rsi
mov rdx, 0xffffffffffffffff
nop dword [rax]
lea rdx, [rdx + 1]
cmp byte [rbx + rdx], sil
jne 0x140004cc0
lea rdx, [rdx*2 + 2]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140004df6
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], sil
jne 0x140004cf0
inc rdx
mov r9, rbx
lea r8, [0x140007c04]
mov rcx, rdi
call fcn.140003bf0
movzx eax, word [rdi]
cmp eax, 0x23
ja 0x140004d1c
bt r15, rax
jb 0x140004d84
lea r8, [rsp + 0x30]
lea rdx, [0x140007c0c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edi, eax
test rbx, rbx
je 0x140004d72
lea rbx, [rbp + 0x50]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
lea rdx, [0x140007c0c]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140004d72
mov qword [rbx], rax
add rbx, 8
jmp 0x140004d50
inc r14d
lea rdx, [rbp + 0x50]
mov ecx, edi
call fcn.1400019d0
test al, al
je 0x140004de5
lea r8, [rsp + 0x38]
lea rdx, [0x140007bd4]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov rbx, rax
test rax, rax
jne 0x140004cb0
mov rdx, r12
lea rcx, [0x140007c98]
call fcn.140001080
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140005220
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, r14d
lea rcx, [0x140007c10]
call fcn.140001020
jmp 0x140004db3
lea rcx, [0x140007bd8]
call fcn.140001020
jmp 0x140004db3