Function at 0x1400381a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
movzx ebx, dl
mov rdi, rcx
xor esi, esi
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xb0], sil
lea rcx, [0x140161710]
call fcn.140043cb0
test bl, bl
je 0x140038548
mov dword [rsp + 0x30], 0x1026433b
mov dword [rsp + 0x34], 0xb500419
mov dword [rsp + 0x38], 0x100f5f8
mov ecx, esi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xa
jb 0x140038220
mov byte [rsp + 0x3b], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140038260
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14003f3f0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140035490
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x38], 1
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x18]
mov qword [rbp - 0x80], rax
test rax, rax
sete byte [rbp - 0x78]
mov byte [rbp - 0x77], 0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140040da0
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
lea rcx, [0x1401607f0]
call fcn.14003f3f0
lea rdx, [0x1401607f0]
lea rcx, [rbp - 0x80]
call fcn.14003f2d0
mov rdx, rax
lea rcx, [0x140161710]
call fcn.140044f10
nop
mov rdx, qword [rsp + 0x78]
cmp byte [0x140161950], 0
jne 0x14003845c
cmp rdx, 0x10
jb 0x1400383ae
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400383a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003848b
call fcn.1400a11e8
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x60]
call fcn.140034030
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140038408
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038403
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400384e8
call fcn.1400a11e8
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140038455
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140038450
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038541
mov rcx, r8
call fcn.1400a11e8
xor al, al
jmp 0x1400387b0
cmp rdx, 0x10
jb 0x140038497
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038492
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038492
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rcx, [rbp - 0x60]
call fcn.140034030
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400384f4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400384ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400384ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400387ae
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400387a9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400387a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14003f2d0
mov rdx, rax
lea rcx, [0x140161710]
call fcn.140044f10
cmp byte [0x140161950], 0
jne 0x1400385ae
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140038455
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140038450
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14003844d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x30], 0x1026433b
mov dword [rsp + 0x34], 0xb500419
mov dword [rsp + 0x38], 0x100f5f8
mov rcx, rsi
nop dword [rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0xa
jb 0x1400385d0
mov byte [rsp + 0x3b], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov r8d, 0xa
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14003f3f0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov r8d, 2
lea rcx, [rbp - 0x60]
call fcn.140034340
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rbx
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140038699
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038694
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038694
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a11e8
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400386b9
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.140040ef0
lea rcx, [rbp - 0x58]
call fcn.1400352a0
test rax, rax
jne 0x1400386f1
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rbx
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x58], rax
cmp qword [rbp + 0x28], 0
je 0x140038749
mov rax, qword [rbp - 0x40]
lea rcx, [rbp + 0x18]
cmp qword [rax], rcx
jne 0x140038749
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x30]
mov qword [rax], rcx
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 8]
mov dword [rax], edx
cmp byte [rbp + 0x24], 0
je 0x140038758
lea rcx, [rbp - 0x58]
call fcn.1400352a0
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400387ae
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400387a9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400387d2
mov rcx, r8
call fcn.1400a11e8
mov al, 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3