Function at 0x140021790
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400c60c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
mov qword [rbp - 0x70], rcx
xor ebx, ebx
mov r14d, ebx
mov dword [rsp + 0x2c], ebx
mov edi, 0x104
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rdx, [rbp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
movdqa xmm0, xmmword [0x14008b4c0]
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x14008b4e0]
movdqu xmmword [rbp - 0x58], xmm1
movdqa xmm0, xmmword [0x14008b4a0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x38], 0x100
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x80]
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x140021846
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140003e60
nop
movdqa xmm0, xmmword [0x14008b420]
movdqu xmmword [rbp - 0x18], xmm0
mov dword [rbp - 8], 0x726f2b21
mov word [rbp - 4], 0x100
mov rcx, rbx
lea eax, [rcx + 0x3d]
xor byte [rbp + rcx - 0x18], al
inc rcx
cmp rcx, 0x14
jb 0x14002187e
mov byte [rbp - 3], bl
lea rax, [rbp - 0x18]
mov r9, rdi
inc r9
cmp byte [rax + r9], bl
jne 0x140021898
lea r8, [rbp - 0x18]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000bce0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rbx
mov r12d, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], r12
mov byte [rax], bl
or r14d, 2
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14001be34
mov rdi, rax
cmp qword [rax + 0x18], r12
jbe 0x1400218f4
mov rdi, qword [rax]
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r12
mov byte [rsi], bl
or r14d, 4
mov dword [rsp + 0x2c], r14d
movups xmmword [rbp - 0x18], xmm0
lea rdx, [0x14008b2f8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov r15, rax
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], r15
test r15, r15
jne 0x1400219d7
mov dword [rsp + 0x20], 0x8e0299ee
mov dword [rsp + 0x24], 0xf5cfd7d7
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea ecx, [r15 + 8]
lea rax, [0x14008b2f0]
mov al, byte [rbx + rax]
xor byte [rsp + rbx + 0x20], al
inc rbx
sub rcx, 1
je 0x140021aee
jmp 0x14002196b
lea rax, [rbp]
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], bl
jne 0x140021990
cmp rdi, qword [rsi + 0x18]
ja 0x1400219c3
mov r14, rsi
cmp qword [rsi + 0x18], r12
jbe 0x1400219aa
mov r14, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
lea rdx, [rbp]
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], bl
jmp 0x1400219d7
lea r9, [rbp]
mov r8b, byte [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.14000df60
mov r8, r15
mov edx, 0x80
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140021988
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
nop
mov edi, 0x1000
mov rdx, qword [rsp + 0x68]
cmp rdx, r12
jbe 0x140021a38
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, rdi
jb 0x140021a33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021a33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b770
movdqa xmm0, xmmword [0x1400b8490]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], bl
mov rdx, qword [rbp - 0x78]
cmp rdx, r12
jbe 0x140021a85
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, rdi
jb 0x140021a7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b770
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, r12
jbe 0x140021ac0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, rdi
jb 0x140021abb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021abb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b770
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14007b750
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400032c0
lea rdx, [0x1400c2478]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3