Function at 0x140024c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15, rcx
mov dword [rsp + 0x38], edx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r14, qword [rcx]
mov rbx, qword [r14 + 0x2e0]
mov rdi, qword [rcx + 8]
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140024c8a
mov rdx, qword [rdi]
movabs r9, 0xcbf29ce484222325
mov rcx, r12
test r8, r8
je 0x140024cc3
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140024cb0
mov r8, rdi
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.14001dac0
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x140024de2
cmp rsi, qword [rbx + 8]
je 0x140024de2
lea rdx, [rsi + 0x10]
mov eax, dword [rsp + 0x38]
mov dword [rbp - 0x10], eax
lea rcx, [rbp - 8]
call fcn.140018b00
nop
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x70]
lea rcx, [r14 + 0xe0]
call fcn.14001f740
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140024d4f
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024d4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f6b
call fcn.1400734ec
mov rcx, qword [r15]
add rcx, 0x220
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x140024d66
lock inc dword [rax + 8]
mov rdx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x38]
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x60]
call fcn.14001fa70
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140024dd9
mov r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140024dd9
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140024dd9
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rsi, qword [rsi + 0x30]
jmp 0x140025108
mov ecx, 0x118
call fcn.1400734b0
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140024edc
cmp qword [rdi + 0x18], 0xf
jbe 0x140024e07
mov rdi, qword [rdi]
lea rax, [0x140080410]
mov qword [rsi], rax
lea rax, [0x140080418]
mov qword [rsi + 0x10], rax
lea rcx, [rsi + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 1
lea rbx, [rsi + 0x18]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rcx + rsi - 4], edx
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbx], rax
mov byte [rbx + 0x7c], 0
mov byte [rbx + 0x71], 0
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbx + 0x80], r12
mov rax, qword [0x14009a8d8]
mov qword [rbx + 0x74], rax
mov qword [rbx + 0x68], r12
mov r9d, 0x40
lea r8d, [r9 - 0x36]
mov rdx, rdi
mov rcx, rbx
call fcn.14002d720
test rax, rax
jne 0x140024eda
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
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
jmp 0x140024edf
mov rsi, r12
cmp qword [rsi + 0x98], 0
je 0x140024ef5
lea rcx, [rsi + 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
jmp 0x140024f0c
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rsi, r12
mov rbx, qword [r15]
mov eax, dword [rsp + 0x38]
mov dword [rbp + 0x48], eax
mov rdx, qword [r15 + 8]
lea rcx, [rbp + 0x50]
call fcn.140018b00
nop
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x50]
lea rcx, [rbx + 0xe0]
call fcn.14001f740
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140024f77
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024f72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024f72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov rbx, qword [r15]
mov qword [rsp + 0x70], rsi
mov ecx, 0x18
call fcn.1400734b0
mov rcx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140024fba
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_class_std::basic_fstream_char__struct_std::char_traits_char___.0
mov qword [rcx], rax
mov qword [rcx + 0x10], rsi
jmp 0x140024fbd
mov rcx, r12
mov eax, dword [rsp + 0x38]
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rsi
mov qword [rbp], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x30]
lea rcx, [rbx + 0x220]
call fcn.14001fa70
nop
mov r14d, 0xffffffff
mov rcx, qword [rbp]
test rcx, rcx
je 0x140025029
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140025029
mov rbx, qword [rbp]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140025029
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rax, qword [r15]
mov r12, qword [rax + 0x2e0]
lea rcx, [rax + 0x220]
lea rdx, [rsp + 0x38]
call fcn.140027a80
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140025051
lock inc dword [rcx + 8]
mov rdi, qword [rax]
mov qword [rsp + 0x48], rdi
mov rbx, qword [rax + 8]
mov qword [rsp + 0x50], rbx
mov rdx, qword [r15 + 8]
lea rcx, [rbp + 0x18]
call fcn.140018b00
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.14001eea0
nop
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1400250c9
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400250c9
mov rbx, qword [rbp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1400250c9
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x140025108
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025102
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140025102
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
nop
test rsi, rsi
jne 0x14002512f
mov byte [rsp + 0x30], sil
mov rcx, qword [r15]
lea r9, [rcx + 0xa0]
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x38]
call fcn.1400214c0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140073840
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret