Function at 0x140008130
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x140089168]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rsi, rdx
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.1400032a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140008196
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x38]
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x30], xmm0
test rbx, rbx
je 0x1400081ac
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x38]
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov r15d, 0xffffffff
test rbx, rbx
je 0x1400081ee
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400081ea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400081ea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x1400087b1
xor r12d, r12d
lea r13d, [r12 + 5]
mov r14d, dword [0x140089178]
nop word [rax + rax]
lea rbx, [rax + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003660
cmp dword [rax], 2
jne 0x14000877a
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x10]
call fcn.140066448
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140008248
mov rdx, qword [rbx]
lea rcx, [rbp + 0x10]
call fcn.140015910
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
cmp qword [rbp + 0xa0], 0
je 0x140008669
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x50], r12
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], 0
mov edi, r12d
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x10]
call fcn.140015b60
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140008589
mov r15d, 0x1f
test edi, edi
jle 0x140008333
mov rax, qword [rbp - 0x58]
cmp rax, qword [rbp - 0x50]
je 0x14000831b
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140013430
mov rbx, qword [rbp - 0x58]
add rbx, 0x20
mov qword [rbp - 0x58], rbx
dec edi
jmp 0x140008337
lea r8, [rbp - 0x20]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140016170
mov rbx, qword [rbp - 0x58]
dec edi
jmp 0x140008337
mov rbx, qword [rbp - 0x58]
movups xmm0, xmmword [0x140073cf0]
movups xmmword [rsp + 0x38], xmm0
movsd xmm0, qword [0x140073d00]
movsd qword [rsp + 0x48], xmm0
movzx eax, word [0x140073d08]
mov word [rsp + 0x50], ax
cmp byte [0x140073d09], 0
je 0x1400084fe
mov ecx, r12d
cmp r14d, 2
jl 0x1400084b9
movdqa xmm5, xmmword [0x140074290]
movdqa xmm4, xmmword [0x1400742f0]
movd xmm6, r13d
movdqa xmm7, xmmword [0x1400742b0]
movd xmm8, r15d
movdqa xmm0, xmmword [str.8888888888888888_t]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x3c]
mov r8d, dword [rsp + 0x60]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400742d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400742d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x1400083b1
cmp ecx, 0x1a
jge 0x1400084fe
movsxd rax, ecx
lea r8, [rsp + 0x38]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1a
jl 0x1400084d0
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.140013290
cmp rax, 0xffffffffffffffff
je 0x140008543
cmp rbx, qword [rbp - 0x50]
je 0x14000852e
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140013430
add qword [rbp - 0x58], 0x20
jmp 0x14000853e
lea r8, [rbp - 0x20]
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140016170
mov edi, 4
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x10]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x10]
call fcn.140015b60
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x1400082f1
mov r15d, 0xffffffff
mov rdi, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
cmp rbx, rdi
je 0x1400085c6
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400085a3
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.140015d10
mov rcx, rax
mov dl, 0xa
call fcn.140013fd0
add rbx, 0x20
cmp rbx, rdi
jne 0x140008596
mov rbx, qword [rbp - 0x60]
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140008605
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400085fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008856
call fcn.140065514
mov rbx, qword [rbp - 0x60]
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], 0
test rbx, rbx
je 0x1400086d9
lea r8, [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.140014f50
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008662
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000885d
call fcn.140065514
jmp 0x1400086d9
mov eax, dword [0x14007389c]
mov dword [rsp + 0x30], eax
movzx edx, word [0x1400738a0]
mov word [rsp + 0x34], dx
movzx eax, byte [0x1400738a2]
mov byte [rsp + 0x30], 0x45
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor dl, 0x3c
mov byte [rsp + 0x34], dl
xor byte [rsp + 0x35], 0x3d
xor al, 0x3e
mov byte [rsp + 0x36], al
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400141a0
mov rdx, rbx
mov rcx, rax
call fcn.140014370
lea rdx, [0x1400144f0]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0xa0], 0
je 0x140008744
mov rax, qword [rbp + 0x38]
lea rcx, [rbp + 0x90]
cmp qword [rax], rcx
jne 0x140008744
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rbp + 0x58]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x70]
mov dword [rax], edx
cmp byte [rbp + 0x9c], 0
je 0x140008756
lea rcx, [rbp + 0x20]
call fcn.140013770
lea rcx, [rbp + 0x20]
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 + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x140008797
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140003660
cmp dword [rax], 3
jne 0x140008797
mov rdx, rsi
mov rcx, rbx
call fcn.140008130
lea rcx, [rbp - 0x30]
call fcn.140003400
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x140008210
mov rbx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400087ee
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400087ea
mov rbx, qword [rbp - 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r15d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400087ea
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x14000881d
mov eax, r15d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000881d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x14000881d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400653e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3